diff options
Diffstat (limited to 'src/calendar.c')
-rw-r--r-- | src/calendar.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/calendar.c b/src/calendar.c index 36b3fe4d..f5cbb33c 100644 --- a/src/calendar.c +++ b/src/calendar.c @@ -63,7 +63,8 @@ zenity_calendar (ZenityData *data, ZenityCalendarData *cal_data) else zenity_util_set_window_icon (dialog, ZENITY_IMAGE_FULLPATH ("zenity-calendar.png")); - gtk_window_set_default_size (GTK_WINDOW (dialog), data->width, data->height); + if (data->width > -1 || data->height > -1) + gtk_window_set_default_size (GTK_WINDOW (dialog), data->width, data->height); text = glade_xml_get_widget (glade_dialog, "zenity_calendar_text"); |