[gedit/wip/browser-menu] filebrowser: remove bookmark-open menuitem



commit 90b2fa5115f615ce61b58bdbce03590cc7fbe207
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Sat Apr 20 11:02:44 2013 +0200

    filebrowser: remove bookmark-open menuitem
    
    https://bugzilla.gnome.org/show_bug.cgi?id=698404

 plugins/filebrowser/gedit-file-browser-menus.ui |  6 ------
 plugins/filebrowser/gedit-file-browser-widget.c | 26 -------------------------
 2 files changed, 32 deletions(-)
---
diff --git a/plugins/filebrowser/gedit-file-browser-menus.ui b/plugins/filebrowser/gedit-file-browser-menus.ui
index 3df0bbd..dd8b336 100644
--- a/plugins/filebrowser/gedit-file-browser-menus.ui
+++ b/plugins/filebrowser/gedit-file-browser-menus.ui
@@ -73,11 +73,5 @@
         <attribute name="action">browser.set_active_root</attribute>
       </item>
     </section>
-    <section>
-      <item>
-        <attribute name="label" translatable="yes">_View Folder</attribute>
-        <attribute name="action">browser.bookmark_open</attribute>
-      </item>
-    </section>
   </menu>
 </interface>
diff --git a/plugins/filebrowser/gedit-file-browser-widget.c b/plugins/filebrowser/gedit-file-browser-widget.c
index c302a92..75840ed 100644
--- a/plugins/filebrowser/gedit-file-browser-widget.c
+++ b/plugins/filebrowser/gedit-file-browser-widget.c
@@ -235,9 +235,6 @@ static void change_show_hidden_state           (GSimpleAction          *action,
 static void change_show_binary_state           (GSimpleAction          *action,
                                                 GVariant               *state,
                                                 gpointer                user_data);
-static void bookmark_open_activated            (GSimpleAction          *action,
-                                                GVariant               *parameter,
-                                                gpointer                user_data);
 static void open_in_terminal_activated         (GSimpleAction          *action,
                                                 GVariant               *parameter,
                                                 gpointer                user_data);
@@ -969,7 +966,6 @@ static GActionEntry browser_entries[] = {
        { "open_in_terminal", open_in_terminal_activated },
        { "show_hidden", activate_toggle, NULL, "false", change_show_hidden_state },
        { "show_binary", activate_toggle, NULL, "false", change_show_binary_state },
-       { "bookmark_open", bookmark_open_activated },
        { "previous_location", previous_location_activated },
        { "next_location", next_location_activated },
        { "up", up_activated }
@@ -2951,28 +2947,6 @@ change_show_binary_state (GSimpleAction *action,
 }
 
 static void
-bookmark_open_activated (GSimpleAction *action,
-                         GVariant      *parameter,
-                         gpointer       user_data)
-{
-       GeditFileBrowserWidget *widget = GEDIT_FILE_BROWSER_WIDGET (user_data);
-       GtkTreeModel *model;
-       GtkTreeSelection *selection;
-       GtkTreeIter iter;
-
-       model = gtk_tree_view_get_model (GTK_TREE_VIEW (widget->priv->treeview));
-       selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (widget->priv->treeview));
-
-       if (!GEDIT_IS_FILE_BOOKMARKS_STORE (model))
-               return;
-
-       if (gtk_tree_selection_get_selected (selection, NULL, &iter))
-       {
-               bookmark_open (widget, model, &iter);
-       }
-}
-
-static void
 open_in_terminal_activated (GSimpleAction *action,
                             GVariant      *parameter,
                             gpointer       user_data)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]