[maemo-commits] [maemo-commits] r9426 - in projects/haf/trunk/sapwood: . demos
From: subversion at stage.maemo.org subversion at stage.maemo.orgDate: Mon Jan 29 16:31:35 EET 2007
- Previous message: [maemo-commits] r9425 - in projects/haf/trunk/sapwood: . src
- Next message: [maemo-commits] r9427 - in projects/haf/branches/gtk+/maemo-gtk-2-10: . gtk
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: tko Date: 2007-01-29 16:31:32 +0200 (Mon, 29 Jan 2007) New Revision: 9426 Modified: projects/haf/trunk/sapwood/ChangeLog projects/haf/trunk/sapwood/demos/treeview.gtkrc Log: Simplify treeview theming example using wildcards 2007-01-29 Tommi Komulainen <tommi.komulainen at nokia.com> * demos/treeview.gtkrc: Simplify treeview theming example using wildcards Modified: projects/haf/trunk/sapwood/ChangeLog =================================================================== --- projects/haf/trunk/sapwood/ChangeLog 2007-01-29 14:27:26 UTC (rev 9425) +++ projects/haf/trunk/sapwood/ChangeLog 2007-01-29 14:31:32 UTC (rev 9426) @@ -1,5 +1,10 @@ 2007-01-29 Tommi Komulainen <tommi.komulainen at nokia.com> + * demos/treeview.gtkrc: Simplify treeview theming example using + wildcards + +2007-01-29 Tommi Komulainen <tommi.komulainen at nokia.com> + * src/sapwood-draw.c (match_theme_image): Add simple pattern matching for the 'detail' to simplify treeview theming. Only leading wildcard is supported. In gtkrc 'detail = "*_start"' will match all details Modified: projects/haf/trunk/sapwood/demos/treeview.gtkrc =================================================================== --- projects/haf/trunk/sapwood/demos/treeview.gtkrc 2007-01-29 14:27:26 UTC (rev 9425) +++ projects/haf/trunk/sapwood/demos/treeview.gtkrc 2007-01-29 14:31:32 UTC (rev 9426) @@ -68,73 +68,37 @@ shadow = OUT file = "treeview-passive.png" } - # active focus alone ############################################## + # active ########################################################## image { function = FLAT_BOX state = ACTIVE - detail = "cell_even" + detail = "*_start" - file = "treeview-active-alone.png" - border = { 2, 2, 2, 2 } - } - image { - function = FLAT_BOX - state = ACTIVE - detail = "cell_odd" # <-- the only difference to above - - file = "treeview-active-alone.png" - border = { 2, 2, 2, 2 } - } - # active focus left ############################################### - image { - function = FLAT_BOX - state = ACTIVE - detail = "cell_odd_start" - file = "treeview-active-left.png" border = { 2, 0, 2, 2 } } image { function = FLAT_BOX state = ACTIVE - detail = "cell_even_start" + detail = "*_middle" - file = "treeview-active-left.png" - border = { 2, 0, 2, 2 } - } - # active focus middle ############################################# - image { - function = FLAT_BOX - state = ACTIVE - detail = "cell_even_middle" - file = "treeview-active-middle.png" border = { 0, 0, 1, 1 } } image { function = FLAT_BOX state = ACTIVE - detail = "cell_odd_middle" + detail = "*_end" - file = "treeview-active-middle.png" - border = { 0, 0, 1, 1 } - } - # active focus right ############################################## - image { - function = FLAT_BOX - state = ACTIVE - detail = "cell_odd_end" - file = "treeview-active-right.png" border = { 0, 2, 2, 2 } } image { function = FLAT_BOX state = ACTIVE - detail = "cell_even_end" - file = "treeview-active-right.png" - border = { 0, 2, 2, 2 } + file = "treeview-active-alone.png" + border = { 2, 2, 2, 2 } } # normal row background (fallback) ################################ image {
- Previous message: [maemo-commits] r9425 - in projects/haf/trunk/sapwood: . src
- Next message: [maemo-commits] r9427 - in projects/haf/branches/gtk+/maemo-gtk-2-10: . gtk
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]