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




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

    Drop some ancient debris

 src/fr-window.c | 12 ------------
 1 file changed, 12 deletions(-)
---
diff --git a/src/fr-window.c b/src/fr-window.c
index 141ce7a7..a4122b89 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -5810,12 +5810,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 */
 
         {
@@ -5826,11 +5820,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);
@@ -5840,11 +5830,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]