Displaying 3 results from an estimated 3 matches for "compoptiontypestr".
2006 Nov 12
4
Include option type in gconf schema
I am writing a configuration front end for the compiz gconf plugin at the
moment, but it's proving harder than it should be because gconf does not
record what type of compiz option the key is. For example, say i want a
color picker for each color option the only way I can tell with gconf if it
is color is if it has a # at the beginning, but there could be string
option which also have a # at
2007 Apr 11
2
Patch for ini plugin
..., &action->a.button))
+ action->a.type |= CompBindingTypeButton;
+ break;
+
+ case ACTION_TYPE_BELL:
+ action->a.bell = (Bool) atoi(optionValue);
+ break;
+
+ case ACTION_TYPE_EDGE:
+ if (optionValue[0] != '\0' &&
+ csvToList (optionValue, &edges, CompOptionTypeString))
+ {
+ for (i = 0; i < edges.nValue; i++) {
+ for (j = 0; j < SCREEN_EDGE_NUM; j++) {
+ if (strcasecmp (edges.value[i].s, edgeToString(j)) == 0)
+ {
+ action->a.edgeMask |= (1 << j);
+
+ // found corresponding mask, next value
+ break;
+ }
+...
2006 Nov 12
1
[PATCH] Annotate shapes, text and dbus support
...d->opt[ANNO_DISPLAY_OPTION_TOOL];
+ o->name = "tool";
+ o->shortDesc = N_("Tool");
+ o->longDesc = N_("Currnet tool for annotations " \
+ "(Brush, Rectangle, Circle, Line)");
+ o->type = CompOptionTypeString;
+ o->value.s = strdup (defaultTool);
+ o->rest.s.string = tools;
+ o->rest.s.nString = NUM_TOOLS;
}
static CompOption *
@@ -539,9 +1038,20 @@
if (setDisplayAction (display, o, value))
return TRUE;
break;
- case ANNO_DISPLAY_OPTION_COLOR:
+ case...