[gthumb] removed ability to hide the thumbnails



commit fbe63ad92f8a3bc43afe72861faf663676c65a6a
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sun Nov 3 18:05:31 2013 +0100

    removed ability to hide the thumbnails
    
    useless option

 data/org.gnome.gthumb.gschema.xml.in   |    3 ---
 gthumb/gth-browser-actions-callbacks.c |   10 ----------
 gthumb/gth-browser-actions-callbacks.h |    1 -
 gthumb/gth-browser-actions-entries.h   |    1 -
 gthumb/gth-browser.c                   |   12 ------------
 gthumb/gth-browser.h                   |    4 ----
 gthumb/gth-preferences.h               |    1 -
 gthumb/resources/gears-menu.ui         |    4 ----
 8 files changed, 0 insertions(+), 36 deletions(-)
---
diff --git a/data/org.gnome.gthumb.gschema.xml.in b/data/org.gnome.gthumb.gschema.xml.in
index 56b1b15..847b68c 100644
--- a/data/org.gnome.gthumb.gschema.xml.in
+++ b/data/org.gnome.gthumb.gschema.xml.in
@@ -64,9 +64,6 @@
     <key name="show-hidden-files" type="b">
       <default>false</default>
     </key>
-    <key name="show-thumbnails" type="b">
-      <default>true</default>
-    </key>
     <key name="fast-file-type" type="b">
       <default>true</default>
     </key>
