aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2006-03-16 23:34:28 +0800
committerpav <pav@FreeBSD.org>2006-03-16 23:34:28 +0800
commit66f3b0480787ba14eadf2e55161bf72b32b6fc84 (patch)
treed8ab8e920c1f56ca1b42760a61f2a5761afcbc09
parent025a17cd36faad715e918d56baa2c1b2fee4e138 (diff)
downloadfreebsd-ports-gnome-66f3b0480787ba14eadf2e55161bf72b32b6fc84.tar.gz
freebsd-ports-gnome-66f3b0480787ba14eadf2e55161bf72b32b6fc84.tar.zst
freebsd-ports-gnome-66f3b0480787ba14eadf2e55161bf72b32b6fc84.zip
- Fix build on FreeBSD 4.X
PR: ports/94527 Submitted by: Tod McQuillin <devin@spamcop.net>
-rw-r--r--x11-themes/gtk-engines2/files/patch-engines_clearlooks_src_clearlooks_draw.c19
-rw-r--r--x11-themes/gtk-engines2/files/patch-engines_clearlooks_src_clearlooks_style.c24
2 files changed, 43 insertions, 0 deletions
diff --git a/x11-themes/gtk-engines2/files/patch-engines_clearlooks_src_clearlooks_draw.c b/x11-themes/gtk-engines2/files/patch-engines_clearlooks_src_clearlooks_draw.c
new file mode 100644
index 000000000000..556c3ecad0a6
--- /dev/null
+++ b/x11-themes/gtk-engines2/files/patch-engines_clearlooks_src_clearlooks_draw.c
@@ -0,0 +1,19 @@
+--- engines/clearlooks/src/clearlooks_draw.c- Sat Mar 11 21:18:32 2006
++++ engines/clearlooks/src/clearlooks_draw.c Thu Mar 16 11:29:03 2006
+@@ -725,13 +725,14 @@
+ gboolean has_focus = widget && GTK_WIDGET_HAS_FOCUS (widget);
+
+ int cl, cr;
+-
++ GdkGC *bg_gc;
++
+ rtl = cl_get_parent_direction (widget) == GTK_TEXT_DIR_RTL;
+
+ cl = rtl ? CL_CORNER_NONE : CL_CORNER_ROUND;
+ cr = rtl ? CL_CORNER_ROUND : CL_CORNER_NONE;
+
+- GdkGC *bg_gc = cl_get_window_bg_gc(widget, style);
++ bg_gc = cl_get_window_bg_gc(widget, style);
+
+ if (rtl)
+ {
diff --git a/x11-themes/gtk-engines2/files/patch-engines_clearlooks_src_clearlooks_style.c b/x11-themes/gtk-engines2/files/patch-engines_clearlooks_src_clearlooks_style.c
new file mode 100644
index 000000000000..210c449a69f6
--- /dev/null
+++ b/x11-themes/gtk-engines2/files/patch-engines_clearlooks_src_clearlooks_style.c
@@ -0,0 +1,24 @@
+--- engines/clearlooks/src/clearlooks_style.c- Sat Mar 11 21:14:40 2006
++++ engines/clearlooks/src/clearlooks_style.c Thu Mar 16 11:29:07 2006
+@@ -980,14 +980,17 @@
+ *shadow = clearlooks_style->shade_gc[4];
+ GdkColor upper_color = *clearlooks_get_spot_color (CLEARLOOKS_RC_STYLE (style->rc_style)),
+ lower_color;
+-
++ GtkAdjustment *adjustment;
++ GtkOrientation orientation;
++ gint fill_size;
++
+ gtk_widget_style_get (widget, "slider-length", &slider_length, NULL);
+
+- GtkAdjustment *adjustment = gtk_range_get_adjustment (GTK_RANGE (widget));
++ adjustment = gtk_range_get_adjustment (GTK_RANGE (widget));
+
+- GtkOrientation orientation = GTK_RANGE (widget)->orientation;
++ orientation = GTK_RANGE (widget)->orientation;
+
+- gint fill_size = ((orientation ? height : width) - slider_length) *
++ fill_size = ((orientation ? height : width) - slider_length) *
+ (1 / ((adjustment->upper - adjustment->lower) /
+ (adjustment->value - adjustment->lower)))
+ + slider_length / 2;