[Xfce4-commits] <ristretto:master> Add 'Clear private data' menu-item, for cleaning privacy-related information.

Stephan Arts noreply at xfce.org
Mon Aug 8 15:04:23 CEST 2011


Updating branch refs/heads/master
         to 1deeb369388f473bc651e43baf14985f480fbeae (commit)
       from 61e7417a58ffbeb182b5db3115a76f47f6458514 (commit)

commit 1deeb369388f473bc651e43baf14985f480fbeae
Author: Stephan Arts <stephan at xfce.org>
Date:   Mon Aug 1 17:49:25 2011 +0200

    Add 'Clear private data' menu-item, for cleaning privacy-related information.

 src/main_window.c      |    9 +++++++++
 src/main_window_ui.xml |    1 +
 2 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/src/main_window.c b/src/main_window.c
index 57227d7..07fea6b 100644
--- a/src/main_window.c
+++ b/src/main_window.c
@@ -239,6 +239,8 @@ cb_rstto_main_window_fullscreen (GtkWidget *widget, RsttoMainWindow *window);
 static void
 cb_rstto_main_window_preferences (GtkWidget *widget, RsttoMainWindow *window);
 static void
+cb_rstto_main_window_clear_private_data (GtkWidget *widget, RsttoMainWindow *window);
+static void
 cb_rstto_main_window_about (GtkWidget *widget, RsttoMainWindow *window);
 static void
 cb_rstto_main_window_contents (GtkWidget *widget, RsttoMainWindow *window);
@@ -289,6 +291,7 @@ static GtkActionEntry action_entries[] =
   { "open-with-menu", NULL, N_ ("_Open with..."), NULL, },
   { "sorting-menu", NULL, N_ ("_Sorting"), NULL, },
   { "delete", GTK_STOCK_DELETE, N_ ("_Delete"), "Delete", NULL, G_CALLBACK (cb_rstto_main_window_delete), },
+  { "clear-private-data", GTK_STOCK_PREFERENCES, N_ ("_Clear private data"), "<control><shift>Delete", NULL, G_CALLBACK(cb_rstto_main_window_clear_private_data), },
   { "preferences", GTK_STOCK_PREFERENCES, N_ ("_Preferences"), NULL, NULL, G_CALLBACK (cb_rstto_main_window_preferences), },
 /* View Menu */
   { "view-menu", NULL, N_ ("_View"), NULL, },
@@ -2560,3 +2563,9 @@ rstto_main_window_add_file_to_recent_files (GFile *file)
 
     return FALSE;
 }
+
+static void
+cb_rstto_main_window_clear_private_data (GtkWidget *widget, RsttoMainWindow *window)
+{
+    g_debug("%s", __FUNCTION__);
+}
diff --git a/src/main_window_ui.xml b/src/main_window_ui.xml
index 24f2d3f..ed76f3c 100644
--- a/src/main_window_ui.xml
+++ b/src/main_window_ui.xml
@@ -30,6 +30,7 @@
             </menu>
             <menuitem action="delete"/>
             <separator/>
+            <menuitem action="clear-private-data"/>
             <menuitem action="preferences"/>
         </menu>
         <menu action="view-menu">


More information about the Xfce4-commits mailing list