diff -aur gtk-sunlight-0.3.4-ubuntu-all.orig//callbacks.c gtk-sunlight-0.3.4-ubuntu-all.new//callbacks.c --- gtk-sunlight-0.3.4-ubuntu-all.orig//callbacks.c 2011-01-15 01:53:58.000000000 +0100 +++ gtk-sunlight-0.3.4-ubuntu-all.new//callbacks.c 2011-05-04 19:09:03.869899240 +0200 @@ -167,7 +167,7 @@ image_address = "http://static.die.net/moon/800.jpg"; break; } - set_wallpaper = g_strdup_printf("%s %s/%s", GCONF_SET_WALLPAPER, dir_wallpapers, file_time); + set_wallpaper = g_strdup_printf("%s%s/%s", GCONF_SET_WALLPAPER, dir_wallpapers, file_time); gchar *fname = g_strconcat(dir_project, "/get_image.sh", NULL); gchar *contents = g_strconcat(text1, image_address, text2, NULL); @@ -333,13 +333,13 @@ switch (lst_option) { - case 0: options = g_strconcat(GCONF_SET_GRADIENT_OPTIONS, "solid", NULL); + case 0: options = g_strconcat(GCONF_SET_GRADIENT_OPTIONS,"solid", NULL); gtk_widget_hide_all (data->hbox); break; - case 1: options = g_strconcat(GCONF_SET_GRADIENT_OPTIONS,"horizontal-gradient", NULL); + case 1: options = g_strconcat(GCONF_SET_GRADIENT_OPTIONS,"horizontal", NULL); gtk_widget_show_all (data->hbox); break; - case 2: options = g_strconcat(GCONF_SET_GRADIENT_OPTIONS,"vertical-gradient", NULL); + case 2: options = g_strconcat(GCONF_SET_GRADIENT_OPTIONS,"vertical", NULL); gtk_widget_show_all (data->hbox); break; } diff -aur gtk-sunlight-0.3.4-ubuntu-all.orig//support.h gtk-sunlight-0.3.4-ubuntu-all.new//support.h --- gtk-sunlight-0.3.4-ubuntu-all.orig//support.h 2010-11-11 16:43:32.000000000 +0100 +++ gtk-sunlight-0.3.4-ubuntu-all.new//support.h 2011-05-04 19:09:10.609935644 +0200 @@ -54,11 +54,12 @@ #define DIR_PROJECT "/.gnome2/RealtimeSunlightWallpaper" #define DIR_WALLPAPERS DIR_PROJECT"/gtk-sunlight" -#define GCONF_SET_WALLPAPER "gconftool-2 --type string --set /desktop/gnome/background/picture_filename" -#define GCONF_SET_PICTURE_OPTIONS "gconftool-2 --type string --set /desktop/gnome/background/picture_options " -#define GCONF_SET_COLOR_PRIMARY_OPTIONS "gconftool-2 --type string --set /desktop/gnome/background/primary_color " -#define GCONF_SET_COLOR_SECONDARY_OPTIONS "gconftool-2 --type string --set /desktop/gnome/background/secondary_color " -#define GCONF_SET_GRADIENT_OPTIONS "gconftool-2 --type string --set /desktop/gnome/background/color_shading_type " +#define GCONF_SET_WALLPAPER "gsettings set org.gnome.desktop.background picture-uri file://" +#define GCONF_SET_PICTURE_OPTIONS "gsettings set org.gnome.desktop.background picture-options " +#define GCONF_SET_COLOR_PRIMARY_OPTIONS "gsettings set org.gnome.desktop.background primary-color " +#define GCONF_SET_COLOR_SECONDARY_OPTIONS "gsettings set org.gnome.desktop.background secondary-color " +#define GCONF_SET_GRADIENT_OPTIONS "gsettings set org.gnome.desktop.background color-shading-type " + #endif /* __SUPPORT_H__ */