Back to index

indicator-appmenu  12.10.0
Classes | Defines | Typedefs | Functions
gactionobservable.h File Reference
#include "gactionobserver.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _GActionObservableInterface

Defines

#define G_TYPE_ACTION_OBSERVABLE   (g_action_observable_get_type ())
#define G_ACTION_OBSERVABLE(inst)
#define G_IS_ACTION_OBSERVABLE(inst)
#define G_ACTION_OBSERVABLE_GET_IFACE(inst)

Typedefs

typedef struct _GActionObservableInterface

Functions

G_GNUC_INTERNAL GType g_action_observable_get_type (void)
G_GNUC_INTERNAL void g_action_observable_register_observer (GActionObservable *observable, const gchar *action_name, GActionObserver *observer)
G_GNUC_INTERNAL void g_action_observable_unregister_observer (GActionObservable *observable, const gchar *action_name, GActionObserver *observer)

Define Documentation

#define G_ACTION_OBSERVABLE (   inst)
Value:
(G_TYPE_CHECK_INSTANCE_CAST ((inst),                     \
                                                             G_TYPE_ACTION_OBSERVABLE, GActionObservable))

Definition at line 28 of file gactionobservable.h.

#define G_ACTION_OBSERVABLE_GET_IFACE (   inst)
Value:
(G_TYPE_INSTANCE_GET_INTERFACE ((inst),                  \
                                                             G_TYPE_ACTION_OBSERVABLE, GActionObservableInterface))

Definition at line 32 of file gactionobservable.h.

#define G_IS_ACTION_OBSERVABLE (   inst)
Value:
(G_TYPE_CHECK_INSTANCE_TYPE ((inst),                     \
                                                             G_TYPE_ACTION_OBSERVABLE))

Definition at line 30 of file gactionobservable.h.

Definition at line 27 of file gactionobservable.h.


Typedef Documentation

Definition at line 35 of file gactionobservable.h.


Function Documentation

G_GNUC_INTERNAL GType g_action_observable_get_type ( void  )
G_GNUC_INTERNAL void g_action_observable_register_observer ( GActionObservable *  observable,
const gchar *  action_name,
GActionObserver *  observer 
)

Definition at line 47 of file gactionobservable.c.

{
  g_return_if_fail (G_IS_ACTION_OBSERVABLE (observable));

  G_ACTION_OBSERVABLE_GET_IFACE (observable)
    ->register_observer (observable, action_name, observer);
}

Here is the caller graph for this function:

G_GNUC_INTERNAL void g_action_observable_unregister_observer ( GActionObservable *  observable,
const gchar *  action_name,
GActionObserver *  observer 
)

Definition at line 70 of file gactionobservable.c.

{
  g_return_if_fail (G_IS_ACTION_OBSERVABLE (observable));

  G_ACTION_OBSERVABLE_GET_IFACE (observable)
    ->unregister_observer (observable, action_name, observer);
}