From: buliabyak Date: Sat, 22 Mar 2008 08:06:06 +0000 (+0000) Subject: set busy cursor and statusbar message while creating clones X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e950f1f1abd91a298d2f9120aa48080ddc4809b3;p=inkscape.git set busy cursor and statusbar message while creating clones --- diff --git a/src/dialogs/clonetiler.cpp b/src/dialogs/clonetiler.cpp index 64583b9f2..397729339 100644 --- a/src/dialogs/clonetiler.cpp +++ b/src/dialogs/clonetiler.cpp @@ -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), _("Creating tiled clones...")); + 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")); }