summaryrefslogtreecommitdiff
path: root/community/gdmap
diff options
context:
space:
mode:
Diffstat (limited to 'community/gdmap')
-rw-r--r--community/gdmap/ChangeLog5
-rw-r--r--community/gdmap/PKGBUILD30
-rw-r--r--community/gdmap/fix_deprecated_GTK_WIDGET_SENSITIVE.diff30
3 files changed, 65 insertions, 0 deletions
diff --git a/community/gdmap/ChangeLog b/community/gdmap/ChangeLog
new file mode 100644
index 000000000..a1c404807
--- /dev/null
+++ b/community/gdmap/ChangeLog
@@ -0,0 +1,5 @@
+2007-06-28 Dragonlord <dragonlord@aur.archlinux.orgtardo@nagi-fanboi.net>
+ * updated to major release 0.8.1
+
+2007-06-28 tardo <tardo@nagi-fanboi.net>
+ * Built for x86_64
diff --git a/community/gdmap/PKGBUILD b/community/gdmap/PKGBUILD
new file mode 100644
index 000000000..6295d89d7
--- /dev/null
+++ b/community/gdmap/PKGBUILD
@@ -0,0 +1,30 @@
+# $Id: PKGBUILD 22488 2010-07-21 22:10:21Z lcarlier $
+# Maintainer: Roman Kyrylych <Roman.Kyrylych@gmail.com>
+
+pkgname=gdmap
+pkgver=0.8.1
+pkgrel=2
+pkgdesc="Tool to inspect the used space of folders."
+arch=('i686' 'x86_64')
+url="http://gdmap.sourceforge.net"
+license=('GPL')
+depends=('gtk2' 'glib2' 'libxml2')
+makedepends=('gettext' 'intltool')
+source=(http://downloads.sourceforge.net/sourceforge/gdmap/$pkgname-$pkgver.tar.gz \
+ fix_deprecated_GTK_WIDGET_SENSITIVE.diff)
+md5sums=('54b43354dbe774810104607ad1eaaed3'
+ '98bf658a1994a5e6b7aafc738640d05b')
+
+build() {
+ cd ${srcdir}/gdmap-$pkgver
+
+ patch -p1 < ../fix_deprecated_GTK_WIDGET_SENSITIVE.diff
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd ${srcdir}/gdmap-$pkgver
+
+ make DESTDIR=${pkgdir} install
+}
diff --git a/community/gdmap/fix_deprecated_GTK_WIDGET_SENSITIVE.diff b/community/gdmap/fix_deprecated_GTK_WIDGET_SENSITIVE.diff
new file mode 100644
index 000000000..38122ed96
--- /dev/null
+++ b/community/gdmap/fix_deprecated_GTK_WIDGET_SENSITIVE.diff
@@ -0,0 +1,30 @@
+diff -ur ../gdmap-0.8.1/src/gui_support.c .//src/gui_support.c
+--- ../gdmap-0.8.1/src/gui_support.c 2008-05-23 09:54:28.000000000 -0500
++++ .//src/gui_support.c 2010-07-22 02:52:43.489842704 -0500
+@@ -85,7 +85,7 @@
+ const char* text;
+
+ (void)event;
+- if (GTK_WIDGET_SENSITIVE(label)) {
++ if (gtk_widget_get_sensitive(label)) {
+ char* temp;
+
+ text = g_object_get_data(G_OBJECT(label), "label");
+@@ -106,7 +106,7 @@
+
+ (void)event;
+ // if (GTK_WIDGET_HAS_FOCUS(gtk_widget_get_parent(GTK_WIDGET(label)))) return TRUE;
+-/* if (GTK_WIDGET_SENSITIVE(label)) { */
++/* if (gtk_widget_get_sensitive(label)) { */
+ text = g_object_get_data(G_OBJECT(label), "label");
+ temp = g_strdup_printf(EVENT_FMT, text);
+ gtk_label_set_markup(label, temp);
+@@ -129,7 +129,7 @@
+ void ui_event_label_set_sensitive(GtkWidget* ebox, gboolean set) {
+ gpointer callback = g_object_get_data(G_OBJECT(ebox), "callback");
+ GtkWidget* child = GTK_BIN(ebox)->child;
+- if (GTK_WIDGET_SENSITIVE(child) == set) return;
++ if (gtk_widget_get_sensitive(child) == set) return;
+
+ if (set && !callback) return;
+ gtk_widget_set_sensitive(child, set);