Introduction
Introduction Statistics Contact Development Disclaimer Help
tadding zoom support. - surf - customized build of surf, the suckless webkit br…
git clone git://src.adamsgaard.dk/surf
Log
Files
Refs
README
LICENSE
---
commit c54933edc1fd523300fd29d6b117ba0ab48e2035
parent d3d9c9b714e256ddb62d75ce10830c01226d83ad
Author: Enno Boland (Gottox) <[email protected]>
Date: Mon, 8 Jun 2009 17:01:12 +0200
adding zoom support.
Diffstat:
M surf.c | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
---
diff --git a/surf.c b/surf.c
t@@ -220,6 +220,16 @@ keypress(GtkWidget* w, GdkEventKey *ev, gpointer d) {
case GDK_slash:
showsearch(c);
return TRUE;
+ case GDK_plus:
+ case GDK_equal:
+ webkit_web_view_zoom_in(c->view);
+ return TRUE;
+ case GDK_minus:
+ webkit_web_view_zoom_out(c->view);
+ return TRUE;
+ case GDK_0:
+ webkit_web_view_set_zoom_level(c->view, 1.0);
+ return TRUE;
case GDK_n:
case GDK_N:
webkit_web_view_search_text(c->view,
t@@ -331,7 +341,6 @@ newclient(void) {
gtk_window_set_default_size(GTK_WINDOW(c->win), 800, 600);
g_signal_connect(G_OBJECT(c->win), "destroy", G_CALLBACK(destroywin), …
g_signal_connect(G_OBJECT(c->win), "key-press-event", G_CALLBACK(keypr…
- c->download = NULL;
/* VBox */
c->vbox = gtk_vbox_new(FALSE, 0);
t@@ -381,6 +390,8 @@ newclient(void) {
gtk_widget_show(c->win);
gdk_window_set_events(GTK_WIDGET(c->win)->window, GDK_ALL_EVENTS_MASK);
gdk_window_add_filter(GTK_WIDGET(c->win)->window, processx, c);
+ c->download = NULL;
+ c->title = NULL;
c->next = clients;
clients = c;
if(showxid)
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.