summaryrefslogtreecommitdiff
path: root/src/modules/wizard/page_060.c
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2008-10-26 09:04:05 +0000
committerCarsten Haitzler <raster@rasterman.com>2008-10-26 09:04:05 +0000
commit20fd54169271e4cfd58136ca3994baea440cab47 (patch)
treeaa09d9941836d37b616e822f2414e305379b7436 /src/modules/wizard/page_060.c
parent5d77d647ff2f3fb536b0fd7f07976faef9301ea8 (diff)
downloadenlightenment-20fd54169271e4cfd58136ca3994baea440cab47.tar.gz
and now wizard is pretty much required. functionalyl its almost all there.
just the init of ibar/fileman favorites is the old untar code moved to wizard. icons for all profiels are nto done yet - doing. broung some backgrounds back - small .edj files though. SVN revision: 37119
Diffstat (limited to 'src/modules/wizard/page_060.c')
-rw-r--r--src/modules/wizard/page_060.c34
1 files changed, 21 insertions, 13 deletions
diff --git a/src/modules/wizard/page_060.c b/src/modules/wizard/page_060.c
index 679ff17813..0df0667476 100644
--- a/src/modules/wizard/page_060.c
+++ b/src/modules/wizard/page_060.c
@@ -4,6 +4,8 @@
#include "e.h"
#include "e_mod_main.h"
+static int focus_mode = 1;
+
EAPI int
wizard_page_init(E_Wizard_Page *pg)
{
@@ -18,25 +20,23 @@ EAPI int
wizard_page_show(E_Wizard_Page *pg)
{
Evas_Object *o, *of, *ob;
- Eina_List *l;
- int i, sel = -1;
+ E_Radio_Group *rg;
o = e_widget_list_add(pg->evas, 1, 0);
e_wizard_title_set(_("Window Focus"));
- of = e_widget_framelist_add(pg->evas, _("Focus Mode"), 0);
-
- ob = e_widget_ilist_add(pg->evas, 32 * e_scale, 32 * e_scale, NULL);
- e_widget_min_size_set(ob, 140 * e_scale, 140 * e_scale);
-
- e_widget_ilist_freeze(ob);
- e_widget_ilist_go(ob);
- e_widget_ilist_thaw(ob);
-
- if (sel >= 0) e_widget_ilist_selected_set(ob, sel);
+ of = e_widget_framelist_add(pg->evas, _("Focus mode"), 0);
+
+ rg = e_widget_radio_group_new(&focus_mode);
+ ob = e_widget_radio_add(pg->evas, _("Click to focus windows"), 0, rg);
e_widget_framelist_object_append(of, ob);
- e_widget_list_object_append(o, of, 1, 1, 0.5);
+ evas_object_show(ob);
+ ob = e_widget_radio_add(pg->evas, _("Mouse over focuses windows"), 1, rg);
+ e_widget_framelist_object_append(of, ob);
+ evas_object_show(ob);
+
+ e_widget_list_object_append(o, of, 0, 0, 0.5);
evas_object_show(ob);
evas_object_show(of);
@@ -53,5 +53,13 @@ wizard_page_hide(E_Wizard_Page *pg)
EAPI int
wizard_page_apply(E_Wizard_Page *pg)
{
+ if (!focus_mode)
+ {
+ // FIXME: click to focus
+ }
+ else
+ {
+ // FIXME: sloppy focus
+ }
return 1;
}