summaryrefslogtreecommitdiff
path: root/applets/notification_area/system-tray
diff options
context:
space:
mode:
authorVictor Kareh <[email protected]>2018-07-27 14:08:09 -0400
committerraveit65 <[email protected]>2018-07-28 11:29:37 +0200
commitb179cad057ff83ccc05b1a346764cb6e0e8ac655 (patch)
tree8c73c2e17c53a256a1afad28d7bb5461cbde75cb /applets/notification_area/system-tray
parent015cc7472baa8bfbcf7549ea54e92a5087955079 (diff)
downloadmate-panel-b179cad057ff83ccc05b1a346764cb6e0e8ac655.tar.bz2
mate-panel-b179cad057ff83ccc05b1a346764cb6e0e8ac655.tar.xz
applets: Guard against GTK scale-factor fixes on GtkSocket
Diffstat (limited to 'applets/notification_area/system-tray')
-rw-r--r--applets/notification_area/system-tray/na-tray-child.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/applets/notification_area/system-tray/na-tray-child.c b/applets/notification_area/system-tray/na-tray-child.c
index 4bb4ecf2..c8f022a3 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