comparison src/gtkutils.c @ 13280:3de53fe8345f

[gaim-migrate @ 15646] Always show a vertical scrollbar on conversations imhtmls. This will solve the shrinking conversation window bug. I chose this approach instead of saving the size of the window (as I had previous talked about), as this prevents the contents of the scrollback from rewrapping when the scrollbars appear or disappear. It also just seems to feel like the right thing to do, but maybe that's me being lazy. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Tue, 14 Feb 2006 05:43:43 +0000
parents 241c59e3906b
children 2e6dda9f9159
comparison
equal deleted inserted replaced
13279:0c50401679d3 13280:3de53fe8345f
99 99
100 gtk_imhtml_set_funcs(GTK_IMHTML(imhtml), &gtkimhtml_cbs); 100 gtk_imhtml_set_funcs(GTK_IMHTML(imhtml), &gtkimhtml_cbs);
101 } 101 }
102 102
103 GtkWidget * 103 GtkWidget *
104 gaim_gtk_create_imhtml(gboolean editable, GtkWidget **imhtml_ret, GtkWidget **toolbar_ret) 104 gaim_gtk_create_imhtml(gboolean editable, GtkWidget **imhtml_ret, GtkWidget **toolbar_ret, GtkWidget **sw_ret)
105 { 105 {
106 GtkWidget *frame; 106 GtkWidget *frame;
107 GtkWidget *imhtml; 107 GtkWidget *imhtml;
108 GtkWidget *sep; 108 GtkWidget *sep;
109 GtkWidget *sw; 109 GtkWidget *sw;
154 if (imhtml_ret != NULL) 154 if (imhtml_ret != NULL)
155 *imhtml_ret = imhtml; 155 *imhtml_ret = imhtml;
156 156
157 if (editable && (toolbar_ret != NULL)) 157 if (editable && (toolbar_ret != NULL))
158 *toolbar_ret = toolbar; 158 *toolbar_ret = toolbar;
159
160 if (sw_ret != NULL)
161 *sw_ret = sw;
159 162
160 return frame; 163 return frame;
161 } 164 }
162 165
163 void 166 void