forked from enlightenment/efl
elm win: Refactoring. Removed unused local variable.
SVN revision: 61934
This commit is contained in:
parent
4879118510
commit
90adda213d
|
@ -2557,7 +2557,6 @@ _elm_ee_win_get(const Evas_Object *obj)
|
|||
EAPI Ecore_X_Window
|
||||
elm_win_xwindow_get(const Evas_Object *obj)
|
||||
{
|
||||
Ecore_X_Window xwin = 0;
|
||||
Elm_Win *win;
|
||||
const char *type;
|
||||
|
||||
|
@ -2567,10 +2566,10 @@ elm_win_xwindow_get(const Evas_Object *obj)
|
|||
if (type != widtype) return _elm_ee_win_get(obj);
|
||||
#ifdef HAVE_ELEMENTARY_X
|
||||
win = elm_widget_data_get(obj);
|
||||
if (!win) return xwin;
|
||||
if (!win) return 0;
|
||||
if (win->xwin) return win->xwin;
|
||||
if (win->parent) return elm_win_xwindow_get(win->parent);
|
||||
#endif
|
||||
return xwin;
|
||||
return 0;
|
||||
win = NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue