[aisleriot] Drop compatibility code for ancient GTK versions



commit 67cb7efe5de4c164dedc6c507d62eb02953d7d27
Author: Jeremy Bicha <jbicha ubuntu com>
Date:   Mon Jan 21 16:16:30 2019 -0500

    Drop compatibility code for ancient GTK versions
    
    GTK 3.18 was released in September 2015 and is the first
    version to support the Keyboard Shortcuts overlay.
    
    Since that's our minimum version, we can drop code for older
    GTK releases.
    
    Closes: https://gitlab.gnome.org/GNOME/aisleriot/issues/14

 src/ar-application.c       | 4 ----
 src/ar-fullscreen-button.c | 4 ----
 src/stats-dialog.c         | 3 ---
 src/window.c               | 2 --
 4 files changed, 13 deletions(-)
---
diff --git a/src/ar-application.c b/src/ar-application.c
index 20204444..0ac584c2 100644
--- a/src/ar-application.c
+++ b/src/ar-application.c
@@ -57,10 +57,6 @@ struct _ArApplicationPrivate
   gboolean freecell; /* unused */
 };
 
-#if !GTK_CHECK_VERSION (3, 6, 0)
-#define gtk_application_get_active_window(w) NULL
-#endif
-
 G_DEFINE_TYPE (ArApplication, ar_application, GTK_TYPE_APPLICATION)
 
 static void
diff --git a/src/ar-fullscreen-button.c b/src/ar-fullscreen-button.c
index 563d7acb..fbd30c58 100644
--- a/src/ar-fullscreen-button.c
+++ b/src/ar-fullscreen-button.c
@@ -97,11 +97,7 @@ update_position (ArFullscreenButton *button)
   gtk_widget_size_request (widget, &requisition);
 
   screen = gtk_widget_get_screen (widget);
-#if GTK_CHECK_VERSION (3, 3, 5)
   gdk_screen_get_monitor_workarea
-#else
-  gdk_screen_get_monitor_geometry
-#endif
     (screen,
      gtk_widget_get_realized (widget)
         ? gdk_screen_get_monitor_at_window (screen, gtk_widget_get_window (widget))
diff --git a/src/stats-dialog.c b/src/stats-dialog.c
index 88a51019..5786c406 100644
--- a/src/stats-dialog.c
+++ b/src/stats-dialog.c
@@ -119,9 +119,6 @@ aisleriot_stats_dialog_init (AisleriotStatsDialog *stats_dialog)
 
   content_area = gtk_dialog_get_content_area (dialog);
 
-#if !GTK_CHECK_VERSION (2, 90, 7)
-  gtk_dialog_set_has_separator (dialog, FALSE);
-#endif
   gtk_container_set_border_width (GTK_CONTAINER (dialog), 5);
   gtk_box_set_spacing (GTK_BOX (content_area), 2);
 
diff --git a/src/window.c b/src/window.c
index e74cd417..29447bbb 100644
--- a/src/window.c
+++ b/src/window.c
@@ -2043,10 +2043,8 @@ aisleriot_window_init (AisleriotWindow *window)
   priv->main_menu = gtk_ui_manager_get_widget (priv->ui_manager, MAIN_MENU_UI_PATH);
   priv->toolbar = gtk_ui_manager_get_widget (priv->ui_manager, TOOLBAR_UI_PATH);
 
-#if GTK_CHECK_VERSION (3, 0, 3)
   gtk_style_context_add_class (gtk_widget_get_style_context (priv->toolbar),
                                GTK_STYLE_CLASS_PRIMARY_TOOLBAR);
-#endif
 
   /* Defer building the card themes menu until its parent's menu is opened */
   action = gtk_action_group_get_action (priv->action_group, "ViewMenu");


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