[Galago-commits] r1992 - in trunk/xfce4-galago: . src

galago-commits at freedesktop.org galago-commits at freedesktop.org
Sat Jun 25 19:19:39 PDT 2005


Author: grim
Date: 2005-06-25 19:19:37 -0700 (Sat, 25 Jun 2005)
New Revision: 1992

Modified:
   trunk/xfce4-galago/ChangeLog
   trunk/xfce4-galago/src/xfce_galago.c
Log:
Icon sizes no map to the size of the panel


Modified: trunk/xfce4-galago/ChangeLog
===================================================================
--- trunk/xfce4-galago/ChangeLog	2005-06-26 02:05:18 UTC (rev 1991)
+++ trunk/xfce4-galago/ChangeLog	2005-06-26 02:19:37 UTC (rev 1992)
@@ -1,3 +1,7 @@
+Sat Jun 25 21:19:00 CDT 2005  Gary Kramlich <grim at reaperworld.com>
+
+	* Icon sizes no map to the size of the panel
+
 Sat Jun 25 21:03:00 CDT 2005  Gary Kramlich <grim at reaperworld.com>
 
 	* Only one contact chooser may be open at a time now

Modified: trunk/xfce4-galago/src/xfce_galago.c
===================================================================
--- trunk/xfce4-galago/src/xfce_galago.c	2005-06-26 02:05:18 UTC (rev 1991)
+++ trunk/xfce4-galago/src/xfce_galago.c	2005-06-26 02:19:37 UTC (rev 1992)
@@ -156,7 +156,29 @@
 static void
 xfce_galago_set_size(Control *control, gint size) {
 	XfceGalago *xg = control->data;
+	GtkIconSize gtk_size = GTK_ICON_SIZE_INVALID;
+
+	switch(size) {
+		case 0:
+			gtk_size = GTK_ICON_SIZE_SMALL_TOOLBAR;
+			break;
+		case 1:
+			gtk_size = GTK_ICON_SIZE_LARGE_TOOLBAR;
+			break;
+		case 2:
+			gtk_size = GTK_ICON_SIZE_DND;
+			break;
+		default:
+			gtk_size = GTK_ICON_SIZE_DIALOG;
+			break;
+	}
+
+	galago_gtk_presence_icon_set_size(GALAGO_GTK_PRESENCE_ICON(xg->icon),
+									  gtk_size);
+
+	/* make sure the widgets get their full size */
 	gtk_widget_set_size_request(xg->ebox, -1, -1);
+	gtk_widget_queue_resize(xg->ebox);
 }
 
 G_MODULE_EXPORT void



More information about the galago-commits mailing list