[Goodies-commits] r3113 - in ristretto/trunk: . po src

Stephan Arts stephan at xfce.org
Sun Sep 2 14:07:59 CEST 2007


Author: stephan
Date: 2007-09-02 12:07:59 +0000 (Sun, 02 Sep 2007)
New Revision: 3113

Modified:
   ristretto/trunk/ChangeLog
   ristretto/trunk/po/de.po
   ristretto/trunk/po/fr.po
   ristretto/trunk/po/nb_NO.po
   ristretto/trunk/po/nl.po
   ristretto/trunk/po/ristretto.pot
   ristretto/trunk/src/main.c
Log:
Toggle toolbar



Modified: ristretto/trunk/ChangeLog
===================================================================
--- ristretto/trunk/ChangeLog	2007-09-02 11:53:11 UTC (rev 3112)
+++ ristretto/trunk/ChangeLog	2007-09-02 12:07:59 UTC (rev 3113)
@@ -2,6 +2,8 @@
 	* src/thumbnail_viewer.c:
 	  Improve themeability
 	  Improve thumbnail-rendering
+	* src/picture_viewer.c:
+	  Improve performance when switching files
 
 2007-08-29: Release 0.0.2
 	* icons/22x22,

Modified: ristretto/trunk/po/de.po
===================================================================
--- ristretto/trunk/po/de.po	2007-09-02 11:53:11 UTC (rev 3112)
+++ ristretto/trunk/po/de.po	2007-09-02 12:07:59 UTC (rev 3113)
@@ -7,7 +7,7 @@
 msgstr ""
 "Project-Id-Version: ristretto\n"
 "Report-Msgid-Bugs-To: stephan at xfce.org\n"
-"POT-Creation-Date: 2007-08-29 17:53+0200\n"
+"POT-Creation-Date: 2007-09-02 14:06+0200\n"
 "PO-Revision-Date: 2007-07-03 00:59:21+0200\n"
 "Last-Translator: stephan arts <stephan at xfce.org>\n"
 "Language-Team: German\n"
@@ -15,71 +15,75 @@
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 
-#: ../src/main.c:198
+#: ../src/main.c:201
 msgid "_File"
 msgstr "_Datei"
 
-#: ../src/main.c:200
+#: ../src/main.c:203
 msgid "O_pen Folder"
 msgstr "_Ordner öffnen"
 
-#: ../src/main.c:201
+#: ../src/main.c:204
 msgid "_Recently used"
 msgstr "_Zuletzt geöffnet"
 
-#: ../src/main.c:220
+#: ../src/main.c:223
 msgid "_Edit"
 msgstr "_Bearbeiten"
 
-#: ../src/main.c:221
+#: ../src/main.c:224
 msgid "Rotate _Left"
 msgstr "_Links drehen"
 
-#: ../src/main.c:222
+#: ../src/main.c:225
 msgid "Rotate _Right"
 msgstr "_Rechts drehen"
 
-#: ../src/main.c:223
+#: ../src/main.c:226
 msgid "Flip _Vertically"
 msgstr "_Vertikal spiegeln"
 
-#: ../src/main.c:224
+#: ../src/main.c:227
 msgid "Flip _Horizontally"
 msgstr "_Horizontal spiegeln"
 
-#: ../src/main.c:233
+#: ../src/main.c:236
 msgid "_View"
 msgstr "_Ansicht"
 
-#: ../src/main.c:234
+#: ../src/main.c:237
+msgid "Show Toolbar"
+msgstr ""
+
+#: ../src/main.c:238
 msgid "Thumbnail Viewer"
 msgstr "Vor_schaubilder"
 
-#: ../src/main.c:245
+#: ../src/main.c:252
 msgid "Show Horizontally"
 msgstr "_Horizontal anzeigen"
 
-#: ../src/main.c:246
+#: ../src/main.c:253
 msgid "Show Vertically"
 msgstr "_Vertikal anzeigen"
 
-#: ../src/main.c:247
+#: ../src/main.c:254
 msgid "Hide"
 msgstr "Ver_bergen"
 
-#: ../src/main.c:253
+#: ../src/main.c:260
 msgid "_Go"
 msgstr "_Gehe zu"
 
-#: ../src/main.c:281
+#: ../src/main.c:288
 msgid "_Help"
 msgstr "_Hilfe"
 
