Code

set busy cursor and statusbar message while creating clones
authorbuliabyak <buliabyak@users.sourceforge.net>
Sat, 22 Mar 2008 08:06:06 +0000 (08:06 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Sat, 22 Mar 2008 08:06:06 +0000 (08:06 +0000)
src/dialogs/clonetiler.cpp

index 64583b9f2acc0befc36b10dff2feb9f85e44464b..39772933991e4c2e8b944c587205e6611475a198 100644 (file)
@@ -1112,6 +1112,15 @@ clonetiler_apply( GtkWidget */*widget*/, void * )
         return;
     }
 
+    // set "busy" cursor
+    desktop->setWaitingCursor();
+
+    // set statusbar text
+    GtkWidget *status = (GtkWidget *) g_object_get_data (G_OBJECT(dlg), "status");
+    gtk_label_set_markup (GTK_LABEL(status), _("<small>Creating tiled clones...</small>"));
+    gtk_widget_queue_draw(GTK_WIDGET(status));
+    gdk_window_process_all_updates();
+
     SPObject *obj = SP_OBJECT(selection->singleItem());
     Inkscape::XML::Node *obj_repr = SP_OBJECT_REPR(obj);
     const char *id_href = g_strdup_printf("#%s", obj_repr->attribute("id"));
@@ -1512,6 +1521,8 @@ clonetiler_apply( GtkWidget */*widget*/, void * )
 
     clonetiler_change_selection (NULL, selection, dlg);
 
+    desktop->clearWaitingCursor();
+
     sp_document_done(sp_desktop_document(desktop), SP_VERB_DIALOG_CLONETILER,
                      _("Create tiled clones"));
 }