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:
parent
3133ede876
commit
3f954f4675
|
@ -449,17 +449,17 @@ edgar_menu_info_cb(void *data, E_Menu *m, E_Menu_Item *mi)
|
|||
|
||||
// dialog
|
||||
#if E_VERSION_MAJOR >= 19
|
||||
Evas_Object *con = NULL;
|
||||
dia = e_dialog_new(NULL, "gadget_info", "class");
|
||||
#else
|
||||
E_Container *con;
|
||||
con = e_container_current_get(e_manager_current_get());
|
||||
#endif
|
||||
E_Container *con = e_container_current_get(e_manager_current_get());
|
||||
dia = e_dialog_new(con, "gadget_info", "class");
|
||||
#endif
|
||||
|
||||
e_dialog_resizable_set(dia, 0);
|
||||
e_dialog_title_set(dia, "Gadget info");
|
||||
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);
|
||||
#else
|
||||
Evas *evas = dia->win->evas;
|
||||
|
|
Loading…
Reference in New Issue