summaryrefslogtreecommitdiff
path: root/applets/clock
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2016-10-19 16:44:28 -0400
committerraveit65 <[email protected]>2016-10-20 20:42:31 +0200
commit83cb1da7086ec9f901d5cc7eea2d9e2c569f8266 (patch)
treebfa6c1bf4864a9f0fe5c44c7e037a836b015b7b5 /applets/clock
parentd9802b17f8a6bb8a93ac80bf59613a696af07c59 (diff)
downloadmate-panel-83cb1da7086ec9f901d5cc7eea2d9e2c569f8266.tar.bz2
mate-panel-83cb1da7086ec9f901d5cc7eea2d9e2c569f8266.tar.xz
GTK+-3 Calendar Window: force minimum size
Force minimum width for calendar window to stop jumping (on locations open/close) in themes that don't enlarge calendar from the rather small default. Set the minimum height smaller than any theme would set it as it otherwise just puts blank space under the last row rather than spacing out the numbers. Apparently GTK2 behaves differently here. Note that the GTK3 only selectors will have to come back out for the dev-gtk3-migration branch
Diffstat (limited to 'applets/clock')
-rw-r--r--applets/clock/calendar-window.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/applets/clock/calendar-window.c b/applets/clock/calendar-window.c
index e5647167..17333015 100644
--- a/applets/clock/calendar-window.c
+++ b/applets/clock/calendar-window.c
@@ -123,6 +123,9 @@ calendar_window_create_calendar (CalendarWindow *calwin)
struct tm tm1;
calendar = gtk_calendar_new ();
+ #if GTK_CHECK_VERSION (3, 0, 0)
+ gtk_widget_set_size_request(GTK_WIDGET(calendar), 260, 100);
+ #endif
options = gtk_calendar_get_display_options (GTK_CALENDAR (calendar));
if (calwin->priv->show_weeks)
options |= GTK_CALENDAR_SHOW_WEEK_NUMBERS;