[gnome-panel] Drop icon from Applications menu item
- From: William Jon McCann <mccann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] Drop icon from Applications menu item
- Date: Mon, 21 Feb 2011 00:57:48 +0000 (UTC)
commit 14e5f2d5f485915cf64f9835fdaeb54ec33c2e6a
Author: William Jon McCann <jmccann redhat com>
Date: Wed Feb 16 13:54:29 2011 -0500
Drop icon from Applications menu item
https://bugzilla.gnome.org/show_bug.cgi?id=631553
gnome-panel/panel-menu-bar.c | 5 -----
gnome-panel/panel-stock-icons.c | 11 -----------
gnome-panel/panel-stock-icons.h | 3 ---
3 files changed, 0 insertions(+), 19 deletions(-)
---
diff --git a/gnome-panel/panel-menu-bar.c b/gnome-panel/panel-menu-bar.c
index 553e293..f369948 100644
--- a/gnome-panel/panel-menu-bar.c
+++ b/gnome-panel/panel-menu-bar.c
@@ -135,7 +135,6 @@ static void
panel_menu_bar_init (PanelMenuBar *menubar)
{
GtkCssProvider *provider;
- GtkWidget *image;
menubar->priv = PANEL_MENU_BAR_GET_PRIVATE (menubar);
@@ -157,10 +156,6 @@ panel_menu_bar_init (PanelMenuBar *menubar)
menubar->priv->applications_item = panel_image_menu_item_new ();
gtk_menu_item_set_label (GTK_MENU_ITEM (menubar->priv->applications_item),
_("Applications"));
- image = gtk_image_new_from_icon_name (PANEL_ICON_MAIN_MENU,
- panel_menu_bar_icon_get_size ());
- gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menubar->priv->applications_item),
- image);
gtk_menu_item_set_submenu (GTK_MENU_ITEM (menubar->priv->applications_item),
menubar->priv->applications_menu);
diff --git a/gnome-panel/panel-stock-icons.c b/gnome-panel/panel-stock-icons.c
index f7621a7..294e30f 100644
--- a/gnome-panel/panel-stock-icons.c
+++ b/gnome-panel/panel-stock-icons.c
@@ -32,7 +32,6 @@
#include "panel-icon-names.h"
static GtkIconSize panel_menu_icon_size = 0;
-static GtkIconSize panel_menu_bar_icon_size = 0;
GtkIconSize
panel_menu_icon_get_size (void)
@@ -40,12 +39,6 @@ panel_menu_icon_get_size (void)
return panel_menu_icon_size;
}
-GtkIconSize
-panel_menu_bar_icon_get_size (void)
-{
- return panel_menu_bar_icon_size;
-}
-
typedef struct {
char *stock_id;
char *icon;
@@ -127,10 +120,6 @@ panel_init_stock_icons_and_items (void)
PANEL_DEFAULT_MENU_ICON_SIZE,
PANEL_DEFAULT_MENU_ICON_SIZE);
- panel_menu_bar_icon_size = gtk_icon_size_register ("panel-foobar",
- 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 1566764..3d05ec9 100644
--- a/gnome-panel/panel-stock-icons.h
+++ b/gnome-panel/panel-stock-icons.h
@@ -32,9 +32,6 @@ G_BEGIN_DECLS
/* 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]