[gthumb] added an accelerator to reload the folder



commit 46c4e8981f0304a21d1de222880801882a89d5b7
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Tue Nov 5 19:04:20 2013 +0100

    added an accelerator to reload the folder

 gthumb/gth-browser-actions-callbacks.c |    9 +++++++++
 gthumb/gth-browser-actions-callbacks.h |    1 +
 gthumb/gth-browser-actions-entries.h   |    4 +++-
 3 files changed, 13 insertions(+), 1 deletions(-)
---
diff --git a/gthumb/gth-browser-actions-callbacks.c b/gthumb/gth-browser-actions-callbacks.c
index 15cafc5..86cdd3b 100644
--- a/gthumb/gth-browser-actions-callbacks.c
+++ b/gthumb/gth-browser-actions-callbacks.c
@@ -327,6 +327,15 @@ gth_browser_activate_go_up (GSimpleAction *action,
 
 
 void
+gth_browser_activate_reload (GSimpleAction *action,
+                            GVariant      *parameter,
+                            gpointer       user_data)
+{
+       gth_browser_reload (GTH_BROWSER (user_data));
+}
+
+
+void
 gth_browser_activate_open_location (GSimpleAction *action,
                                    GVariant      *parameter,
                                    gpointer       user_data)
diff --git a/gthumb/gth-browser-actions-callbacks.h b/gthumb/gth-browser-actions-callbacks.h
index 4bd06c6..720e95b 100644
--- a/gthumb/gth-browser-actions-callbacks.h
+++ b/gthumb/gth-browser-actions-callbacks.h
@@ -44,6 +44,7 @@ DEF_ACTION_CALLBACK (gth_browser_activate_go_to_history_pos)
 DEF_ACTION_CALLBACK (gth_browser_activate_go_to_location)
 DEF_ACTION_CALLBACK (gth_browser_activate_go_home)
 DEF_ACTION_CALLBACK (gth_browser_activate_go_up)
+DEF_ACTION_CALLBACK (gth_browser_activate_reload)
 DEF_ACTION_CALLBACK (gth_browser_activate_open_location)
 DEF_ACTION_CALLBACK (gth_browser_activate_revert_to_saved)
 DEF_ACTION_CALLBACK (gth_browser_activate_save)
diff --git a/gthumb/gth-browser-actions-entries.h b/gthumb/gth-browser-actions-entries.h
index 15137dc..bcf81bd 100644
--- a/gthumb/gth-browser-actions-entries.h
+++ b/gthumb/gth-browser-actions-entries.h
@@ -41,6 +41,7 @@ static const GActionEntry gth_browser_actions[] = {
        { "go-to-history-position", gth_browser_activate_go_to_history_pos, "s", "''", NULL },
        { "go-to-location", gth_browser_activate_go_to_location, "s", "''", NULL },
        { "go-up", gth_browser_activate_go_up },
+       { "reload", gth_browser_activate_reload },
        { "open-location", gth_browser_activate_open_location },
        { "revert-to-saved", gth_browser_activate_revert_to_saved },
        { "save", gth_browser_activate_save },
@@ -70,7 +71,8 @@ static const GthAccelerator gth_browser_accelerators[] = {
        { "go-back", "<Alt>Left" },
        { "go-forward", "<Alt>Right" },
        { "go-up", "<Alt>Up" },
-       { "go-home", "<Alt>Home" }
+       { "go-home", "<Alt>Home" },
+       { "reload", "<Control>r" }
 };
 
 


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