summaryrefslogtreecommitdiff
path: root/src/gtk-notification.h
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2011-12-20 16:20:18 +0100
committerAlexander Larsson <alexl@redhat.com>2011-12-20 16:21:40 +0100
commit570ceb747969b4b94d13a299b655a927aca20ffe (patch)
treea3d6b6702e988f527003e3fb3d487928ee6d10b2 /src/gtk-notification.h
parent9cb77dc3fa472b46f4e238cc2a546d16f7198c95 (diff)
downloadgnome-contacts-570ceb747969b4b94d13a299b655a927aca20ffe.tar.gz
Make notification a pure GtkBin and move the content packing to the vala code
Diffstat (limited to 'src/gtk-notification.h')
-rw-r--r--src/gtk-notification.h19
1 files changed, 11 insertions, 8 deletions
diff --git a/src/gtk-notification.h b/src/gtk-notification.h
index 5f6519c..9cff5e4 100644
--- a/src/gtk-notification.h
+++ b/src/gtk-notification.h
@@ -1,4 +1,4 @@
-/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* gtk-notification.c
* Copyright (C) Erick PĂ©rez Castellanos 2011 <erick.red@gmail.com>
@@ -36,22 +36,25 @@ typedef struct _GtkNotificationClass GtkNotificationClass;
typedef struct _GtkNotification GtkNotification;
struct _GtkNotificationClass {
- GtkGridClass parent_class;
+ GtkBinClass parent_class;
- /* Signals */
- void (*actioned) (GtkNotification *self);
+ /* Signals */
+ void (*timed_out) (GtkNotification *self);
};
struct _GtkNotification {
- GtkGrid parent_instance;
+ GtkBin parent_instance;
- /*< private > */
- GtkNotificationPrivate *priv;
+ /*< private > */
+ GtkNotificationPrivate *priv;
};
GType gtk_notification_get_type (void) G_GNUC_CONST;
-GtkWidget * gtk_notification_new (gchar * message, gchar * action);
+GtkWidget *gtk_notification_new (void);
+void gtk_notification_set_timeout (GtkNotification *notification,
+ guint timeout_msec);
+void gtk_notification_dismiss (GtkNotification *notification);
G_END_DECLS