[gnome-panel] [panel] Use a different define for the size of the Applications menu icon



commit 191d0fad59ecae39f598052e698930aaac8138b5
Author: Vincent Untz <vuntz gnome org>
Date:   Wed Aug 12 12:27:29 2009 +0200

    [panel] Use a different define for the size of the Applications menu icon
    
    If downstream wants to patch the panel to change the default size of the
    icons of applications in the menus, but not the size of the Applications
    menu icon, then it's now possible. We already had the infrastructure to
    do this, so no big change there.
    
    http://bugzilla.gnome.org/show_bug.cgi?id=522730

 gnome-panel/panel-stock-icons.c |    4 ++--
 gnome-panel/panel-stock-icons.h |    7 +++++--
 2 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/gnome-panel/panel-stock-icons.c b/gnome-panel/panel-stock-icons.c
index ea2f9fe..f7621a7 100644
--- a/gnome-panel/panel-stock-icons.c
+++ b/gnome-panel/panel-stock-icons.c
@@ -128,8 +128,8 @@ panel_init_stock_icons_and_items (void)
 						       PANEL_DEFAULT_MENU_ICON_SIZE);
 
 	panel_menu_bar_icon_size = gtk_icon_size_register ("panel-foobar",
-							   PANEL_DEFAULT_MENU_ICON_SIZE,
-							   PANEL_DEFAULT_MENU_ICON_SIZE);
+							   PANEL_DEFAULT_MENU_BAR_ICON_SIZE,
+							   PANEL_DEFAULT_MENU_BAR_ICON_SIZE);
 
 	factory = gtk_icon_factory_new ();
 	gtk_icon_factory_add_default (factory);
diff --git a/gnome-panel/panel-stock-icons.h b/gnome-panel/panel-stock-icons.h
index 41473c9..1566764 100644
--- a/gnome-panel/panel-stock-icons.h
+++ b/gnome-panel/panel-stock-icons.h
@@ -30,8 +30,11 @@
 
 G_BEGIN_DECLS
 
-/* themeable size - "panel-menu" */
-#define PANEL_DEFAULT_MENU_ICON_SIZE 	24
+/* themeable size - "panel-menu" -- This is used for the icons in the menus */
+#define PANEL_DEFAULT_MENU_ICON_SIZE 		24
+/* themeable size - "panel-foobar" -- This is only used for the icon of the
+ * Applications item in the menu bar */
+#define PANEL_DEFAULT_MENU_BAR_ICON_SIZE 	24
 
 /* stock icons */
 #define PANEL_STOCK_FORCE_QUIT          "gnome-panel-force-quit"



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]