summaryrefslogtreecommitdiff
path: root/applets/clock/clock-face.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2014-01-23 09:55:12 +0100
committerStefano Karapetsas <[email protected]>2014-01-23 09:55:12 +0100
commit3ffbaa0104c762931e50e33a8ab877384f46127f (patch)
tree5ca0ff2cc0759d85ea692d2eb9c31d6fb30ee234 /applets/clock/clock-face.c
parent88e032f155bd4d3169383e7201b53ba539af70b0 (diff)
downloadmate-panel-3ffbaa0104c762931e50e33a8ab877384f46127f.tar.bz2
mate-panel-3ffbaa0104c762931e50e33a8ab877384f46127f.tar.xz
Use gtk_widget_get_preferred_size with GTK3
Diffstat (limited to 'applets/clock/clock-face.c')
-rw-r--r--applets/clock/clock-face.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/applets/clock/clock-face.c b/applets/clock/clock-face.c
index 333af62f..25c0b182 100644
--- a/applets/clock/clock-face.c
+++ b/applets/clock/clock-face.c
@@ -267,7 +267,11 @@ clock_face_size_request (GtkWidget *this,
GtkRequisition req;
/* Tie our size to the height of the size_widget */
+#if GTK_CHECK_VERSION (3, 0, 0)
+ gtk_widget_get_preferred_size (GTK_WIDGET (priv->size_widget), &req, NULL);
+#else
gtk_widget_size_request (GTK_WIDGET (priv->size_widget), &req);
+#endif
/* Pad out our height by a little bit - this improves
the balance */