1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
4
* Copyright (C) Erick Pérez Castellanos 2011 <erick.red@gmail.com>
6
gtk-notification.c is free software: you can redistribute it and/or modify it
7
* under the terms of the GNU Lesser General Public License as published
8
* by the Free Software Foundation, either version 3 of the License, or
9
* (at your option) any later version.
11
* gtk-notification.c is distributed in the hope that it will be useful, but
12
* WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14
* See the GNU Lesser General Public License for more details.
16
* You should have received a copy of the GNU Lesser General Public License
17
* along with this program. If not, see <http://www.gnu.org/licenses/>.";
20
#ifndef _GTK_NOTIFICATION_H_
21
#define _GTK_NOTIFICATION_H_
27
#define GTK_TYPE_NOTIFICATION (gtk_notification_get_type ())
28
#define GTK_NOTIFICATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_NOTIFICATION, GtkNotification))
29
#define GTK_NOTIFICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_NOTIFICATION, GtkNotificationClass))
30
#define GTK_IS_NOTIFICATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_NOTIFICATION))
31
#define GTK_IS_NOTIFICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_NOTIFICATION))
32
#define GTK_NOTIFICATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_NOTIFICATION, GtkNotificationClass))
34
typedef struct _GtkNotificationPrivate GtkNotificationPrivate;
35
typedef struct _GtkNotificationClass GtkNotificationClass;
36
typedef struct _GtkNotification GtkNotification;
38
struct _GtkNotificationClass {
39
GtkBinClass parent_class;
42
void (*dismissed) (GtkNotification *self);
45
struct _GtkNotification {
46
GtkBin parent_instance;
49
GtkNotificationPrivate *priv;
52
GType gtk_notification_get_type (void) G_GNUC_CONST;
54
GtkWidget *gtk_notification_new (void);
55
void gtk_notification_set_timeout (GtkNotification *notification,
57
void gtk_notification_dismiss (GtkNotification *notification);
61
#endif /* _GTK_NOTIFICATION_H_ */