diff options
author | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2011-07-02 00:17:53 +0800 |
---|---|---|
committer | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2011-07-04 19:43:09 +0800 |
commit | abbbbdaed8530a61d99ca49ca8a33878dd24eda2 (patch) | |
tree | 60787ee29c295127dc14c95f34a4b673ea32fc82 /libempathy-gtk/empathy-log-window.h | |
parent | 3b221ab08d6798c6d91d48332921fab8c3e7790e (diff) | |
download | gsoc2013-empathy-abbbbdaed8530a61d99ca49ca8a33878dd24eda2.tar gsoc2013-empathy-abbbbdaed8530a61d99ca49ca8a33878dd24eda2.tar.gz gsoc2013-empathy-abbbbdaed8530a61d99ca49ca8a33878dd24eda2.tar.bz2 gsoc2013-empathy-abbbbdaed8530a61d99ca49ca8a33878dd24eda2.tar.lz gsoc2013-empathy-abbbbdaed8530a61d99ca49ca8a33878dd24eda2.tar.xz gsoc2013-empathy-abbbbdaed8530a61d99ca49ca8a33878dd24eda2.tar.zst gsoc2013-empathy-abbbbdaed8530a61d99ca49ca8a33878dd24eda2.zip |
LogWindow: make it a proper GtkWindow subclass
And a proper singleton while at it.
https://bugzilla.gnome.org/show_bug.cgi?id=653803
Diffstat (limited to 'libempathy-gtk/empathy-log-window.h')
-rw-r--r-- | libempathy-gtk/empathy-log-window.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-log-window.h b/libempathy-gtk/empathy-log-window.h index 373f48c36..4c1244cc9 100644 --- a/libempathy-gtk/empathy-log-window.h +++ b/libempathy-gtk/empathy-log-window.h @@ -29,6 +29,31 @@ G_BEGIN_DECLS +#define EMPATHY_TYPE_LOG_WINDOW (empathy_log_window_get_type ()) +#define EMPATHY_LOG_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EMPATHY_TYPE_LOG_WINDOW, EmpathyLogWindow)) +#define EMPATHY_LOG_WINDOW_CLASS(obj) (G_TYPE_CHECK_CLASS_CAST ((obj), EMPATHY_TYPE_LOG_WINDOW, EmpathyLogWindowClass)) +#define EMPATHY_IS_LOG_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EMPATHY_TYPE_LOG_WINDOW)) +#define EMPATHY_IS_LOG_WINDOW_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE ((obj), EMPATHY_TYPE_LOG_WINDOW)) +#define EMPATHY_LOG_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EMPATHY_TYPE_LOG_WINDOW, EmpathyLogWindowClass)) + +typedef struct _EmpathyLogWindow EmpathyLogWindow; +typedef struct _EmpathyLogWindowPriv EmpathyLogWindowPriv; +typedef struct _EmpathyLogWindowClass EmpathyLogWindowClass; + +struct _EmpathyLogWindow +{ + GtkDialog parent; + + EmpathyLogWindowPriv *priv; +}; + +struct _EmpathyLogWindowClass +{ + GtkDialogClass parent_class; +}; + +GType empathy_log_window_get_type (void); + GtkWidget * empathy_log_window_show (TpAccount *account, const gchar *chat_id, gboolean chatroom, |