summaryrefslogtreecommitdiffstats
path: root/x11-themes
diff options
context:
space:
mode:
authormezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059>2007-09-19 06:17:26 +0800
committermezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059>2007-09-19 06:17:26 +0800
commit3886828ab86d7b4bd88c490a8bb8a98083d6ec8a (patch)
tree1912ae245fc7b24e6780da02951359b020cb753c /x11-themes
parent7aaaacaf5e24fa6bd5faf4b09392641cecae675f (diff)
downloadmarcuscom-ports-3886828ab86d7b4bd88c490a8bb8a98083d6ec8a.tar.gz
marcuscom-ports-3886828ab86d7b4bd88c490a8bb8a98083d6ec8a.tar.zst
marcuscom-ports-3886828ab86d7b4bd88c490a8bb8a98083d6ec8a.zip
Update the tooltips definition for the new API.
Obtained from: Ubuntu Gutsy's ubuntulooks_0.9.12-6.diff.gz git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@9671 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'x11-themes')
-rw-r--r--x11-themes/ubuntulooks/Makefile26
-rw-r--r--x11-themes/ubuntulooks/distinfo3
-rw-r--r--x11-themes/ubuntulooks/files/patch-01_fix_listview_arrows_drawing13
-rw-r--r--x11-themes/ubuntulooks/files/patch-01_fix_tick_box_drawing87
-rw-r--r--x11-themes/ubuntulooks/files/patch-gtkrc18
-rw-r--r--x11-themes/ubuntulooks/pkg-descr3
-rw-r--r--x11-themes/ubuntulooks/pkg-plist5
7 files changed, 155 insertions, 0 deletions
diff --git a/x11-themes/ubuntulooks/Makefile b/x11-themes/ubuntulooks/Makefile
new file mode 100644
index 000000000..7da07165d
--- /dev/null
+++ b/x11-themes/ubuntulooks/Makefile
@@ -0,0 +1,26 @@
+# New ports collection makefile for: ubuntulooks
+# Date created: 2006-04-09
+# Whom: Phillip Neumann <pneumann@gmail.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= ubuntulooks
+PORTVERSION= 0.9.12
+PORTREVISION= 3
+CATEGORIES= x11-themes
+MASTER_SITES= http://archive.ubuntu.com/ubuntu/pool/main/u/ubuntulooks/
+DISTNAME= ${PORTNAME}_${PORTVERSION}.orig
+
+MAINTAINER= pneumann@gmail.com
+COMMENT= GTK+ 2.x engine from Ubuntu Dapper
+
+BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/gtk-engines-2.pc:${PORTSDIR}/x11-themes/gtk-engines2
+RUN_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/gtk-engines-2.pc:${PORTSDIR}/x11-themes/gtk-engines2
+
+GNU_CONFIGURE= yes
+USE_GMAKE= yes
+USE_GNOME= gtk20
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
+
+.include <bsd.port.mk>
diff --git a/x11-themes/ubuntulooks/distinfo b/x11-themes/ubuntulooks/distinfo
new file mode 100644
index 000000000..d12899ae2
--- /dev/null
+++ b/x11-themes/ubuntulooks/distinfo
@@ -0,0 +1,3 @@
+MD5 (ubuntulooks_0.9.12.orig.tar.gz) = 5ba7d915abe31870103aab5847278d13
+SHA256 (ubuntulooks_0.9.12.orig.tar.gz) = 88e3535c3c7a12c24b09fb057c2a6b52eb0d13f1b2fbdabb4a13bb7e164877fa
+SIZE (ubuntulooks_0.9.12.orig.tar.gz) = 345833
diff --git a/x11-themes/ubuntulooks/files/patch-01_fix_listview_arrows_drawing b/x11-themes/ubuntulooks/files/patch-01_fix_listview_arrows_drawing
new file mode 100644
index 000000000..84af052f1
--- /dev/null
+++ b/x11-themes/ubuntulooks/files/patch-01_fix_listview_arrows_drawing
@@ -0,0 +1,13 @@
+diff -Nur ubuntulooks-0.9.12/engine/src/ubuntulooks_style.c ubuntulooks-0.9.12.new/engine/src/ubuntulooks_style.c
+--- ubuntulooks-0.9.12/engine/src/ubuntulooks_style.c 2006-08-23 12:38:26.000000000 +0200
++++ engine/src/ubuntulooks_style.c 2007-02-12 17:28:36.000000000 +0100
+@@ -1084,6 +1084,9 @@
+
+ sanitize_size (window, &width, &height);
+
++ if (arrow_type == (GtkArrowType)4)
++ return;
++
+ if (DETAIL ("arrow"))
+ {
+ WidgetParameters params;
diff --git a/x11-themes/ubuntulooks/files/patch-01_fix_tick_box_drawing b/x11-themes/ubuntulooks/files/patch-01_fix_tick_box_drawing
new file mode 100644
index 000000000..31a701156
--- /dev/null
+++ b/x11-themes/ubuntulooks/files/patch-01_fix_tick_box_drawing
@@ -0,0 +1,87 @@
+diff -Nur ubuntulooks-0.9.12/engine/src/ubuntulooks_draw.c ubuntulooks-0.9.12.new/engine/src/ubuntulooks_draw.c
+--- ubuntulooks-0.9.12/engine/src/ubuntulooks_draw.c 2006-09-01 18:57:20.000000000 +0200
++++ engine/src/ubuntulooks_draw.c 2006-10-09 16:26:29.000000000 +0200
+@@ -1837,14 +1837,6 @@
+ cairo_pattern_t *pattern;
+ gboolean draw_bullet = (checkbox->shadow_type == GTK_SHADOW_IN);
+
+- /* sanitize size to be rectangular */
+- if (width > height) {
+- x += (width - height) / 2;
+- width = height;
+- } else if (height > width) {
+- y += (height - width) / 2;
+- height = width;
+- }
+
+ cairo_set_line_width (cr, 1.0);
+
+@@ -1947,8 +1939,6 @@
+
+ }
+
+- cairo_translate (cr, x, y);
+- cairo_scale (cr, width / 13.0, height / 13.0);
+ /* To offset this checkmark, one should probably use a translation */
+ if (draw_bullet)
+ {
+@@ -1961,7 +1951,7 @@
+ cairo_translate (cr, -2, -2);
+ }
+
+- cairo_move_to (cr, 4, 8);
++ cairo_move_to (cr, x + 4, y + 8);
+ cairo_rel_line_to (cr, 5, 4);
+ cairo_rel_curve_to (cr, 1.4, -5, -1, -1, 5.7, -12.5);
+ cairo_rel_curve_to (cr, -4, 4, -4, 4, -6.7, 9.3);
+@@ -1975,7 +1965,10 @@
+ }
+ else if (checkbox->shadow_type == GTK_SHADOW_ETCHED_IN)
+ {
+- cairo_rectangle (cr, 4.0, 6.0, 6, 2);
++ int c_x = x + (width/2) - 2;
++ int c_y = y + (height/2);
++
++ cairo_rectangle (cr, c_x, c_y, 6, 2);
+ cairo_set_source_rgb (cr, colors->text[widget->state_type].r,
+ colors->text[widget->state_type].g,
+ colors->text[widget->state_type].b);
+@@ -1993,15 +1986,7 @@
+ CairoColor border, top, bottom;
+ cairo_pattern_t *pattern;
+ gboolean draw_bullet = (checkbox->shadow_type == CL_SHADOW_IN || checkbox->shadow_type == CL_SHADOW_ETCHED_IN);
+- /* sanitize size to be rectangular */
+- if (width > height) {
+- x += (width - height) / 2;
+- width = height;
+- } else if (height > width) {
+- y += (height - width) / 2;
+- height = width;
+- }
+-
++
+ cairo_set_line_width (cr, 1.0);
+
+ if (checkbox->in_menu)
+@@ -2085,11 +2070,9 @@
+ cairo_stroke (cr);
+
+ // draw the bullet
+- cairo_translate (cr, x, y);
+- cairo_scale (cr, width / 13.0, height / 13.0);
+ if (draw_bullet)
+ {
+- cairo_arc (cr, 6.5, 6.5, 2.5, 0, 2 * M_PI);
++ cairo_arc (cr, x+width/2., y+height/2., 2.5, 0, 2 * M_PI);
+ if (widget->disabled)
+ {
+ cairo_set_source_rgb (cr, colors->text[widget->state_type].r,
+@@ -2098,7 +2081,7 @@
+ }
+ else
+ {
+- pattern = cairo_pattern_create_radial (5.25, 5.25, 0.1, 5.25, 5.25, 4);
++ pattern = cairo_pattern_create_radial (x+width/2. - 1.25, y+height/2. - 1.25, 0.1, x+width/2. - 1.25, y+height/2. - 1.25, 4);
+ cairo_pattern_add_color_stop_rgb (pattern, 0.0, 0.4, 0.4, 0.4);
+ cairo_pattern_add_color_stop_rgb (pattern, 1.0, colors->text[widget->state_type].r,
+ colors->text[widget->state_type].g,
diff --git a/x11-themes/ubuntulooks/files/patch-gtkrc b/x11-themes/ubuntulooks/files/patch-gtkrc
new file mode 100644
index 000000000..ddb5b4b7f
--- /dev/null
+++ b/x11-themes/ubuntulooks/files/patch-gtkrc
@@ -0,0 +1,18 @@
+--- themes/Human/gtk-2.0/gtkrc.orig
++++ themes/Human/gtk-2.0/gtkrc
+@@ -7,6 +7,7 @@
+ #
+ # Feel free to modify and share!
+
++gtk-icon-sizes = "panel-menu=24,24"
+
+ style "clearlooks-default"
+ {
+@@ -219,6 +220,7 @@
+ # tooltips stuff
+ widget_class "*.tooltips.*.GtkToggleButton" style "clearlooks-tasklist"
+ widget "gtk-tooltips" style "clearlooks-tooltips"
++widget "gtk-tooltip" style "clearlooks-tooltips"
+
+ # treeview stuff
+ widget_class "*.GtkTreeView.GtkButton" style "clearlooks-tree"
diff --git a/x11-themes/ubuntulooks/pkg-descr b/x11-themes/ubuntulooks/pkg-descr
new file mode 100644
index 000000000..f3b6cede4
--- /dev/null
+++ b/x11-themes/ubuntulooks/pkg-descr
@@ -0,0 +1,3 @@
+This is a GTK+ 2.x engine from Ubuntu Dapper. It features a modern look.
+
+WWW: http://packages.ubuntu.com/feisty/source/ubuntulooks
diff --git a/x11-themes/ubuntulooks/pkg-plist b/x11-themes/ubuntulooks/pkg-plist
new file mode 100644
index 000000000..c41da6283
--- /dev/null
+++ b/x11-themes/ubuntulooks/pkg-plist
@@ -0,0 +1,5 @@
+lib/gtk-2.0/%%GTK2_VERSION%%/engines/libubuntulooks.so
+lib/gtk-2.0/%%GTK2_VERSION%%/engines/libubuntulooks.la
+share/themes/Human/gtk-2.0/gtkrc
+@dirrm share/themes/Human/gtk-2.0
+@dirrm share/themes/Human