[gnome-commander] Removes unused translate_menu method
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Removes unused translate_menu method
- Date: Fri, 7 Oct 2016 20:23:03 +0000 (UTC)
commit 8c96d1c0890189b1f93b67fd7d7ded70076f4e45
Author: Uwe Scholz <uwescholz src gnome org>
Date: Sun Oct 2 00:16:23 2016 +0200
Removes unused translate_menu method
src/dialogs/gnome-cmd-manage-profiles-dialog.h | 25 ------------------------
1 files changed, 0 insertions(+), 25 deletions(-)
---
diff --git a/src/dialogs/gnome-cmd-manage-profiles-dialog.h b/src/dialogs/gnome-cmd-manage-profiles-dialog.h
index 04f7be2..bedf076 100644
--- a/src/dialogs/gnome-cmd-manage-profiles-dialog.h
+++ b/src/dialogs/gnome-cmd-manage-profiles-dialog.h
@@ -43,8 +43,6 @@ namespace GnomeCmd
GtkTreeModel *create_and_fill_model();
GtkWidget *create_view_and_model();
- static gchar *translate_menu(const gchar *path, gpointer data);
-
static void add_profile(GtkWidget *view, PROFILE &p, guint idx);
static void cell_edited_callback(GtkCellRendererText *cell, gchar *path_string, gchar *new_text,
GtkWidget *view);
@@ -159,12 +157,6 @@ namespace GnomeCmd
}
template <typename CONFIG, typename PROFILE, typename COMPONENT>
- gchar *ManageProfilesDialog<CONFIG,PROFILE,COMPONENT>::translate_menu(const gchar *path, gpointer data)
- {
- return _(path);
- }
-
- template <typename CONFIG, typename PROFILE, typename COMPONENT>
void ManageProfilesDialog<CONFIG,PROFILE,COMPONENT>::cell_edited_callback(GtkCellRendererText *cell,
gchar *path_string, gchar *new_text, GtkWidget *view)
{
GtkTreeModel *model = gtk_tree_view_get_model (GTK_TREE_VIEW (view));
@@ -362,23 +354,6 @@ namespace GnomeCmd
g_signal_connect (button, "clicked", G_CALLBACK (remove_clicked_callback), view);
gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0);
-#if 0
- {
- static GtkItemFactoryEntry items[] =
- {{N_("/Local path..."), NULL, (GtkItemFactoryCallback) import_clicked_callback, TRUE},
- {N_("/Remote location..."), NULL, (GtkItemFactoryCallback) import_clicked_callback, FALSE}};
-
- GtkItemFactory *ifac = gtk_item_factory_new (GTK_TYPE_MENU, "<main>", NULL);
-
- gtk_item_factory_set_translate_func (ifac, translate_menu, NULL, NULL);
- gtk_item_factory_create_items (ifac, G_N_ELEMENTS(items), items, dialog);
-
- button = gnome_cmd_button_menu_new_from_stock (GTK_STOCK_OPEN, _("_Import"),
- gtk_item_factory_get_widget (ifac, "<main>"));
- gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0);
- }
-#endif
-
#if GTK_CHECK_VERSION (2, 14, 0)
gtk_widget_show_all (content_area);
#else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]