summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libcaja-private/caja-progress-info.c20
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);