summaryrefslogtreecommitdiff
path: root/src/examples/gengrid_example.c
diff options
context:
space:
mode:
authorHyoyoung Chang <hyoyoung@gmail.com>2012-03-07 15:22:12 +0000
committerCarsten Haitzler <raster@rasterman.com>2012-03-07 15:22:12 +0000
commit0d1bb3878cdde1ca527d82f44cb1a273b3381992 (patch)
tree3eefd8e9cd9cdbd0bfe9c281222e313bfec8419f /src/examples/gengrid_example.c
parent41dd2a268e0f0a00b3cb5ad44744e43e6870ecaa (diff)
From: Hyoyoung Chang <hyoyoung@gmail.com>
Subject: [E-devel] [patch] elm_list - add select_mode_set and some remove deprecated apis in examples Like other widget (genlist, gengrid...), I add select_mode to elm_list. +elm_list_select_mode_set(Evas_Object *obj, Elm_Object_Select_Mode_Type mode) +EAPI Elm_Object_Select_Mode_Type +elm_list_select_mode_get(const Evas_Object *obj) And I removed deprecated apis (no_select, always_select) in examples and edje_externals. SVN revision: 68971
Diffstat (limited to 'src/examples/gengrid_example.c')
-rw-r--r--src/examples/gengrid_example.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/examples/gengrid_example.c b/src/examples/gengrid_example.c
index 51c4293bb..9e655bf54 100644
--- a/src/examples/gengrid_example.c
+++ b/src/examples/gengrid_example.c
@@ -66,7 +66,10 @@ _always_select_change(void *data,
66 Evas_Object *grid = data; 66 Evas_Object *grid = data;
67 Eina_Bool always = elm_check_state_get(obj); 67 Eina_Bool always = elm_check_state_get(obj);
68 68
69 elm_gengrid_always_select_mode_set(grid, always); 69 if (always)
70 elm_gengrid_select_mode_set(grid, ELM_OBJECT_ALWAYS_SELECT);
71 else
72 elm_gengrid_select_mode_set(grid, ELM_OBJECT_NORMAL_SELECT);
70 73
71 fprintf(stdout, "\"Always select\" mode for gengrid items is now %s\n", 74 fprintf(stdout, "\"Always select\" mode for gengrid items is now %s\n",
72 always ? "on" : "off"); 75 always ? "on" : "off");
@@ -122,7 +125,10 @@ _no_sel_change(void *data,
122 Evas_Object *grid = data; 125 Evas_Object *grid = data;
123 Eina_Bool no_sel = elm_check_state_get(obj); 126 Eina_Bool no_sel = elm_check_state_get(obj);
124 127
125 elm_gengrid_no_select_mode_set(grid, no_sel); 128 if (no_sel)
129 elm_gengrid_select_mode_set(grid, ELM_OBJECT_NO_SELECT);
130 else
131 elm_gengrid_select_mode_set(grid, ELM_OBJECT_NORMAL_SELECT);
126 132
127 fprintf(stdout, "Selection for gengrid items is now %s\n", 133 fprintf(stdout, "Selection for gengrid items is now %s\n",
128 no_sel ? "disabled" : "enabled"); 134 no_sel ? "disabled" : "enabled");