# HG changeset patch # User Daniel Atallah # Date 1160441114 0 # Node ID f063e0bc1f200113ed0ac51ce65132b1c95cb98e # Parent 7fb8a8583c73aee8b20c78004d8d4a1349b2cb93 [gaim-migrate @ 17453] Fix chat userlist width saving (use the VBox alloc. width for both saving and loading). committer: Tailor Script diff -r 7fb8a8583c73 -r f063e0bc1f20 gtk/gtkconv.c --- 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();