diff options
author | emanuele-f <[email protected]> | 2016-06-11 20:19:03 +0200 |
---|---|---|
committer | lukefromdc <[email protected]> | 2016-10-17 14:05:35 -0400 |
commit | 402392c68e3d55bb0ebb400557796cde563ad452 (patch) | |
tree | 2c1628d47c5c1c048d69b1cb679e68f6ddedbdd2 /libcaja-private/caja-progress-info.c | |
parent | c6e6b300e21b7d9bb6092bcad76ddd39915e9fc4 (diff) | |
download | caja-402392c68e3d55bb0ebb400557796cde563ad452.tar.bz2 caja-402392c68e3d55bb0ebb400557796cde563ad452.tar.xz |
fix queue button sensitive on start
Diffstat (limited to 'libcaja-private/caja-progress-info.c')
-rw-r--r-- | libcaja-private/caja-progress-info.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/libcaja-private/caja-progress-info.c b/libcaja-private/caja-progress-info.c index 1e041818..c8010a71 100644 --- a/libcaja-private/caja-progress-info.c +++ b/libcaja-private/caja-progress-info.c @@ -748,16 +748,6 @@ progress_widget_new (CajaProgressInfo *info) data = g_new0 (ProgressWidgetData, 1); data->info = g_object_ref (info); - - // TODO make different policies - data->state = STATE_INITIALIZED; - container = get_widgets_container(); - if (container != NULL) { - if (get_running_operations (container) > 0) - widget_state_transit_to (data, STATE_QUEUED); - else - widget_state_transit_to (data, STATE_RUNNING); - } vbox = gtk_vbox_new (FALSE, 0); gtk_box_set_spacing (GTK_BOX (vbox), 5); @@ -840,6 +830,16 @@ progress_widget_new (CajaProgressInfo *info) data->details = GTK_LABEL (label); gtk_widget_show_all (data->widget); + + // TODO make different policies + data->state = STATE_INITIALIZED; + container = get_widgets_container(); + if (container != NULL) { + if (get_running_operations (container) > 0) + widget_state_transit_to (data, STATE_QUEUED); + else + widget_state_transit_to (data, STATE_RUNNING); + } update_data (data); update_progress (data); |