[eog-plugins] fullscreenbg: Make plugin work with API changes in eog 3.11.3
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog-plugins] fullscreenbg: Make plugin work with API changes in eog 3.11.3
- Date: Tue, 7 Jan 2014 22:18:08 +0000 (UTC)
commit 9f14c4874ddbd6e0bae71f83d33d592951c152d9
Author: Felix Riemann <friemann gnome org>
Date: Tue Jan 7 22:37:32 2014 +0100
fullscreenbg: Make plugin work with API changes in eog 3.11.3
configure.ac | 2 +-
plugins/fullscreenbg/fullscreenbg.py | 10 ++++++----
plugins/fullscreenbg/preferences_dialog.ui | 6 +++---
3 files changed, 10 insertions(+), 8 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index ec98efc..cce2eb2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -46,7 +46,7 @@ PKG_CHECK_MODULES([EOG], [
glib-2.0 >= 2.32.0
gtk+-3.0 >= 3.3.8
libpeas-1.0 >= 0.7.4
- eog >= 3.9.1
+ eog >= 3.11.3
])
AC_SUBST(EOG_LIBS)
AC_SUBST(EOG_CFLAGS)
diff --git a/plugins/fullscreenbg/fullscreenbg.py b/plugins/fullscreenbg/fullscreenbg.py
index 2c54f26..9a7c7d7 100644
--- a/plugins/fullscreenbg/fullscreenbg.py
+++ b/plugins/fullscreenbg/fullscreenbg.py
@@ -43,7 +43,8 @@ class BackgroundChanger(GObject.Object, Eog.WindowActivatable, \
scroll_view = self.window.get_view()
mode = self.window.get_mode()
if self.settings.get_boolean('use-custom'):
- color = Gdk.Color.parse(self.settings.get_string('background-color'))[1]
+ color = Gdk.RGBA()
+ color.parse(self.settings.get_string('background-color'))
else:
color = scroll_view.get_property('background-color')
@@ -69,8 +70,9 @@ class BackgroundChanger(GObject.Object, Eog.WindowActivatable, \
# Restore values
self.use_global_checkbutton.set_active( \
self.settings.get_boolean('use-custom'))
- self.choose_color.set_color( \
- Gdk.Color.parse(self.settings.get_string('background-color'))[1])
+ color = Gdk.RGBA()
+ color.parse(self.settings.get_string('background-color'))
+ self.choose_color.set_rgba(color)
self.preferences_dialog_created = True
return self.preferences_dialog
@@ -81,4 +83,4 @@ class BackgroundChanger(GObject.Object, Eog.WindowActivatable, \
def hide_colorbutton_cb(self, data):
self.settings.set_string('background-color', \
- self.choose_color.get_color().to_string())
+ self.choose_color.get_rgba().to_string())
diff --git a/plugins/fullscreenbg/preferences_dialog.ui b/plugins/fullscreenbg/preferences_dialog.ui
index 4063983..3240658 100644
--- a/plugins/fullscreenbg/preferences_dialog.ui
+++ b/plugins/fullscreenbg/preferences_dialog.ui
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!-- Generated with glade 3.16.0 -->
<interface>
- <!-- interface-requires gtk+ 2.12 -->
+ <requires lib="gtk+" version="3.8"/>
<object class="GtkBox" id="preferences_box">
<property name="visible">True</property>
<property name="can_focus">False</property>
@@ -18,7 +19,6 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
- <property name="use_action_appearance">False</property>
<property name="xalign">0</property>
<property name="draw_indicator">True</property>
<signal name="toggled" handler="use_global_settings_cb" swapped="no"/>
@@ -37,7 +37,7 @@
<property name="receives_default">True</property>
<property name="halign">center</property>
<property name="valign">center</property>
- <property name="use_action_appearance">False</property>
+ <property name="rgba">rgb(0,0,0)</property>
<signal name="color-set" handler="hide_colorbutton_cb" swapped="no"/>
</object>
<packing>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]