Allow the mime popup to cover the whole window

This commit is contained in:
Andy Williams 2014-03-14 13:44:09 +00:00
parent 97f95aaa17
commit cd8954c69a
2 changed files with 7 additions and 4 deletions

View File

@ -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);

View File

@ -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);
/**
* @}