From: <dat...@us...> - 2006-10-10 00:45:20
|
Revision: 17453 http://svn.sourceforge.net/gaim/?rev=17453&view=rev Author: datallah Date: 2006-10-09 17:45:14 -0700 (Mon, 09 Oct 2006) Log Message: ----------- Fix chat userlist width saving (use the VBox alloc. width for both saving and loading). Modified Paths: -------------- trunk/gtk/gtkconv.c Modified: trunk/gtk/gtkconv.c =================================================================== --- trunk/gtk/gtkconv.c 2006-10-09 03:02:32 UTC (rev 17452) +++ trunk/gtk/gtkconv.c 2006-10-10 00:45:14 UTC (rev 17453) @@ -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(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |