New package: gdmap-0.8.1
This commit is contained in:
parent
4e24ebe8e1
commit
2a3d08e722
2 changed files with 53 additions and 0 deletions
39
srcpkgs/gdmap/patches/gtk-fix.patch
Normal file
39
srcpkgs/gdmap/patches/gtk-fix.patch
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
--- src/gui_support.c 2008/05/23 14:54:28 1.2
|
||||||
|
+++ src/gui_support.c 2012/01/06 13:51:36 1.3
|
||||||
|
@@ -85,7 +85,11 @@
|
||||||
|
const char* text;
|
||||||
|
|
||||||
|
(void)event;
|
||||||
|
+#if GTK_CHECK_VERSION(2,20,0)
|
||||||
|
+ if (gtk_widget_get_sensitive(GTK_WIDGET(label))) {
|
||||||
|
+#else
|
||||||
|
if (GTK_WIDGET_SENSITIVE(label)) {
|
||||||
|
+#endif
|
||||||
|
char* temp;
|
||||||
|
|
||||||
|
text = g_object_get_data(G_OBJECT(label), "label");
|
||||||
|
@@ -129,7 +133,11 @@
|
||||||
|
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_CHECK_VERSION(2,20,0)
|
||||||
|
+ if (gtk_widget_get_sensitive(child) == set) return;
|
||||||
|
+#else
|
||||||
|
if (GTK_WIDGET_SENSITIVE(child) == set) return;
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
if (set && !callback) return;
|
||||||
|
gtk_widget_set_sensitive(child, set);
|
||||||
|
@@ -164,8 +172,11 @@
|
||||||
|
// GDK_FOCUS_CHANGE_MASK |
|
||||||
|
GDK_ENTER_NOTIFY_MASK |
|
||||||
|
GDK_LEAVE_NOTIFY_MASK);
|
||||||
|
+#if GTK_CHECK_VERSION(2,22,0)
|
||||||
|
+ gtk_widget_set_can_focus(ebox, TRUE);
|
||||||
|
+#else
|
||||||
|
GTK_WIDGET_SET_FLAGS(ebox, GTK_CAN_FOCUS);
|
||||||
|
-
|
||||||
|
+#endif
|
||||||
|
gtk_widget_show(ebox);
|
||||||
|
|
||||||
|
temp = g_strdup_printf(EVENT_FMT, text);
|
14
srcpkgs/gdmap/template
Normal file
14
srcpkgs/gdmap/template
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
# Template file for 'gdmap'
|
||||||
|
pkgname=gdmap
|
||||||
|
version=0.8.1
|
||||||
|
revision=1
|
||||||
|
build_style=gnu-configure
|
||||||
|
configure_args="LIBS=-lm"
|
||||||
|
hostmakedepends="pkg-config intltool"
|
||||||
|
makedepends="gtk+-devel libxml2-devel"
|
||||||
|
short_desc="Graphical Disk Map"
|
||||||
|
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
|
||||||
|
license="GPL-2"
|
||||||
|
homepage="http://gdmap.sourceforge.net/"
|
||||||
|
distfiles="http://downloads.sourceforge.net/sourceforge/gdmap/${pkgname}-${version}.tar.gz"
|
||||||
|
checksum=a200c98004b349443f853bf611e49941403fce46f2335850913f85c710a2285b
|
Loading…
Add table
Add a link
Reference in a new issue