static void _e_mod_ind_win_cb_menu_post(void *data, E_Menu *mn __UNUSED__);
static void _e_mod_ind_win_cb_menu_contents(void *data, E_Menu *mn __UNUSED__, E_Menu_Item *mi __UNUSED__);
static void _e_mod_ind_win_cb_menu_edit(void *data, E_Menu *mn __UNUSED__, E_Menu_Item *mi __UNUSED__);
+static void _e_mod_ind_win_cb_show(Ecore_Evas *ee);
+static void _e_mod_ind_win_cb_hide(Ecore_Evas *ee);
Ind_Win *
e_mod_ind_win_new(E_Zone *zone)
e_win_show(iwin->win);
e_popup_show(iwin->popup);
+ /* setup callbacks for show/hide so we can do the proper thing with the
+ * popup */
+ ecore_evas_data_set(iwin->win->ecore_evas, "iwin", iwin);
+ ecore_evas_callback_show_set(iwin->win->ecore_evas, _e_mod_ind_win_cb_show);
+ ecore_evas_callback_hide_set(iwin->win->ecore_evas, _e_mod_ind_win_cb_hide);
+
/* set this window on proper zone */
e_border_zone_set(iwin->win->border, zone);
iwin->win->border->user_skip_winlist = 1;
else
e_gadcon_edit_begin(iwin->gadcon);
}
+
+static void
+_e_mod_ind_win_cb_show(Ecore_Evas *ee)
+{
+ Ind_Win *iwin;
+
+ iwin = ecore_evas_data_get(ee, "iwin");
+ e_popup_show(iwin->popup);
+}
+
+static void
+_e_mod_ind_win_cb_hide(Ecore_Evas *ee)
+{
+ Ind_Win *iwin;
+
+ iwin = ecore_evas_data_get(ee, "iwin");
+ e_popup_hide(iwin->popup);
+}