murrine r101 - in trunk: . src
- From: acimitan svn gnome org
- To: svn-commits-list gnome org
- Subject: murrine r101 - in trunk: . src
- Date: Sun, 28 Dec 2008 01:25:38 +0000 (UTC)
Author: acimitan
Date: Sun Dec 28 01:25:38 2008
New Revision: 101
URL: http://svn.gnome.org/viewvc/murrine?rev=101&view=rev
Log:
2008-12-28 Andrea Cimitan <andrea cimitan gmail com>
* src/murrine_draw_rgba.c (murrine_rgba_draw_scrollbar_slider):
Draw rounded scrollbars sliders when GtkRange::trough-border > 0
Modified:
trunk/ChangeLog
trunk/src/murrine_draw_rgba.c
Modified: trunk/src/murrine_draw_rgba.c
==============================================================================
--- trunk/src/murrine_draw_rgba.c (original)
+++ trunk/src/murrine_draw_rgba.c Sun Dec 28 01:25:38 2008
@@ -1169,11 +1169,7 @@
cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE);
- murrine_set_color_rgb (cr, &border);
- murrine_rounded_rectangle_fast (cr, 0.5, 0.5, width-1, height-1, widget->corners);
- cairo_stroke (cr);
-
- cairo_rectangle (cr, 1, 1, width-2, height-2);
+ murrine_rounded_rectangle_closed (cr, 1, 1, width-2, height-2, widget->roundness, widget->corners);
murrine_draw_glaze (cr, &fill, widget->highlight_ratio, widget->lightborder_ratio,
widget->mrn_gradient, widget, 1, 1, width-2, height-2,
@@ -1247,19 +1243,22 @@
/* Draw the handle */
if (scrollbar->style > 0 && scrollbar->style % 2 == 0)
{
- int bar_x = width/2 - 4;
- cairo_translate (cr, 0.5, 0.5);
+ double bar_x = width/2-4.5;
int i;
for (i=0; i<3; i++)
{
- cairo_move_to (cr, bar_x, 4.5);
- cairo_line_to (cr, bar_x, height-5.5);
+ cairo_move_to (cr, bar_x, 5);
+ cairo_line_to (cr, bar_x, height-5);
murrine_set_color_rgb (cr, &border);
cairo_stroke (cr);
bar_x += 3;
}
}
+
+ murrine_set_color_rgb (cr, &border);
+ murrine_rounded_rectangle (cr, 0.5, 0.5, width-1, height-1, widget->roundness, widget->corners);
+ cairo_stroke (cr);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]