aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ephy-gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ephy-gui.c')
-rw-r--r--lib/ephy-gui.c114
1 files changed, 0 insertions, 114 deletions
diff --git a/lib/ephy-gui.c b/lib/ephy-gui.c
index 90d282b3d..01500e1e6 100644
--- a/lib/ephy-gui.c
+++ b/lib/ephy-gui.c
@@ -120,120 +120,6 @@ ephy_gui_gtk_radio_button_set (GtkRadioButton *radio_button, gint index)
}
}
-GtkWidget *
-ephy_gui_append_new_menuitem (GtkWidget *menu,
- const char *mnemonic,
- GCallback callback,
- gpointer data)
-{
- GtkWidget *menu_item;
-
- menu_item = gtk_menu_item_new_with_mnemonic (mnemonic);
- gtk_widget_show (menu_item);
- gtk_menu_shell_append (GTK_MENU_SHELL (menu),
- menu_item);
-
- if (callback)
- {
- g_signal_connect (G_OBJECT (menu_item),
- "activate",
- callback, data);
- }
-
- return menu_item;
-}
-
-GtkWidget *
-ephy_gui_append_new_menuitem_stock (GtkWidget *menu,
- const char *stock_id,
- GCallback callback,
- gpointer data)
-{
- GtkWidget *menu_item;
-
- menu_item = gtk_image_menu_item_new_from_stock (stock_id, NULL);
- gtk_widget_show (menu_item);
- gtk_menu_shell_append (GTK_MENU_SHELL (menu),
- menu_item);
-
- if (callback)
- {
- g_signal_connect (G_OBJECT (menu_item),
- "activate",
- callback, data);
- }
-
- return menu_item;
-}
-
-GtkWidget *
-ephy_gui_append_new_menuitem_stock_icon (GtkWidget *menu,
- const char *stock_id,
- const char *mnemonic,
- GCallback callback,
- gpointer data)
-{
- GtkWidget *menu_item;
- GtkWidget *image;
-
- menu_item = gtk_image_menu_item_new_with_mnemonic (mnemonic);
- image = gtk_image_new_from_stock (stock_id, GTK_ICON_SIZE_MENU);
- gtk_widget_show (image);
- gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_item), image);
-
- gtk_widget_show (menu_item);
- gtk_menu_shell_append (GTK_MENU_SHELL (menu),
- menu_item);
-
- if (callback)
- {
- g_signal_connect (G_OBJECT (menu_item),
- "activate",
- callback, data);
- }
-
- return menu_item;
-}
-
-GtkWidget *
-ephy_gui_append_new_check_menuitem (GtkWidget *menu,
- const char *mnemonic,
- gboolean value,
- GCallback callback,
- gpointer data)
-{
- GtkWidget *menu_item;
-
- menu_item = gtk_check_menu_item_new_with_mnemonic (mnemonic);
- gtk_widget_show (menu_item);
- gtk_menu_shell_append (GTK_MENU_SHELL (menu),
- menu_item);
-
- gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (menu_item), value);
-
- if (callback)
- {
- g_signal_connect (G_OBJECT (menu_item),
- "activate",
- callback, data);
- }
-
- return menu_item;
-}
-
-GtkWidget *
-ephy_gui_append_separator (GtkWidget *menu)
-{
- GtkWidget *menu_item;
-
- menu_item = gtk_menu_item_new ();
- gtk_widget_show (menu_item);
- gtk_menu_shell_append (GTK_MENU_SHELL (menu),
- menu_item);
-
- return menu_item;
-}
-
gboolean
ephy_gui_confirm_overwrite_file (GtkWidget *parent, const char *filename)
{