diff options
| author | bulia byak <buliabyak@gmail.com> | 2009-02-14 00:26:17 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2009-02-14 00:26:17 +0000 |
| commit | 6ec070b0966e768adb86493523ce55439c772056 (patch) | |
| tree | a3f417215b6f66adc2daf6820dade19d0b62b1b9 /src/dialogs/dialog-events.cpp | |
| parent | use correct method of accessing top-level window for transientization (diff) | |
| download | inkscape-6ec070b0966e768adb86493523ce55439c772056.tar.gz inkscape-6ec070b0966e768adb86493523ce55439c772056.zip | |
remove temporary prevention of retransientization - this hack was added long ago when creating new windows was much faster than now, so by now it does more harm than good
(bzr r7291)
Diffstat (limited to 'src/dialogs/dialog-events.cpp')
| -rw-r--r-- | src/dialogs/dialog-events.cpp | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/dialogs/dialog-events.cpp b/src/dialogs/dialog-events.cpp index da55936ce..7972f4942 100644 --- a/src/dialogs/dialog-events.cpp +++ b/src/dialogs/dialog-events.cpp @@ -28,18 +28,6 @@ #include <gtkmm/entry.h> -/** - * \brief This function is called to zero the transientize semaphore by a - * timeout. - */ -gboolean -sp_allow_again (gpointer *wd) -{ - ((win_data *) wd)->stop = 0; - return FALSE; // so that it is only called once -} - - /** * \brief Remove focus from window to whoever it is transient for... @@ -216,24 +204,10 @@ sp_transientize_callback ( Inkscape::Application * /*inkscape*/, if (!transient_policy) return; - if (wd->stop) { - /* - * if retransientizing of this dialog is still forbidden after - * previous call warning turned off because it was confusingly fired - * when loading many files from command line - */ - // g_warning("Retranzientize aborted! You're switching windows too fast!"); - return; - } - if (wd->win) { - wd->stop = 1; // disallow other attempts to retranzientize this dialog desktop->setWindowTransient (wd->win, transient_policy); } - - // we're done, allow next retransientizing not sooner than after 6 msec - gtk_timeout_add (6, (GtkFunction) sp_allow_again, (gpointer) wd); } void on_dialog_hide (GtkWidget *w) |
