Mercurial > pidgin.yaz
changeset 12179:92ba143044e6
[gaim-migrate @ 14481]
I didn't know I could do this, that's neat. Thanks to the random patch I just
saw which did this.
committer: Tailor Script <tailor@pidgin.im>
author | Etan Reisner <pidgin@unreliablesource.net> |
---|---|
date | Mon, 21 Nov 2005 06:56:35 +0000 |
parents | d8042646da26 |
children | b3d334f60732 |
files | src/gtkblist.c |
diffstat | 1 files changed, 3 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkblist.c Mon Nov 21 04:00:56 2005 +0000 +++ b/src/gtkblist.c Mon Nov 21 06:56:35 2005 +0000 @@ -3359,10 +3359,8 @@ static gboolean pane_position_cb(GtkPaned *paned, GParamSpec *param_spec, gpointer data) { - if (!strcmp(g_param_spec_get_name(param_spec), "position")) { - gaim_prefs_set_int("/gaim/gtk/blist/pane", - gtk_paned_get_position(paned)); - } + gaim_prefs_set_int("/gaim/gtk/blist/pane", + gtk_paned_get_position(paned)); return FALSE; } @@ -3434,7 +3432,7 @@ gtk_box_pack_start(GTK_BOX(gtkblist->vbox), vpane, TRUE, TRUE, 0); gtk_paned_set_position(GTK_PANED(vpane), gaim_prefs_get_int("/gaim/gtk/blist/pane")); - g_signal_connect(G_OBJECT(vpane), "notify", + g_signal_connect(G_OBJECT(vpane), "notify::position", G_CALLBACK(pane_position_cb), NULL); /****************************** GtkTreeView **********************************/