~ubuntu-branches/ubuntu/trusty/gnome-contacts/trusty

« back to all changes in this revision

Viewing changes to libgd/libgd/gd-notification.h

  • Committer: Package Import Robot
  • Author(s): Michael Biebl, Jeremy Bicha, Michael Biebl
  • Date: 2013-09-19 18:23:06 UTC
  • mfrom: (1.3.10) (0.3.4 experimental)
  • mto: This revision was merged to the branch mainline in revision 40.
  • Revision ID: package-import@ubuntu.com-20130919182306-rcatwotzg94pr884
Tags: 3.8.3-1
[ Jeremy Bicha ]
* debian/control.in:
  - Drop alternate build-depends on valac-0.18 since it's no longer
    in Debian

[ Michael Biebl ]
* New upstream release.
* Loosen Build-Depends on libgnome-desktop-3-dev, we do not strictly require
  version (>= 3.6.0) which is not yet available in unstable.
* Bump Standards-Version to 3.9.4. No further changes.
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 
2
/*
 
3
 * gd-notification
 
4
 * Based on gtk-notification from gnome-contacts:
 
5
 * http://git.gnome.org/browse/gnome-contacts/tree/src/gtk-notification.c?id=3.3.91
 
6
 *
 
7
 * Copyright (C) Erick Pérez Castellanos 2011 <erick.red@gmail.com>
 
8
 * Copyright (C) 2012 Red Hat, Inc.
 
9
 *
 
10
 * This program is free software: you can redistribute it and/or modify it
 
11
 * under the terms of the GNU Lesser General Public License as published
 
12
 * by the Free Software Foundation, either version 2 of the License, or
 
13
 * (at your option) any later version.
 
14
 *
 
15
 * This program is distributed in the hope that it will be useful, but
 
16
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 
17
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
18
 * See the GNU Lesser General Public License for more details.
 
19
 *
 
20
 * You should have received a copy of the GNU Lesser General Public License
 
21
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.";
 
22
 */
 
23
 
 
24
#ifndef _GD_NOTIFICATION_H_
 
25
#define _GD_NOTIFICATION_H_
 
26
 
 
27
#include <gtk/gtk.h>
 
28
 
 
29
G_BEGIN_DECLS
 
30
 
 
31
#define GD_TYPE_NOTIFICATION             (gd_notification_get_type ())
 
32
#define GD_NOTIFICATION(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj), GD_TYPE_NOTIFICATION, GdNotification))
 
33
#define GD_NOTIFICATION_CLASS(klass)     (G_TYPE_CHECK_CLASS_CAST ((klass), GD_TYPE_NOTIFICATION, GdNotificationClass))
 
34
#define GTK_IS_NOTIFICATION(obj)          (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GD_TYPE_NOTIFICATION))
 
35
#define GTK_IS_NOTIFICATION_CLASS(klass)  (G_TYPE_CHECK_CLASS_TYPE ((klass), GD_TYPE_NOTIFICATION))
 
36
#define GD_NOTIFICATION_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), GD_TYPE_NOTIFICATION, GdNotificationClass))
 
37
 
 
38
typedef struct _GdNotificationPrivate GdNotificationPrivate;
 
39
typedef struct _GdNotificationClass GdNotificationClass;
 
40
typedef struct _GdNotification GdNotification;
 
41
 
 
42
struct _GdNotificationClass {
 
43
  GtkBinClass parent_class;
 
44
 
 
45
  /* Signals */
 
46
  void (*dismissed) (GdNotification *self);
 
47
};
 
48
 
 
49
struct _GdNotification {
 
50
  GtkBin parent_instance;
 
51
 
 
52
  /*< private > */
 
53
  GdNotificationPrivate *priv;
 
54
};
 
55
 
 
56
GType gd_notification_get_type (void) G_GNUC_CONST;
 
57
 
 
58
GtkWidget *gd_notification_new         (void);
 
59
void       gd_notification_set_timeout (GdNotification *notification,
 
60
                                        gint            timeout_sec);
 
61
void       gd_notification_dismiss     (GdNotification *notification);
 
62
void       gd_notification_set_show_close_button (GdNotification *notification,
 
63
                                                  gboolean show_close_button);
 
64
 
 
65
G_END_DECLS
 
66
 
 
67
#endif /* _GD_NOTIFICATION_H_ */