summaryrefslogtreecommitdiffstats
path: root/src/extension
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2008-04-18 02:39:23 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2008-04-18 02:39:23 +0000
commit3422ad62f2bb11c91ff3218be41a2bcc939b115c (patch)
tree331ae355a369af8cb0140bdb4b19b80dc9718a32 /src/extension
parentSmall Paint Bucket optimization for creating GrayMap (diff)
downloadinkscape-3422ad62f2bb11c91ff3218be41a2bcc939b115c.tar.gz
inkscape-3422ad62f2bb11c91ff3218be41a2bcc939b115c.zip
provide a parent for the working-please-wait message so it does not sink
(bzr r5468)
Diffstat (limited to 'src/extension')
-rw-r--r--src/extension/execution-env.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/extension/execution-env.cpp b/src/extension/execution-env.cpp
index aa8c82171..539e0786a 100644
--- a/src/extension/execution-env.cpp
+++ b/src/extension/execution-env.cpp
@@ -22,6 +22,7 @@
#include "ui/view/view.h"
#include "sp-namedview.h"
#include "desktop-handles.h"
+#include "display/sp-canvas.h"
#include "util/glib-list-iterators.h"
@@ -124,8 +125,15 @@ ExecutionEnv::createWorkingDialog (void) {
_visibleDialog = NULL;
}
+ SPDesktop *desktop = (SPDesktop *)_doc;
+ GtkWidget *toplevel = gtk_widget_get_toplevel(&(desktop->canvas->widget));
+ if (!toplevel || !GTK_WIDGET_TOPLEVEL (toplevel))
+ return;
+ Gtk::Window *window = Glib::wrap(GTK_WINDOW(toplevel), false);
+
gchar * dlgmessage = g_strdup_printf(_("'%s' working, please wait..."), _effect->get_name());
- _visibleDialog = new Gtk::MessageDialog(dlgmessage,
+ _visibleDialog = new Gtk::MessageDialog(*window,
+ dlgmessage,
false, // use markup
Gtk::MESSAGE_INFO,
Gtk::BUTTONS_CANCEL,