[Goodies-commits] r3944 - ristretto/trunk/src

Stephan Arts stephan at xfce.org
Mon Feb 11 13:43:48 CET 2008


Author: stephan
Date: 2008-02-11 12:43:48 +0000 (Mon, 11 Feb 2008)
New Revision: 3944

Modified:
   ristretto/trunk/src/thumbnail_bar.c
Log:
Add some style details for the thumbnail-bar


Modified: ristretto/trunk/src/thumbnail_bar.c
===================================================================
--- ristretto/trunk/src/thumbnail_bar.c	2008-02-11 12:27:56 UTC (rev 3943)
+++ ristretto/trunk/src/thumbnail_bar.c	2008-02-11 12:43:48 UTC (rev 3944)
@@ -179,6 +179,13 @@
 		_("The amount of space between the thumbnails"),
 		0, G_MAXINT, 3,
 		G_PARAM_READABLE));
+
+	gtk_widget_class_install_style_property (widget_class,
+		g_param_spec_int ("border_width",
+		_("Border Width"),
+		_("The border width of the thumbnail-bar"),
+		0, G_MAXINT, 3,
+		G_PARAM_READABLE));
 }
 
 static void
@@ -186,6 +193,9 @@
 {
     RsttoThumbnailBar *bar = RSTTO_THUMBNAIL_BAR(widget);
     gint border_width = GTK_CONTAINER(bar)->border_width;
+
+    gtk_widget_style_get(widget, "border-width", &border_width, NULL);
+
     GSList *iter;
 
 	GtkRequisition child_requisition;
@@ -204,6 +214,7 @@
     requisition->width += (border_width * 2);
 
 	widget->requisition = *requisition;
+    GTK_CONTAINER(bar)->border_width = border_width;
 }
 
 static void




More information about the Goodies-commits mailing list