From 31930d0b39b3bf26bcc53b2c20e61ecd4779f397 Mon Sep 17 00:00:00 2001 From: Victor Kareh Date: Fri, 27 Jul 2018 14:08:09 -0400 Subject: applets: Guard against GTK scale-factor fixes on GtkSocket --- applets/notification_area/system-tray/na-tray-child.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'applets/notification_area/system-tray') diff --git a/applets/notification_area/system-tray/na-tray-child.c b/applets/notification_area/system-tray/na-tray-child.c index d29da781..ded740ad 100644 --- a/applets/notification_area/system-tray/na-tray-child.c +++ b/applets/notification_area/system-tray/na-tray-child.c @@ -115,11 +115,11 @@ na_tray_child_style_set (GtkWidget *widget, */ } -#if !GTK_CHECK_VERSION (3, 23, 0) +#if !GTK_CHECK_VERSION (3, 22, 31) static void na_tray_child_get_preferred_width (GtkWidget *widget, gint *minimal_width, - gint *natural_width) + gint *natural_width) { gint scale; scale = gtk_widget_get_scale_factor (widget); @@ -384,7 +384,7 @@ na_tray_child_class_init (NaTrayChildClass *klass) widget_class->style_set = na_tray_child_style_set; widget_class->realize = na_tray_child_realize; -#if !GTK_CHECK_VERSION (3, 23, 0) +#if !GTK_CHECK_VERSION (3, 22, 31) widget_class->get_preferred_width = na_tray_child_get_preferred_width; widget_class->get_preferred_height = na_tray_child_get_preferred_height; #endif -- cgit v1.2.1