Commit 67cb7efe authored by Jeremy Bicha's avatar Jeremy Bicha 🎹

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: #14
parent a2f1e691
......@@ -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
......
......@@ -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))
......
......@@ -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);
......
......@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment