From 0fbbce227621fef5be1bc3190147eb99c7363725 Mon Sep 17 00:00:00 2001 From: Michael Johnson Date: Sun, 27 Feb 2005 08:45:24 +0000 Subject: [PATCH] Add x11-themes/clearlooks This is a GTK+ 2.x engine based on Bluecurve. It features a modern look without sacrificing (much) speed. --- x11-themes/Makefile | 1 + x11-themes/clearlooks/Makefile | 25 +++++++++ x11-themes/clearlooks/distinfo | 2 + .../files/patch-src_clearlooks_draw.c | 56 +++++++++++++++++++ .../files/patch-src_clearlooks_style.c | 53 ++++++++++++++++++ .../clearlooks/files/patch-src_support.c | 13 +++++ ...h-themes_Clearlooks_metacity-1_Makefile.in | 11 ++++ x11-themes/clearlooks/pkg-descr | 4 ++ x11-themes/clearlooks/pkg-plist | 14 +++++ 9 files changed, 179 insertions(+) create mode 100644 x11-themes/clearlooks/Makefile create mode 100644 x11-themes/clearlooks/distinfo create mode 100644 x11-themes/clearlooks/files/patch-src_clearlooks_draw.c create mode 100644 x11-themes/clearlooks/files/patch-src_clearlooks_style.c create mode 100644 x11-themes/clearlooks/files/patch-src_support.c create mode 100644 x11-themes/clearlooks/files/patch-themes_Clearlooks_metacity-1_Makefile.in create mode 100644 x11-themes/clearlooks/pkg-descr create mode 100644 x11-themes/clearlooks/pkg-plist diff --git a/x11-themes/Makefile b/x11-themes/Makefile index 4d38d432eb93..8da1bf836f77 100644 --- a/x11-themes/Makefile +++ b/x11-themes/Makefile @@ -7,6 +7,7 @@ SUBDIR += baghira SUBDIR += buffy SUBDIR += clean-theme-gtk + SUBDIR += clearlooks SUBDIR += colorstep SUBDIR += engradient SUBDIR += enlightenment-theme-BlueSteel diff --git a/x11-themes/clearlooks/Makefile b/x11-themes/clearlooks/Makefile new file mode 100644 index 000000000000..df56467d8bf4 --- /dev/null +++ b/x11-themes/clearlooks/Makefile @@ -0,0 +1,25 @@ +# New ports collection makefile for: clearlooks +# Date created: 2005-02-26 +# Whom: Michael Johnson +# +# $FreeBSD$ +# + +PORTNAME= clearlooks +PORTVERSION= 0.3 +CATEGORIES= x11-themes +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= clearlooks + +MAINTAINER= ahze@FreeBSD.org +COMMENT= GTK+ 2.x engine based on Bluecurve + +USE_BZIP2= yes +USE_LIBTOOL_VER=15 +USE_GNOME= gtk20 gnomehier +USE_X_PREFIX= yes + +CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include" \ + LDFLAGS="-L${X11BASE}/lib" + +.include diff --git a/x11-themes/clearlooks/distinfo b/x11-themes/clearlooks/distinfo new file mode 100644 index 000000000000..734772940c63 --- /dev/null +++ b/x11-themes/clearlooks/distinfo @@ -0,0 +1,2 @@ +MD5 (clearlooks-0.3.tar.bz2) = 516402d838b965130bd1cb439c294313 +SIZE (clearlooks-0.3.tar.bz2) = 250513 diff --git a/x11-themes/clearlooks/files/patch-src_clearlooks_draw.c b/x11-themes/clearlooks/files/patch-src_clearlooks_draw.c new file mode 100644 index 000000000000..86ad6ee38dff --- /dev/null +++ b/x11-themes/clearlooks/files/patch-src_clearlooks_draw.c @@ -0,0 +1,56 @@ +--- src/clearlooks_draw.c.orig Thu Feb 24 09:15:18 2005 ++++ src/clearlooks_draw.c Sun Feb 27 01:51:30 2005 +@@ -57,16 +57,16 @@ + int x, int y, int width, int height, + GdkColor *left_color, GdkColor *right_color) + { +- if ( left_color == NULL || right_color == NULL ) +- { +- gdk_draw_rectangle (drawable, gc, TRUE, x, y, width, height); +- return; +- } + + int i; + GdkColor col; + int dr, dg, db; + GdkGCValues old_values; ++ if ( left_color == NULL || right_color == NULL ) ++ { ++ gdk_draw_rectangle (drawable, gc, TRUE, x, y, width, height); ++ return; ++ } + + gdk_gc_get_values (gc, &old_values); + +@@ -179,10 +179,10 @@ + void cl_draw_borders (GdkWindow *window, GtkWidget *widget, GtkStyle *style, + int x, int y, int width, int height, CLRectangle *r) + { ++ int x1, y1, x2, y2, i; + if (r->bordergc == NULL) + return; + +- int x1, y1, x2, y2, i; + for ( i=0; i<4; i++) // draw all four borders + corners + { + cl_get_coords (i, x, y, width, height, r, &x1, &y1, &x2, &y2); +@@ -261,9 +261,6 @@ + int x, int y, int width, int height, + CLRectangle *r, CLCornerSide corner) + { +- if (r->corners[corner] == CL_CORNER_NONE) +- return; +- + GdkColor *color; + GdkColor aacolor; // anti-aliasing color + GdkGCValues values; +@@ -271,6 +268,9 @@ + + int x1; + int y1; ++ ++ if (r->corners[corner] == CL_CORNER_NONE) ++ return; + + color = cl_get_gradient_corner_color (r, corner); + gdk_gc_get_values (r->bordergc, &values); diff --git a/x11-themes/clearlooks/files/patch-src_clearlooks_style.c b/x11-themes/clearlooks/files/patch-src_clearlooks_style.c new file mode 100644 index 000000000000..87d703f198a8 --- /dev/null +++ b/x11-themes/clearlooks/files/patch-src_clearlooks_style.c @@ -0,0 +1,53 @@ +--- src/clearlooks_style.c.orig Sun Feb 27 01:45:14 2005 ++++ src/clearlooks_style.c Sun Feb 27 01:46:52 2005 +@@ -487,14 +487,14 @@ + + if (DETAIL ("tab")) + { ++ GdkColor tmp_color; + GdkRectangle new_area; + + cl_rectangle_set_button (&r, style, state_type, FALSE, + CL_CORNER_ROUND, CL_CORNER_ROUND, + CL_CORNER_ROUND, CL_CORNER_ROUND); +- +- GdkColor tmp_color; + ++ + if (state_type == GTK_STATE_ACTIVE) + shade (&style->bg[state_type], &tmp_color, 1.08); + else +@@ -754,6 +754,7 @@ + if (widget && DETAIL ("button") && widget->parent && + (GTK_IS_TREE_VIEW(widget->parent) || GTK_IS_CLIST (widget->parent))) // headers + { ++ int nwidth; + gint columns = 0, column_index = 0; + + if ( width < 2 || height < 2 ) +@@ -762,7 +763,7 @@ + if (GTK_IS_TREE_VIEW (widget->parent)) + gtk_treeview_get_header_index (widget->parent, widget, &column_index, &columns); + +- int nwidth = (column_index == columns-1) ? width : width+1; ++ nwidth = (column_index == columns-1) ? width : width+1; + + cl_rectangle_set_button (&r, style, state_type, FALSE, + CL_CORNER_NONE, CL_CORNER_NONE, +@@ -1074,6 +1075,7 @@ + } + else if (DETAIL ("menuitem")) + { ++ int corner; + gboolean menubar = (widget->parent && GTK_IS_MENU_BAR(widget->parent)) ? TRUE : FALSE; + gboolean flatmenu = FALSE; + +@@ -1081,7 +1083,7 @@ + + shade (clearlooks_get_spot_color (CLEARLOOKS_RC_STYLE (style->rc_style)), &inner_lower, 1.3); + +- int corner = CL_CORNER_NARROW; ++ corner = CL_CORNER_NARROW; + + if (menubar) + { diff --git a/x11-themes/clearlooks/files/patch-src_support.c b/x11-themes/clearlooks/files/patch-src_support.c new file mode 100644 index 000000000000..f56141ff8e73 --- /dev/null +++ b/x11-themes/clearlooks/files/patch-src_support.c @@ -0,0 +1,13 @@ +--- src/support.c.orig Sat Feb 19 06:50:22 2005 ++++ src/support.c Sun Feb 27 01:44:57 2005 +@@ -503,8 +503,9 @@ + static void gtk_treeview_get_header_index (GtkWidget *tv, GtkWidget *header, + gint *column_index, gint *columns) + { ++ GList *list; + *column_index = *columns = 0; +- GList *list = gtk_tree_view_get_columns (GTK_TREE_VIEW (tv)); ++ list = gtk_tree_view_get_columns (GTK_TREE_VIEW (tv)); + + do + { diff --git a/x11-themes/clearlooks/files/patch-themes_Clearlooks_metacity-1_Makefile.in b/x11-themes/clearlooks/files/patch-themes_Clearlooks_metacity-1_Makefile.in new file mode 100644 index 000000000000..12ccb8da61cf --- /dev/null +++ b/x11-themes/clearlooks/files/patch-themes_Clearlooks_metacity-1_Makefile.in @@ -0,0 +1,11 @@ +--- themes/Clearlooks/metacity-1/Makefile.in.orig Thu Feb 24 14:17:48 2005 ++++ themes/Clearlooks/metacity-1/Makefile.in Sun Feb 27 03:36:18 2005 +@@ -171,7 +171,7 @@ + target_alias = @target_alias@ + gnome_data = @gnome_prefix@/share + dummy = +-themedir = $(gnome_data)/themes/Clearlooks/metacity-1 ++themedir = @prefix@/share/gnome/themes/Clearlooks/metacity-1 + theme_DATA = metacity-theme-1.xml + EXTRA_DIST = metacity-theme-1.xml + all: all-am diff --git a/x11-themes/clearlooks/pkg-descr b/x11-themes/clearlooks/pkg-descr new file mode 100644 index 000000000000..5e61d66dd48f --- /dev/null +++ b/x11-themes/clearlooks/pkg-descr @@ -0,0 +1,4 @@ +This is a GTK+ 2.x engine based on Bluecurve. It features a modern look +without sacrificing (much) speed. + +WWW: http://sourceforge.net/projects/clearlooks diff --git a/x11-themes/clearlooks/pkg-plist b/x11-themes/clearlooks/pkg-plist new file mode 100644 index 000000000000..9bd1ec84d3c7 --- /dev/null +++ b/x11-themes/clearlooks/pkg-plist @@ -0,0 +1,14 @@ +lib/gtk-2.0/2.4.0/engines/libclearlooks.so +share/themes/Clearlooks-DeepSky/gtk-2.0/gtkrc +share/themes/Clearlooks-Olive/gtk-2.0/gtkrc +share/themes/Clearlooks/gtk-2.0/gtkrc +share/themes/Clearlooks/index.theme +share/gnome/themes/Clearlooks/metacity-1/metacity-theme-1.xml +@dirrm share/gnome/themes/Clearlooks/metacity-1 +@dirrm share/gnome/themes/Clearlooks +@dirrm share/themes/Clearlooks/gtk-2.0 +@dirrm share/themes/Clearlooks-Olive/gtk-2.0 +@dirrm share/themes/Clearlooks-Olive +@dirrm share/themes/Clearlooks-DeepSky/gtk-2.0 +@dirrm share/themes/Clearlooks-DeepSky +@dirrm share/themes/Clearlooks