~jconti/recent-notifications/trunk

« back to all changes in this revision

Viewing changes to indicator/message-menuitem.h

  • Committer: Jason Conti
  • Date: 2011-05-18 21:17:09 UTC
  • Revision ID: jason.conti@gmail.com-20110518211709-inr5d289rvcabeor
Removing the indicator directory. indicator-notifications is now hosted at lp:recent-notifications/indicator. Also cleaned up the root directory a bit.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * message-menuitem.h - A menuitem subclass to display a notification message.
3
 
 */
4
 
 
5
 
#ifndef __MESSAGE_MENUITEM_H__
6
 
#define __MESSAGE_MENUITEM_H__
7
 
 
8
 
#include <glib.h>
9
 
#include <gtk/gtkmenuitem.h>
10
 
 
11
 
G_BEGIN_DECLS
12
 
 
13
 
#define MESSAGE_MENUITEM_TYPE             (message_menuitem_get_type ())
14
 
#define MESSAGE_MENUITEM(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj), MESSAGE_MENUITEM_TYPE, MessageMenuItem))
15
 
#define MESSAGE_MENUITEM_CLASS(klass)     (G_TYPE_CHECK_CLASS_CAST ((klass), MESSAGE_MENUITEM_TYPE, MessageMenuItemClass))
16
 
#define IS_MESSAGE_MENUITEM(obj)          (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MESSAGE_MENUITEM_TYPE))
17
 
#define IS_MESSAGE_MENUITEM_CLASS(klass)  (G_TYPE_CHECK_CLASS_TYPE ((klass), MESSAGE_MENUITEM_TYPE))
18
 
 
19
 
typedef struct _MessageMenuItem       MessageMenuItem;
20
 
typedef struct _MessageMenuItemClass  MessageMenuItemClass;
21
 
 
22
 
struct _MessageMenuItem
23
 
{
24
 
  GtkMenuItem parent;
25
 
 
26
 
  GtkWidget *hbox;
27
 
  GtkWidget *image;
28
 
  GtkWidget *label;
29
 
};
30
 
 
31
 
struct _MessageMenuItemClass
32
 
{
33
 
  GtkMenuItemClass parent_class;
34
 
};
35
 
 
36
 
GType       message_menuitem_get_type(void);
37
 
GtkWidget*  message_menuitem_new(void);
38
 
void        message_menuitem_set_message(MessageMenuItem *item, const char *summary, const char *body, 
39
 
                const char *timestamp, const char *app_name, const char *icon_name);
40
 
 
41
 
G_END_DECLS
42
 
 
43
 
#endif /* __MESSAGE_MENUITEM_H__ */