# HG changeset patch # User Mark Doliner # Date 1132029202 0 # Node ID 383226e075f231b0cb6434212f92d261c425cad2 # Parent 3960def0f75bb19c1d8b02fd10d8e310ede51106 [gaim-migrate @ 14397] Part of sf patch #1354499, from Chris Stafford Veritcally center the little selection button on the status boxes. committer: Tailor Script diff -r 3960def0f75b -r 383226e075f2 src/gtkstatusbox.c --- 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; }