aboutsummaryrefslogtreecommitdiffstats
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
parentdont need calc call. (diff)
downloadterminology-ce4096f1cd2a5cd88592b2f474000d03be37f5a3.tar.gz
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)
}
void
-options_font(Evas_Object *opbox, Evas_Object *term)
+options_font_clear(void)
{
- Evas_Object *o, *bx;
- char buf[4096], *file, *fname, *s;
- Eina_List *files, *fontlist, *l;
Font *f;
- Elm_Object_Item *it, *sel_it = NULL, *grp_it = NULL;
- Elm_Genlist_Item_Class *it_class, *it_group;
EINA_LIST_FREE(fonts, f)
{
@@ -181,7 +176,20 @@ options_font(Evas_Object *opbox, Evas_Object *term)
eina_hash_free(fonthash);
fonthash = NULL;
}
+}
+
+void
+options_font(Evas_Object *opbox, Evas_Object *term)
+{
+ Evas_Object *o, *bx;
+ char buf[4096], *file, *fname, *s;
+ Eina_List *files, *fontlist, *l;
+ Font *f;
+ Elm_Object_Item *it, *sel_it = NULL, *grp_it = NULL;
+ Elm_Genlist_Item_Class *it_class, *it_group;
+ options_font_clear();
+
bx = o = elm_box_add(opbox);
elm_box_horizontal_set(o, EINA_TRUE);