From 2ae7fada132b36991722487bed26a30fb54afe43 Mon Sep 17 00:00:00 2001 From: Boris Faure Date: Wed, 4 Dec 2013 22:07:13 +0100 Subject: [PATCH] add dummy option about key bindings --- src/bin/Makefile.am | 9 +++++---- src/bin/options.c | 10 +++++++--- src/bin/options_keys.c | 20 ++++++++++++++++++++ src/bin/options_keys.h | 1 + 4 files changed, 33 insertions(+), 7 deletions(-) create mode 100644 src/bin/options_keys.c create mode 100644 src/bin/options_keys.h diff --git a/src/bin/Makefile.am b/src/bin/Makefile.am index 5516b82c..fca4b3c9 100644 --- a/src/bin/Makefile.am +++ b/src/bin/Makefile.am @@ -19,14 +19,15 @@ keyin.c keyin.h \ main.c main.h \ media.c media.h \ options.c options.h \ -options_behavior.c options_behavior.h \ -options_colors.c options_colors.h \ options_font.c options_font.h \ -options_helpers.c options_helpers.h \ -options_video.c options_video.h \ options_theme.c options_theme.h \ options_themepv.c options_themepv.h \ options_wallpaper.c options_wallpaper.h \ +options_colors.c options_colors.h \ +options_behavior.c options_behavior.h \ +options_keys.c options_keys.h \ +options_helpers.c options_helpers.h \ +options_video.c options_video.h \ sel.c sel.h \ termio.c termio.h \ termcmd.c termcmd.h \ diff --git a/src/bin/options.c b/src/bin/options.c index a75b6a58..fb9ab5de 100644 --- a/src/bin/options.c +++ b/src/bin/options.c @@ -3,12 +3,13 @@ #include #include "options.h" #include "options_font.h" -#include "options_helpers.h" -#include "options_behavior.h" -#include "options_video.h" #include "options_theme.h" #include "options_wallpaper.h" #include "options_colors.h" +#include "options_video.h" +#include "options_behavior.h" +#include "options_keys.h" +#include "options_helpers.h" #include "config.h" #include "termio.h" @@ -30,6 +31,7 @@ static enum option_mode { OPTION_COLORS, OPTION_VIDEO, OPTION_BEHAVIOR, + OPTION_KEYS, OPTION_HELPERS } _mode = 0; @@ -83,6 +85,7 @@ _cb_opdt_hide_done(void *data, Evas_Object *obj EINA_UNUSED, const char *sig EIN case OPTION_COLORS: options_colors(op_opbox, data); break; case OPTION_VIDEO: options_video(op_opbox, data); break; case OPTION_BEHAVIOR: options_behavior(op_opbox, data); break; + case OPTION_KEYS: options_keys(op_opbox, data); break; case OPTION_HELPERS: options_helpers(op_opbox, data); break; } edje_object_signal_emit(saved_bg, "optdetails,show", "terminology"); @@ -148,6 +151,7 @@ options_toggle(Evas_Object *win, Evas_Object *bg, Evas_Object *term, ITEM_APPEND("preferences-color", "Colors", COLORS); ITEM_APPEND("preferences-desktop-multimedia", "Video", VIDEO); ITEM_APPEND("system-run", "Behavior", BEHAVIOR); + ITEM_APPEND("preferences-desktop-keyboard-shortcuts", "Keys", KEYS); ITEM_APPEND("document-open", "Helpers", HELPERS); #undef ITEM_APPEND diff --git a/src/bin/options_keys.c b/src/bin/options_keys.c new file mode 100644 index 00000000..56d6683e --- /dev/null +++ b/src/bin/options_keys.c @@ -0,0 +1,20 @@ +#include "private.h" + +#include +#include "config.h" +#include "termio.h" +#include "options.h" +#include "options_wallpaper.h" + +void +options_keys(Evas_Object *opbox, Evas_Object *term EINA_UNUSED) +{ + Evas_Object *o; + + o = elm_label_add(opbox); + evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + evas_object_size_hint_align_set(o, EVAS_HINT_FILL, EVAS_HINT_FILL); + elm_object_text_set(o, "Not Implemented Yet."); + evas_object_show(o); + elm_box_pack_end(opbox, o); +} diff --git a/src/bin/options_keys.h b/src/bin/options_keys.h new file mode 100644 index 00000000..0ab2a32a --- /dev/null +++ b/src/bin/options_keys.h @@ -0,0 +1 @@ +void options_keys(Evas_Object *opbox, Evas_Object *term);