Introduction
Introduction Statistics Contact Development Disclaimer Help
timproving urlbar hiding. - surf - customized build of surf, the suckless webki…
git clone git://src.adamsgaard.dk/surf
Log
Files
Refs
README
LICENSE
---
commit 7e86ea553f88a0be2b15de257a231e5783daa49f
parent 17bbc1a3cc50a96d873f3d2064c2f05008d42922
Author: Enno Boland (tox) <[email protected]>
Date: Fri, 16 Oct 2009 10:55:05 +0200
improving urlbar hiding.
Diffstat:
M surf.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/surf.c b/surf.c
t@@ -117,7 +117,7 @@ static void showsearch(Client *c, const Arg *arg);
static void showurl(Client *c, const Arg *arg);
static void stop(Client *c, const Arg *arg);
static void titlechange(WebKitWebView* view, WebKitWebFrame* frame, const gcha…
-static gboolean unfocusbar(GtkWidget *w, GdkEventFocus *e, Client *c);
+static gboolean focusview(GtkWidget *w, GdkEventFocus *e, Client *c);
static void usage(void);
static void update(Client *c);
static void updatewinid(Client *c);
t@@ -419,16 +419,15 @@ newclient(void) {
g_signal_connect(G_OBJECT(c->view), "download-requested", G_CALLBACK(i…
g_signal_connect(G_OBJECT(c->view), "window-object-cleared", G_CALLBAC…
g_signal_connect_after(session, "request-started", G_CALLBACK(request)…
+ g_signal_connect(G_OBJECT(c->view), "focus-in-event", G_CALLBACK(focus…
/* urlbar */
c->urlbar = gtk_entry_new();
gtk_entry_set_has_frame(GTK_ENTRY(c->urlbar), FALSE);
- g_signal_connect(G_OBJECT(c->urlbar), "focus-out-event", G_CALLBACK(un…
/* searchbar */
c->searchbar = gtk_entry_new();
gtk_entry_set_has_frame(GTK_ENTRY(c->searchbar), FALSE);
- g_signal_connect(G_OBJECT(c->searchbar), "focus-out-event", G_CALLBACK…
/* indicator */
c->indicator = gtk_drawing_area_new();
t@@ -508,7 +507,6 @@ createwindow(WebKitWebView *v, WebKitWebFrame *f, Client …
return n->view;
}
-
void
pasteurl(GtkClipboard *clipboard, const gchar *text, gpointer d) {
Arg arg = {.v = text };
t@@ -707,7 +705,7 @@ titlechange(WebKitWebView *v, WebKitWebFrame *f, const gch…
}
gboolean
-unfocusbar(GtkWidget *w, GdkEventFocus *e, Client *c) {
+focusview(GtkWidget *w, GdkEventFocus *e, Client *c) {
hidesearch(c, NULL);
hideurl(c, NULL);
return FALSE;
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.