Skip to content

Commit 762ae73

Browse files
vkarehraveit65
authored andcommitted
lock-plug: Only scale lock-screen widgets on older versions of GTK
1 parent 0c12ca0 commit 762ae73

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/gs-lock-plug.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -976,6 +976,7 @@ set_face_image (GSLockPlug *plug)
976976
return TRUE;
977977
}
978978

979+
#if !GTK_CHECK_VERSION (3, 23, 0)
979980
static void
980981
gs_lock_plug_get_preferred_width (GtkWidget *widget, gint *minimum_width, gint *natural_width)
981982
{
@@ -999,6 +1000,7 @@ gs_lock_plug_get_preferred_height_for_width (GtkWidget *widget, gint width, gint
9991000
*minimum_height /= scale;
10001001
*natural_height /= scale;
10011002
}
1003+
#endif
10021004

10031005
static void
10041006
gs_lock_plug_show (GtkWidget *widget)
@@ -1274,8 +1276,10 @@ gs_lock_plug_class_init (GSLockPlugClass *klass)
12741276
widget_class->style_set = gs_lock_plug_style_set;
12751277
widget_class->show = gs_lock_plug_show;
12761278
widget_class->hide = gs_lock_plug_hide;
1279+
#if !GTK_CHECK_VERSION (3, 23, 0)
12771280
widget_class->get_preferred_width = gs_lock_plug_get_preferred_width;
12781281
widget_class->get_preferred_height_for_width = gs_lock_plug_get_preferred_height_for_width;
1282+
#endif
12791283

12801284
klass->close = gs_lock_plug_close;
12811285

0 commit comments

Comments
 (0)