wok rev 2576

gtkdialog: Fix build (patch glade_support.c)
author Christophe Lincoln <pankso@slitaz.org>
date Mon Apr 06 18:58:40 2009 +0200 (2009-04-06)
parents 14035be80a59
children 519ee78a7bda
files gtkdialog/receipt gtkdialog/stuff/glade_support.patch
line diff
     1.1 --- a/gtkdialog/receipt	Mon Apr 06 15:45:58 2009 +0000
     1.2 +++ b/gtkdialog/receipt	Mon Apr 06 18:58:40 2009 +0200
     1.3 @@ -6,15 +6,17 @@
     1.4  SHORT_DESC="Small utility for fast and easy GUI building using GTK+."
     1.5  MAINTAINER="pankso@slitaz.org"
     1.6  DEPENDS="gtk+ libglade xorg-libXdamage"
     1.7 +BUILD_DEPENDS="gtk+-dev libglade-dev xorg-libXdamage-dev"
     1.8  TARBALL="$PACKAGE-$VERSION.tar.gz"
     1.9  WEB_SITE="http://linux.pte.hu/~pipas/gtkdialog/"
    1.10  WGET_URL="ftp://linux.pte.hu/pub/gtkdialog/$TARBALL"
    1.11 -#0.7.21 is 0.7.15 !! WGET_URL="http://www.sfr-fresh.com/unix/privat/$TARBALL"
    1.12  
    1.13  # Rules to configure and make the package.
    1.14  compile_rules()
    1.15  {
    1.16  	cd $src
    1.17 +	# Fix libgalde support
    1.18 +	patch -p 0 < ../stuff/glade_support.patch || exit 1
    1.19  	./configure \
    1.20  		--prefix=/usr \
    1.21  		--infodir=/usr/share/info \
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/gtkdialog/stuff/glade_support.patch	Mon Apr 06 18:58:40 2009 +0200
     2.3 @@ -0,0 +1,42 @@
     2.4 +--- src/glade_support.c	Fri Mar 16 15:25:49 2007
     2.5 ++++ src/glade_support.c	Mon Apr  6 17:08:47 2009
     2.6 +@@ -37,10 +37,10 @@
     2.7 +  *                                                                       *
     2.8 +  *                                                                       *
     2.9 +  *************************************************************************/
    2.10 +-typedef struct signal {
    2.11 ++typedef struct _signal {
    2.12 + 	gchar     *name;
    2.13 + 	GCallback callback;
    2.14 +-} signal;
    2.15 ++} _signal;
    2.16 + 
    2.17 + /*
    2.18 + ** Signal handler callbascks.
    2.19 +@@ -206,7 +206,7 @@
    2.20 + static gboolean
    2.21 + find_and_connect_handler(
    2.22 + 		GtkWidget *widget,
    2.23 +-		signal *signals,
    2.24 ++		_signal *signals,
    2.25 + 		const gchar *signal_name,
    2.26 + 		const gchar *handler_name)
    2.27 + {
    2.28 +@@ -288,7 +288,7 @@
    2.29 + 		gpointer user_data)
    2.30 + {
    2.31 + 	gint n;
    2.32 +-	signal entry_signals[] = {
    2.33 ++	_signal entry_signals[] = {
    2.34 + 		{ "activate",           (GCallback)on_any_entry_almost_any },
    2.35 + 		{ "backspace",          (GCallback)on_any_entry_almost_any },
    2.36 + 		{ "copy-clipboard",     (GCallback)on_any_entry_almost_any },
    2.37 +@@ -319,7 +319,7 @@
    2.38 + 		gpointer user_data)
    2.39 + {
    2.40 + 	variable *var;
    2.41 +-	signal widget_signals[] = {
    2.42 ++	_signal widget_signals[] = {
    2.43 + 		{ "accel-closures-changed",    (GCallback)on_any_widget_almost_any },
    2.44 + 		{ "composited-changed",        (GCallback)on_any_widget_almost_any },
    2.45 + 		{ "grab-focus",                (GCallback)on_any_widget_almost_any },