From 1a5384b19e09c9199437d3872cdc0fe26ebc82b3 Mon Sep 17 00:00:00 2001 From: Boris Faure Date: Sat, 10 Mar 2018 17:13:10 +0100 Subject: [PATCH] options: default is the behaviour tab. Closes T2130 --- src/bin/options.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/bin/options.c b/src/bin/options.c index 0d08ba7b..9d1321e2 100644 --- a/src/bin/options.c +++ b/src/bin/options.c @@ -18,12 +18,12 @@ enum option_mode { OPTION_NONE = 0, + OPTION_BEHAVIOR, OPTION_FONT, OPTION_THEME, OPTION_BACKGROUND, OPTION_COLORS, OPTION_VIDEO, - OPTION_BEHAVIOR, OPTION_KEYS, OPTION_HELPERS, OPTION_ELM, @@ -98,12 +98,12 @@ _cb_opdt_hide_done(void *data, switch (ctx->mode) { case OPTION_NONE: break; + case OPTION_BEHAVIOR: options_behavior(ctx->opbox, ctx->term); break; case OPTION_FONT: options_font(ctx->opbox, ctx->term); break; case OPTION_THEME: options_theme(ctx->opbox, ctx->term); break; case OPTION_BACKGROUND: options_background(ctx->opbox, ctx->term); break; case OPTION_COLORS: options_colors(ctx->opbox, ctx->term, ctx->bg); break; case OPTION_VIDEO: options_video(ctx->opbox, ctx->term); break; - case OPTION_BEHAVIOR: options_behavior(ctx->opbox, ctx->term); break; case OPTION_KEYS: options_keys(ctx->opbox, ctx->term); break; case OPTION_HELPERS: options_helpers(ctx->opbox, ctx->term); break; case OPTION_ELM: options_elm(ctx->opbox, ctx->term); break; @@ -230,13 +230,12 @@ options_show(Evas_Object *win, Evas_Object *base, Evas_Object *bg, Evas_Object * elm_toolbar_item_append(o, _icon_name, _name, _cb_op, \ (void*) &ctx->modes[OPTION_##_option_mode]) - it_fn = - ITEM_APPEND("preferences-desktop-font", _("Font"), FONT); + it_fn = ITEM_APPEND("preferences-system", _("Behavior"), BEHAVIOR); + ITEM_APPEND("preferences-desktop-font", _("Font"), FONT); ITEM_APPEND("preferences-desktop-theme", _("Theme"), THEME); ITEM_APPEND("preferences-desktop-background", _("Background"), BACKGROUND); ITEM_APPEND("preferences-desktop-theme", _("Colors"), COLORS); ITEM_APPEND("video-display", _("Video"), VIDEO); - ITEM_APPEND("preferences-system", _("Behavior"), BEHAVIOR); ITEM_APPEND("preferences-desktop-keyboard-shortcuts", _("Keys"), KEYS); ITEM_APPEND("system-run", _("Helpers"), HELPERS); ITEM_APPEND("preferences-color", _("Toolkit"), ELM);