From 83cb1da7086ec9f901d5cc7eea2d9e2c569f8266 Mon Sep 17 00:00:00 2001 From: lukefromdc Date: Wed, 19 Oct 2016 16:44:28 -0400 Subject: 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 --- applets/clock/calendar-window.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'applets') 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; -- cgit v1.2.1