aboutsummaryrefslogtreecommitdiffstats
path: root/x11-themes
diff options
context:
space:
mode:
authorlofi <lofi@FreeBSD.org>2004-05-31 09:45:33 +0800
committerlofi <lofi@FreeBSD.org>2004-05-31 09:45:33 +0800
commit8c273b26a11b303bd943a426b78a9b1319b7ecc9 (patch)
tree43eb1032f7684cecaeffc50ab26e6de8ac93843e /x11-themes
parent45e3762303a20fe2a238c49e4a7727f6e8b86ed0 (diff)
downloadfreebsd-ports-graphics-8c273b26a11b303bd943a426b78a9b1319b7ecc9.tar.gz
freebsd-ports-graphics-8c273b26a11b303bd943a426b78a9b1319b7ecc9.tar.zst
freebsd-ports-graphics-8c273b26a11b303bd943a426b78a9b1319b7ecc9.zip
Unbreak on 4.x and get rid of USE_GCC.
Diffstat (limited to 'x11-themes')
-rw-r--r--x11-themes/gtk-qt-engine/Makefile1
-rw-r--r--x11-themes/gtk-qt-engine/files/patch-qt_theme_draw.c87
-rw-r--r--x11-themes/gtk-qt4-engine/Makefile1
-rw-r--r--x11-themes/gtk-qt4-engine/files/patch-qt_theme_draw.c87
4 files changed, 156 insertions, 20 deletions
diff --git a/x11-themes/gtk-qt-engine/Makefile b/x11-themes/gtk-qt-engine/Makefile
index 990a921af5c..20d87725248 100644
--- a/x11-themes/gtk-qt-engine/Makefile
+++ b/x11-themes/gtk-qt-engine/Makefile
@@ -20,7 +20,6 @@ USE_LIBTOOL_VER= 13
WANT_GNOME= no
USE_GNOME= gnomehack gtk20
USE_QT_VER= 3
-USE_GCC= 3.3
USE_REINPLACE= yes
PLIST_SUB= GTK_VER=2.4.0
diff --git a/x11-themes/gtk-qt-engine/files/patch-qt_theme_draw.c b/x11-themes/gtk-qt-engine/files/patch-qt_theme_draw.c
index 665215cd1b4..a0d3b600d86 100644
--- a/x11-themes/gtk-qt-engine/files/patch-qt_theme_draw.c
+++ b/x11-themes/gtk-qt-engine/files/patch-qt_theme_draw.c
@@ -1,9 +1,78 @@
---- qt_theme_draw.c.orig Mon Feb 9 19:50:12 2004
-+++ qt_theme_draw.c Tue Mar 30 02:09:08 2004
-@@ -1,5 +1,6 @@
- #include <math.h>
- #include <string.h>
-+#include <gdk/gdk.h>
- #include <gtk/gtkprogressbar.h>
- #include <gtk/gtkrange.h>
- #include <gtk/gtknotebook.h>
+--- qt_theme_draw.c.orig Mon May 31 01:16:28 2004
++++ qt_theme_draw.c Mon May 31 03:19:50 2004
+@@ -257,6 +256,9 @@
+ gint height)
+ {
+
++GdkGC *gc1 = NULL;
++GdkGC *gc2 = NULL;
++
+ if (!widget) return;
+
+ sanitize_size(window, &width, &height);
+@@ -300,8 +302,6 @@
+ }
+
+ return;
+- GdkGC *gc1 = NULL;
+- GdkGC *gc2 = NULL;
+
+ g_return_if_fail(style != NULL);
+ g_return_if_fail(window != NULL);
+@@ -687,9 +687,6 @@
+ GtkArrowType arrow_type,
+ gint fill, gint x, gint y, gint width, gint height)
+ {
+- if (DETAIL("hscrollbar") || DETAIL("vscrollbar"))
+- return;
+- /*printf("Arrow (%d,%d,%d,%d) Widget: %s Detail: %s\n",x,y,width,height,gtk_widget_get_name(widget),detail);*/
+ GdkGC *gc1;
+ GdkGC *gc2;
+ GdkGC *gc3;
+@@ -698,6 +695,10 @@
+ gint half_height;
+ gint ax, ay, aw, ah;
+
++ if (DETAIL("hscrollbar") || DETAIL("vscrollbar"))
++ return;
++ /*printf("Arrow (%d,%d,%d,%d) Widget: %s Detail: %s\n",x,y,width,height,gtk_widget_get_name(widget),detail);*/
++
+ g_return_if_fail(style != NULL);
+ g_return_if_fail(window != NULL);
+
+@@ -1095,7 +1096,10 @@
+ gint y,
+ gint width,
+ gint height)
+-{
++{
++ GdkGC *light_gc, *dark_gc;
++ GtkOrientation orientation;
++
+ sanitize_size(window, &width, &height);
+ /*printf("Box (%d,%d,%d,%d) Widget: %s Detail: %s\n",x,y,width,height,gtk_widget_get_name(widget),detail);*/
+ if (WIDGET("GtkHScrollbar") || WIDGET("GtkVScrollbar"))
+@@ -1136,9 +1140,6 @@
+
+ /*printf("Box (%d,%d,%d,%d) Widget: %s Detail: %s\n",x,y,width,height,gtk_widget_get_name(widget),detail);*/
+
+- GdkGC *light_gc, *dark_gc;
+- GtkOrientation orientation;
+-
+ g_return_if_fail(style != NULL);
+ g_return_if_fail(window != NULL);
+
+@@ -1716,12 +1717,12 @@
+ gint height,
+ GtkOrientation orientation)
+ {
+- return;
+ GdkPoint pointsh[7];
+ GdkRegion *clipreg;
+ GdkRectangle rec;
+ int i, rect = FALSE, midlines = MARKS_SLASH;
+ int modx, mody;
++ return;
+
+
+ g_return_if_fail(style != NULL);
diff --git a/x11-themes/gtk-qt4-engine/Makefile b/x11-themes/gtk-qt4-engine/Makefile
index 990a921af5c..20d87725248 100644
--- a/x11-themes/gtk-qt4-engine/Makefile
+++ b/x11-themes/gtk-qt4-engine/Makefile
@@ -20,7 +20,6 @@ USE_LIBTOOL_VER= 13
WANT_GNOME= no
USE_GNOME= gnomehack gtk20
USE_QT_VER= 3
-USE_GCC= 3.3
USE_REINPLACE= yes
PLIST_SUB= GTK_VER=2.4.0
diff --git a/x11-themes/gtk-qt4-engine/files/patch-qt_theme_draw.c b/x11-themes/gtk-qt4-engine/files/patch-qt_theme_draw.c
index 665215cd1b4..a0d3b600d86 100644
--- a/x11-themes/gtk-qt4-engine/files/patch-qt_theme_draw.c
+++ b/x11-themes/gtk-qt4-engine/files/patch-qt_theme_draw.c
@@ -1,9 +1,78 @@
---- qt_theme_draw.c.orig Mon Feb 9 19:50:12 2004
-+++ qt_theme_draw.c Tue Mar 30 02:09:08 2004
-@@ -1,5 +1,6 @@
- #include <math.h>
- #include <string.h>
-+#include <gdk/gdk.h>
- #include <gtk/gtkprogressbar.h>
- #include <gtk/gtkrange.h>
- #include <gtk/gtknotebook.h>
+--- qt_theme_draw.c.orig Mon May 31 01:16:28 2004
++++ qt_theme_draw.c Mon May 31 03:19:50 2004
+@@ -257,6 +256,9 @@
+ gint height)
+ {
+
++GdkGC *gc1 = NULL;
++GdkGC *gc2 = NULL;
++
+ if (!widget) return;
+
+ sanitize_size(window, &width, &height);
+@@ -300,8 +302,6 @@
+ }
+
+ return;
+- GdkGC *gc1 = NULL;
+- GdkGC *gc2 = NULL;
+
+ g_return_if_fail(style != NULL);
+ g_return_if_fail(window != NULL);
+@@ -687,9 +687,6 @@
+ GtkArrowType arrow_type,
+ gint fill, gint x, gint y, gint width, gint height)
+ {
+- if (DETAIL("hscrollbar") || DETAIL("vscrollbar"))
+- return;
+- /*printf("Arrow (%d,%d,%d,%d) Widget: %s Detail: %s\n",x,y,width,height,gtk_widget_get_name(widget),detail);*/
+ GdkGC *gc1;
+ GdkGC *gc2;
+ GdkGC *gc3;
+@@ -698,6 +695,10 @@
+ gint half_height;
+ gint ax, ay, aw, ah;
+
++ if (DETAIL("hscrollbar") || DETAIL("vscrollbar"))
++ return;
++ /*printf("Arrow (%d,%d,%d,%d) Widget: %s Detail: %s\n",x,y,width,height,gtk_widget_get_name(widget),detail);*/
++
+ g_return_if_fail(style != NULL);
+ g_return_if_fail(window != NULL);
+
+@@ -1095,7 +1096,10 @@
+ gint y,
+ gint width,
+ gint height)
+-{
++{
++ GdkGC *light_gc, *dark_gc;
++ GtkOrientation orientation;
++
+ sanitize_size(window, &width, &height);
+ /*printf("Box (%d,%d,%d,%d) Widget: %s Detail: %s\n",x,y,width,height,gtk_widget_get_name(widget),detail);*/
+ if (WIDGET("GtkHScrollbar") || WIDGET("GtkVScrollbar"))
+@@ -1136,9 +1140,6 @@
+
+ /*printf("Box (%d,%d,%d,%d) Widget: %s Detail: %s\n",x,y,width,height,gtk_widget_get_name(widget),detail);*/
+
+- GdkGC *light_gc, *dark_gc;
+- GtkOrientation orientation;
+-
+ g_return_if_fail(style != NULL);
+ g_return_if_fail(window != NULL);
+
+@@ -1716,12 +1717,12 @@
+ gint height,
+ GtkOrientation orientation)
+ {
+- return;
+ GdkPoint pointsh[7];
+ GdkRegion *clipreg;
+ GdkRectangle rec;
+ int i, rect = FALSE, midlines = MARKS_SLASH;
+ int modx, mody;
++ return;
+
+
+ g_return_if_fail(style != NULL);