[Xfce4-commits] <ristretto:master> Update TODO, set bg-color, saturation and brightness
Stephan Arts
noreply at xfce.org
Sat Sep 26 10:20:01 CEST 2009
Updating branch refs/heads/master
to 2366de5be112bf8a9883f40436ad6c0904bd9d34 (commit)
from fad524e712e62ac7282d6f6582acf27302d11d58 (commit)
commit 2366de5be112bf8a9883f40436ad6c0904bd9d34
Author: Stephan Arts <stephan at xfce.org>
Date: Sat Sep 26 09:26:00 2009 +0200
Update TODO, set bg-color, saturation and brightness
TODO | 4 +---
src/xfce_wallpaper_manager.c | 14 ++++++++++++++
2 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/TODO b/TODO
index 5ef3c2d..47ea9ee 100644
--- a/TODO
+++ b/TODO
@@ -6,8 +6,6 @@
- nautilus
- rox
-- Implement open-with
-
- Implement box-zoom
- Add preloading
@@ -15,7 +13,7 @@
- Write comments
-- Implement thumbnailbar
+- Improve thumbnailbar
- Support image collections
- Export to tarball/zip
diff --git a/src/xfce_wallpaper_manager.c b/src/xfce_wallpaper_manager.c
index f69e944..21c5d9f 100644
--- a/src/xfce_wallpaper_manager.c
+++ b/src/xfce_wallpaper_manager.c
@@ -33,6 +33,14 @@
#define XFDESKTOP_SELECTION_FMT "XFDESKTOP_SELECTION_%d"
+typedef struct {
+ gint16 r;
+ gint16 g;
+ gint16 b;
+ gint16 a;
+} RsttoColor;
+
+
static void
rstto_xfce_wallpaper_manager_init (GObject *);
static void
@@ -88,10 +96,16 @@ rstto_xfce_wallpaper_manager_set (RsttoWallpaperManager *self, RsttoImage *image
RsttoXfceWallpaperManager *manager = RSTTO_XFCE_WALLPAPER_MANAGER (self);
GFile *file = rstto_image_get_file (image);
gchar *uri = g_file_get_path (file);
+
+ RsttoColor *color = g_new0 (RsttoColor, 1);
+ color->a = 0xffff;
xfconf_channel_set_string (manager->priv->channel, "/backdrop/screen0/monitor0/image-path", uri);
xfconf_channel_set_bool (manager->priv->channel, "/backdrop/screen0/monitor0/image-show", TRUE);
xfconf_channel_set_int (manager->priv->channel, "/backdrop/screen0/monitor0/image-style", 4);
+ xfconf_channel_set_int (manager->priv->channel, "/backdrop/screen0/monitor0/brightness", 0);
+ xfconf_channel_set_double (manager->priv->channel, "/backdrop/screen0/monitor0/saturation", 1.0);
+ xfconf_channel_set_struct (manager->priv->channel, "/backdrop/screen0/monitor0/color1", color, XFCONF_TYPE_INT16, XFCONF_TYPE_INT16, XFCONF_TYPE_INT16, XFCONF_TYPE_INT16, G_TYPE_INVALID);
return FALSE;
}
More information about the Xfce4-commits
mailing list