diff options
author | Ted Gould <ted@gould.cx> | 2010-02-23 11:33:18 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-02-23 11:33:18 -0600 |
commit | c96dfa4fcf905cdf73b02589b2c64b83849160a6 (patch) | |
tree | cb274792af90d23f382fc9748bf0492c391eaf6e /src | |
parent | 0c8dbfc17a82b877ec38e72fcfef1a6bdf2ab8ca (diff) | |
download | ayatana-indicator-session-c96dfa4fcf905cdf73b02589b2c64b83849160a6.tar.gz ayatana-indicator-session-c96dfa4fcf905cdf73b02589b2c64b83849160a6.tar.bz2 ayatana-indicator-session-c96dfa4fcf905cdf73b02589b2c64b83849160a6.zip |
Place holder new object
Diffstat (limited to 'src')
-rw-r--r-- | src/gtk-dialog/Makefile.am | 4 | ||||
-rw-r--r-- | src/gtk-dialog/dialog.c | 58 | ||||
-rw-r--r-- | src/gtk-dialog/dialog.h | 31 |
3 files changed, 91 insertions, 2 deletions
diff --git a/src/gtk-dialog/Makefile.am b/src/gtk-dialog/Makefile.am index 3f14d78..2c7e61a 100644 --- a/src/gtk-dialog/Makefile.am +++ b/src/gtk-dialog/Makefile.am @@ -7,8 +7,8 @@ gtk_logout_helper_SOURCES = \ ck-pk-helper.h \ gconf-helper.c \ gconf-helper.h \ - logout-dialog.c \ - logout-dialog.h + dialog.c \ + dialog.h gtk_logout_helper_CFLAGS = $(SESSIONSERVICE_CFLAGS) $(GTKLOGOUTHELPER_CFLAGS) $(GCONF_CFLAGS) -Wall -Werror -DINDICATOR_ICONS_DIR="\"$(INDICATORICONSDIR)\"" gtk_logout_helper_LDADD = $(SESSIONSERVICE_LIBS) $(GTKLOGOUTHELPER_LIBS) $(GCONF_LIBS) diff --git a/src/gtk-dialog/dialog.c b/src/gtk-dialog/dialog.c new file mode 100644 index 0000000..c9d66b3 --- /dev/null +++ b/src/gtk-dialog/dialog.c @@ -0,0 +1,58 @@ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "dialog.h" + +typedef struct _LogoutDialogPrivate LogoutDialogPrivate; +struct _LogoutDialogPrivate { + guint type; +}; + +#define LOGOUT_DIALOG_GET_PRIVATE(o) \ +(G_TYPE_INSTANCE_GET_PRIVATE ((o), LOGOUT_DIALOG_TYPE, LogoutDialogPrivate)) + +static void logout_dialog_class_init (LogoutDialogClass *klass); +static void logout_dialog_init (LogoutDialog *self); +static void logout_dialog_dispose (GObject *object); +static void logout_dialog_finalize (GObject *object); + +G_DEFINE_TYPE (LogoutDialog, logout_dialog, GTK_TYPE_DIALOG); + +static void +logout_dialog_class_init (LogoutDialogClass *klass) +{ + GObjectClass *object_class = G_OBJECT_CLASS (klass); + + g_type_class_add_private (klass, sizeof (LogoutDialogPrivate)); + + object_class->dispose = logout_dialog_dispose; + object_class->finalize = logout_dialog_finalize; + + return; +} + +static void +logout_dialog_init (LogoutDialog *self) +{ + + return; +} + +static void +logout_dialog_dispose (GObject *object) +{ + + + G_OBJECT_CLASS (logout_dialog_parent_class)->dispose (object); + return; +} + +static void +logout_dialog_finalize (GObject *object) +{ + + + G_OBJECT_CLASS (logout_dialog_parent_class)->finalize (object); + return; +} diff --git a/src/gtk-dialog/dialog.h b/src/gtk-dialog/dialog.h new file mode 100644 index 0000000..eeb93ed --- /dev/null +++ b/src/gtk-dialog/dialog.h @@ -0,0 +1,31 @@ +#ifndef __LOGOUT_DIALOG_H__ +#define __LOGOUT_DIALOG_H__ + +#include <glib.h> +#include <glib-object.h> + +G_BEGIN_DECLS + +#define LOGOUT_DIALOG_TYPE (logout_dialog_get_type ()) +#define LOGOUT_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LOGOUT_DIALOG_TYPE, LogoutDialog)) +#define LOGOUT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LOGOUT_DIALOG_TYPE, LogoutDialogClass)) +#define IS_LOGOUT_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LOGOUT_DIALOG_TYPE)) +#define IS_LOGOUT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LOGOUT_DIALOG_TYPE)) +#define LOGOUT_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LOGOUT_DIALOG_TYPE, LogoutDialogClass)) + +typedef struct _LogoutDialog LogoutDialog; +typedef struct _LogoutDialogClass LogoutDialogClass; + +struct _LogoutDialogClass { + GtkDialogClass parent_class; +}; + +struct _LogoutDialog { + GtkDialog parent; +}; + +GType logout_dialog_get_type (void); + +G_END_DECLS + +#endif |