packages: xfce4-xfswitch-plugin/xfce4-xfswitch-plugin-ui.patch (NEW), xfce4...
baggins
baggins at pld-linux.org
Tue Apr 26 15:02:52 CEST 2011
Author: baggins Date: Tue Apr 26 13:02:52 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- initial revision
---- Files affected:
packages/xfce4-xfswitch-plugin:
xfce4-xfswitch-plugin-ui.patch (NONE -> 1.1) (NEW), xfce4-xfswitch-plugin.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/xfce4-xfswitch-plugin/xfce4-xfswitch-plugin-ui.patch
diff -u /dev/null packages/xfce4-xfswitch-plugin/xfce4-xfswitch-plugin-ui.patch:1.1
--- /dev/null Tue Apr 26 15:02:52 2011
+++ packages/xfce4-xfswitch-plugin/xfce4-xfswitch-plugin-ui.patch Tue Apr 26 15:02:47 2011
@@ -0,0 +1,62 @@
+diff -ur xfswitch-plugin-0.0.1/configure.in xfswitch-plugin-0.0.1-ui/configure.in
+--- xfswitch-plugin-0.0.1/configure.in 2009-02-08 10:49:35.000000000 +0100
++++ xfswitch-plugin-0.0.1-ui/configure.in 2011-04-26 14:53:33.378632117 +0200
+@@ -62,7 +62,7 @@
+ dnl ***********************************
+ XDT_CHECK_PACKAGE([GTK], [gtk+-2.0], [2.12.0])
+ XDT_CHECK_PACKAGE([LIBXFCE4UTIL], [libxfce4util-1.0], [4.4])
+-XDT_CHECK_PACKAGE([LIBXFCEGUI4], [libxfcegui4-1.0], [4.4])
++XDT_CHECK_PACKAGE([LIBXFCE4UI], [libxfce4ui-1], [4.4])
+ XDT_CHECK_PACKAGE([LIBXFCE4PANEL], [libxfce4panel-1.0], [4.4])
+
+ dnl ******************************
+diff -ur xfswitch-plugin-0.0.1/panel-plugin/main.c xfswitch-plugin-0.0.1-ui/panel-plugin/main.c
+--- xfswitch-plugin-0.0.1/panel-plugin/main.c 2009-02-03 20:40:06.000000000 +0100
++++ xfswitch-plugin-0.0.1-ui/panel-plugin/main.c 2011-04-26 14:55:57.574632084 +0200
+@@ -24,7 +24,7 @@
+ #include <gtk/gtk.h>
+ #include <gdk/gdkx.h>
+
+-#include <libxfcegui4/libxfcegui4.h>
++#include <libxfce4ui/libxfce4ui.h>
+ #include <libxfce4panel/xfce-panel-plugin.h>
+ #include <libxfce4panel/xfce-panel-convenience.h>
+
+@@ -83,7 +83,7 @@
+ int width = size - 2 - 2 * MAX (pd->button->style->xthickness,
+ pd->button->style->ythickness);
+
+- pb = xfce_themed_icon_load ("system-users", width);
++ pb = gtk_icon_theme_load_icon ( gtk_icon_theme_get_default(), "system-users", width, GTK_ICON_LOOKUP_GENERIC_FALLBACK, NULL);
+ gtk_image_set_from_pixbuf (GTK_IMAGE (pd->image), pb);
+
+ g_object_unref (pb);
+@@ -118,7 +118,7 @@
+ if (!g_spawn_command_line_async ("gdmflexiserver --new",
+ &error))
+ {
+- xfce_err (error->message);
++ xfce_dialog_show_error (NULL, NULL, error->message);
+ g_error_free (error);
+ }
+ }
+diff -ur xfswitch-plugin-0.0.1/panel-plugin/Makefile.am xfswitch-plugin-0.0.1-ui/panel-plugin/Makefile.am
+--- xfswitch-plugin-0.0.1/panel-plugin/Makefile.am 2009-02-08 10:37:18.000000000 +0100
++++ xfswitch-plugin-0.0.1-ui/panel-plugin/Makefile.am 2011-04-26 14:53:12.145632122 +0200
+@@ -8,14 +8,14 @@
+ xfswitch_plugin_CFLAGS = \
+ @LIBXFCE4PANEL_CFLAGS@ \
+ @GTK_CFLAGS@ \
+- @LIBXFCEGUI4_CFLAGS@ \
++ @LIBXFCE4UI_CFLAGS@ \
+ @LIBXFCE4UTIL_CFLAGS@ \
+ -DPACKAGE_LOCALE_DIR=\"$(localedir)\"
+
+ xfswitch_plugin_LDADD = \
+ @LIBXFCE4PANEL_LIBS@ \
+ @GTK_LIBS@ \
+- @LIBXFCEGUI4_LIBS@ \
++ @LIBXFCE4UI_LIBS@ \
+ @LIBXFCE4UTIL_LIBS@
+
+ #
================================================================
Index: packages/xfce4-xfswitch-plugin/xfce4-xfswitch-plugin.spec
diff -u /dev/null packages/xfce4-xfswitch-plugin/xfce4-xfswitch-plugin.spec:1.1
--- /dev/null Tue Apr 26 15:02:52 2011
+++ packages/xfce4-xfswitch-plugin/xfce4-xfswitch-plugin.spec Tue Apr 26 15:02:47 2011
@@ -0,0 +1,79 @@
+# $Revision$, $Date$
+# TODO
+# - memleak: https://bugzilla.xfce.org/show_bug.cgi?id=7363
+Summary: User switching applet for XFCE4 panel
+Summary(pl.UTF-8): Przełączanie między użytkownikami
+Name: xfce4-xfswitch-plugin
+Version: 0.0.1
+Release: 0.1
+License: GPL
+Group: X11/Applications
+Source0: http://archive.xfce.org/src/panel-plugins/xfswitch-plugin/0.0/xfswitch-plugin-%{version}.tar.gz
+# Source0-md5: cb204f4a507f462d019529af6f547731
+Patch0: %{name}-ui.patch
+URL: http://goodies.xfce.org/projects/panel-plugins/xfswitch-plugin
+BuildRequires: autoconf >= 2.50
+BuildRequires: automake >= 1:1.8
+BuildRequires: gettext-devel
+BuildRequires: intltool
+BuildRequires: libtool
+BuildRequires: libxfce4ui-devel
+BuildRequires: libxfce4util-devel
+BuildRequires: pkgconfig
+BuildRequires: xfce4-dev-tools >= 4.4.0
+BuildRequires: xfce4-panel-devel >= 4.4.0
+Requires: xfce4-panel >= 4.4.0
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This is a user switching plugin for the Xfce4 Panel.
+It allows you to leave the current session opened and open a
+new session with another user. At the moment it relies on GDM,
+but other display managers will be supported in the future.
+
+%description -l pl.UTF-8
+Ta wtyczka dla panelu Xfce4 pozwala przełączać między użytkownikami.
+Obecnie działa tylko z GDM-em.
+
+%prep
+%setup -q -n xfswitch-plugin-%{version}
+%patch0 -p1
+
+%build
+%{__intltoolize}
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure \
+ --disable-static
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%find_lang xfswitch-plugin
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files -f xfswitch-plugin.lang
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog NEWS README
+%attr(755,root,root) %{_libdir}/xfce4/panel-plugins/xfswitch-plugin
+%{_datadir}/xfce4/panel-plugins/xfswitch-plugin.desktop
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2011/04/26 13:02:47 baggins
+- initial revision
+
================================================================
More information about the pld-cvs-commit
mailing list