[gedit-plugins] colorpicker: fix for annotation change in gtk+. Fixes bug #697331



commit 143b8ca7210af60cb65a99d56128c390cfb7f4cd
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Fri Apr 5 13:34:34 2013 +0200

    colorpicker: fix for annotation change in gtk+. Fixes bug #697331

 plugins/colorpicker/colorpicker.py |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/plugins/colorpicker/colorpicker.py b/plugins/colorpicker/colorpicker.py
index 12f16bf..cca650b 100644
--- a/plugins/colorpicker/colorpicker.py
+++ b/plugins/colorpicker/colorpicker.py
@@ -192,8 +192,7 @@ class ColorPickerWindowActivatable(GObject.Object, Gedit.WindowActivatable):
 
     def on_dialog_response(self, dialog, response):
         if response == Gtk.ResponseType.OK:
-            rgba = Gdk.RGBA()
-            dialog.get_rgba(rgba)
+            rgba = dialog.get_rgba()
 
             self._color_helper.insert_color(self.window.get_active_view(),
                                             "%02x%02x%02x" % 
(self._color_helper.scale_color_component(rgba.red), \


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