Mercurial > pidgin
changeset 14701:f063e0bc1f20
[gaim-migrate @ 17453]
Fix chat userlist width saving (use the VBox alloc. width for both saving and loading).
committer: Tailor Script <tailor@pidgin.im>
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Tue, 10 Oct 2006 00:45:14 +0000 |
parents | 7fb8a8583c73 |
children | bee0bdd63b1f |
files | gtk/gtkconv.c |
diffstat | 1 files changed, 9 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/gtk/gtkconv.c Mon Oct 09 03:02:32 2006 +0000 +++ b/gtk/gtkconv.c Tue Oct 10 00:45:14 2006 +0000 @@ -202,6 +202,14 @@ } static gboolean +lbox_size_allocate_cb(GtkWidget *w, GtkAllocation *allocation, gpointer data) +{ + gaim_prefs_set_int("/gaim/gtk/conversations/chat/userlist_width", allocation->width == 1 ? 0 : allocation->width); + + return FALSE; +} + +static gboolean size_allocate_cb(GtkWidget *w, GtkAllocation *allocation, GaimGtkConversation *gtkconv) { GaimConversation *conv = gtkconv->active_conv; @@ -239,8 +247,6 @@ } if (w == gtkconv->lower_hbox) gaim_prefs_set_int("/gaim/gtk/conversations/chat/entry_height", allocation->height); - if (w == gtkconv->u.chat->list) - gaim_prefs_set_int("/gaim/gtk/conversations/chat/userlist_width", allocation->width == 1 ? 0 : allocation->width); } return FALSE; @@ -4005,7 +4011,7 @@ G_CALLBACK(right_click_chat_cb), gtkconv); g_signal_connect(G_OBJECT(list), "popup-menu", G_CALLBACK(gtkconv_chat_popup_menu_cb), gtkconv); - g_signal_connect(G_OBJECT(list), "size-allocate", G_CALLBACK(size_allocate_cb), gtkconv); + g_signal_connect(G_OBJECT(lbox), "size-allocate", G_CALLBACK(lbox_size_allocate_cb), gtkconv); rend = gtk_cell_renderer_text_new();