diff --git a/gthumb/gth-browser-actions-callbacks.c b/gthumb/gth-browser-actions-callbacks.c
index b83a986..15cafc5 100644
--- a/gthumb/gth-browser-actions-callbacks.c
+++ b/gthumb/gth-browser-actions-callbacks.c
@@ -458,16 +458,6 @@ gth_browser_activate_show_hidden_files (GSimpleAction *action,
 
 
 void
-gth_browser_activate_show_thumbnails (GSimpleAction *action,
-                                     GVariant      *state,
-                                     gpointer       user_data)
-{
-       g_simple_action_set_state (action, state);
-       gth_browser_enable_thumbnails (GTH_BROWSER (user_data), g_variant_get_boolean (state));
-}
-
-
-void
 gth_browser_activate_sort_by (GSimpleAction *action,
                              GVariant      *parameter,
                              gpointer       user_data)
diff --git a/gthumb/gth-browser-actions-callbacks.h b/gthumb/gth-browser-actions-callbacks.h
index 0ba1ccb..4bd06c6 100644
--- a/gthumb/gth-browser-actions-callbacks.h
+++ b/gthumb/gth-browser-actions-callbacks.h
@@ -53,7 +53,6 @@ DEF_ACTION_CALLBACK (gth_browser_activate_viewer_properties)
 DEF_ACTION_CALLBACK (gth_browser_activate_unfullscreen)
 DEF_ACTION_CALLBACK (gth_browser_activate_open_folder_in_new_window)
 DEF_ACTION_CALLBACK (gth_browser_activate_show_hidden_files)
-DEF_ACTION_CALLBACK (gth_browser_activate_show_thumbnails)
 DEF_ACTION_CALLBACK (gth_browser_activate_sort_by)
 DEF_ACTION_CALLBACK (gth_browser_activate_show_statusbar)
 DEF_ACTION_CALLBACK (gth_browser_activate_show_sidebar)
diff --git a/gthumb/gth-browser-actions-entries.h b/gthumb/gth-browser-actions-entries.h
index 148163b..df0e902 100644
--- a/gthumb/gth-browser-actions-entries.h
+++ b/gthumb/gth-browser-actions-entries.h
@@ -51,7 +51,6 @@ static const GActionEntry gth_browser_actions[] = {
        { "open-folder-in-new-window", gth_browser_activate_open_folder_in_new_window },
 
        { "show-hidden-files", toggle_action_activated, NULL, "false", gth_browser_activate_show_hidden_files 
},
-       { "show-thumbnails", toggle_action_activated, NULL, "false", gth_browser_activate_show_thumbnails },
        { "sort-by", gth_browser_activate_sort_by },
 
        { "show-statusbar", toggle_action_activated, NULL, "false", gth_browser_activate_show_statusbar },
diff --git a/gthumb/gth-browser.c b/gthumb/gth-browser.c
index 7a59de0..5bc36ed 100644
--- a/gthumb/gth-browser.c
+++ b/gthumb/gth-browser.c
@@ -4178,7 +4178,6 @@ gth_browser_init (GthBrowser *browser)
        gth_browser_set_sort_order (browser,
                                    gth_main_get_sort_type (sort_type),
                                    g_settings_get_boolean (browser->priv->browser_settings, 
PREF_BROWSER_SORT_INVERSE));
-       gth_browser_enable_thumbnails (browser, g_settings_get_boolean (browser->priv->browser_settings, 
PREF_BROWSER_SHOW_THUMBNAILS));
        gth_file_list_set_thumb_size (GTH_FILE_LIST (browser->priv->file_list),
                                      g_settings_get_int (browser->priv->browser_settings, 
PREF_BROWSER_THUMBNAIL_SIZE));
        caption = g_settings_get_string (browser->priv->browser_settings, PREF_BROWSER_THUMBNAIL_CAPTION);
@@ -5950,17 +5949,6 @@ _gth_browser_cancel (GthBrowser *browser,
 }
 
 
-void
-gth_browser_enable_thumbnails (GthBrowser *browser,
-                              gboolean    show)
-{
-       gth_file_list_enable_thumbs (GTH_FILE_LIST (browser->priv->file_list), show);
-       gth_file_list_enable_thumbs (GTH_FILE_LIST (browser->priv->thumbnail_list), show);
-       gth_window_change_action_state (GTH_WINDOW (browser), "show-thumbnails", show);
-       g_settings_set_boolean (browser->priv->browser_settings, PREF_BROWSER_SHOW_THUMBNAILS, show);
-}
-
-
 gpointer
 gth_browser_get_image_preloader (GthBrowser *browser)
 {
diff --git a/gthumb/gth-browser.h b/gthumb/gth-browser.h
index 98eb2d1..6bc0595 100644
--- a/gthumb/gth-browser.h
+++ b/gthumb/gth-browser.h
@@ -135,8 +135,6 @@ void             gth_browser_go_up                  (GthBrowser       *browser,
                                                     int               steps);
 void             gth_browser_go_home                (GthBrowser       *browser);
 void             gth_browser_clear_history          (GthBrowser       *browser);
-void             gth_browser_enable_thumbnails      (GthBrowser       *browser,
-                                                    gboolean          enable);
 void             gth_browser_set_dialog             (GthBrowser       *browser,
                                                     const char       *dialog_name,
                                                     GtkWidget        *dialog);
@@ -227,8 +225,6 @@ void             gth_browser_show_viewer_tools      (GthBrowser       *browser);
 void             gth_browser_hide_sidebar           (GthBrowser       *browser);
 void             gth_browser_load_location          (GthBrowser       *browser,
                                                     GFile            *location);
-void             gth_browser_enable_thumbnails      (GthBrowser       *browser,
-                                                    gboolean          enable);
 void             gth_browser_show_filterbar         (GthBrowser       *browser,
                                                     gboolean          show);
 gpointer         gth_browser_get_image_preloader    (GthBrowser       *browser);
diff --git a/gthumb/gth-preferences.h b/gthumb/gth-preferences.h
index 59a2216..26799bd 100644
--- a/gthumb/gth-preferences.h
+++ b/gthumb/gth-preferences.h
@@ -56,7 +56,6 @@ G_BEGIN_DECLS
 #define PREF_BROWSER_STARTUP_CURRENT_FILE     "startup-current-file"
 #define PREF_BROWSER_GENERAL_FILTER           "general-filter"
 #define PREF_BROWSER_SHOW_HIDDEN_FILES        "show-hidden-files"
-#define PREF_BROWSER_SHOW_THUMBNAILS          "show-thumbnails"
 #define PREF_BROWSER_FAST_FILE_TYPE           "fast-file-type"
 #define PREF_BROWSER_SAVE_THUMBNAILS          "save-thumbnails"
 #define PREF_BROWSER_THUMBNAIL_SIZE           "thumbnail-size"
diff --git a/gthumb/resources/gears-menu.ui b/gthumb/resources/gears-menu.ui
index ff6d113..c129bda 100644
--- a/gthumb/resources/gears-menu.ui
+++ b/gthumb/resources/gears-menu.ui
@@ -39,10 +39,6 @@
         <attribute name="label" translatable="yes">Hidden Files</attribute>
         <attribute name="action">win.show-hidden-files</attribute>
       </item>
-      <item>
-        <attribute name="label" translatable="yes">Thumbnails</attribute>
-        <attribute name="action">win.show-thumbnails</attribute>
-      </item>
     </section>
     <section id="folder-actions">
     </section>


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