-#: ../src/main.c:435
+#: ../src/main.c:449
 msgid "Developer:"
 msgstr "Entwickler:"
 
-#: ../src/main.c:445
+#: ../src/main.c:459
 msgid ""
 "Ristretto is a fast and lightweight picture-viewer for the Xfce desktop "
 "environment."
@@ -87,19 +91,19 @@
 "Ristretto ist ein schneller und leichter Bildbetrachter für die "
 "Arbeitsumgebung Xfce."
 
-#: ../src/main.c:453
+#: ../src/main.c:467
 msgid "translator-credits"
 msgstr "Christian Dywan <christian at twotoasts.de>"
 
-#: ../src/main.c:687
+#: ../src/main.c:698
 msgid "Open image"
 msgstr "_Bild öffnen"
 
-#: ../src/main.c:723
+#: ../src/main.c:734
 msgid "Could not open file"
 msgstr "Datei konnte nicht geöffnet werden"
 
-#: ../src/main.c:735
+#: ../src/main.c:746
 msgid "Open folder"
 msgstr "_Ordner öffnen"
 

Modified: ristretto/trunk/po/fr.po
===================================================================
--- ristretto/trunk/po/fr.po	2007-09-02 11:53:11 UTC (rev 3112)
+++ ristretto/trunk/po/fr.po	2007-09-02 12:07:59 UTC (rev 3113)
@@ -7,7 +7,7 @@
 msgstr ""
 "Project-Id-Version: ristretto\n"
 "Report-Msgid-Bugs-To: stephan at xfce.org\n"
-"POT-Creation-Date: 2007-08-29 17:53+0200\n"
+"POT-Creation-Date: 2007-09-02 14:06+0200\n"
 "PO-Revision-Date: 2007-08-29 19:31+0200\n"
 "Last-Translator: Mike Massonnet <mmassonnet at gmail.com>\n"
 "Language-Team: French\n"
@@ -15,71 +15,75 @@
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 
-#: ../src/main.c:198
+#: ../src/main.c:201
 msgid "_File"
 msgstr "_Fichier"
 
-#: ../src/main.c:200
+#: ../src/main.c:203
 msgid "O_pen Folder"
 msgstr "O_uvrir un répertoire"
 
-#: ../src/main.c:201
+#: ../src/main.c:204
 msgid "_Recently used"
 msgstr "_Récemment ouvert"
 
-#: ../src/main.c:220
+#: ../src/main.c:223
 msgid "_Edit"
 msgstr "_Editer"
 
-#: ../src/main.c:221
+#: ../src/main.c:224
 msgid "Rotate _Left"
 msgstr "Tourner vers la _gauche"
 
-#: ../src/main.c:222
+#: ../src/main.c:225
 msgid "Rotate _Right"
 msgstr "Tourner vers la _droite"
 
-#: ../src/main.c:223
+#: ../src/main.c:226
 msgid "Flip _Vertically"
 msgstr "Retourner _verticalement"
 
-#: ../src/main.c:224
+#: ../src/main.c:227
 msgid "Flip _Horizontally"
 msgstr "Retourner _horizontalement"
 
-#: ../src/main.c:233
+#: ../src/main.c:236
 msgid "_View"
 msgstr "_Afficher"
 
-#: ../src/main.c:234
+#: ../src/main.c:237
+msgid "Show Toolbar"
+msgstr ""
+
+#: ../src/main.c:238
 msgid "Thumbnail Viewer"
 msgstr "Vue des miniatures"
 
-#: ../src/main.c:245
+#: ../src/main.c:252
 msgid "Show Horizontally"
 msgstr "Afficher horizontalement"
 
-#: ../src/main.c:246
+#: ../src/main.c:253
 msgid "Show Vertically"
 msgstr "Afficher verticalement"
 
-#: ../src/main.c:247
+#: ../src/main.c:254
 msgid "Hide"
 msgstr "Cacher"
 
-#: ../src/main.c:253
+#: ../src/main.c:260
 msgid "_Go"
 msgstr "A_ller"
 
-#: ../src/main.c:281
+#: ../src/main.c:288
 msgid "_Help"
 msgstr "A_ide"
 
-#: ../src/main.c:435
+#: ../src/main.c:449
 msgid "Developer:"
 msgstr "Développeur :"
 
-#: ../src/main.c:445
+#: ../src/main.c:459
 msgid ""
 "Ristretto is a fast and lightweight picture-viewer for the Xfce desktop "
 "environment."
