[progress] coding style fixes
This commit is contained in:
parent
533edc7044
commit
54b171ff82
@ -121,7 +121,6 @@ zenity_progress_handle_stdin (GIOChannel *channel,
|
|||||||
if (progress_data->autoclose) {
|
if (progress_data->autoclose) {
|
||||||
zen_data->exit_code = zenity_util_return_exit_code (ZENITY_OK);
|
zen_data->exit_code = zenity_util_return_exit_code (ZENITY_OK);
|
||||||
gtk_main_quit();
|
gtk_main_quit();
|
||||||
|
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
gtk_progress_bar_set_fraction (GTK_PROGRESS_BAR (progress_bar), percentage / 100.0);
|
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,
|
button = GTK_WIDGET (gtk_builder_get_object (builder,
|
||||||
"zenity_progress_cancel_button"));
|
"zenity_progress_cancel_button"));
|
||||||
|
|
||||||
gtk_widget_set_sensitive (button, FALSE);
|
gtk_widget_set_sensitive (button, FALSE);
|
||||||
|
|
||||||
gtk_progress_bar_set_fraction (GTK_PROGRESS_BAR (progress_bar), 1.0);
|
gtk_progress_bar_set_fraction (GTK_PROGRESS_BAR (progress_bar), 1.0);
|
||||||
|
Reference in New Issue
Block a user