Hello community, here is the log from the commit of package pix for openSUSE:Factory checked in at 2016-09-13 22:22:57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/pix (Old) and /work/SRC/openSUSE:Factory/.pix.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "pix" Changes: -------- --- /work/SRC/openSUSE:Factory/pix/pix.changes 2016-07-01 09:59:35.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.pix.new/pix.changes 2016-09-13 22:22:58.000000000 +0200 @@ -1,0 +2,6 @@ +Fri Jul 15 13:02:12 UTC 2016 - [email protected] + +- Update to version 1.0.6: + * Background extension: Add Xfce support. + +------------------------------------------------------------------- Old: ---- pix-1.0.5.tar.gz New: ---- pix-1.0.6.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ pix.spec ++++++ --- /var/tmp/diff_new_pack.TGJt9e/_old 2016-09-13 22:22:59.000000000 +0200 +++ /var/tmp/diff_new_pack.TGJt9e/_new 2016-09-13 22:22:59.000000000 +0200 @@ -17,7 +17,7 @@ Name: pix -Version: 1.0.5 +Version: 1.0.6 Release: 0 Summary: Image viewer and browser utility License: GPL-2.0+ @@ -58,6 +58,7 @@ BuildRequires: pkgconfig(sm) >= 1.0.0 BuildRequires: pkgconfig(webkit2gtk-4.0) BuildRequires: pkgconfig(zlib) +Requires: xapps-common Recommends: %{name}-lang %glib2_gsettings_schema_requires ++++++ pix-1.0.5.tar.gz -> pix-1.0.6.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pix-1.0.5/configure.ac new/pix-1.0.6/configure.ac --- old/pix-1.0.5/configure.ac 2016-06-27 11:41:53.000000000 +0200 +++ new/pix-1.0.6/configure.ac 2016-07-14 15:43:08.000000000 +0200 @@ -1,6 +1,6 @@ m4_define([pix_major_version], [1]) m4_define([pix_minor_version], [0]) -m4_define([pix_micro_version], [5]) +m4_define([pix_micro_version], [6]) m4_define([pix_version], [pix_major_version.pix_minor_version.pix_micro_version]) m4_define([pix_api_version], diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pix-1.0.5/debian/changelog new/pix-1.0.6/debian/changelog --- old/pix-1.0.5/debian/changelog 2016-06-27 11:41:53.000000000 +0200 +++ new/pix-1.0.6/debian/changelog 2016-07-14 15:43:08.000000000 +0200 @@ -1,3 +1,9 @@ +pix (1.0.6) sarah; urgency=medium + + * Background extension: Added support for Xfce + + -- Clement Lefebvre <[email protected]> Thu, 14 Jul 2016 15:42:40 +0200 + pix (1.0.5) sarah; urgency=medium * Fixed pix crash in code selector diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pix-1.0.5/debian/control new/pix-1.0.6/debian/control --- old/pix-1.0.5/debian/control 2016-06-27 11:41:53.000000000 +0200 +++ new/pix-1.0.6/debian/control 2016-07-14 15:43:08.000000000 +0200 @@ -50,6 +50,7 @@ , ${misc:Depends} , pix-data (= ${source:Version}) , gsettings-desktop-schemas + , xapps-common (>= 1.0.0) Recommends: gvfs-bin , gstreamer0.10-gnomevfs , bison diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pix-1.0.5/extensions/desktop_background/actions.c new/pix-1.0.6/extensions/desktop_background/actions.c --- old/pix-1.0.5/extensions/desktop_background/actions.c 2016-06-27 11:41:53.000000000 +0200 +++ new/pix-1.0.6/extensions/desktop_background/actions.c 2016-07-14 15:43:08.000000000 +0200 @@ -24,6 +24,7 @@ #include <glib/gi18n.h> #include <pix.h> #include <extensions/image_viewer/gth-image-viewer-page.h> +#include <stdlib.h> #define CINNAMON_DESKTOP_BACKGROUND_SCHEMA "org.cinnamon.desktop.background" @@ -58,6 +59,11 @@ GSettings *settings; char *location; + if (g_strcmp0 (g_getenv ("XDG_CURRENT_DESKTOP"), "XFCE") == 0) { + // Don't support undo in Xfce + return; + } + if (g_strcmp0 (g_getenv ("XDG_CURRENT_DESKTOP"), "Cinnamon") == 0 || g_strcmp0 (g_getenv ("XDG_CURRENT_DESKTOP"), "X-Cinnamon") == 0) { settings = g_settings_new (CINNAMON_DESKTOP_BACKGROUND_SCHEMA); } @@ -90,6 +96,16 @@ if (style->file == NULL) return; + if (g_strcmp0 (g_getenv ("XDG_CURRENT_DESKTOP"), "XFCE") == 0) { + location = g_file_get_path(style->file); + gchar *command = g_strdup_printf("xfce4-set-wallpaper '%s'", location); + system(command); + g_free(command); + g_free(location); + return; + } + + if (g_strcmp0 (g_getenv ("XDG_CURRENT_DESKTOP"), "MATE") == 0) { location = g_file_get_path (style->file); } @@ -214,6 +230,8 @@ control_center_command = "cinnamon-settings backgrounds"; else if (g_strcmp0 (g_getenv ("XDG_CURRENT_DESKTOP"), "MATE") == 0) control_center_command = "mate-appearance-properties -p background"; + else if (g_strcmp0 (g_getenv ("XDG_CURRENT_DESKTOP"), "XFCE") == 0) + control_center_command = "xfdesktop-settings"; else if (g_strcmp0 (g_getenv ("XDG_CURRENT_DESKTOP"), "GNOME") == 0) control_center_command = "gnome-control-center appearance"; else if (g_strcmp0 (g_getenv ("XDG_CURRENT_DESKTOP"), "Unity") == 0) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pix-1.0.5/extensions/desktop_background/callbacks.c new/pix-1.0.6/extensions/desktop_background/callbacks.c --- old/pix-1.0.5/extensions/desktop_background/callbacks.c 2016-06-27 11:41:53.000000000 +0200 +++ new/pix-1.0.6/extensions/desktop_background/callbacks.c 2016-07-14 15:43:08.000000000 +0200 @@ -75,6 +75,7 @@ if (g_strcmp0 (g_getenv ("XDG_CURRENT_DESKTOP"), "Cinnamon") == 0 || g_strcmp0 (g_getenv ("XDG_CURRENT_DESKTOP"), "X-Cinnamon") == 0 || g_strcmp0 (g_getenv ("XDG_CURRENT_DESKTOP"), "MATE") == 0 + || g_strcmp0 (g_getenv ("XDG_CURRENT_DESKTOP"), "XFCE") == 0 || g_strcmp0 (g_getenv ("XDG_CURRENT_DESKTOP"), "GNOME") == 0 || g_strcmp0 (g_getenv ("XDG_CURRENT_DESKTOP"), "Unity") == 0 ) {
