[gedit-plugins] colorpicker: connect after to response



commit 5ef08bd9b5e309605c6b29ff54ac96e0e0816010
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Sun Mar 4 15:44:05 2012 +0100

    colorpicker: connect after to response
    
    The reason for this is that we destroy the dialog on response
    and gtk+ also connects to response and sets a property. Our dialog
    gets destroyed and gtk+ tries to set a value to a property which
    does not exists anymore

 plugins/colorpicker/colorpicker.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/colorpicker/colorpicker.py b/plugins/colorpicker/colorpicker.py
index cf5d6df..16680f5 100644
--- a/plugins/colorpicker/colorpicker.py
+++ b/plugins/colorpicker/colorpicker.py
@@ -175,7 +175,7 @@ class ColorPickerPlugin(GObject.Object, Gedit.WindowActivatable):
         if not self._dialog:
             self._dialog = Gtk.ColorChooserDialog(_('Pick Color'), self.window)
 
-            self._dialog.connect('response', self.on_dialog_response)
+            self._dialog.connect_after('response', self.on_dialog_response)
 
         rgba_str = self.get_current_color()
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]