[gedit-plugins] colorpicker: fix for get_rgba annotation change
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-plugins] colorpicker: fix for get_rgba annotation change
- Date: Wed, 8 Jan 2014 19:19:33 +0000 (UTC)
commit 86bb982758746a4a2cb1c43291df7c31e0c02e0b
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Wed Jan 8 12:24:11 2014 +0100
colorpicker: fix for get_rgba annotation change
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 237a714..21c27c4 100644
--- a/plugins/colorpicker/colorpicker.py
+++ b/plugins/colorpicker/colorpicker.py
@@ -267,8 +267,7 @@ class ColorPickerViewActivatable(GObject.Object, Gedit.ViewActivatable):
self._color_button = None
def on_color_set(self, color_button):
- rgba = Gdk.RGBA()
- color_button.get_rgba(rgba)
+ rgba = color_button.get_rgba()
self._color_helper.insert_color(self.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]