Changeset 3027
- Timestamp:
- 09/21/07 16:26:35 (6 years ago)
- Location:
- trunk/src/target/OM-2007.2/libraries/moko-gtk-engine
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
src/moko-style.c (modified) (3 diffs)
-
src/moko-style.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/target/OM-2007.2/libraries/moko-gtk-engine/ChangeLog
r3022 r3027 1 2007-09-21 Thomas Wood <thomas@openedhand.com> 2 3 * src/moko-style.c: (moko_rc_style_merge), (moko_rc_style_parse): 4 * src/moko-style.h: 5 6 Use bit flag to indicate which engine options have been set (fixes any 7 options not set in the first matched style) 8 1 9 2007-09-21 Thomas Wood <thomas@openedhand.com> 2 10 -
trunk/src/target/OM-2007.2/libraries/moko-gtk-engine/src/moko-style.c
r3021 r3027 108 108 if (MOKO_IS_RC_STYLE (src)) 109 109 { 110 guint flags; 110 111 MokoRcStyle *src_data = MOKO_RC_STYLE (src); 111 112 MokoRcStyle *dest_data = MOKO_RC_STYLE (dest); 112 113 113 dest_data->has_border = src_data->has_border; 114 dest_data->has_gradient = src_data->has_gradient; 114 flags = (~dest_data->flags) & src_data->flags; 115 116 if (flags & BORDER_SET) 117 dest_data->has_border = src_data->has_border; 118 119 if (flags & GRADIENT_SET) 120 dest_data->has_gradient = src_data->has_gradient; 121 122 dest_data->flags = dest_data->flags | src_data->flags; 115 123 } 116 124 … … 183 191 break; 184 192 theme_data->has_border = i; 193 theme_data->flags = theme_data->flags | BORDER_SET; 185 194 break; 186 195 case TOKEN_HAS_GRADIENT: … … 189 198 break; 190 199 theme_data->has_gradient = i; 200 theme_data->flags = theme_data->flags | GRADIENT_SET; 191 201 break; 192 202 -
trunk/src/target/OM-2007.2/libraries/moko-gtk-engine/src/moko-style.h
r3021 r3027 76 76 typedef struct _MokoRcStyleClass MokoRcStyleClass; 77 77 78 /* which properties have been set? */ 79 enum { 80 BORDER_SET = 1, 81 GRADIENT_SET = 2 82 }; 83 78 84 struct _MokoRcStyle 79 85 { 80 86 GtkRcStyle parent_instance; 81 87 88 guint flags; 82 89 gboolean has_border; 83 90 gboolean has_gradient;
Note: See TracChangeset
for help on using the changeset viewer.
