From 0f3b3ccdbd6e87064de40bfcbc527b4b6f0639e8 Mon Sep 17 00:00:00 2001 From: Daniel Juyung Seo Date: Wed, 27 Jun 2012 00:53:57 +0000 Subject: [PATCH] terminology: Added 'Not Implemented Yet' stub for theme and wallpaper. SVN revision: 72907 --- src/bin/Makefile.am | 2 ++ src/bin/options.c | 8 ++++++-- src/bin/options_theme.c | 20 ++++++++++++++++++++ src/bin/options_theme.h | 1 + src/bin/options_wallpaper.c | 20 ++++++++++++++++++++ src/bin/options_wallpaper.h | 1 + 6 files changed, 50 insertions(+), 2 deletions(-) create mode 100644 src/bin/options_theme.c create mode 100644 src/bin/options_theme.h create mode 100644 src/bin/options_wallpaper.c create mode 100644 src/bin/options_wallpaper.h diff --git a/src/bin/Makefile.am b/src/bin/Makefile.am index 00f88cfd..f9f7c807 100644 --- a/src/bin/Makefile.am +++ b/src/bin/Makefile.am @@ -20,6 +20,8 @@ options.c options.h \ options_behavior.c options_behavior.h \ options_font.c options_font.h \ options_video.c options_video.h \ +options_theme.c options_theme.h \ +options_wallpaper.c options_wallpaper.h \ termio.c termio.h \ termpty.c termpty.h \ utf8.c utf8.h \ diff --git a/src/bin/options.c b/src/bin/options.c index 90628f31..49e84c5b 100644 --- a/src/bin/options.c +++ b/src/bin/options.c @@ -5,6 +5,8 @@ #include "options_font.h" #include "options_behavior.h" #include "options_video.h" +#include "options_theme.h" +#include "options_wallpaper.h" #include "config.h" #include "termio.h" @@ -21,16 +23,18 @@ _cb_op_font(void *data, Evas_Object *obj __UNUSED__, void *event __UNUSED__) } static void -_cb_op_theme(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event __UNUSED__) +_cb_op_theme(void *data, Evas_Object *obj __UNUSED__, void *event __UNUSED__) { elm_box_clear(op_opbox); + options_theme(op_opbox, data); // XXX: not done yet } static void -_cb_op_wallpaper(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event __UNUSED__) +_cb_op_wallpaper(void *data, Evas_Object *obj __UNUSED__, void *event __UNUSED__) { elm_box_clear(op_opbox); + options_wallpaper(op_opbox, data); // XXX: not done yet } diff --git a/src/bin/options_theme.c b/src/bin/options_theme.c new file mode 100644 index 00000000..b8a58be2 --- /dev/null +++ b/src/bin/options_theme.c @@ -0,0 +1,20 @@ +#include "private.h" + +#include +#include "config.h" +#include "termio.h" +#include "options.h" +#include "options_theme.h" + +void +options_theme(Evas_Object *opbox, Evas_Object *term __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_theme.h b/src/bin/options_theme.h new file mode 100644 index 00000000..03faa737 --- /dev/null +++ b/src/bin/options_theme.h @@ -0,0 +1 @@ +void options_theme(Evas_Object *opbox, Evas_Object *term); diff --git a/src/bin/options_wallpaper.c b/src/bin/options_wallpaper.c new file mode 100644 index 00000000..89f15836 --- /dev/null +++ b/src/bin/options_wallpaper.c @@ -0,0 +1,20 @@ +#include "private.h" + +#include +#include "config.h" +#include "termio.h" +#include "options.h" +#include "options_wallpaper.h" + +void +options_wallpaper(Evas_Object *opbox, Evas_Object *term __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_wallpaper.h b/src/bin/options_wallpaper.h new file mode 100644 index 00000000..141985f0 --- /dev/null +++ b/src/bin/options_wallpaper.h @@ -0,0 +1 @@ +void options_wallpaper(Evas_Object *opbox, Evas_Object *term);