diff options
author | Victor Kareh <[email protected]> | 2018-07-27 14:08:09 -0400 |
---|---|---|
committer | raveit65 <[email protected]> | 2018-07-28 11:29:37 +0200 |
commit | b179cad057ff83ccc05b1a346764cb6e0e8ac655 (patch) | |
tree | 8c73c2e17c53a256a1afad28d7bb5461cbde75cb /libmate-panel-applet | |
parent | 015cc7472baa8bfbcf7549ea54e92a5087955079 (diff) | |
download | mate-panel-b179cad057ff83ccc05b1a346764cb6e0e8ac655.tar.bz2 mate-panel-b179cad057ff83ccc05b1a346764cb6e0e8ac655.tar.xz |
applets: Guard against GTK scale-factor fixes on GtkSocket
Diffstat (limited to 'libmate-panel-applet')
-rw-r--r-- | libmate-panel-applet/mate-panel-applet.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/libmate-panel-applet/mate-panel-applet.c b/libmate-panel-applet/mate-panel-applet.c index ec8ef6ef..04863304 100644 --- a/libmate-panel-applet/mate-panel-applet.c +++ b/libmate-panel-applet/mate-panel-applet.c @@ -1058,11 +1058,11 @@ mate_panel_applet_get_preferred_width (GtkWidget *widget, minimum_width, natural_width); -#if !GTK_CHECK_VERSION (3, 23, 0) +#if !GTK_CHECK_VERSION (3, 22, 31) MatePanelApplet *applet = MATE_PANEL_APPLET (widget); if (applet->priv->out_of_process) { /* Out-of-process applets end up scaled up doubly with GTK 3.22. - * For these builds divide by the scale factor to ensure + * For these builds divide by the scale factor to ensure * they are back at their own intended size. */ gint scale; @@ -1081,12 +1081,13 @@ mate_panel_applet_get_preferred_height (GtkWidget *widget, GTK_WIDGET_CLASS (mate_panel_applet_parent_class)->get_preferred_height (widget, minimum_height, natural_height); -#if !GTK_CHECK_VERSION (3, 23, 0) + +#if !GTK_CHECK_VERSION (3, 22, 31) MatePanelApplet *applet = MATE_PANEL_APPLET (widget); if (applet->priv->out_of_process) { gint scale; /* Out-of-process applets end up scaled up doubly with GTK 3.22. - * For these builds divide by the scale factor to ensure + * For these builds divide by the scale factor to ensure * they are back at their own intended size. */ scale = gtk_widget_get_scale_factor (widget); |