diff options
author | Mike Newman <MikeGTN@src.gnome.org> | 2003-05-27 17:56:51 +0000 |
---|---|---|
committer | Mike Newman <MikeGTN@src.gnome.org> | 2003-05-27 17:56:51 +0000 |
commit | a7673b42d20f5cbacd61b4dd85408e54aafd135d (patch) | |
tree | b3dea642dc0cdba50e3a8d73b5d69a514ccc7276 | |
parent | Fix typo in gdialog wrapper. Sensitize OK button in progress when 100% reached. (diff) | |
download | zenity-a7673b42d20f5cbacd61b4dd85408e54aafd135d.tar.gz zenity-a7673b42d20f5cbacd61b4dd85408e54aafd135d.tar.bz2 zenity-a7673b42d20f5cbacd61b4dd85408e54aafd135d.zip |
Fix an indentation weirdness in calendar.c
Take notice of width and height in gdialog wrapper for textbox, because
the original gdialog also did.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | src/calendar.c | 3 | ||||
-rw-r--r-- | src/gdialog | 14 |
3 files changed, 21 insertions, 2 deletions
@@ -1,3 +1,9 @@ +2003-05-27 Mike Newman <mike@gtnorthern.demon.co.uk> + + * src/calendar.c: clean up some inconsistent indentation. + * src/gdialog: take notice of height and width args in textbox + because gdialog did. + 2003-05-24 Mike Newman <mikegtn@gnome.org> * src/progress.c: Make "OK" sensitive if progress bar has diff --git a/src/calendar.c b/src/calendar.c index 1316d518..460ab8d5 100644 --- a/src/calendar.c +++ b/src/calendar.c @@ -99,8 +99,7 @@ zenity_calendar_dialog_response (GtkWidget *widget, int response, gpointer data) case GTK_RESPONSE_OK: gtk_calendar_get_date (GTK_CALENDAR (calendar), &day, &month, &year); date = g_date_new_dmy (year, month + 1, day); - g_date_strftime (time_string, 127, - zen_cal_data->date_format, date); + g_date_strftime (time_string, 127, zen_cal_data->date_format, date); g_printerr ("%s\n", time_string); if (date != NULL) diff --git a/src/gdialog b/src/gdialog index 20322c77..02ac6a91 100644 --- a/src/gdialog +++ b/src/gdialog @@ -28,6 +28,8 @@ sub get_arg () { # walk the command line +print $args; + ARG: while ($argn < $args) { get_arg; @@ -115,6 +117,18 @@ ARG: while ($argn < $args) { $argn++; get_arg; $command .= "--filename=\"$element\" "; + + # width and height matter for this one, so get them + # and apply the same multipliers as used in gdialog + + $argn++; + get_arg; + $element = $element * 8; + $command .= "--width=\"$element\" "; + $argn++; + get_arg; + $element = $element * 7; + $command .= "--height=\"$element\" "; last ARG; } |