From adcb936f38f338d0c328aadc1a9aa70be770f21a Mon Sep 17 00:00:00 2001 From: buliabyak Date: Sat, 14 Feb 2009 00:26:17 +0000 Subject: [PATCH] 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 --- src/dialogs/dialog-events.cpp | 26 -------------------------- 1 file changed, 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 -/** - * \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) -- 2.30.2