Mercurial > pidgin.yaz
diff pidgin/gtkstatusbox.c @ 29282:5c2bbeef2eb8
Patch from Gabriel Schulhof to correctly size the GtkIMHtml entry in the
conversation and status box when the 'interior-focus' style is FALSE.
Fixes #10675.
committer: Elliott Sales de Andrade <qulogic@pidgin.im>
author | Gabriel Schulhof <nix@go-nix.ca> |
---|---|
date | Sat, 16 Jan 2010 23:14:41 +0000 |
parents | 61fd49ad0def |
children | 61ea136df111 422889fb57e0 |
line wrap: on
line diff
--- a/pidgin/gtkstatusbox.c Sat Jan 16 01:10:45 2010 +0000 +++ b/pidgin/gtkstatusbox.c Sat Jan 16 23:14:41 2010 +0000 @@ -2541,6 +2541,8 @@ GdkRectangle oneline; int height; int pad_top, pad_inside, pad_bottom; + gboolean interior_focus; + int focus_width; if (!status_box->imhtml_visible) { @@ -2591,6 +2593,13 @@ height += (pad_top + pad_bottom) * lines; height += (pad_inside) * (display_lines - lines); + gtk_widget_style_get(status_box->imhtml, + "interior-focus", &interior_focus, + "focus-line-width", &focus_width, + NULL); + if (!interior_focus) + height += 2 * focus_width; + gtk_widget_set_size_request(status_box->vbox, -1, height + PIDGIN_HIG_BOX_SPACE); }