diff gtk/gtkstatusbox.c @ 14546:776975f2c550

[gaim-migrate @ 17269] Cleanup the spacing down in the statusbox area committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Wed, 13 Sep 2006 22:10:19 +0000
parents 360c016459d0
children 3ff55ec8203a
line wrap: on
line diff
--- a/gtk/gtkstatusbox.c	Wed Sep 13 18:02:08 2006 +0000
+++ b/gtk/gtkstatusbox.c	Wed Sep 13 22:10:19 2006 +0000
@@ -1252,27 +1252,33 @@
 	GtkRequisition req = {0,0};
 	GtkAllocation parent_alc, box_alc, icon_alc;
 	GdkPixbuf *scaled;
+	gint border_width = GTK_CONTAINER (widget)->border_width;
 
 	combo_box_size_request(widget, &req);
 
 	box_alc = *allocation;
-	box_alc.height = MAX(1, (allocation->height - req.height - 6));
-	box_alc.y += req.height + 6;
+	
+	box_alc.width -= (border_width * 2);
+	box_alc.height = MAX(1, ((allocation->height - req.height) - (border_width*2)));
+	box_alc.x += border_width;
+	box_alc.y += req.height + border_width;
 	gtk_widget_size_allocate((GTK_GAIM_STATUS_BOX(widget))->vbox, &box_alc);
 
 	parent_alc = *allocation;
-	parent_alc.height = MAX(1,req.height);
-	parent_alc.y += 3;
+	parent_alc.height = MAX(1,req.height - (border_width ));
+	parent_alc.width -= (border_width * 2);
+	parent_alc.x += border_width;
+	parent_alc.y += border_width;
 
 	if (status_box->icon_box)
 	{
-		parent_alc.width -= (parent_alc.height + 3);
+		parent_alc.width -= (parent_alc.height + border_width);
 		icon_alc = *allocation;
-		icon_alc.height = MAX(1,req.height);
+		icon_alc.height = MAX(1,req.height) - (border_width);
 		icon_alc.width = icon_alc.height;
-		icon_alc.x = allocation->width - icon_alc.width;
-		icon_alc.y += 3;
-
+		icon_alc.x = allocation->width - (icon_alc.width + border_width);
+		icon_alc.y += border_width;
+	       
 		if (status_box->icon_size != icon_alc.height)
 		{
 			if (status_box->buddy_icon_hover)