unity-webapps-indicator-context

unity-webapps-indicator-context

Functions

Types and Values

Description

Functions

UnityWebappsIndicatorCallback ()

void
(*UnityWebappsIndicatorCallback) (UnityWebappsContext *context,
                                  gpointer user_data);

unity_webapps_indicator_add_action ()

void
unity_webapps_indicator_add_action (UnityWebappsContext *context,
                                    const gchar *label,
                                    UnityWebappsIndicatorCallback callback,
                                    gpointer user_data);

unity_webapps_indicator_clear_indicator ()

void
unity_webapps_indicator_clear_indicator
                               (UnityWebappsContext *context,
                                const gchar *name);

unity_webapps_indicator_context_free ()

void
unity_webapps_indicator_context_free (UnityWebappsIndicatorContext *context);

unity_webapps_indicator_context_new ()

UnityWebappsIndicatorContext *
unity_webapps_indicator_context_new (UnityWebappsContext *main_context,
                                     GError **error);

unity_webapps_indicator_get_presence ()

gchar *
unity_webapps_indicator_get_presence (UnityWebappsContext *context);

unity_webapps_indicator_on_presence_changed_callback ()

void
unity_webapps_indicator_on_presence_changed_callback
                               (UnityWebappsContext *context,
                                UnityWebappsIndicatorCallback callback,
                                gpointer user_data);

unity_webapps_indicator_set_callback ()

void
unity_webapps_indicator_set_callback (UnityWebappsContext *context,
                                      const gchar *name,
                                      UnityWebappsIndicatorCallback callback,
                                      gpointer user_data);

unity_webapps_indicator_set_property ()

void
unity_webapps_indicator_set_property (UnityWebappsContext *context,
                                      const gchar *name,
                                      const gchar *property,
                                      const gchar *value);

unity_webapps_indicator_set_property_icon ()

void
unity_webapps_indicator_set_property_icon
                               (UnityWebappsContext *context,
                                const gchar *name,
                                const gchar *property,
                                const gchar *icon_url);

unity_webapps_indicator_show_indicator ()

void
unity_webapps_indicator_show_indicator
                               (UnityWebappsContext *context,
                                const gchar *name);

Types and Values

UnityWebappsIndicatorContext

typedef struct {
  UnityWebappsContext *context;

  UnityWebappsGenIndicator *indicator_proxy;
	
  GHashTable *menu_callbacks_by_name;
  GHashTable *indicator_callbacks_by_name;

  guint indicator_rate;
} UnityWebappsIndicatorContext;