summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--x11-toolkits/gdl/Makefile1
-rw-r--r--x11-toolkits/gdl/files/patch-gdl_gdl-switcher.c10
2 files changed, 11 insertions, 0 deletions
diff --git a/x11-toolkits/gdl/Makefile b/x11-toolkits/gdl/Makefile
index c1a3be7121d4..03be665bf16e 100644
--- a/x11-toolkits/gdl/Makefile
+++ b/x11-toolkits/gdl/Makefile
@@ -8,6 +8,7 @@
PORTNAME= gdl
PORTVERSION= 0.7.6
+PORTREVISION= 1
CATEGORIES= x11-toolkits gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/${PORTNAME}/${PORTVERSION:R}
diff --git a/x11-toolkits/gdl/files/patch-gdl_gdl-switcher.c b/x11-toolkits/gdl/files/patch-gdl_gdl-switcher.c
new file mode 100644
index 000000000000..53f0d747c7cd
--- /dev/null
+++ b/x11-toolkits/gdl/files/patch-gdl_gdl-switcher.c
@@ -0,0 +1,10 @@
+--- gdl/gdl-switcher.c.orig Tue Jul 10 00:35:38 2007
++++ gdl/gdl-switcher.c Tue Jul 10 00:34:14 2007
+@@ -285,6 +285,7 @@ layout_buttons (GdlSwitcher *switcher)
+ }
+
+ rows_count = num_btns / btns_per_row;
++ rows_count += (num_btns % btns_per_row == 0) ? 0 : 1;
+
+ /* Assign buttons to rows */
+ rows = g_new0 (GSList *, rows_count);