Code

remove temporary prevention of retransientization - this hack was added long ago...
authorbuliabyak <buliabyak@users.sourceforge.net>
Sat, 14 Feb 2009 00:26:17 +0000 (00:26 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Sat, 14 Feb 2009 00:26:17 +0000 (00:26 +0000)
src/dialogs/dialog-events.cpp

index da55936ced1b8b8572391bbbc75b99ecbdeaed63..7972f4942ecb82dfba58ff5604c0025d8ddb33ff 100644 (file)
 #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)