packages: xfce4-genmon-plugin/xfce4-genmon-plugin.spec, xfce4-genmon-plugin...

baggins baggins at pld-linux.org
Tue Mar 1 17:17:22 CET 2011


Author: baggins                      Date: Tue Mar  1 16:17:22 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- rel 4
- ported to libxfce4ui

---- Files affected:
packages/xfce4-genmon-plugin:
   xfce4-genmon-plugin.spec (1.14 -> 1.15) , xfce4-genmon-plugin-ui.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/xfce4-genmon-plugin/xfce4-genmon-plugin.spec
diff -u packages/xfce4-genmon-plugin/xfce4-genmon-plugin.spec:1.14 packages/xfce4-genmon-plugin/xfce4-genmon-plugin.spec:1.15
--- packages/xfce4-genmon-plugin/xfce4-genmon-plugin.spec:1.14	Thu Feb 17 14:56:46 2011
+++ packages/xfce4-genmon-plugin/xfce4-genmon-plugin.spec	Tue Mar  1 17:17:17 2011
@@ -3,17 +3,19 @@
 Summary(pl.UTF-8):	Wtyczka ogólnego przeznaczenia dla panelu Xfce4
 Name:		xfce4-genmon-plugin
 Version:	3.2
-Release:	3
+Release:	4
 License:	LGPL v2.1
 Group:		X11/Applications
 Source0:	http://archive.xfce.org/src/panel-plugins/xfce4-genmon-plugin/3.2/%{name}-%{version}.tar.bz2
 # Source0-md5:	5f292aa102a87d45207b6a373939a35d
 Patch0:		link.patch
+Patch1:		%{name}-ui.patch
 URL:		http://goodies.xfce.org/projects/panel-plugins/xfce4-genmon-plugin
 BuildRequires:	autoconf
 BuildRequires:	automake
 BuildRequires:	gettext-devel
 BuildRequires:	libtool
+BuildRequires:	libxfce4ui-devel
 BuildRequires:	perl-XML-Parser
 BuildRequires:	pkgconfig
 BuildRequires:	xfce4-dev-tools >= 4.4.0
@@ -45,6 +47,7 @@
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 %{__libtoolize}
@@ -101,6 +104,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.15  2011/03/01 16:17:17  baggins
+- rel 4
+- ported to libxfce4ui
+
 Revision 1.14  2011/02/17 13:56:46  megabajt
 - added link.patch
 - release 3

