diff options
-rw-r--r-- | .bzrignore | 1 | ||||
-rw-r--r-- | src/Makefile.am | 2 | ||||
-rw-r--r-- | src/app-gtk-menu-item.c | 57 | ||||
-rw-r--r-- | src/app-gtk-menu-item.h | 32 |
4 files changed, 92 insertions, 0 deletions
@@ -22,3 +22,4 @@ indicator-messages-service-activate src/messages-service-client.h src/messages-service-server.h po/indicator-messages.pot +src/libmessaging_la-app-gtk-menu-item.lo diff --git a/src/Makefile.am b/src/Makefile.am index 01741d0..7a325c5 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -8,6 +8,8 @@ libexec_PROGRAMS = indicator-messages-service messaginglibdir = $(INDICATORDIR) messaginglib_LTLIBRARIES = libmessaging.la libmessaging_la_SOURCES = \ + app-gtk-menu-item.h \ + app-gtk-menu-item.c \ indicator-messages.c \ messages-service-client.h \ dbus-data.h diff --git a/src/app-gtk-menu-item.c b/src/app-gtk-menu-item.c new file mode 100644 index 0000000..9a34f16 --- /dev/null +++ b/src/app-gtk-menu-item.c @@ -0,0 +1,57 @@ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "app-gtk-menu-item.h" + +typedef struct _AppGtkMenuItemPrivate AppGtkMenuItemPrivate; +struct _AppGtkMenuItemPrivate { + int dummy; +}; + +#define APP_GTK_MENU_ITEM_GET_PRIVATE(o) \ +(G_TYPE_INSTANCE_GET_PRIVATE ((o), APP_GTK_MENU_ITEM_TYPE, AppGtkMenuItemPrivate)) + +static void app_gtk_menu_item_class_init (AppGtkMenuItemClass *klass); +static void app_gtk_menu_item_init (AppGtkMenuItem *self); +static void app_gtk_menu_item_dispose (GObject *object); +static void app_gtk_menu_item_finalize (GObject *object); + +G_DEFINE_TYPE (AppGtkMenuItem, app_gtk_menu_item, GTK_TYPE_CHECK_MENU_ITEM); + +static void +app_gtk_menu_item_class_init (AppGtkMenuItemClass *klass) +{ + GObjectClass *object_class = G_OBJECT_CLASS (klass); + + g_type_class_add_private (klass, sizeof (AppGtkMenuItemPrivate)); + + object_class->dispose = app_gtk_menu_item_dispose; + object_class->finalize = app_gtk_menu_item_finalize; + + return; +} + +static void +app_gtk_menu_item_init (AppGtkMenuItem *self) +{ + + return; +} + +static void +app_gtk_menu_item_dispose (GObject *object) +{ + + G_OBJECT_CLASS (app_gtk_menu_item_parent_class)->dispose (object); + return; +} + +static void +app_gtk_menu_item_finalize (GObject *object) +{ + + + G_OBJECT_CLASS (app_gtk_menu_item_parent_class)->finalize (object); + return; +} diff --git a/src/app-gtk-menu-item.h b/src/app-gtk-menu-item.h new file mode 100644 index 0000000..feb3139 --- /dev/null +++ b/src/app-gtk-menu-item.h @@ -0,0 +1,32 @@ +#ifndef __APP_GTK_MENU_ITEM_H__ +#define __APP_GTK_MENU_ITEM_H__ + +#include <glib.h> +#include <glib-object.h> +#include <gtk/gtk.h> + +G_BEGIN_DECLS + +#define APP_GTK_MENU_ITEM_TYPE (app_gtk_menu_item_get_type ()) +#define APP_GTK_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), APP_GTK_MENU_ITEM_TYPE, AppGtkMenuItem)) +#define APP_GTK_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), APP_GTK_MENU_ITEM_TYPE, AppGtkMenuItemClass)) +#define IS_APP_GTK_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), APP_GTK_MENU_ITEM_TYPE)) +#define IS_APP_GTK_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), APP_GTK_MENU_ITEM_TYPE)) +#define APP_GTK_MENU_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), APP_GTK_MENU_ITEM_TYPE, AppGtkMenuItemClass)) + +typedef struct _AppGtkMenuItem AppGtkMenuItem; +typedef struct _AppGtkMenuItemClass AppGtkMenuItemClass; + +struct _AppGtkMenuItemClass { + GtkCheckMenuItemClass parent_class; +}; + +struct _AppGtkMenuItem { + GtkCheckMenuItem parent; +}; + +GType app_gtk_menu_item_get_type (void); + +G_END_DECLS + +#endif |