[file-roller] "Open with" does not work



commit c3c171bb17c5e00cc993e866aa46dfad99ce3d10
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Thu Apr 3 12:31:43 2014 +0200

    "Open with" does not work
    
    [bug #727215]

 src/fr-window-actions-callbacks.c |    9 ---------
 src/fr-window-actions-callbacks.h |    1 -
 src/fr-window-actions-entries.h   |    1 -
 src/fr-window.c                   |    2 +-
 src/ui/menus.ui                   |    2 +-
 5 files changed, 2 insertions(+), 13 deletions(-)
---
diff --git a/src/fr-window-actions-callbacks.c b/src/fr-window-actions-callbacks.c
index 281f62c..95c6df1 100644
--- a/src/fr-window-actions-callbacks.c
+++ b/src/fr-window-actions-callbacks.c
@@ -190,15 +190,6 @@ fr_window_activate_open_folder (GSimpleAction *action,
 
 
 void
-fr_window_activate_open_selection (GSimpleAction *action,
-                   GVariant      *parameter,
-                   gpointer       user_data)
-{
-// TODO
-}
-
-
-void
 fr_window_activate_open_with (GSimpleAction *action,
                              GVariant      *parameter,
                              gpointer       user_data)
diff --git a/src/fr-window-actions-callbacks.h b/src/fr-window-actions-callbacks.h
index 84a83ac..139be8a 100644
--- a/src/fr-window-actions-callbacks.h
+++ b/src/fr-window-actions-callbacks.h
@@ -44,7 +44,6 @@ DEF_ACTION_CALLBACK (fr_window_activate_go_home)
 DEF_ACTION_CALLBACK (fr_window_activate_new)
 DEF_ACTION_CALLBACK (fr_window_activate_open)
 DEF_ACTION_CALLBACK (fr_window_activate_open_folder)
-DEF_ACTION_CALLBACK (fr_window_activate_open_selection)
 DEF_ACTION_CALLBACK (fr_window_activate_open_with)
 DEF_ACTION_CALLBACK (fr_window_activate_reload)
 DEF_ACTION_CALLBACK (fr_window_activate_rename)
diff --git a/src/fr-window-actions-entries.h b/src/fr-window-actions-entries.h
index 4595f92..fafcb86 100644
--- a/src/fr-window-actions-entries.h
+++ b/src/fr-window-actions-entries.h
@@ -42,7 +42,6 @@ static const GActionEntry fr_window_actions[] = {
        { "go-forward", fr_window_activate_go_forward },
        { "go-home", fr_window_activate_go_home },
        { "open-folder", fr_window_activate_open_folder },
-       { "open-selection", fr_window_activate_open_selection },
        { "open-with", fr_window_activate_open_with },
        { "reload", fr_window_activate_reload },
        { "rename", fr_window_activate_rename },
diff --git a/src/fr-window.c b/src/fr-window.c
index 7ecafe9..dd288db 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -1177,7 +1177,7 @@ fr_window_update_sensitivity (FrWindow *window)
        fr_window_enable_action (window, "extract-files", file_op);
        fr_window_enable_action (window, "find", ! no_archive);
        fr_window_enable_action (window, "open-folder", file_op && one_file_selected && dir_selected);
-       fr_window_enable_action (window, "open-selection", file_op && sel_not_null && ! dir_selected);
+       fr_window_enable_action (window, "open-with", file_op && sel_not_null && ! dir_selected);
        fr_window_enable_action (window, "rename", ! no_archive && ! ro && ! running && can_store_many_files 
&& one_file_selected);
        fr_window_enable_action (window, "save-as", ! no_archive && can_store_many_files && ! running);
        fr_window_enable_action (window, "test-archive", ! no_archive && ! running && 
window->archive->propTest);
diff --git a/src/ui/menus.ui b/src/ui/menus.ui
index e9c12eb..cf90f5c 100644
--- a/src/ui/menus.ui
+++ b/src/ui/menus.ui
@@ -9,7 +9,7 @@
       </item>
       <item>
         <attribute name="label" translatable="yes">_Open With…</attribute>
-        <attribute name="action">win.open-selection</attribute>
+        <attribute name="action">win.open-with</attribute>
       </item>
     </section>
     <section>


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