[anjal] Some changes to make ml-buttons look like buttons. But we won't enable
- From: Srinivasa Ragavan <sragavan src gnome org>
- To: svn-commits-list gnome org
- Subject: [anjal] Some changes to make ml-buttons look like buttons. But we won't enable
- Date: Mon, 30 Mar 2009 06:34:32 -0400 (EDT)
commit 2a7698e9c155f4de70e2320f9e2603d4992bbafc
Author: Srinivasa Ragavan <sragavan novell com>
Date: Mon Mar 30 15:59:33 2009 +0530
Some changes to make ml-buttons look like buttons. But we won't enable
that for now.
---
src/custom-cell-renderer-toggle-pixbuf.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/custom-cell-renderer-toggle-pixbuf.c b/src/custom-cell-renderer-toggle-pixbuf.c
index 3426ce2..38df0f7 100644
--- a/src/custom-cell-renderer-toggle-pixbuf.c
+++ b/src/custom-cell-renderer-toggle-pixbuf.c
@@ -288,10 +288,12 @@ custom_cell_renderer_toggle_pixbuf_render (GtkCellRenderer *cell,
cairo_paint_with_alpha (cr, celltoggle->active ? 1.0 : 0.15);
else {
double alpha = (flags & GTK_CELL_RENDERER_SELECTED) ? 1.0 : 0.3;
- if (flags & GTK_CELL_RENDERER_SELECTED) {
-
+ if (flags & GTK_CELL_RENDERER_SELECTED && 0) {
+ gtk_paint_box (widget->style, window, GTK_STATE_NORMAL, GTK_SHADOW_ETCHED_OUT, NULL, NULL, "button", cell_area->x+x_offset-1, cell_area->y+y_offset-cell->ypad-2, 22, 22);
+
}
cairo_paint_with_alpha (cr, alpha);
+
}
// cairo_paint(cr);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]