summaryrefslogtreecommitdiff
path: root/src/gpm-manager.c
diff options
context:
space:
mode:
authormonsta <[email protected]>2018-01-28 14:33:17 +0300
committerraveit65 <[email protected]>2018-01-29 15:59:27 +0100
commitdac0d4e304ceaa0e4f5c93fe4053ad44233a2c75 (patch)
treebbfeb8167947be43580ee675016d4c781a0cadc5 /src/gpm-manager.c
parentbff61989d0355ee61120ce5d0121d0c99f693569 (diff)
downloadmate-power-manager-dac0d4e304ceaa0e4f5c93fe4053ad44233a2c75.tar.bz2
mate-power-manager-dac0d4e304ceaa0e4f5c93fe4053ad44233a2c75.tar.xz
require GTK+ 3.22 and GLib 2.50
and drop additional checks for min/max GLib versions, it's not needed
Diffstat (limited to 'src/gpm-manager.c')
-rw-r--r--src/gpm-manager.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/gpm-manager.c b/src/gpm-manager.c
index 784532a..91d787d 100644
--- a/src/gpm-manager.c
+++ b/src/gpm-manager.c
@@ -528,9 +528,6 @@ out:
static void
gpm_manager_sleep_failure_response_cb (GtkDialog *dialog, gint response_id, GpmManager *manager)
{
-#if !GTK_CHECK_VERSION (3, 22, 0)
- GdkScreen *screen;
-#endif
GtkWidget *dialog_error;
GError *error = NULL;
gboolean ret;
@@ -539,12 +536,7 @@ gpm_manager_sleep_failure_response_cb (GtkDialog *dialog, gint response_id, GpmM
/* user clicked the help button */
if (response_id == GTK_RESPONSE_HELP) {
uri = g_settings_get_string (manager->priv->settings, GPM_SETTINGS_NOTIFY_SLEEP_FAILED_URI);
-#if GTK_CHECK_VERSION (3, 22, 0)
ret = gtk_show_uri_on_window (GTK_WINDOW (dialog), uri, gtk_get_current_event_time (), &error);
-#else
- screen = gdk_screen_get_default();
- ret = gtk_show_uri (screen, uri, gtk_get_current_event_time (), &error);
-#endif
if (!ret) {
dialog_error = gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL, GTK_MESSAGE_INFO, GTK_BUTTONS_OK,
"Failed to show uri %s", error->message);