From 101f2d6455272c067f024e9945d05733cd8d71ca Mon Sep 17 00:00:00 2001 From: pancake Date: Mon, 11 Jun 2012 16:01:03 +0200 Subject: apply nick's patch removing the autoresize functionality --- surf.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/surf.c b/surf.c index 9a621e6..b9ab5aa 100644 --- a/surf.c +++ b/surf.c @@ -95,7 +95,6 @@ static void print(Client *c, const Arg *arg); static GdkFilterReturn processx(GdkXEvent *xevent, GdkEvent *event, gpointer d); static void progresschange(WebKitWebView *view, GParamSpec *pspec, Client *c); static void reload(Client *c, const Arg *arg); -static void resize(GtkWidget *w, GtkAllocation *a, Client *c); static void scroll_h(Client *c, const Arg *arg); static void scroll_v(Client *c, const Arg *arg); static void scroll(GtkAdjustment *a, const Arg *arg); @@ -476,7 +475,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), c); g_signal_connect(G_OBJECT(c->win), "key-press-event", G_CALLBACK(keypress), c); - g_signal_connect(G_OBJECT(c->win), "size-allocate", G_CALLBACK(resize), c); /* VBox */ c->vbox = gtk_vbox_new(FALSE, 0); @@ -650,19 +648,6 @@ reload(Client *c, const Arg *arg) { webkit_web_view_reload(c->view); } -void -resize(GtkWidget *w, GtkAllocation *a, Client *c) { - double zoom; - - if(c->zoomed) - return; - zoom = webkit_web_view_get_zoom_level(c->view); - if(a->width * a->height < 300 * 400 && zoom != 0.2) - webkit_web_view_set_zoom_level(c->view, 0.2); - else if(zoom != 1.0) - webkit_web_view_set_zoom_level(c->view, 1.0); -} - void scroll_h(Client *c, const Arg *arg) { scroll(gtk_scrolled_window_get_hadjustment(GTK_SCROLLED_WINDOW(c->scroll)), arg); -- cgit v1.2.3-59-g8ed1b input class='txt' type='search' size='10' name='q' value=''/>
path: root/util.c (unfollow)
Commit message (Expand)AuthorFilesLines
2015-09-27config.mk: improve feature test checkGravatar Hiltjo Posthuma 1-1/+1
2015-08-06Fixed typo introduced by shared codeGravatar Eric Pruitt 1-1/+1
2015-07-19stest: get rid of getopt, use suckless arg.hGravatar Hiltjo Posthuma 3-53/+141
2015-07-19config.mk: add FREETYPELIBS and FREETYPEINCGravatar Hiltjo Posthuma 1-3/+9
2015-07-19fix prompt color style how it used to beGravatar Hiltjo Posthuma 1-1/+1
2015-06-27Use libdraw: add Xft and fallback-fonts support to graphics libGravatar Hiltjo Posthuma 11-316/+684
2014-09-17applied Hiltjo's patch as suggested on the ml to fix ControlMask for C-j and C-mGravatar Anselm R Garbe 2-2/+5
2014-07-30fix crash with ctrl-enter as inputGravatar Hiltjo Posthuma 1-1/+2
2014-05-29updated copyright notices in LICENSE and dmenu.c fileGravatar Anselm R Garbe 2-2/+2
2013-08-13applied Martin Kühl's inverse matching flag to stestGravatar Anselm R Garbe 2-4/+7
2013-08-02applied Martti Kühne's dmenu monitor patchGravatar Anselm R Garbe 3-4/+14
2013-06-28accepted vi'is exit approach ^[ (suggested by Arkaduisz)Gravatar Anselm R Garbe 1-0/+2