@@ -87,19 +91,19 @@
 "Ristretto est un visualiseur d'images léger et rapide pour l'environnement "
 "de bureau Xfce."
 
-#: ../src/main.c:453
+#: ../src/main.c:467
 msgid "translator-credits"
 msgstr "Mike Massonnet <mmassonnet at xfce.org>"
 
-#: ../src/main.c:687
+#: ../src/main.c:698
 msgid "Open image"
 msgstr "Ouvrir une image"
 
-#: ../src/main.c:723
+#: ../src/main.c:734
 msgid "Could not open file"
 msgstr "Impossible d'ouvrir le fichier"
 
-#: ../src/main.c:735
+#: ../src/main.c:746
 msgid "Open folder"
 msgstr "Ouvrir un répertoire"
 

Modified: ristretto/trunk/po/nb_NO.po
===================================================================
--- ristretto/trunk/po/nb_NO.po	2007-09-02 11:53:11 UTC (rev 3112)
+++ ristretto/trunk/po/nb_NO.po	2007-09-02 12:07:59 UTC (rev 3113)
@@ -7,7 +7,7 @@
 msgstr ""
 "Project-Id-Version: ristretto\n"
 "Report-Msgid-Bugs-To: stephan at xfce.org\n"
-"POT-Creation-Date: 2007-08-29 17:53+0200\n"
+"POT-Creation-Date: 2007-09-02 14:06+0200\n"
 "PO-Revision-Date: 2007-08-29 21:12+0200\n"
 "Last-Translator: Terje Uriansrud <ter at operamail.com>\n"
 "Language-Team: Norwegian Bokmal\n"
@@ -16,89 +16,93 @@
 "Content-Transfer-Encoding: 8bit\n"
 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
 
-#: ../src/main.c:198
+#: ../src/main.c:201
 msgid "_File"
 msgstr "_Fil"
 
-#: ../src/main.c:200
+#: ../src/main.c:203
 msgid "O_pen Folder"
 msgstr "Åp_ne mappe"
 
-#: ../src/main.c:201
+#: ../src/main.c:204
 msgid "_Recently used"
 msgstr "Nylig _brukt"
 
-#: ../src/main.c:220
+#: ../src/main.c:223
 msgid "_Edit"
 msgstr "_Rediger"
 
-#: ../src/main.c:221
+#: ../src/main.c:224
 msgid "Rotate _Left"
 msgstr "Roter _venstre"
 
-#: ../src/main.c:222
+#: ../src/main.c:225
 msgid "Rotate _Right"
 msgstr "Roter _høyre"
 
-#: ../src/main.c:223
+#: ../src/main.c:226
 msgid "Flip _Vertically"
 msgstr "Vend _loddrett"
 
-#: ../src/main.c:224
+#: ../src/main.c:227
 msgid "Flip _Horizontally"
 msgstr "Vend v_annrett"
 
-#: ../src/main.c:233
+#: ../src/main.c:236
 msgid "_View"
 msgstr "_Vis"
 
-#: ../src/main.c:234
+#: ../src/main.c:237
+msgid "Show Toolbar"
+msgstr ""
+
+#: ../src/main.c:238
 msgid "Thumbnail Viewer"
 msgstr "Miniatyrvisning"
 
-#: ../src/main.c:245
+#: ../src/main.c:252
 msgid "Show Horizontally"
 msgstr "Vis vannrett"
 
-#: ../src/main.c:246
+#: ../src/main.c:253
 msgid "Show Vertically"
 msgstr "Vis loddrett"
 
-#: ../src/main.c:247
+#: ../src/main.c:254
 msgid "Hide"
 msgstr "Skjul"
 
-#: ../src/main.c:253
+#: ../src/main.c:260
 msgid "_Go"
 msgstr "_Gå"
 
-#: ../src/main.c:281
+#: ../src/main.c:288
 msgid "_Help"
 msgstr "_Hjelp"
 
-#: ../src/main.c:435
+#: ../src/main.c:449
 msgid "Developer:"
 msgstr "Utvikler:"
 
-#: ../src/main.c:445
+#: ../src/main.c:459
 msgid ""
 "Ristretto is a fast and lightweight picture-viewer for the Xfce desktop "
 "environment."
 msgstr "Ristretto er en rask og lettvekts bildefremviser for Xfce skrivebordet"
 
