summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/rotate.c
diff options
context:
space:
mode:
authorquinn <quinn@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2006-12-21 01:15:04 +0000
committerquinn <quinn@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2006-12-21 01:15:04 +0000
commit8821030a538bb3219d1a617161c9dd16c648110a (patch)
tree1c1a79781ce6b5902ab3cc3371f8e516a58da47d /beryl-plugins/src/rotate.c
parentfe3dc224d501d312d259a5e2f2af4e60eded28cb (diff)
downloadmarex-dev-8821030a538bb3219d1a617161c9dd16c648110a.tar.gz
marex-dev-8821030a538bb3219d1a617161c9dd16c648110a.tar.bz2
add advanced bool to option struct
update all plugins to set it on their options use it in libbs use it in bsm git-svn-id: file:///beryl/trunk@1969 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'beryl-plugins/src/rotate.c')
-rw-r--r--beryl-plugins/src/rotate.c102
1 files changed, 68 insertions, 34 deletions
diff --git a/beryl-plugins/src/rotate.c b/beryl-plugins/src/rotate.c
index 4fcb7fa..4ccc784 100644
--- a/beryl-plugins/src/rotate.c
+++ b/beryl-plugins/src/rotate.c
@@ -349,7 +349,8 @@ rotateScreenInitOptions (RotateScreen * rs)
CompOption *o;
o = &rs->opt[ROTATE_SCREEN_OPTION_POINTER_INVERT_Y];
- o->name = "invert_y";
+ o->advanced=False;
+o->name = "invert_y";
o->group = N_("");
o->subGroup = N_("");
o->displayHints = "";
@@ -360,7 +361,8 @@ rotateScreenInitOptions (RotateScreen * rs)
o->value.b = ROTATE_POINTER_INVERT_Y_DEFAULT;
o = &rs->opt[ROTATE_SCREEN_OPTION_POINTER_SENSITIVITY];
- o->name = "sensitivity";
+ o->advanced=False;
+o->name = "sensitivity";
o->group = N_("");
o->subGroup = N_("");
o->displayHints = "";
@@ -373,7 +375,8 @@ rotateScreenInitOptions (RotateScreen * rs)
o->rest.f.precision = ROTATE_POINTER_SENSITIVITY_PRECISION;
o = &rs->opt[ROTATE_SCREEN_OPTION_ACCELERATION];
- o->name = "acceleration";
+ o->advanced=False;
+o->name = "acceleration";
o->group = N_("");
o->subGroup = N_("");
o->displayHints = "";
@@ -386,7 +389,8 @@ rotateScreenInitOptions (RotateScreen * rs)
o->rest.f.precision = ROTATE_ACCELERATION_PRECISION;
o = &rs->opt[ROTATE_SCREEN_OPTION_SNAP_TOP];
- o->name = "snap_top";
+ o->advanced=False;
+o->name = "snap_top";
o->group = N_("");
o->subGroup = N_("");
o->displayHints = "";
@@ -396,7 +400,8 @@ rotateScreenInitOptions (RotateScreen * rs)
o->value.b = ROTATE_SNAP_TOP_DEFAULT;
o = &rs->opt[ROTATE_SCREEN_OPTION_SNAP_BOTTOM];
- o->name = "snap_bottom";
+ o->advanced=False;
+o->name = "snap_bottom";
o->group = N_("");
o->subGroup = N_("");
o->displayHints = "";
@@ -406,7 +411,8 @@ rotateScreenInitOptions (RotateScreen * rs)
o->value.b = ROTATE_SNAP_BOTTOM_DEFAULT;
o = &rs->opt[ROTATE_SCREEN_OPTION_SPEED];
- o->name = "speed";
+ o->advanced=False;
+o->name = "speed";
o->group = N_("");
o->subGroup = N_("");
o->displayHints = "";
@@ -419,7 +425,8 @@ rotateScreenInitOptions (RotateScreen * rs)
o->rest.f.precision = ROTATE_SPEED_PRECISION;
o = &rs->opt[ROTATE_SCREEN_OPTION_TIMESTEP];
- o->name = "timestep";
+ o->advanced=False;
+o->name = "timestep";
o->group = N_("");
o->subGroup = N_("");
o->displayHints = "";
@@ -432,7 +439,8 @@ rotateScreenInitOptions (RotateScreen * rs)
o->rest.f.precision = ROTATE_TIMESTEP_PRECISION;
o = &rs->opt[ROTATE_SCREEN_OPTION_MANTIMESTEP];
- o->name = "mantimestep";
+ o->advanced=False;
+o->name = "mantimestep";
o->group = N_("");
o->subGroup = N_("");
o->displayHints = "";
@@ -445,7 +453,8 @@ rotateScreenInitOptions (RotateScreen * rs)
o->rest.f.precision = ROTATE_MANTIMESTEP_PRECISION;
o = &rs->opt[ROTATE_SCREEN_OPTION_ZOOM];
- o->name = "zoom";
+ o->advanced=False;
+o->name = "zoom";
o->group = N_("");
o->subGroup = N_("");
o->displayHints = "";
@@ -459,7 +468,8 @@ rotateScreenInitOptions (RotateScreen * rs)
o->rest.f.precision = ROTATE_ZOOM_PRECISION;
o = &rs->opt[ROTATE_SCREEN_OPTION_ZOOM_BEFORE_ROTATE];
- o->name = "zoom_before_rotate";
+ o->advanced=False;
+o->name = "zoom_before_rotate";
o->group = N_("");
o->subGroup = N_("");
o->displayHints = "";
@@ -469,7 +479,8 @@ rotateScreenInitOptions (RotateScreen * rs)
o->value.b = ROTATE_ZOOM_BEFORE_ROTATE_DEFAULT;
o = &rs->opt[ROTATE_SCREEN_OPTION_ZOOM_ONLY_ON_INITIATE];
- o->name = "zoom_initiate_only";
+ o->advanced=False;
+o->name = "zoom_initiate_only";
o->group = N_("");
o->subGroup = N_("");
o->displayHints = "";
@@ -480,7 +491,8 @@ rotateScreenInitOptions (RotateScreen * rs)
o->value.b = FALSE;
o = &rs->opt[ROTATE_SCREEN_OPTION_WHEEL_ON_EDGES];
- o->name = "wheel_on_edges";
+ o->advanced=False;
+o->name = "wheel_on_edges";
o->group = N_("");
o->subGroup = N_("");
o->displayHints = "";
@@ -490,7 +502,8 @@ rotateScreenInitOptions (RotateScreen * rs)
o->value.b = ROTATE_WHEEL_ON_EDGES_DEFAULT;
o = &rs->opt[ROTATE_SCREEN_OPTION_WHEELMAXDIST];
- o->name = "wheel_max_dist";
+ o->advanced=False;
+o->name = "wheel_max_dist";
o->group = N_("");
o->subGroup = N_("");
o->displayHints = "";
@@ -2276,7 +2289,8 @@ rotateDisplayInitOptions (RotateDisplay * rd)
char *str;
o = &rd->opt[ROTATE_DISPLAY_OPTION_INITIATE];
- o->name = "initiate";
+ o->advanced=False;
+o->name = "initiate";
o->group = N_("");
o->subGroup = N_("");
o->displayHints = "";
@@ -2294,7 +2308,8 @@ rotateDisplayInitOptions (RotateDisplay * rd)
o->value.action.button.button = ROTATE_INITIATE_BUTTON_DEFAULT;
o = &rd->opt[ROTATE_DISPLAY_OPTION_WHEELINGS];
- o->name = "rotate_wheelings";
+ o->advanced=False;
+o->name = "rotate_wheelings";
o->group = N_("");
o->subGroup = N_("");
o->displayHints = "";
@@ -2306,7 +2321,8 @@ rotateDisplayInitOptions (RotateDisplay * rd)
o->rest.i.max = ROTATE_WHEELINGS_MAX;
o = &rd->opt[ROTATE_DISPLAY_OPTION_LEFT_WHEEL];
- o->name = "rotate_left_wheel";
+ o->advanced=False;
+o->name = "rotate_left_wheel";
o->group = N_("");
o->subGroup = N_("");
o->displayHints = "";
@@ -2323,7 +2339,8 @@ rotateDisplayInitOptions (RotateDisplay * rd)
o->value.action.button.button = ROTATE_LEFT_WHEEL_DEFAULT;
o = &rd->opt[ROTATE_DISPLAY_OPTION_RIGHT_WHEEL];
- o->name = "rotate_right_wheel";
+ o->advanced=False;
+o->name = "rotate_right_wheel";
o->group = N_("");
o->subGroup = N_("");
o->displayHints = "";
@@ -2340,7 +2357,8 @@ rotateDisplayInitOptions (RotateDisplay * rd)
o->value.action.button.button = ROTATE_RIGHT_WHEEL_DEFAULT;
o = &rd->opt[ROTATE_DISPLAY_OPTION_LEFT];
- o->name = "rotate_left";
+ o->advanced=False;
+o->name = "rotate_left";
o->group = N_("");
o->subGroup = N_("");
o->displayHints = "";
@@ -2360,7 +2378,8 @@ rotateDisplayInitOptions (RotateDisplay * rd)
o->value.action.key.keysym = XStringToKeysym (ROTATE_LEFT_KEY_DEFAULT);
o = &rd->opt[ROTATE_DISPLAY_OPTION_RIGHT];
- o->name = "rotate_right";
+ o->advanced=False;
+o->name = "rotate_right";
o->group = N_("");
o->subGroup = N_("");
o->displayHints = "";
@@ -2380,7 +2399,8 @@ rotateDisplayInitOptions (RotateDisplay * rd)
o->value.action.key.keysym = XStringToKeysym (ROTATE_RIGHT_KEY_DEFAULT);
o = &rd->opt[ROTATE_DISPLAY_OPTION_UP];
- o->name = "rotate_up";
+ o->advanced=False;
+o->name = "rotate_up";
o->group = N_("");
o->subGroup = N_("");
o->displayHints = "";
@@ -2400,7 +2420,8 @@ rotateDisplayInitOptions (RotateDisplay * rd)
o->value.action.key.keysym = XStringToKeysym (ROTATE_UP_KEY_DEFAULT);
o = &rd->opt[ROTATE_DISPLAY_OPTION_DOWN];
- o->name = "rotate_down";
+ o->advanced=False;
+o->name = "rotate_down";
o->group = N_("");
o->subGroup = N_("");
o->displayHints = "";
@@ -2420,7 +2441,8 @@ rotateDisplayInitOptions (RotateDisplay * rd)
o->value.action.key.keysym = XStringToKeysym (ROTATE_DOWN_KEY_DEFAULT);
o = &rd->opt[ROTATE_DISPLAY_OPTION_LEFT_WINDOW];
- o->name = "rotate_left_window";
+ o->advanced=False;
+o->name = "rotate_left_window";
o->group = N_("");
o->subGroup = N_("");
o->displayHints = "";
@@ -2441,7 +2463,8 @@ rotateDisplayInitOptions (RotateDisplay * rd)
XStringToKeysym (ROTATE_LEFT_WINDOW_KEY_DEFAULT);
o = &rd->opt[ROTATE_DISPLAY_OPTION_RIGHT_WINDOW];
- o->name = "rotate_right_window";
+ o->advanced=False;
+o->name = "rotate_right_window";
o->group = N_("");
o->subGroup = N_("");
o->displayHints = "";
@@ -2469,7 +2492,8 @@ rotateDisplayInitOptions (RotateDisplay * rd)
#define ROTATE_TO_OPTION(n) \
o = &rd->opt[ROTATE_DISPLAY_OPTION_TO_ ## n]; \
- o->name = "rotate_to_" #n; \
+ o->advanced=False;\
+o->name = "rotate_to_" #n; \
asprintf (&str, ROTATE_TO_SHORT, n); \
o->group=N_("");\
o->subGroup=N_("");\
@@ -2487,7 +2511,8 @@ o->shortDesc = str; \
o->value.action.type = CompBindingTypeNone; \
\
o = &rd->opt[ROTATE_DISPLAY_OPTION_TO_ ## n ## _WINDOW]; \
- o->name = "rotate_to_" #n "_window"; \
+ o->advanced=False;\
+o->name = "rotate_to_" #n "_window"; \
asprintf (&str, ROTATE_TO_WINDOW_SHORT, n); \
o->group=N_("");\
o->subGroup=N_("");\
@@ -2518,7 +2543,8 @@ o->shortDesc = str; \
ROTATE_TO_OPTION (12);
o = &rd->opt[ROTATE_DISPLAY_OPTION_TO];
- o->name = "rotate_to";
+ o->advanced=False;
+o->name = "rotate_to";
o->group = N_("");
o->subGroup = N_("");
o->displayHints = "";
@@ -2533,7 +2559,8 @@ o->shortDesc = str; \
o->value.action.type = CompBindingTypeNone;
o = &rd->opt[ROTATE_DISPLAY_OPTION_WINDOW];
- o->name = "rotate_window";
+ o->advanced=False;
+o->name = "rotate_window";
o->group = N_("");
o->subGroup = N_("");
o->displayHints = "";
@@ -2548,7 +2575,8 @@ o->shortDesc = str; \
o->value.action.type = CompBindingTypeNone;
o = &rd->opt[ROTATE_DISPLAY_OPTION_FLIP_LEFT];
- o->name = "rotate_flip_left";
+ o->advanced=False;
+o->name = "rotate_flip_left";
o->group = N_("");
o->subGroup = N_("");
o->displayHints = "";
@@ -2566,7 +2594,8 @@ o->shortDesc = str; \
o->value.action.type = CompBindingTypeNone;
o = &rd->opt[ROTATE_DISPLAY_OPTION_FLIP_RIGHT];
- o->name = "rotate_flip_right";
+ o->advanced=False;
+o->name = "rotate_flip_right";
o->group = N_("");
o->subGroup = N_("");
o->displayHints = "";
@@ -2584,7 +2613,8 @@ o->shortDesc = str; \
o->value.action.type = CompBindingTypeNone;
o = &rd->opt[ROTATE_DISPLAY_OPTION_EDGEFLIP_POINTER];
- o->name = "edge_flip_pointer";
+ o->advanced=False;
+o->name = "edge_flip_pointer";
o->group = N_("");
o->subGroup = N_("");
o->displayHints = "";
@@ -2595,7 +2625,8 @@ o->shortDesc = str; \
o->value.b = ROTATE_EDGEFLIP_POINTER_DEFAULT;
o = &rd->opt[ROTATE_DISPLAY_OPTION_EDGEFLIP_WINDOW];
- o->name = "edge_flip_move";
+ o->advanced=False;
+o->name = "edge_flip_move";
o->group = N_("");
o->subGroup = N_("");
o->displayHints = "";
@@ -2606,7 +2637,8 @@ o->shortDesc = str; \
o->value.b = ROTATE_EDGEFLIP_WINDOW_DEFAULT;
o = &rd->opt[ROTATE_DISPLAY_OPTION_EDGEFLIP_DND];
- o->name = "edge_flip_dnd";
+ o->advanced=False;
+o->name = "edge_flip_dnd";
o->group = N_("");
o->subGroup = N_("");
o->displayHints = "";
@@ -2617,7 +2649,8 @@ o->shortDesc = str; \
o->value.b = ROTATE_EDGEFLIP_DND_DEFAULT;
o = &rd->opt[ROTATE_DISPLAY_OPTION_FLIPTIME];
- o->name = "flip_time";
+ o->advanced=False;
+o->name = "flip_time";
o->group = N_("");
o->subGroup = N_("");
o->displayHints = "";
@@ -2629,7 +2662,8 @@ o->shortDesc = str; \
o->rest.i.max = ROTATE_FLIPTIME_MAX;
o = &rd->opt[ROTATE_DISPLAY_OPTION_INITIATEDESKTOP];
- o->name = "initiatedesktop";
+ o->advanced=False;
+o->name = "initiatedesktop";
o->group = N_("");
o->subGroup = N_("");
o->displayHints = "";