summaryrefslogtreecommitdiff
path: root/src/calendar.c
diff options
context:
space:
mode:
authorGlynn Foster <glynn.foster@sun.com>2003-01-07 00:01:00 +0000
committerGlynn Foster <gman@src.gnome.org>2003-01-07 00:01:00 +0000
commita8c3006035a068069ed9199400472332db540bb5 (patch)
tree9c6a12c98e47205d810184f0c61bfb7f833c5b15 /src/calendar.c
parentd88a32f1f5418e97b5840087a21652f68ac938c8 (diff)
downloadzenity-a8c3006035a068069ed9199400472332db540bb5.tar.gz
Improve error handling... a lot.
2003-01-06 Glynn Foster <glynn.foster@sun.com> * src/calendar.c, src/main.c, src/progress.c, src/tree.c, src/zenity.h: Improve error handling... a lot.
Diffstat (limited to 'src/calendar.c')
-rw-r--r--src/calendar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/calendar.c b/src/calendar.c
index 4cdf481..0264ce1 100644
--- a/src/calendar.c
+++ b/src/calendar.c
@@ -55,9 +55,9 @@ int zenity_calendar (ZenityData *data, ZenityCalendarData *cal_data)
calendar = glade_xml_get_widget (glade_dialog, "zenity_calendar");
- if (cal_data->month != 0 && cal_data->year !=0)
+ if (cal_data->month > 0 && cal_data->year > 0)
gtk_calendar_select_month (GTK_CALENDAR (calendar), cal_data->month, cal_data->year);
- if (cal_data->day)
+ if (cal_data->day > 0)
gtk_calendar_select_day (GTK_CALENDAR (calendar), cal_data->day);
gtk_label_set_mnemonic_widget (GTK_LABEL (text), calendar);