patch from disco-man! :)
authorCarsten Haitzler <raster@rasterman.com>
Wed, 7 Apr 2010 01:31:36 +0000 (01:31 +0000)
committerCarsten Haitzler <raster@rasterman.com>
Wed, 7 Apr 2010 01:31:36 +0000 (01:31 +0000)
SVN revision: 47799

src/lib/Elementary.h.in
src/lib/elc_hoversel.c

index f3416b8..b6b079c 100644 (file)
@@ -754,6 +754,7 @@ extern "C" {
    EAPI Evas_Object *elm_hoversel_icon_get(const Evas_Object *obj);
    EAPI void         elm_hoversel_hover_begin(Evas_Object *obj);
    EAPI void         elm_hoversel_hover_end(Evas_Object *obj);
+   EAPI Eina_Bool    elm_hoversel_expanded_get(Evas_Object *obj);
    EAPI void         elm_hoversel_clear(Evas_Object *obj);
    EAPI const Eina_List * elm_hoversel_items_get(const Evas_Object *obj);
    EAPI Elm_Hoversel_Item *elm_hoversel_item_add(Evas_Object *obj, const char *label, const char *icon_file, Elm_Icon_Type icon_type, Evas_Smart_Cb func, const void *data);
index fc4a765..918be3a 100644 (file)
@@ -425,6 +425,24 @@ elm_hoversel_hover_end(Evas_Object *obj)
 }
 
 /**
+ * Returns whether the hoversel is expanded.
+ *
+ * This will return EINA_TRUE if the hoversel is expanded or
+ * EINA_FALSE if it is not expanded.
+ * @param obj The hoversel object
+ *
+ * @ingroup Hoversel
+ */
+EAPI Eina_Bool
+elm_hoversel_expanded_get(Evas_Object *obj)
+{
+   ELM_CHECK_WIDTYPE(obj, widtype) EINA_FALSE;
+   Widget_Data *wd = elm_widget_data_get(obj);
+   if (!wd) return EINA_FALSE;
+   return (wd->hover) ? EINA_TRUE : EINA_FALSE;
+}
+  
+/**
  * Remove all the items from the given hoversel object.
  *
  * This will remove all the children items from the hoversel. (should not be