Disable drag and drop on sheet axes for which there is no connected signal
[pspp] / src / ui / gui / psppire-window-register.c
index dbab4b18c7d4f84bb56d773f29677621d113ee10..6bb2b7cb2f0e6b7934bb4976621a3f0c723a72b4 100644 (file)
@@ -1,5 +1,5 @@
 /* PSPPIRE - a graphical user interface for PSPP.
-   Copyright (C) 2008  Free Software Foundation
+   Copyright (C) 2008 Free Software Foundation
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -82,7 +82,7 @@ psppire_window_register_construct   (GType                  type,
                                     GObjectConstructParam *construct_params)
 {
   GObject *object;
-  
+
   if (!the_instance)
     {
       object = G_OBJECT_CLASS (parent_class)->constructor (type,
@@ -146,13 +146,11 @@ psppire_window_register_insert (PsppireWindowRegister *wr, PsppireWindow *window
   g_signal_emit (wr, signals[INSERTED], 0, name);
 }
 
-
 void
 psppire_window_register_remove (PsppireWindowRegister *wr, const gchar *name)
 {
-  g_signal_emit (wr, signals[REMOVED], 0, name);
-
   g_hash_table_remove (wr->name_table, (gpointer) name);
+  g_signal_emit (wr, signals[REMOVED], 0, name);
 }
 
 PsppireWindow *