[Xfce4-commits] [apps/xfce4-screensaver] 390/425: lock-plug: Only scale lock-screen widgets on older versions of GTK
noreply at xfce.org
noreply at xfce.org
Mon Oct 15 01:53:57 CEST 2018
This is an automated email from the git hooks/post-receive script.
b l u e s a b r e p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository apps/xfce4-screensaver.
commit d6a010453bee82ac6baa3f498b64e8a5d0b914ba
Author: Victor Kareh <vkareh at vkareh.net>
Date: Mon Aug 13 12:17:32 2018 -0400
lock-plug: Only scale lock-screen widgets on older versions of GTK
Signed-off-by: Sean Davis <smd.seandavis at gmail.com>
---
src/gs-lock-plug.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/gs-lock-plug.c b/src/gs-lock-plug.c
index f8c04ad..7b25da0 100644
--- a/src/gs-lock-plug.c
+++ b/src/gs-lock-plug.c
@@ -955,6 +955,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)
{
@@ -978,6 +979,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)
@@ -1276,8 +1278,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;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list