forked from enlightenment/edi
Allow the mime popup to cover the whole window
This commit is contained in:
parent
97f95aaa17
commit
cd8954c69a
|
@ -11,7 +11,7 @@
|
|||
|
||||
#include "edi_private.h"
|
||||
|
||||
static Evas_Object *nf, *tb;
|
||||
static Evas_Object *nf, *tb, *_main_win;
|
||||
static Evas_Object *_edi_mainview_choose_popup;
|
||||
static const char *_edi_mainview_choose_path;
|
||||
|
||||
|
@ -219,7 +219,7 @@ _edi_mainview_choose_type(Evas_Object *parent, const char *path, void *cb)
|
|||
{
|
||||
Evas_Object *popup, *cancel, *icon;
|
||||
|
||||
popup = elm_popup_add(parent);
|
||||
popup = elm_popup_add(_main_win);
|
||||
_edi_mainview_choose_popup = popup;
|
||||
_edi_mainview_choose_path = path;
|
||||
|
||||
|
@ -415,11 +415,13 @@ edi_mainview_paste()
|
|||
}
|
||||
|
||||
EAPI void
|
||||
edi_mainview_add(Evas_Object *parent)
|
||||
edi_mainview_add(Evas_Object *parent, Evas_Object *win)
|
||||
{
|
||||
Evas_Object *box, *txt;
|
||||
Elm_Object_Item *it;
|
||||
|
||||
_main_win = win;
|
||||
|
||||
box = elm_box_add(parent);
|
||||
evas_object_size_hint_weight_set(box, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
||||
evas_object_size_hint_align_set(box, EVAS_HINT_FILL, EVAS_HINT_FILL);
|
||||
|
|
|
@ -50,10 +50,11 @@ struct _Edi_Mainview_Item
|
|||
* Initialize a new Edi main view and add it to the parent panel.
|
||||
*
|
||||
* @param parent The parent into which the panel will be loaded.
|
||||
* @param win The window the panel will be using
|
||||
*
|
||||
* @ingroup UI
|
||||
*/
|
||||
EAPI void edi_mainview_add(Evas_Object *parent);
|
||||
EAPI void edi_mainview_add(Evas_Object *parent, Evas_Object *win);
|
||||
|
||||
/**
|
||||
* @}
|
||||
|
|
Loading…
Reference in New Issue