[file-roller/wip/jtojnar/gtk4: 1/16] Drop some ancient debris




commit c08b6575cdffa05f1bc9cff56c0da0c496d65daa
Author: Jan Tojnar <jtojnar gmail com>
Date:   Sun Dec 12 23:33:49 2021 +0100

    Drop some ancient debris
    
    We have long required greater versions of GTK so this code will never be used.

 src/fr-window.c | 12 ------------
 1 file changed, 12 deletions(-)
---
diff --git a/src/fr-window.c b/src/fr-window.c
index a3916253..c61070fc 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -5843,12 +5843,6 @@ fr_window_construct (FrWindow *window)
        gtk_size_group_add_widget (header_bar_size_group, button);
        gtk_header_bar_pack_start (GTK_HEADER_BAR (window->priv->headerbar), button);
 
-#if ! GTK_CHECK_VERSION(3,11,4)
-       button = _gtk_header_bar_create_image_toggle_button ("edit-find-symbolic", _("Find files by name"), 
"win.find");
-       gtk_size_group_add_widget (header_bar_size_group, button);
-       gtk_header_bar_pack_end (GTK_HEADER_BAR (window->priv->headerbar), button);
-#endif
-
         /* gears menu button */
 
         {
@@ -5859,11 +5853,7 @@ fr_window_construct (FrWindow *window)
                 menu = G_MENU_MODEL (gtk_builder_get_object (builder, "menu"));
                 button = _gtk_menu_button_new_for_header_bar ();
                 gtk_size_group_add_widget (header_bar_size_group, button);
-#if ! GTK_CHECK_VERSION(3,13,0)
-               gtk_container_add (GTK_CONTAINER (button), gtk_image_new_from_icon_name 
("emblem-system-symbolic", GTK_ICON_SIZE_MENU));
-#else
                 gtk_menu_button_set_direction (GTK_MENU_BUTTON (button), GTK_ARROW_NONE);
-#endif
                 gtk_menu_button_set_menu_model (GTK_MENU_BUTTON (button), menu);
                 gtk_widget_show_all (button);
                 gtk_header_bar_pack_end (GTK_HEADER_BAR (window->priv->headerbar), button);
@@ -5873,11 +5863,9 @@ fr_window_construct (FrWindow *window)
                 g_object_unref (builder);
         }
 
-#if GTK_CHECK_VERSION(3,11,4)
        button = _gtk_header_bar_create_image_toggle_button ("edit-find-symbolic", _("Find files by name"), 
"win.find");
        gtk_size_group_add_widget (header_bar_size_group, button);
        gtk_header_bar_pack_end (GTK_HEADER_BAR (window->priv->headerbar), button);
-#endif
 
         g_object_unref (header_bar_size_group);
 


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