aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/e_dialog.c
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2008-11-21 03:59:30 +0000
committerCarsten Haitzler <raster@rasterman.com>2008-11-21 03:59:30 +0000
commit5b50a2b89e2d3a2098ff9e514f2bc17f3fc76fb7 (patch)
treebe50a9845baafaf94d167e8013bb57ab7e6fc3e3 /src/bin/e_dialog.c
parentchange default engine for illume. (diff)
downloadenlightenment-5b50a2b89e2d3a2098ff9e514f2bc17f3fc76fb7.tar.gz
* shortening config category titles.
* remove illume custom config dialog - use normal one * add toolbar used in config dialog. will be used for more. makes ui more compact and flexible. * make dialog windows optionally ALWAYS be "normal windows". * config module exports a config gadget now - illume doesnt need it anymore SVN revision: 37721
Diffstat (limited to 'src/bin/e_dialog.c')
-rw-r--r--src/bin/e_dialog.c18
1 files changed, 15 insertions, 3 deletions
diff --git a/src/bin/e_dialog.c b/src/bin/e_dialog.c
index 0baa69c1f..575233b1b 100644
--- a/src/bin/e_dialog.c
+++ b/src/bin/e_dialog.c
@@ -15,8 +15,8 @@ static void _e_dialog_cb_wid_on_focus(void *data, Evas_Object *obj);
/* externally accessible functions */
-EAPI E_Dialog *
-e_dialog_new(E_Container *con, const char *name, const char *class)
+static E_Dialog *
+_e_dialog_internal_new(E_Container *con, const char *name, const char *class, int dialog)
{
E_Dialog *dia;
E_Manager *man;
@@ -42,7 +42,7 @@ e_dialog_new(E_Container *con, const char *name, const char *class)
e_win_delete_callback_set(dia->win, _e_dialog_cb_delete);
e_win_resize_callback_set(dia->win, _e_dialog_cb_resize);
dia->win->data = dia;
- e_win_dialog_set(dia->win, 1);
+ if (dialog) e_win_dialog_set(dia->win, 1);
e_win_name_class_set(dia->win, name, class);
o = edje_object_add(e_win_evas_get(dia->win));
dia->bg_object = o;
@@ -74,6 +74,18 @@ e_dialog_new(E_Container *con, const char *name, const char *class)
return dia;
}
+EAPI E_Dialog *
+e_dialog_new(E_Container *con, const char *name, const char *class)
+{
+ return _e_dialog_internal_new(con, name, class, 1);
+}
+
+EAPI E_Dialog *
+e_dialog_normal_win_new(E_Container *con, const char *name, const char *class)
+{
+ return _e_dialog_internal_new(con, name, class, 0);
+}
+
EAPI void
e_dialog_button_add(E_Dialog *dia, const char *label, const char *icon, void (*func) (void *data, E_Dialog *dia), void *data)
{