changeset 12100:383226e075f2

[gaim-migrate @ 14397] Part of sf patch #1354499, from Chris Stafford Veritcally center the little selection button on the status boxes. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Tue, 15 Nov 2005 04:33:22 +0000
parents 3960def0f75b
children 8c6ea55c84a4
files src/gtkstatusbox.c
diffstat 1 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkstatusbox.c	Tue Nov 15 01:23:04 2005 +0000
+++ b/src/gtkstatusbox.c	Tue Nov 15 04:33:22 2005 +0000
@@ -604,12 +604,17 @@
 	box_alc = *allocation;
 	combo_box_size_request(widget, &req);
 
-	box_alc.height = MAX(1, ((allocation->height) - (req.height) - (6)));
+	box_alc.height = MAX(1, ((allocation->height) - (req.height) - (12)));
+	box_alc.y = box_alc.y + req.height + 9;
 
-	box_alc.y = box_alc.y + req.height + 6;
+	box_alc.width -= 6; box_alc.x += 3;
+
+
 	gtk_widget_size_allocate((GTK_GAIM_STATUS_BOX(widget))->vbox, &box_alc);
 
 	parent_alc.height = MAX(1,req.height);
+	parent_alc.width -= 6; parent_alc.x += 3; parent_alc.y += 3;
+
 	combo_box_size_allocate(widget, &parent_alc);
 	widget->allocation = *allocation;
 }