Back to index

indicator-session  12.10.0
Classes | Defines | Typedefs | Functions
user-widget.h File Reference
#include <gtk/gtk.h>
#include <libdbusmenu-gtk/menuitem.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _UserWidgetClass
struct  _UserWidget

Defines

#define USER_WIDGET_TYPE   (user_widget_get_type ())
#define USER_WIDGET(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), USER_WIDGET_TYPE, UserWidget))
#define USER_WIDGET_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), USER_WIDGET_TYPE, UserWidgetClass))
#define IS_USER_WIDGET(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), USER_WIDGET_TYPE))
#define IS_USER_WIDGET_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), USER_WIDGET_TYPE))
#define USER_WIDGET_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), USER_WIDGET_TYPE, UserWidgetClass))

Typedefs

typedef struct _UserWidget
typedef struct _UserWidgetClass
typedef struct _UserWidgetPrivate

Functions

GType user_widget_get_type (void) G_GNUC_CONST
GtkWidget * user_widget_new (DbusmenuMenuitem *twin_item)
 user_widget_new:

Class Documentation

struct _UserWidgetClass

Definition at line 38 of file user-widget.h.

Class Members
GtkMenuItemClass parent_class
struct _UserWidget

Definition at line 43 of file user-widget.h.

Class Members
GtkMenuItem parent
UserWidgetPrivate * priv

Define Documentation

#define IS_USER_WIDGET (   obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), USER_WIDGET_TYPE))

Definition at line 30 of file user-widget.h.

#define IS_USER_WIDGET_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), USER_WIDGET_TYPE))

Definition at line 31 of file user-widget.h.

#define USER_WIDGET (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), USER_WIDGET_TYPE, UserWidget))

Definition at line 28 of file user-widget.h.

#define USER_WIDGET_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), USER_WIDGET_TYPE, UserWidgetClass))

Definition at line 29 of file user-widget.h.

#define USER_WIDGET_GET_CLASS (   obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), USER_WIDGET_TYPE, UserWidgetClass))

Definition at line 32 of file user-widget.h.

Definition at line 27 of file user-widget.h.


Typedef Documentation

typedef struct _UserWidget

Definition at line 34 of file user-widget.h.

typedef struct _UserWidgetClass

Definition at line 35 of file user-widget.h.

typedef struct _UserWidgetPrivate

Definition at line 36 of file user-widget.h.


Function Documentation

GType user_widget_get_type ( void  )
GtkWidget* user_widget_new ( DbusmenuMenuitem *  item)

user_widget_new:

Returns:
: a new #UserWidget.

Definition at line 283 of file user-widget.c.

{
  GtkWidget* widget =  g_object_new(USER_WIDGET_TYPE, NULL);
  user_widget_set_twin_item ( USER_WIDGET(widget), item );
  return widget;
}

Here is the call graph for this function:

Here is the caller graph for this function: