Fix E19 compatibility

Now edgar works again in E20 and E19, still need to test on E18....
someone can test it on 18?
This commit is contained in:
Davide Andreoli 2015-04-09 20:54:00 +02:00
parent 3133ede876
commit 3f954f4675
1 changed files with 5 additions and 5 deletions

View File

@ -449,17 +449,17 @@ edgar_menu_info_cb(void *data, E_Menu *m, E_Menu_Item *mi)
// dialog // dialog
#if E_VERSION_MAJOR >= 19 #if E_VERSION_MAJOR >= 19
Evas_Object *con = NULL; dia = e_dialog_new(NULL, "gadget_info", "class");
#else #else
E_Container *con; E_Container *con = e_container_current_get(e_manager_current_get());
con = e_container_current_get(e_manager_current_get());
#endif
dia = e_dialog_new(con, "gadget_info", "class"); dia = e_dialog_new(con, "gadget_info", "class");
#endif
e_dialog_resizable_set(dia, 0); e_dialog_resizable_set(dia, 0);
e_dialog_title_set(dia, "Gadget info"); e_dialog_title_set(dia, "Gadget info");
e_dialog_button_add(dia, "Close", NULL, NULL, NULL); e_dialog_button_add(dia, "Close", NULL, NULL, NULL);
#if E_VERSION_MAJOR >= 19 #if E_VERSION_MAJOR >= 20
Evas *evas = evas_object_evas_get(dia->win); Evas *evas = evas_object_evas_get(dia->win);
#else #else
Evas *evas = dia->win->evas; Evas *evas = dia->win->evas;