/pidgin/main: a0378eb3dff5: Fix GtkStatusBox sizing on GTK+2.

Elliott Sales de Andrade qulogic at pidgin.im
Tue Jul 24 04:03:58 EDT 2012


Changeset: a0378eb3dff5543f171fa346c44255f3c8c87463
Author:	 Elliott Sales de Andrade <qulogic at pidgin.im>
Date:	 2012-07-24 02:21 -0400
Branch:	 cpw.qulogic.gtk3-required
URL: http://hg.pidgin.im/pidgin/main/rev/a0378eb3dff5

Description:

Fix GtkStatusBox sizing on GTK+2.

diffstat:

 pidgin/gtkstatusbox.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (18 lines):

diff --git a/pidgin/gtkstatusbox.c b/pidgin/gtkstatusbox.c
--- a/pidgin/gtkstatusbox.c
+++ b/pidgin/gtkstatusbox.c
@@ -1981,9 +1981,11 @@
 	requisition->height += border_width * 2;
 
 	/* If the gtkimhtml is visible, then add some additional padding */
-	gtk_widget_size_request(PIDGIN_STATUS_BOX(widget)->vbox, &box_req);
-	if (box_req.height > 1)
-		requisition->height += box_req.height + border_width * 2;
+	if (PIDGIN_STATUS_BOX(widget)->imhtml_visible) {
+		gtk_widget_size_request(PIDGIN_STATUS_BOX(widget)->vbox, &box_req);
+		if (box_req.height > 1)
+			requisition->height += box_req.height + border_width * 2;
+	}
 
 	requisition->width = 1;
 }



More information about the Commits mailing list