-#: ../src/main.c:453
+#: ../src/main.c:467
 msgid "translator-credits"
 msgstr "Oversettelser"
 
-#: ../src/main.c:687
+#: ../src/main.c:698
 msgid "Open image"
 msgstr "Åpne bilde"
 
-#: ../src/main.c:723
+#: ../src/main.c:734
 msgid "Could not open file"
 msgstr ""
 
-#: ../src/main.c:735
+#: ../src/main.c:746
 msgid "Open folder"
 msgstr "Åpne mappe"
 

Modified: ristretto/trunk/po/nl.po
===================================================================
--- ristretto/trunk/po/nl.po	2007-09-02 11:53:11 UTC (rev 3112)
+++ ristretto/trunk/po/nl.po	2007-09-02 12:07:59 UTC (rev 3113)
@@ -7,7 +7,7 @@
 msgstr ""
 "Project-Id-Version: ristretto 0.0.1-svn-r02537\n"
 "Report-Msgid-Bugs-To: stephan at xfce.org\n"
-"POT-Creation-Date: 2007-08-29 17:53+0200\n"
+"POT-Creation-Date: 2007-09-02 14:06+0200\n"
 "PO-Revision-Date: 2007-07-13 00:48+0200\n"
 "Last-Translator: Stephan Arts <stephan at xfce.org>\n"
 "Language-Team: Dutch\n"
@@ -16,71 +16,75 @@
 "Content-Transfer-Encoding: 8bit\n"
 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
 
-#: ../src/main.c:198
+#: ../src/main.c:201
 msgid "_File"
 msgstr "_Bestand"
 
-#: ../src/main.c:200
+#: ../src/main.c:203
 msgid "O_pen Folder"
 msgstr "Map o_penen"
 
-#: ../src/main.c:201
+#: ../src/main.c:204
 msgid "_Recently used"
 msgstr "_Recent geopend"
 
-#: ../src/main.c:220
+#: ../src/main.c:223
 msgid "_Edit"
 msgstr "B_ewerken"
 
-#: ../src/main.c:221
+#: ../src/main.c:224
 msgid "Rotate _Left"
 msgstr "_Linksom draaien"
 
-#: ../src/main.c:222
+#: ../src/main.c:225
 msgid "Rotate _Right"
 msgstr "_Rechtsom draaien"
 
-#: ../src/main.c:223
+#: ../src/main.c:226
 msgid "Flip _Vertically"
 msgstr "_Verticaal spiegelen"
 
-#: ../src/main.c:224
+#: ../src/main.c:227
 msgid "Flip _Horizontally"
 msgstr "_Horizontaal spiegelen"
 
-#: ../src/main.c:233
+#: ../src/main.c:236
 msgid "_View"
 msgstr "_Beeld"
 
-#: ../src/main.c:234
+#: ../src/main.c:237
+msgid "Show Toolbar"
+msgstr "Toon Werkbalk"
+
+#: ../src/main.c:238
 msgid "Thumbnail Viewer"
 msgstr "Miniatuur Weergave"
 
-#: ../src/main.c:245
+#: ../src/main.c:252
 msgid "Show Horizontally"
 msgstr "Horizontaal tonen"
 
-#: ../src/main.c:246
+#: ../src/main.c:253
 msgid "Show Vertically"
 msgstr "Verticaal tonen"
 
-#: ../src/main.c:247
+#: ../src/main.c:254
 msgid "Hide"
 msgstr "Verbergen"
 
-#: ../src/main.c:253
+#: ../src/main.c:260
 msgid "_Go"
 msgstr "_Ga"
 
-#: ../src/main.c:281
+#: ../src/main.c:288
 msgid "_Help"
 msgstr "_Help"
 
-#: ../src/main.c:435
+#: ../src/main.c:449
 msgid "Developer:"
 msgstr "Ontwikkelaar:"
 
-#: ../src/main.c:445
+#: ../src/main.c:459
 msgid ""
 "Ristretto is a fast and lightweight picture-viewer for the Xfce desktop "
 "environment."
@@ -88,19 +92,19 @@
 "Ristretto is een snel en lichtgewicht afbeeldingsweergave-programma voor de "
 "Xfce-desktop omgeving"
 
-#: ../src/main.c:453
+#: ../src/main.c:467
 msgid "translator-credits"
 msgstr "Stephan Arts <stephan at xfce.org>"
 
