changeset 28596:bd4f23c22dc2

Prevent an infinite loop from the preference window. If the preference window doesn't get the window-size it requested, it goes into an infinite loop. This is caused by the imhtml widget in the conversations page, and happens when the window-manager gives it a really small size such that the imhtml widget doesn't get displayed. So, instead of making the widget change its size, keep it in a fixed size. The width of the preference pages are now dictated mostly by the network, status and themes pages. So extending the fixed width of the imhtml widget in the conversation page should not cause too many problems.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Fri, 20 Nov 2009 05:09:27 +0000
parents 1acb11145fa4
children 38dd50309ba4
files pidgin/gtkprefs.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkprefs.c	Tue Nov 17 23:05:13 2009 +0000
+++ b/pidgin/gtkprefs.c	Fri Nov 20 05:09:27 2009 +0000
@@ -1510,12 +1510,11 @@
 #endif
 
 	vbox = pidgin_make_frame(ret, _("Default Formatting"));
-	gtk_box_set_child_packing(GTK_BOX(vbox->parent), vbox, TRUE, TRUE, 0, GTK_PACK_START);
 
 	frame = pidgin_create_imhtml(TRUE, &imhtml, &toolbar, NULL);
 	gtk_widget_show(frame);
 	gtk_widget_set_name(imhtml, "pidgin_prefs_font_imhtml");
-	gtk_widget_set_size_request(frame, 300, -1);
+	gtk_widget_set_size_request(frame, 450, -1);
 	gtk_imhtml_set_whole_buffer_formatting_only(GTK_IMHTML(imhtml), TRUE);
 	gtk_imhtml_set_format_functions(GTK_IMHTML(imhtml),
 									GTK_IMHTML_BOLD |