/**\r
* Add a new Popup object.\r
*\r
- * @param parent The parent object\r
+ * @param[in] parent_app The parent object\r
* @return The new object or NULL if it cannot be created\r
*\r
* @ingroup Popup\r
int count;\r
unsigned char *prop_data = NULL;\r
int ret;\r
-\r
+ Ecore_X_Window_Type type;\r
if(!parent_app)\r
{\r
//FIXME: Keep this window always on top\r
}\r
else\r
parent = parent_app;\r
- \r
+ \r
wd = ELM_NEW(Widget_Data);\r
e = evas_object_evas_get(parent);\r
obj = elm_widget_add(e);\r
\r
evas_object_event_callback_add(obj, EVAS_CALLBACK_SHOW, _show, NULL);\r
evas_object_event_callback_add(obj, EVAS_CALLBACK_HIDE, _hide, NULL);\r
- \r
wd->rot_angle = rotation;\r
if(!parent_app)\r
{\r
wd->parent = parent;\r
elm_object_style_set(wd->notify, "popup");\r
}\r
+\r
+ ecore_x_netwm_window_type_get(elm_win_xwindow_get(parent), &type); \r
+ if(type == ECORE_X_WINDOW_TYPE_DIALOG)\r
+ {\r
+ elm_object_style_set(wd->notify, "popup");\r
+ }\r
_sizing_eval(obj);\r
\r
return obj;\r
/**\r
* Add a new Popup object.\r
*\r
- * @param parent The parent object\r
- * @param title text to be displayed in title area.\r
- * @param desc_text text to be displayed in description area.\r
- * @param no_of_buttons Number of buttons to be packed in action area.\r
- * @param first_button_text button text\r
- * @param Varargs response ID for first button, then additional buttons followed by response id's ending with NULL\r
+ * @param[in] parent The parent object\r
+ * @param[in] title text to be displayed in title area.\r
+ * @param[in] desc_text text to be displayed in description area.\r
+ * @param[in] no_of_buttons Number of buttons to be packed in action area.\r
+ * @param[in] first_button_text button text\r
+ * @param[in] Varargs response ID for first button, then additional buttons followed by response id's ending with NULL\r
* @return The new object or NULL if it cannot be created\r
*\r
* @ingroup Popup\r
return popup; \r
}\r
\r
-/**\r
- * Add a new Popup object.\r
- *\r
- * @param parent The parent object\r
- * @param title text to be displayed in title area.\r
- * @param desc_text text to be displayed in description area.\r
- * @param no_of_buttons Number of buttons to be packed in action area.\r
- * @param first_button_text button text\r
- * @param Varargs response ID for first button, then additional buttons followed by response id's ending with NULL\r
- * @return The new object or NULL if it cannot be created\r
- *\r
- * @ingroup Popup\r
- */\r
-EAPI Evas_Object *\r
-elm_popup_add_with_buttons(Evas_Object *parent, char *title, char *desc_text,int no_of_buttons, char *first_button_text, ... )\r
-{\r
- Evas_Object *popup;\r
- popup = elm_popup_add(parent);\r
- Widget_Data *wd = elm_widget_data_get(popup);\r
- char buf[4096];\r
- \r
- if (desc_text)\r
- {\r
- elm_popup_desc_set(popup, desc_text);\r
- }\r
- if (title)\r
- {\r
- elm_popup_title_label_set(popup, title);\r
- }\r
- if (first_button_text)\r
- {\r
- va_list args; \r
- va_start(args, first_button_text); \r
- wd->action_area = elm_layout_add(popup);\r
- elm_layout_content_set(wd->layout, "elm.swallow.buttonArea", wd->action_area);\r
- snprintf(buf,sizeof(buf), "buttons%d", no_of_buttons);\r
- elm_layout_theme_set(wd->action_area, "popup", buf, elm_widget_style_get(popup));\r
- edje_object_signal_emit(elm_layout_edje_get(wd->layout), "elm,state,button,visible", "elm");\r
- if (wd->title_area)\r
- {\r
- edje_object_signal_emit(elm_layout_edje_get(wd->layout), "elm,state,button,title,visible", "elm");\r
- }\r
- _elm_popup_buttons_add_valist (popup, first_button_text, args);\r
- va_end(args);\r
- }\r
- edje_object_message_signal_process(wd->layout);\r
- _sizing_eval(popup);\r
- \r
- return popup; \r
-}\r
-\r
\r
/**\r
* This Set's the description text in content area of Popup widget.\r
*\r
- * @param text description text.\r
+ * @param[in] obj The Popup object\r
+ * @param[in] text description text.\r
*\r
* @ingroup Popup\r
*/\r
/**\r
* This Get's the description text packed in content area of popup object.\r
*\r
- * @param obj The Popup object\r
+ * @param[in] obj The Popup object\r
* @return description text.\r
*\r
* @ingroup Popup\r
/**\r
* This Set's the title text in title area of popup object.\r
*\r
- * @param obj The popup object\r
- * @param text The title text\r
+ * @param[in] obj The popup object\r
+ * @param[in] text The title text\r
*\r
* @ingroup Popup\r
*/\r
/**\r
* This Get's the title text packed in title area of popup object.\r
*\r
- * @param obj The Popup object\r
+ * @param[in] obj The Popup object\r
* @return title text\r
*\r
* @ingroup Popup\r
/**\r
* This Set's the icon in the title area of Popup object.\r
*\r
- * @param obj The popup object\r
- * @param icon The title icon\r
+ * @param[in] obj The popup object\r
+ * @param[in] icon The title icon\r
*\r
* @ingroup Popup\r
*/\r
/**\r
* This Get's the icon packed in title area of Popup object.\r
*\r
- * @param obj The Popup object\r
+ * @param[in] obj The Popup object\r
* @return title icon\r
*\r
* @ingroup Popup\r
/**\r
* This Set's the content widget in content area of Popup object.\r
*\r
- * @param obj The popup object\r
- * @param content The content widget\r
+ * @param[in] obj The popup object\r
+ * @param[in] content The content widget\r
*\r
* @ingroup Popup\r
*/\r
/**\r
* This Get's the content widget packed in content area of Popup object.\r
*\r
- * @param obj The Popup object\r
+ * @param[in] obj The Popup object\r
* @return content packed in popup widget\r
*\r
* @ingroup Popup\r
/**\r
* Adds the buttons in to the action area of popup object.\r
*\r
- * @param obj The popup object\r
- * @param no_of_buttons Number of buttons that has to be packed in action area.\r
- * @param first_button_text Label of first button\r
- * @param Varargs Response ID(Elm_Popup_Response/ any integer value) for first button, then additional buttons along with their response id ending with NULL.\r
+ * @param[in] obj The popup object\r
+ * @param[in] no_of_buttons Number of buttons that has to be packed in action area.\r
+ * @param[in] first_button_text Label of first button\r
+ * @param[in] Varargs Response ID(Elm_Popup_Response/ any integer value) for first button, then additional buttons along with their response id ending with NULL.\r
* @ingroup Popup\r
*/\r
EAPI void \r
* This Set's the time before the popup window is hidden, \r
* and ELM_POPUP_RESPONSE_TIMEOUT is sent along with response signal.\r
*\r
- * @param obj The popup object\r
- * @param timeout The timeout value in seconds.\r
+ * @param[in] obj The popup object\r
+ * @param[in] timeout The timeout value in seconds.\r
*\r
* @ingroup Popup\r
*/\r
* will not close when clicked outside. if ELM_POPUP_TYPE_ALERT is set, popup will close\r
* when clicked outside, and ELM_POPUP_RESPONSE_NONE is sent along with response signal.\r
*\r
- * @param obj The popup object\r
- * @param mode Elm_Popup_Mode\r
+ * @param[in] obj The popup object\r
+ * @param[in] mode Elm_Popup_Mode\r
*\r
* @ingroup Popup\r
*/\r
/**\r
* This Hides the popup by emitting response signal.\r
*\r
- * @param obj The popup object\r
- * @param response_id response ID of the signal to be emitted along with response signal\r
+ * @param[in] obj The popup object\r
+ * @param[in] response_id response ID of the signal to be emitted along with response signal\r
*\r
* @ingroup Popup\r
*/ \r
\r
/**\r
* This API controls the direction from which popup will appear and location of popup.\r
- * @param obj The popup object\r
- * @param orient the orientation of the popup\r
+ * @param[in] obj The popup object\r
+ * @param[in] orient the orientation of the popup\r
*\r
* @ingroup Popup\r
*/\r
* when popup returns with signal ELM_POPUP_RESPONSE_NONE, then exit the application using elm_exit\r
* by calling any post exit application code.\r
* \r
- * @param obj The popup object\r
+ * @param[in] obj The popup object\r
* @ingroup Popup\r
*/\r
EAPI int \r