[nautilus] eel: remove unused method
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] eel: remove unused method
- Date: Thu, 17 Feb 2011 16:33:20 +0000 (UTC)
commit 46b297a523d7f679891299d2a6a4ccac03927ed1
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed Feb 16 16:51:13 2011 -0500
eel: remove unused method
eel/eel-gtk-extensions.c | 20 --------------------
eel/eel-gtk-extensions.h | 3 ---
2 files changed, 0 insertions(+), 23 deletions(-)
---
diff --git a/eel/eel-gtk-extensions.c b/eel/eel-gtk-extensions.c
index 661cc0a..621e812 100644
--- a/eel/eel-gtk-extensions.c
+++ b/eel/eel-gtk-extensions.c
@@ -322,26 +322,6 @@ eel_gtk_menu_insert_separator (GtkMenu *menu, int index)
return GTK_MENU_ITEM (menu_item);
}
-GtkWidget *
-eel_gtk_menu_tool_button_get_button (GtkMenuToolButton *tool_button)
-{
- GtkContainer *container;
- GList *children;
- GtkWidget *button;
-
- g_return_val_if_fail (GTK_IS_MENU_TOOL_BUTTON (tool_button), NULL);
-
- /* The menu tool button's button is the first child
- * of the child hbox. */
- container = GTK_CONTAINER (gtk_bin_get_child (GTK_BIN (tool_button)));
- children = gtk_container_get_children (container);
- button = GTK_WIDGET (children->data);
-
- g_list_free (children);
-
- return button;
-}
-
/**
* eel_gtk_label_make_bold.
*
diff --git a/eel/eel-gtk-extensions.h b/eel/eel-gtk-extensions.h
index f30d0c6..6b39160 100644
--- a/eel/eel-gtk-extensions.h
+++ b/eel/eel-gtk-extensions.h
@@ -59,9 +59,6 @@ GtkMenuItem * eel_gtk_menu_append_separator (GtkMenu
GtkMenuItem * eel_gtk_menu_insert_separator (GtkMenu *menu,
int index);
-/* GtkMenuToolButton */
-GtkWidget * eel_gtk_menu_tool_button_get_button (GtkMenuToolButton *tool_button);
-
/* GtkLabel */
void eel_gtk_label_make_bold (GtkLabel *label);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]