summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorNick Schermer <nick@xfce.org>2010-04-25 11:34:05 +0200
committerNick Schermer <nick@xfce.org>2010-05-09 22:23:25 +0200
commit8c9fcef677f360e82f5a8de7d3bbf7a2e206d55e (patch)
tree5cd77f632bf268e3454cce9179ab4c358a01d67e /common
parent5db31ffd871d39cbe4fb51862405aafac5cf1d0d (diff)
downloadxfce4-panel-8c9fcef677f360e82f5a8de7d3bbf7a2e206d55e.tar.gz
Add support for more background options (bug #1731).
Add support for colored and image backgrounds. This makes theming the panel a lot easier and allows us to handle the colors and image positioning in the external plugins. The background image does not apply to the autohide window.
Diffstat (limited to 'common')
-rw-r--r--common/panel-dbus.h3
-rw-r--r--common/panel-xfconf.c5
2 files changed, 7 insertions, 1 deletions
diff --git a/common/panel-dbus.h b/common/panel-dbus.h
index 611456c8..32d8c393 100644
--- a/common/panel-dbus.h
+++ b/common/panel-dbus.h
@@ -38,6 +38,9 @@
#define SIGNAL_WRAPPER_SET_SENSITIVE "i"
#define SIGNAL_WRAPPER_BACKGROUND_ALPHA "j"
#define SIGNAL_WRAPPER_QUIT "k"
+#define SIGNAL_WRAPPER_BACKGROUND_COLOR "l"
+#define SIGNAL_WRAPPER_BACKGROUND_IMAGE "m"
+#define SIGNAL_WRAPPER_BACKGROUND_UNSET "n"
/* special types for dbus communication */
#define PANEL_TYPE_DBUS_SET_MESSAGE \
diff --git a/common/panel-xfconf.c b/common/panel-xfconf.c
index ccae3ae0..5d45d117 100644
--- a/common/panel-xfconf.c
+++ b/common/panel-xfconf.c
@@ -109,7 +109,10 @@ panel_properties_bind (XfconfChannel *channel,
if (save_properties)
panel_properties_store_value (channel, property, prop->type, object, prop->property);
- xfconf_g_property_bind (channel, property, prop->type, object, prop->property);
+ if (G_LIKELY (prop->type != GDK_TYPE_COLOR))
+ xfconf_g_property_bind (channel, property, prop->type, object, prop->property);
+ else
+ xfconf_g_property_bind_gdkcolor (channel, property, object, prop->property);
g_free (property);
}