[ekiga/ds-gsettings] GmMenuAddon: Removed unused function.
- From: Damien Sandras <dsandras src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga/ds-gsettings] GmMenuAddon: Removed unused function.
- Date: Sun, 24 Mar 2013 11:23:41 +0000 (UTC)
commit d55541953a28cc8c6ce5e14601d77fecb44c3e98
Author: Damien Sandras <dsandras beip be>
Date: Sun Mar 24 12:22:58 2013 +0100
GmMenuAddon: Removed unused function.
lib/gui/gmmenuaddon.c | 43 -------------------------------------------
1 files changed, 0 insertions(+), 43 deletions(-)
---
diff --git a/lib/gui/gmmenuaddon.c b/lib/gui/gmmenuaddon.c
index 6169cd2..7619afa 100644
--- a/lib/gui/gmmenuaddon.c
+++ b/lib/gui/gmmenuaddon.c
@@ -505,46 +505,3 @@ gtk_radio_menu_select_with_widget (GtkWidget *widget,
i++;
}
}
-
-
-void
-gtk_menu_show_icons (GtkWidget *menu, gboolean show_icons)
-{
- MenuEntry *menu_entry = NULL;
- GtkWidget *image = NULL;
- int i = 0;
-
- menu_entry = (MenuEntry *) g_object_get_data (G_OBJECT (menu), "menu_entry");
-
- while (menu_entry && menu_entry [i].type != MENU_END) {
-
- if (menu_entry [i].stock_id) {
-
- image = gtk_image_menu_item_get_image (GTK_IMAGE_MENU_ITEM (menu_entry [i].widget));
-
- if (show_icons) {
-
- if (!image) {
-
- if (menu_entry [i].stock_is_theme)
- image = gtk_image_new_from_icon_name(menu_entry [i].stock_id,
- GTK_ICON_SIZE_MENU);
- else
- image = gtk_image_new_from_stock (menu_entry [i].stock_id,
- GTK_ICON_SIZE_MENU);
- gtk_widget_show (image);
-
- gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_entry [i].widget), image);
- }
- else
- gtk_widget_show (image);
- }
- else
- if (image)
- gtk_widget_hide (image);
-
- }
-
- i++;
- }
-}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]