Fix an indentation weirdness in calendar.c

Take notice of width and height in gdialog wrapper for textbox, because
the original gdialog also did.
This commit is contained in:
Mike Newman 2003-05-27 17:56:51 +00:00
parent 25d20adbd1
commit a7673b42d2
3 changed files with 21 additions and 2 deletions

View File

@ -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> 2003-05-24 Mike Newman <mikegtn@gnome.org>
* src/progress.c: Make "OK" sensitive if progress bar has * src/progress.c: Make "OK" sensitive if progress bar has

View File

@ -99,8 +99,7 @@ zenity_calendar_dialog_response (GtkWidget *widget, int response, gpointer data)
case GTK_RESPONSE_OK: case GTK_RESPONSE_OK:
gtk_calendar_get_date (GTK_CALENDAR (calendar), &day, &month, &year); gtk_calendar_get_date (GTK_CALENDAR (calendar), &day, &month, &year);
date = g_date_new_dmy (year, month + 1, day); date = g_date_new_dmy (year, month + 1, day);
g_date_strftime (time_string, 127, g_date_strftime (time_string, 127, zen_cal_data->date_format, date);
zen_cal_data->date_format, date);
g_printerr ("%s\n", time_string); g_printerr ("%s\n", time_string);
if (date != NULL) if (date != NULL)

View File

@ -28,6 +28,8 @@ sub get_arg () {
# walk the command line # walk the command line
print $args;
ARG: while ($argn < $args) { ARG: while ($argn < $args) {
get_arg; get_arg;
@ -115,6 +117,18 @@ ARG: while ($argn < $args) {
$argn++; $argn++;
get_arg; get_arg;
$command .= "--filename=\"$element\" "; $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; last ARG;
} }