diff options
-rw-r--r-- | x11-themes/gtk-engines2/files/patch-engines_clearlooks_src_clearlooks_draw.c | 19 | ||||
-rw-r--r-- | x11-themes/gtk-engines2/files/patch-engines_clearlooks_src_clearlooks_style.c | 24 |
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; |