================================================================
Index: packages/xfce4-genmon-plugin/xfce4-genmon-plugin-ui.patch
diff -u /dev/null packages/xfce4-genmon-plugin/xfce4-genmon-plugin-ui.patch:1.1
--- /dev/null	Tue Mar  1 17:17:22 2011
+++ packages/xfce4-genmon-plugin/xfce4-genmon-plugin-ui.patch	Tue Mar  1 17:17:17 2011
@@ -0,0 +1,119 @@
+diff -ur xfce4-genmon-plugin-3.2-orig/configure.ac xfce4-genmon-plugin-3.2/configure.ac
+--- xfce4-genmon-plugin-3.2-orig/configure.ac	2011-03-01 11:20:52.947067638 +0100
++++ xfce4-genmon-plugin-3.2/configure.ac	2011-03-01 13:00:58.485889236 +0100
+@@ -32,7 +32,7 @@
+ 
+ dnl configure the panel plugin
+ XDT_CHECK_PACKAGE([LIBXFCE4PANEL], [libxfce4panel-1.0], [4.3.22])
+-XDT_CHECK_PACKAGE([LIBXFCEGUI4], [libxfcegui4-1.0], [4.3.22])
++XDT_CHECK_PACKAGE([LIBXFCE4UI], [libxfce4ui-1], [4.8.0])
+ 
+ dnl Translations
+ XDT_I18N([ca cs en_GB eu fr pl pt_PT sq])
+diff -ur xfce4-genmon-plugin-3.2-orig/panel-plugin/config_gui.c xfce4-genmon-plugin-3.2/panel-plugin/config_gui.c
+--- xfce4-genmon-plugin-3.2-orig/panel-plugin/config_gui.c	2007-11-23 16:32:40.000000000 +0100
++++ xfce4-genmon-plugin-3.2/panel-plugin/config_gui.c	2011-03-01 13:00:58.486889236 +0100
+@@ -28,8 +28,8 @@
+ #include <gtk/gtk.h>
+ 
+ #include <libxfce4util/libxfce4util.h>
+-#include <libxfcegui4/dialogs.h>
+-#include <libxfce4panel/xfce-panel-plugin.h>
++#include <libxfce4ui/libxfce4ui.h>
++#include <libxfce4panel/libxfce4panel.h>
+ 
+ 
+ #define COPYVAL(var, field)    ((var)->field = field)
+diff -ur xfce4-genmon-plugin-3.2-orig/panel-plugin/config_gui.h xfce4-genmon-plugin-3.2/panel-plugin/config_gui.h
+--- xfce4-genmon-plugin-3.2-orig/panel-plugin/config_gui.h	2007-11-23 16:32:40.000000000 +0100
++++ xfce4-genmon-plugin-3.2/panel-plugin/config_gui.h	2011-03-01 13:00:58.486889236 +0100
+@@ -29,8 +29,8 @@
+ #include <gtk/gtk.h>
+ 
+ #include <libxfce4util/libxfce4util.h>
+-#include <libxfcegui4/dialogs.h>
+-#include <libxfce4panel/xfce-panel-plugin.h>
++#include <libxfce4ui/libxfce4ui.h>
++#include <libxfce4panel/libxfce4panel.h>
+ 
+ 
+ typedef struct gui_t {
+diff -ur xfce4-genmon-plugin-3.2-orig/panel-plugin/main.c xfce4-genmon-plugin-3.2/panel-plugin/main.c
+--- xfce4-genmon-plugin-3.2-orig/panel-plugin/main.c	2008-03-15 23:38:18.000000000 +0100
++++ xfce4-genmon-plugin-3.2/panel-plugin/main.c	2011-03-01 17:15:23.747567404 +0100
+@@ -31,9 +31,8 @@
+ #include <gtk/gtk.h>
+ 
+ #include <libxfce4util/libxfce4util.h>
+-#include <libxfcegui4/dialogs.h>
+-#include <libxfce4panel/xfce-panel-plugin.h>
+-#include <libxfce4panel/xfce-panel-convenience.h>
++#include <libxfce4ui/libxfce4ui.h>
++#include <libxfce4panel/libxfce4panel.h>
+ 
+ #include <stdlib.h>
+ #include <unistd.h>
+@@ -584,7 +583,7 @@
+ static void About (Widget_t w, void *unused)
+ /* Called back when the About button in clicked */
+ {
+-    xfce_info (_("%s %s - Generic Monitor\n"
++    xfce_dialog_show_info(NULL, NULL, _("%s %s - Generic Monitor\n"
+         "Cyclically spawns a script/program, captures its output "
+         "and displays the resulting string in the panel\n\n"
+         "(c) 2004 Roger Seguin <roger_seguin at msn.com>\n"
+@@ -638,7 +637,7 @@
+ /* Plugin API */
+ /* Create/pop up the configuration/options GUI */
+ {
+-    GtkWidget *dlg, *header, *vbox;
++    GtkWidget *dlg, *vbox;
+     struct param_t *poConf = &(poPlugin->oConf.oParam);
+     struct gui_t   *poGUI = &(poPlugin->oConf.oGUI);
+     const char     *pcFont = poConf->acFont;
+@@ -647,25 +646,20 @@
+ 
+     xfce_panel_plugin_block_menu (plugin);
+ 
+-    dlg = gtk_dialog_new_with_buttons (_("Configuration"),
++    dlg = xfce_titled_dialog_new_with_buttons (_("Configuration"),
+         GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (plugin))),
+         GTK_DIALOG_DESTROY_WITH_PARENT |
+         GTK_DIALOG_NO_SEPARATOR,
+         GTK_STOCK_CLOSE, GTK_RESPONSE_OK,
+         NULL);
+ 
++    xfce_titled_dialog_set_subtitle (XFCE_TITLED_DIALOG(dlg), _("Generic Monitor"));
++
+     g_signal_connect (dlg, "response", G_CALLBACK (genmon_dialog_response),
+         poPlugin);
+ 
+     gtk_container_set_border_width (GTK_CONTAINER (dlg), 2);
+ 
+-    header = xfce_create_header (NULL, _("Generic Monitor"));
+-    gtk_widget_set_size_request (GTK_BIN (header)->child, -1, 32);
+-    gtk_container_set_border_width (GTK_CONTAINER (header), BORDER - 2);
+-    gtk_widget_show (header);
+-    gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dlg)->vbox), header,
+-        FALSE, TRUE, 0);
+-
+     vbox = gtk_vbox_new(FALSE, BORDER);
+     gtk_container_set_border_width (GTK_CONTAINER (vbox), BORDER - 2);
+     gtk_widget_show(vbox);
+diff -ur xfce4-genmon-plugin-3.2-orig/panel-plugin/Makefile.am xfce4-genmon-plugin-3.2/panel-plugin/Makefile.am
+--- xfce4-genmon-plugin-3.2-orig/panel-plugin/Makefile.am	2011-03-01 11:20:52.946067639 +0100
++++ xfce4-genmon-plugin-3.2/panel-plugin/Makefile.am	2011-03-01 13:00:58.490889236 +0100
+@@ -4,11 +4,11 @@
+ xfce4_genmon_plugin_CFLAGS =					\
+ 	-DPACKAGE_LOCALE_DIR=\"$(localedir)\"			\
+ 	@LIBXFCE4PANEL_CFLAGS@					\
+-	@LIBXFCEGUI4_CFLAGS@
++	@LIBXFCE4UI_CFLAGS@
+ 
+ xfce4_genmon_plugin_LDADD =					\
+ 	@LIBXFCE4PANEL_LIBS@					\
+-	@LIBXFCEGUI4_LIBS@
++	@LIBXFCE4UI_LIBS@
+ 
+ xfce4_genmon_plugin_SOURCES =	\
+ 	main.c			\
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/xfce4-genmon-plugin/xfce4-genmon-plugin.spec?r1=1.14&r2=1.15&f=u



More information about the pld-cvs-commit mailing list