[progress] coding style fixes

This commit is contained in:
Lucas Rocha 2009-08-08 18:19:33 +01:00
parent 533edc7044
commit 54b171ff82

View File

@ -121,7 +121,6 @@ zenity_progress_handle_stdin (GIOChannel *channel,
if (progress_data->autoclose) {
zen_data->exit_code = zenity_util_return_exit_code (ZENITY_OK);
gtk_main_quit();
}
} else
gtk_progress_bar_set_fraction (GTK_PROGRESS_BAR (progress_bar), percentage / 100.0);
@ -142,6 +141,7 @@ zenity_progress_handle_stdin (GIOChannel *channel,
button = GTK_WIDGET (gtk_builder_get_object (builder,
"zenity_progress_cancel_button"));
gtk_widget_set_sensitive (button, FALSE);
gtk_progress_bar_set_fraction (GTK_PROGRESS_BAR (progress_bar), 1.0);