Elm: Commit roberts patch which fixes the unsafe call to

ecore_evas_window_get with a replacement function that checks the
currently used engine first. This fixes a segfault when running elm
with the wayland engines.



SVN revision: 73568
This commit is contained in:
Christopher Michael 2012-07-11 11:53:29 +00:00
parent 95effacb99
commit e7aff2633f
3 changed files with 4 additions and 2 deletions

View File

@ -442,7 +442,7 @@ _elm_widget_xwin_get(const Evas_Object *obj)
if (!evas) return 0;
ee = ecore_evas_ecore_evas_get(evas);
if (!ee) return 0;
xwin = (Ecore_X_Window)ecore_evas_window_get(ee);
xwin = _elm_ee_xwin_get(ee);
}
return xwin;

View File

@ -232,6 +232,8 @@ void _elm_win_rescale(Elm_Theme *th, Eina_Bool use_theme);
void _elm_win_access(Eina_Bool is_access);
void _elm_win_translate(void);
Ecore_X_Window _elm_ee_xwin_get(const Ecore_Evas *ee);
Eina_Bool _elm_theme_object_set(Evas_Object *parent, Evas_Object *o, const char *clas, const char *group, const char *style);
Eina_Bool _elm_theme_object_icon_set(Evas_Object *o, const char *group, const char *style);
Eina_Bool _elm_theme_set(Elm_Theme *th, Evas_Object *o, const char *clas, const char *group, const char *style);

View File

@ -1266,7 +1266,7 @@ _elm_win_delete_request(Ecore_Evas *ee)
evas_object_unref(obj);
}
static Ecore_X_Window
Ecore_X_Window
_elm_ee_xwin_get(const Ecore_Evas *ee)
{
#ifdef HAVE_ELEMENTARY_X