From c3763a0b869a8a77d1ecbb5b3689e0399cbf1d49 Mon Sep 17 00:00:00 2001 From: infirit Date: Sun, 23 Nov 2014 14:47:35 +0100 Subject: Gtk3: panel, clock: Synchronize calculate_minimum_height() code Also change the panel version to use the padding instead of the border. We're interested in the padding here. I believe. Taken from gnome-panel commit: 0b5d9e57451dff3a25b3fbcc8dec671cac469cb From: Vincent Untz --- applets/clock/clock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'applets') diff --git a/applets/clock/clock.c b/applets/clock/clock.c index 4e56192d..cdc17f01 100644 --- a/applets/clock/clock.c +++ b/applets/clock/clock.c @@ -392,10 +392,10 @@ calculate_minimum_height (GtkWidget *widget, MatePanelAppletOrient orientation) { #if GTK_CHECK_VERSION (3, 0, 0) - GtkStyleContext *style_context; GtkStateFlags state; - GtkBorder padding; + GtkStyleContext *style_context; const PangoFontDescription *font_desc; + GtkBorder padding; #else GtkStyle *style; #endif -- cgit v1.2.1