diff options
author | Stefano Karapetsas <[email protected]> | 2014-01-23 09:55:12 +0100 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2014-01-23 09:55:12 +0100 |
commit | 3ffbaa0104c762931e50e33a8ab877384f46127f (patch) | |
tree | 5ca0ff2cc0759d85ea692d2eb9c31d6fb30ee234 /applets/clock/clock.c | |
parent | 88e032f155bd4d3169383e7201b53ba539af70b0 (diff) | |
download | mate-panel-3ffbaa0104c762931e50e33a8ab877384f46127f.tar.bz2 mate-panel-3ffbaa0104c762931e50e33a8ab877384f46127f.tar.xz |
Use gtk_widget_get_preferred_size with GTK3
Diffstat (limited to 'applets/clock/clock.c')
-rw-r--r-- | applets/clock/clock.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/applets/clock/clock.c b/applets/clock/clock.c index 78b92c07..0722e4ad 100644 --- a/applets/clock/clock.c +++ b/applets/clock/clock.c @@ -840,7 +840,11 @@ position_calendar_popup (ClockData *cd) &x, &y); gtk_window_get_size (GTK_WINDOW (cd->calendar_popup), &w, &h); +#if GTK_CHECK_VERSION (3, 0, 0) + gtk_widget_get_preferred_size (cd->calendar_popup, &req, NULL); +#else gtk_widget_size_request (cd->calendar_popup, &req); +#endif w = req.width; h = req.height; |