comparison pkui-icon.h @ 14:64f05992d8ec

GObject-based rewrite use asynchronous packagekit-glib API use persistent menu widget and notification object update existing notification when new updates become available, close it when no updates are available show status icon when updates are available, hide it when no updates are available hide icon when gpk-update-viewer is executed, check for updates when gpk-update-viewer exits introduce a startup delay before the first check for updates is made add context menu item to manually trigger a check for updates remove context menu item for quitting pk-update-icon
author Guido Berhoerster <guido@berhoerster.name>
date Thu, 20 Oct 2011 08:19:22 +0200
parents
children f6edbee6441f
comparison
equal deleted inserted replaced
13:dca97330d81e 14:64f05992d8ec
1 /*
2 * (C) 2011 Guido Berhoerster <gber@opensuse.org>
3 *
4 * Licensed under the GNU General Public License Version 2
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 */
20
21 #ifndef __PKUI_ICON_H
22 #define __PKUI_ICON_H
23
24 #include <glib-object.h>
25 #include <gtk/gtk.h>
26
27 G_BEGIN_DECLS
28
29 #define PKUI_TYPE_ICON (pkui_icon_get_type())
30 #define PKUI_ICON(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \
31 PKUI_TYPE_ICON, PkuiIcon))
32 #define PKUI_IS_ICON(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
33 PKUI_TYPE_ICON))
34 #define PKUI_ICON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \
35 PKUI_TYPE_ICON, PkuiIconClass))
36 #define PKUI_IS_ICON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), \
37 PKUI_TYPE_ICON))
38 #define PKUI_ICON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), \
39 PKUI_TYPE_ICON, PkuiIconClass))
40
41 typedef struct _PkuiIcon PkuiIcon;
42 typedef struct _PkuiIconClass PkuiIconClass;
43 typedef struct _PkuiIconPrivate PkuiIconPrivate;
44
45 struct _PkuiIcon
46 {
47 GObject parent_instance;
48 PkuiIconPrivate *priv;
49 };
50
51 struct _PkuiIconClass
52 {
53 GObjectClass parent_class;
54 };
55
56 PkuiIcon *pkui_icon_new(guint startup_delay, guint check_interval);
57
58 G_END_DECLS
59
60 #endif /* __PKUI_ICON_H */