[ekiga/ds-gsettings2: 7/33] GmMenuAddon: Removed unused function.



commit 68421c39b12c7c7358c7124cab3fb4160040deb2
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]