From 94bfc55a2f45866124320842172ca548d72983dca69a737f752a7f44ea77e9a1 Mon Sep 17 00:00:00 2001 From: Guido Berhoerster Date: Wed, 2 Feb 2011 19:22:24 +0000 Subject: [PATCH] - added xfce4-session-simple-splash-remove-shadows.patch which improves readability of the simple splash engine text by removing the text shadows - enabled support for GNOME keyring and assistive technologies - generate documentation OBS-URL: https://build.opensuse.org/package/show/X11:xfce/xfce4-session?expand=0&rev=50 --- ...session-simple-splash-remove-shadows.patch | 27 +++++++++++++++++++ xfce4-session.changes | 9 +++++++ xfce4-session.spec | 15 ++++++++++- 3 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 xfce4-session-simple-splash-remove-shadows.patch diff --git a/xfce4-session-simple-splash-remove-shadows.patch b/xfce4-session-simple-splash-remove-shadows.patch new file mode 100644 index 0000000..121e6c8 --- /dev/null +++ b/xfce4-session-simple-splash-remove-shadows.patch @@ -0,0 +1,27 @@ +diff -urNp xfce4-session-4.8.0.orig/engines/simple/simple.c xfce4-session-4.8.0/engines/simple/simple.c +--- xfce4-session-4.8.0.orig/engines/simple/simple.c 2011-01-16 17:38:20.000000000 +0100 ++++ xfce4-session-4.8.0/engines/simple/simple.c 2011-02-02 18:44:31.000000000 +0100 +@@ -213,7 +213,6 @@ static void + simple_next (XfsmSplashEngine *engine, const gchar *text) + { + Simple *simple = (Simple *) engine->user_data; +- GdkColor shcolor; + gint tw, th, tx, ty; + + pango_layout_set_text (simple->layout, text, -1); +@@ -231,15 +230,6 @@ simple_next (XfsmSplashEngine *engine, c + + gdk_gc_set_clip_rectangle (simple->gc, &simple->textbox); + +- /* draw shadow */ +- shcolor.red = (simple->fgcolor.red + simple->bgcolor.red) / 2; +- shcolor.green = (simple->fgcolor.green + simple->bgcolor.green) / 2; +- shcolor.blue = (simple->fgcolor.blue + simple->bgcolor.blue) / 2; +- shcolor.red = (shcolor.red + shcolor.green + shcolor.blue) / 3; +- shcolor.green = shcolor.red; +- shcolor.blue = shcolor.red; +- +- gdk_gc_set_rgb_fg_color (simple->gc, &shcolor); + gdk_draw_layout (simple->pixmap, simple->gc, + tx + 2, ty + 2, simple->layout); + diff --git a/xfce4-session.changes b/xfce4-session.changes index ae86f93..49e7c72 100644 --- a/xfce4-session.changes +++ b/xfce4-session.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Wed Feb 2 17:45:56 UTC 2011 - gber@opensuse.org + +- added xfce4-session-simple-splash-remove-shadows.patch which + improves readability of the simple splash engine text by removing + the text shadows +- enabled support for GNOME keyring and assistive technologies +- generate documentation + ------------------------------------------------------------------- Mon Jan 17 12:28:31 UTC 2011 - gber@opensuse.org diff --git a/xfce4-session.spec b/xfce4-session.spec index a2b4547..8a1eaf1 100644 --- a/xfce4-session.spec +++ b/xfce4-session.spec @@ -26,16 +26,25 @@ Url: http://www.xfce.org/projects/xfce4-session/ Group: System/GUI/XFCE Source: %{name}-%{version}.tar.bz2 Patch0: xfce4-session-4.7.1-fix-missing-include.patch +# PATCH-FEATURE-OPENSUSE xfce4-session-simple-splash-remove-shadows.patch gber@opensuse.org -- Improves readability of the simple splash engine text by removing the text shadows +Patch1: xfce4-session-simple-splash-remove-shadows.patch BuildRequires: intltool BuildRequires: perl-XML-Parser BuildRequires: pkgconfig(dbus-glib-1) BuildRequires: pkgconfig(libwnck-1.0) BuildRequires: pkgconfig(libxfce4ui-1) BuildRequires: pkgconfig(libxfce4util-1.0) +BuildRequires: pkgconfig(libxfce4panel-1.0) BuildRequires: pkgconfig(libxfcegui4-1.0) BuildRequires: pkgconfig(libxfconf-0) +BuildRequires: pkgconfig(gconf-2.0) +BuildRequires: pkgconfig(gnome-keyring-1) BuildRequires: update-desktop-files BuildRequires: xorg-x11 +BuildRequires: libxslt +BuildRequires: xml2po +BuildRequires: docbook_4 +BuildRequires: docbook-xsl-stylesheets Requires: %{name}-branding >= %{version} Requires: xfce-utils Recommends: fortune @@ -79,12 +88,16 @@ This package provides the upstream look and feel for the Xfce Session Manager. %prep %setup -q %patch0 -p1 +%patch1 -p1 %build %configure \ --docdir=%{_defaultdocdir}/%{name} \ --disable-static \ - --enable-session-screenshots + --enable-session-screenshots \ + --enable-gnome \ + --enable-libgnome-keyring \ + --enable-gen-doc make %{?_smp_mflags} V=1 %install