image: "e17_icon_configuration.png" LOSSY 90;
image: "e17_icon_run.png" LOSSY 90;
+
+ image: "e17_icon_right_arrow.png" COMP;
}
group {
}
}
}
+ group {
+ name: "icons/widget/new_dialog";
+ parts {
+ part {
+ name: "icon";
+ mouse_events: 0;
+ description {
+ state: "default" 0.0;
+ aspect: 0.83333333333 0.83333333333;
+ max: 10 12;
+ image {
+ normal: "e17_icon_right_arrow.png";
+ }
+ }
+ }
+ }
+ }
ob = cfd->view.basic.create_widgets(cfd, e_win_evas_get(cfd->dia->win), cfd->cfdata);
e_widget_list_object_append(o, ob, 1, 1, 0.0);
ob = e_widget_button_add(e_win_evas_get(cfd->dia->win),
- _("Advanced Settings"), NULL,
+ _("Advanced Settings"), "widget/new_dialog",
_e_config_dialog_cb_advanced, cfd, NULL);
e_widget_list_object_append(o, ob, 0, 0, 1.0);
}
ob = cfd->view.advanced.create_widgets(cfd, e_win_evas_get(cfd->dia->win), cfd->cfdata);
e_widget_list_object_append(o, ob, 1, 1, 0.0);
ob = e_widget_button_add(e_win_evas_get(cfd->dia->win),
- _("Basic Settings"), NULL,
+ _("Basic Settings"), "widget/new_dialog",
_e_config_dialog_cb_basic, cfd, NULL);
e_widget_list_object_append(o, ob, 0, 0, 1.0);
}
/****************************************************************************/
#define HDL E_IPC_OP_DEFAULT_ENGINE_SET
#if (TYPE == E_REMOTE_OPTIONS)
- OP("-default-engine-set", 1, "Set the default rendering engine to OPT1 (SOFTWARE, GL or XRENDER)", 0, HDL)
+ OP("-default-engine-set", 1, "Set the default rendering engine to OPT1 (SOFTWARE or XRENDER)", 0, HDL)
#elif (TYPE == E_REMOTE_OUT)
REQ_INT_START(HDL)
int value = 0;
value = E_EVAS_ENGINE_GL_X11;
printf("GL engine is disabled as default engine.\n");
exit(-1);
-
}
else if (!strcmp(params[0], "XRENDER")) value = E_EVAS_ENGINE_XRENDER_X11;
else
{
- printf("engine must be SOFTWARE, GL or XRENDER\n");
+ printf("engine must be SOFTWARE or XRENDER\n");
exit(-1);
}
REQ_INT_END(value, HDL);
/****************************************************************************/
#define HDL E_IPC_OP_ENGINE_SET
#if (TYPE == E_REMOTE_OPTIONS)
- OP("-engine-set", 2, "Set the rendering engine for OPT1 to OPT2 (SOFTWARE, GL or XRENDER)", 0, HDL)
+ OP("-engine-set", 2, "Set the rendering engine for OPT1 to OPT2 (SOFTWARE or XRENDER)", 0, HDL)
#elif (TYPE == E_REMOTE_OUT)
REQ_2INT_START(HDL)
int context = 0, engine = 0;
}
if (!strcmp(params[1], "DEFAULT")) engine = E_EVAS_ENGINE_DEFAULT;
else if (!strcmp(params[1], "SOFTWARE")) engine = E_EVAS_ENGINE_SOFTWARE_X11;
- else if (!strcmp(params[1], "GL")) engine = E_EVAS_ENGINE_GL_X11;
+ else if (!strcmp(params[1], "GL"))
+ {
+ engine = E_EVAS_ENGINE_GL_X11;
+ printf("GL engine is disabled as default engine.\n");
+ exit(-1);
+ }
else if (!strcmp(params[1], "XRENDER")) engine = E_EVAS_ENGINE_XRENDER_X11;
else
{
- printf("engine must be DEFAULT, SOFTWARE, GL or XRENDER\n");
+ printf("engine must be DEFAULT, SOFTWARE or XRENDER\n");
exit(-1);
}
REQ_2INT_END(context, engine, HDL);
e_win_centered_set(dia->win, 1);
e_dialog_show(dia);
}
-#elif 0
-
-typedef struct _B_CFData {
- int val;
-} B_CFData;
-typedef struct _A_CFData {
- int val2;
-} A_CFData;
-
-static void *_b_create_data(void *cfdata_other, E_Config_Dialog_CFData_Type type_other);
-static void _b_free_data(B_CFData *cfdata);
-static void _b_apply_data(B_CFData *cfdata);
-static Evas_Object *_b_create_widgets(Evas *evas, B_CFData *cfdata);
-static void *_a_create_data(void *cfdata_other, E_Config_Dialog_CFData_Type type_other);
-static void _a_free_data(A_CFData *cfdata);
-static void _a_apply_data(A_CFData *cfdata);
-static Evas_Object *_a_create_widgets(Evas *evas, A_CFData *cfdata);
-
-static void *_b_create_data(void *cfdata_other, E_Config_Dialog_CFData_Type type_other) {
- B_CFData *cfdata;
- cfdata = E_NEW(B_CFData, 1);
- if (cfdata_other) cfdata->val = ((A_CFData *)cfdata_other)->val2;
- return cfdata;
-}
-static void _b_free_data(B_CFData *cfdata) {
- printf("FREE BASIC\n");
- free(cfdata);
-}
-static void _b_apply_data(B_CFData *cfdata) {
- printf("APPLY BASIC %i\n", cfdata->val);
-}
-static Evas_Object *_b_create_widgets(Evas *evas, B_CFData *cfdata) {
- Evas_Object *o, *ob;
- o = e_widget_framelist_add(evas, "Basic Options", 0);
- ob = e_widget_check_add(evas, "Basic Checkbox", &(cfdata->val));
- e_widget_framelist_object_append(o, ob);
- return o;
-}
-
-static void *_a_create_data(void *cfdata_other, E_Config_Dialog_CFData_Type type_other) {
- A_CFData *cfdata;
- cfdata = E_NEW(A_CFData, 1);
- if (cfdata_other) cfdata->val2 = ((B_CFData *)cfdata_other)->val;
- return cfdata;
-}
-static void _a_free_data(A_CFData *cfdata) {
- printf("FREE ADVANCED\n");
- free(cfdata);
-}
-static void _a_apply_data(A_CFData *cfdata) {
- printf("APPLY ADVANCED %i\n", cfdata->val2);
-}
-static Evas_Object *_a_create_widgets(Evas *evas, A_CFData *cfdata) {
- Evas_Object *o, *ob;
- o = e_widget_framelist_add(evas, "Advanced Options", 0);
- ob = e_widget_check_add(evas, "Advanced Checkbox", &(cfdata->val2));
- e_widget_framelist_object_append(o, ob);
- return o;
-}
-
-static void
-_e_test_internal(E_Container *con)
-{
- E_Config_Dialog *cfd;
- E_Config_Dialog_View a, b;
-
- b.create_cfdata = _b_create_data;
- b.free_cfdata = _b_free_data;
- b.apply_cfdata = _b_apply_data;
- b.create_widgets = _b_create_widgets;
- a.create_cfdata = _a_create_data;
- a.free_cfdata = _a_free_data;
- a.apply_cfdata = _a_apply_data;
- a.create_widgets = _a_create_widgets;
- cfd = e_config_dialog_new(con, "A test dialog", &b, &a);
-}
#else
static void
_e_test_internal(E_Container *con)