copy from inlined wins works. copy to.. doesn't.

SVN revision: 58666
This commit is contained in:
Carsten Haitzler 2011-04-14 13:51:12 +00:00
parent 59f8230bb5
commit 4c7b13444d
2 changed files with 5 additions and 2 deletions

View File

@ -411,9 +411,11 @@ elm_selection_set(Elm_Sel_Type selection, Evas_Object *widget, Elm_Sel_Format fo
{
#ifdef HAVE_ELEMENTARY_X
Evas_Object *top = elm_widget_top_get(widget);
Ecore_X_Window xwin = elm_win_xwindow_get(top);
Ecore_X_Window xwin;
Cnp_Selection *sel;
if (top) xwin = elm_win_xwindow_get(top);
else xwin = elm_win_xwindow_get(widget);
if (!xwin) return EINA_FALSE;
if ((unsigned int)selection >= (unsigned int)ELM_SEL_MAX) return EINA_FALSE;
if (!_elm_cnp_init_count) _elm_cnp_init();

View File

@ -2918,12 +2918,13 @@ elm_win_xwindow_get(const Evas_Object *obj)
const char *type;
if (!obj) return 0;
type = evas_object_type_get(obj);
type = elm_widget_type_get(obj);
if (!type) return 0;
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->xwin) return win->xwin;
if (win->parent) return elm_win_xwindow_get(win->parent);
#endif
return xwin;