-#: ../src/main.c:687
+#: ../src/main.c:698
 msgid "Open image"
 msgstr "Afbeelding openen"
 
-#: ../src/main.c:723
+#: ../src/main.c:734
 msgid "Could not open file"
 msgstr "Kan bestand niet openen"
 
-#: ../src/main.c:735
+#: ../src/main.c:746
 msgid "Open folder"
 msgstr "Map openen"
 

Modified: ristretto/trunk/po/ristretto.pot
===================================================================
--- ristretto/trunk/po/ristretto.pot	2007-09-02 11:53:11 UTC (rev 3112)
+++ ristretto/trunk/po/ristretto.pot	2007-09-02 12:07:59 UTC (rev 3113)
@@ -8,7 +8,7 @@
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: stephan at xfce.org\n"
-"POT-Creation-Date: 2007-08-29 17:53+0200\n"
+"POT-Creation-Date: 2007-09-02 14:06+0200\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
 "Language-Team: LANGUAGE <LL at li.org>\n"
@@ -16,89 +16,93 @@
 "Content-Type: text/plain; charset=CHARSET\n"
 "Content-Transfer-Encoding: 8bit\n"
 
-#: ../src/main.c:198
+#: ../src/main.c:201
 msgid "_File"
 msgstr ""
 
-#: ../src/main.c:200
+#: ../src/main.c:203
 msgid "O_pen Folder"
 msgstr ""
 
-#: ../src/main.c:201
+#: ../src/main.c:204
 msgid "_Recently used"
 msgstr ""
 
-#: ../src/main.c:220
+#: ../src/main.c:223
 msgid "_Edit"
 msgstr ""
 
-#: ../src/main.c:221
+#: ../src/main.c:224
 msgid "Rotate _Left"
 msgstr ""
 
-#: ../src/main.c:222
+#: ../src/main.c:225
 msgid "Rotate _Right"
 msgstr ""
 
-#: ../src/main.c:223
+#: ../src/main.c:226
 msgid "Flip _Vertically"
 msgstr ""
 
-#: ../src/main.c:224
+#: ../src/main.c:227
 msgid "Flip _Horizontally"
 msgstr ""
 
-#: ../src/main.c:233
+#: ../src/main.c:236
 msgid "_View"
 msgstr ""
 
-#: ../src/main.c:234
+#: ../src/main.c:237
+msgid "Show Toolbar"
+msgstr ""
+
+#: ../src/main.c:238
 msgid "Thumbnail Viewer"
 msgstr ""
 
-#: ../src/main.c:245
+#: ../src/main.c:252
 msgid "Show Horizontally"
 msgstr ""
 
-#: ../src/main.c:246
+#: ../src/main.c:253
 msgid "Show Vertically"
 msgstr ""
 
-#: ../src/main.c:247
+#: ../src/main.c:254
 msgid "Hide"
 msgstr ""
 
-#: ../src/main.c:253
+#: ../src/main.c:260
 msgid "_Go"
 msgstr ""
 
-#: ../src/main.c:281
+#: ../src/main.c:288
 msgid "_Help"
 msgstr ""
 
-#: ../src/main.c:435
+#: ../src/main.c:449
 msgid "Developer:"
 msgstr ""
 
-#: ../src/main.c:445
+#: ../src/main.c:459
 msgid ""
 "Ristretto is a fast and lightweight picture-viewer for the Xfce desktop "
 "environment."
 msgstr ""
 
-#: ../src/main.c:453
+#: ../src/main.c:467
 msgid "translator-credits"
 msgstr ""
 
-#: ../src/main.c:687
+#: ../src/main.c:698
 msgid "Open image"
 msgstr ""
 
-#: ../src/main.c:723
+#: ../src/main.c:734
 msgid "Could not open file"
 msgstr ""
 
-#: ../src/main.c:735
+#: ../src/main.c:746
 msgid "Open folder"
 msgstr ""
 

Modified: ristretto/trunk/src/main.c
===================================================================
--- ristretto/trunk/src/main.c	2007-09-02 11:53:11 UTC (rev 3112)
+++ ristretto/trunk/src/main.c	2007-09-02 12:07:59 UTC (rev 3113)
@@ -70,6 +70,9 @@
 cb_rstto_hide_tv(GtkWidget *widget, RsttoThumbnailViewer *viewer);
 
 static void
+cb_rstto_toggle_toolbar(GtkWidget *widget, RsttoThumbnailViewer *viewer);
+
+static void
 cb_rstto_rotate_cw(GtkWidget *widget, RsttoNavigator *navigator);
 static void
 cb_rstto_rotate_ccw(GtkWidget *widget, RsttoNavigator *navigator);
@@ -122,6 +125,7 @@
     
     thumbnail_viewer_orientation = xfce_rc_read_entry(xfce_rc, "ThumbnailViewerOrientation", "horizontal");
     gboolean toolbar_open_dir = xfce_rc_read_bool_entry(xfce_rc, "ToolbarOpenDir", FALSE);
+    gboolean show_toolbar = xfce_rc_read_bool_entry(xfce_rc, "ShowToolBar", TRUE);
 
     GtkWidget *window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
     GtkAccelGroup *accel_group = gtk_accel_group_new();
@@ -230,12 +234,16 @@
     gtk_menu_shell_append(GTK_MENU_SHELL(menu_edit), menu_item_flip_h);
 
     GtkWidget *menu_item_view = gtk_menu_item_new_with_mnemonic(_("_View"));
+    GtkWidget *menu_item_toggle_toolbar = gtk_check_menu_item_new_with_mnemonic(_("Show Toolbar"));
     GtkWidget *menu_item_tv = gtk_menu_item_new_with_mnemonic(_("Thumbnail Viewer"));
     GtkWidget *menu_item_view_fs = gtk_image_menu_item_new_from_stock(GTK_STOCK_FULLSCREEN, NULL);
     gtk_widget_add_accelerator(menu_item_view_fs, "activate", accel_group, GDK_F11, 0,GTK_ACCEL_VISIBLE);
 
+    gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(menu_item_toggle_toolbar), show_toolbar);
+
     GtkWidget *menu_view = gtk_menu_new();
     gtk_menu_item_set_submenu(GTK_MENU_ITEM(menu_item_view), menu_view);
+    gtk_menu_shell_append(GTK_MENU_SHELL(menu_view), menu_item_toggle_toolbar);
     gtk_menu_shell_append(GTK_MENU_SHELL(menu_view), menu_item_tv);
     gtk_menu_shell_append(GTK_MENU_SHELL(menu_view), menu_item_view_fs);
 
@@ -372,6 +380,8 @@
     g_signal_connect(G_OBJECT(menu_item_flip_v), "activate", G_CALLBACK(cb_rstto_flip_v), navigator);
     g_signal_connect(G_OBJECT(menu_item_flip_h), "activate", G_CALLBACK(cb_rstto_flip_h), navigator);
 
+    g_signal_connect(G_OBJECT(menu_item_toggle_toolbar), "activate", G_CALLBACK(cb_rstto_toggle_toolbar), thumbnail_viewer);
+
     g_signal_connect(G_OBJECT(menu_item_vtv), "activate", G_CALLBACK(cb_rstto_show_tv_v), thumbnail_viewer);
     g_signal_connect(G_OBJECT(menu_item_htv), "activate", G_CALLBACK(cb_rstto_show_tv_h), thumbnail_viewer);
     g_signal_connect(G_OBJECT(menu_item_ntv), "activate", G_CALLBACK(cb_rstto_hide_tv), thumbnail_viewer);
@@ -393,6 +403,10 @@
         gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM(menu_item_ntv), TRUE);
         gtk_widget_hide(GTK_WIDGET(thumbnail_viewer));   
     }
+    if (show_toolbar == FALSE)
+    {
+        gtk_widget_hide(GTK_WIDGET(app_tool_bar));   
+    }
 
 
     gtk_main();
@@ -825,3 +839,19 @@
         thunar_vfs_path_unref(path);
     }
 }
+
+static void
+cb_rstto_toggle_toolbar(GtkWidget *widget, RsttoThumbnailViewer *viewer)
+{
+    gboolean active = gtk_check_menu_item_get_active (GTK_CHECK_MENU_ITEM(widget));
+    if (active == TRUE)
+    {
+        gtk_widget_show(app_tool_bar);
+        xfce_rc_write_bool_entry(xfce_rc, "ShowToolBar", TRUE);
+    }
+    else
+    {
+        gtk_widget_hide(app_tool_bar);
+        xfce_rc_write_bool_entry(xfce_rc, "ShowToolBar", FALSE);
+    }
+}




More information about the Goodies-commits mailing list