summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Kareh <[email protected]>2018-08-13 12:17:32 -0400
committerraveit65 <[email protected]>2018-08-13 19:02:05 +0200
commit762ae73b4aefcb943b4b573789ea25cbb9f4cbd5 (patch)
treefdc0f3cab47ca415cf91e80924c7e6f23ecf8bb3
parent0c12ca0958466c57021c80db3b3c02167aa3360d (diff)
downloadmate-screensaver-762ae73b4aefcb943b4b573789ea25cbb9f4cbd5.tar.bz2
mate-screensaver-762ae73b4aefcb943b4b573789ea25cbb9f4cbd5.tar.xz
lock-plug: Only scale lock-screen widgets on older versions of GTK
-rw-r--r--src/gs-lock-plug.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gs-lock-plug.c b/src/gs-lock-plug.c
index e4692e4..0187236 100644
--- a/src/gs-lock-plug.c
+++ b/src/gs-lock-plug.c
@@ -976,6 +976,7 @@ set_face_image (GSLockPlug *plug)
return TRUE;
}
+#if !GTK_CHECK_VERSION (3, 23, 0)
static void
gs_lock_plug_get_preferred_width (GtkWidget *widget, gint *minimum_width, gint *natural_width)
{
@@ -999,6 +1000,7 @@ gs_lock_plug_get_preferred_height_for_width (GtkWidget *widget, gint width, gint
*minimum_height /= scale;
*natural_height /= scale;
}
+#endif
static void
gs_lock_plug_show (GtkWidget *widget)
@@ -1274,8 +1276,10 @@ gs_lock_plug_class_init (GSLockPlugClass *klass)
widget_class->style_set = gs_lock_plug_style_set;
widget_class->show = gs_lock_plug_show;
widget_class->hide = gs_lock_plug_hide;
+#if !GTK_CHECK_VERSION (3, 23, 0)
widget_class->get_preferred_width = gs_lock_plug_get_preferred_width;
widget_class->get_preferred_height_for_width = gs_lock_plug_get_preferred_height_for_width;
+#endif
klass->close = gs_lock_plug_close;