# HG changeset patch # User Sadrul Habib Chowdhury # Date 1258693767 0 # Node ID bd4f23c22dc2bc85fee341f957824e087a591e6f # Parent 1acb11145fa4e6c690290aaf76f9ec9cc565fc89 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. diff -r 1acb11145fa4 -r bd4f23c22dc2 pidgin/gtkprefs.c --- 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 |