summaryrefslogtreecommitdiff
path: root/src/bin/options_font.c
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2012-06-17 09:54:36 +0000
committerCarsten Haitzler <raster@rasterman.com>2012-06-17 09:54:36 +0000
commitce4096f1cd2a5cd88592b2f474000d03be37f5a3 (patch)
tree4ab11a7fb19ce552010841ead27219ae5a831733 /src/bin/options_font.c
parent6ccc3bbb9c1850423af716c01c6073b4eed2adbf (diff)
del options widget after 10 sec delay when they popped down.
SVN revision: 72287
Diffstat (limited to 'src/bin/options_font.c')
-rw-r--r--src/bin/options_font.c20
1 files changed, 14 insertions, 6 deletions
diff --git a/src/bin/options_font.c b/src/bin/options_font.c
index 734f3c3..9d72bb0 100644
--- a/src/bin/options_font.c
+++ b/src/bin/options_font.c
@@ -162,14 +162,9 @@ _cb_op_font_group_text_get(void *data, Evas_Object *obj, const char *part)
162} 162}
163 163
164void 164void
165options_font(Evas_Object *opbox, Evas_Object *term) 165options_font_clear(void)
166{ 166{
167 Evas_Object *o, *bx;
168 char buf[4096], *file, *fname, *s;
169 Eina_List *files, *fontlist, *l;
170 Font *f; 167 Font *f;
171 Elm_Object_Item *it, *sel_it = NULL, *grp_it = NULL;
172 Elm_Genlist_Item_Class *it_class, *it_group;
173 168
174 EINA_LIST_FREE(fonts, f) 169 EINA_LIST_FREE(fonts, f)
175 { 170 {
@@ -181,7 +176,20 @@ options_font(Evas_Object *opbox, Evas_Object *term)
181 eina_hash_free(fonthash); 176 eina_hash_free(fonthash);
182 fonthash = NULL; 177 fonthash = NULL;
183 } 178 }
179}
180
181void
182options_font(Evas_Object *opbox, Evas_Object *term)
183{
184 Evas_Object *o, *bx;
185 char buf[4096], *file, *fname, *s;
186 Eina_List *files, *fontlist, *l;
187 Font *f;
188 Elm_Object_Item *it, *sel_it = NULL, *grp_it = NULL;
189 Elm_Genlist_Item_Class *it_class, *it_group;
184 190
191 options_font_clear();
192
185 bx = o = elm_box_add(opbox); 193 bx = o = elm_box_add(opbox);
186 elm_box_horizontal_set(o, EINA_TRUE); 194 elm_box_horizontal_set(o, EINA_TRUE);
187 195