patches/gnome-panel-09-solaris-branding.diff
author dcarbery
Fri, 24 Nov 2006 16:37:59 +0000
branch217update
changeset 19096 d542fc2c823e
parent 8382 5340d1f7700f
child 9147 3d91c998b3e1
permissions -rw-r--r--
Merged trunk changes r9797:9829 into 217update branch.

--- gnome-panel-2.16.0/gnome-panel/panel-menu-button.c	2006-09-21 16:21:12.547123000 +0200
+++ ../gnome-panel-2.16.0/gnome-panel/panel-menu-button.c	2006-09-21 16:15:16.549802000 +0200
@@ -692,7 +692,7 @@
 			       "tooltip", tooltip,
 			       "use-menu-path", use_menu_path,
 			       "use-custom-icon", use_custom_icon,
-			       "has-arrow", TRUE,
+			       "has-arrow", FALSE,
 			       NULL);
 
 	info = panel_applet_register (GTK_WIDGET (button), NULL, NULL,
@@ -772,7 +772,23 @@
 	}
 
 	if (!retval)
-		retval = g_strdup (PANEL_MAIN_MENU_ICON);
+	  {
+	    static gboolean inited = FALSE;
+	    static gboolean has_sun_branding = FALSE;
+
+	    if (!inited)
+	      {
+		GtkIconTheme *theme = gtk_icon_theme_get_default ();
+		if (gtk_icon_theme_has_icon (theme, "sun-start-here"))
+		  has_sun_branding = TRUE;
+		inited = TRUE;
+	      }
+
+	    if (has_sun_branding)
+	      retval = g_strdup ("sun-start-here");
+	    else
+	      retval = g_strdup (PANEL_MAIN_MENU_ICON);
+	  }
 
 	return retval;
 }