[gaim-migrate @ 14397]

Tue, 15 Nov 2005 04:33:22 +0000

author
Chris Stafford <c.stafford@gmail.com>
date
Tue, 15 Nov 2005 04:33:22 +0000
changeset 12100
77543572e118
parent 12099
accddd113855
child 12101
cb966da05dfc

[gaim-migrate @ 14397]
Part of sf patch #1354499, from Chris Stafford
Veritcally center the little selection button on the status boxes.

committer: Mark Doliner <markdoliner@pidgin.im>

src/gtkstatusbox.c file | annotate | diff | comparison | revisions
--- 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;
 }

mercurial