~ubuntu-branches/debian/sid/gxneur/sid

« back to all changes in this revision

Viewing changes to src/tray_widget.h

  • Committer: Bazaar Package Importer
  • Author(s): Alexander GQ Gerasiov
  • Date: 2010-04-01 15:46:18 UTC
  • mfrom: (1.3.4 upstream) (2.1.6 maverick)
  • Revision ID: james.westby@ubuntu.com-20100401154618-3fm50aybzlmm0ltp
Tags: 0.9.8-1
* New upstream version 0.9.8
* debian/control: depends on xneur >= 0.9.8
* debian/control: Vcs-* fields updated.
* debian/watch updated.
* Switch package to dpkg 3.0 (quilt).
* 01_old_gtk_compat.patch: revert to old tray_widget code on old
  libgtk.
* Use upstream gxneur.desktop instead of own.
* debian/rules: keep some crap exists in upstream against make
  distclean.
* 03_fix_ftbfs_with_binutils_gold.patch: fix linking with binutils-
  gold (Closes: #554765).
* debian/control: updated standard's version: no changes needed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 *
20
20
 */
21
21
 
22
 
#ifndef _TRAY_WIDGET_H_
23
 
#define _TRAY_WIDGET_H_
24
 
 
 
22
#ifndef __GTK_TRAY_ICON_H__
 
23
#define __GTK_TRAY_ICON_H__
 
24
 
 
25
#include <gtk/gtkplug.h>
 
26
#include <gtk/gtk.h>
 
27
 
 
28
G_BEGIN_DECLS
 
29
 
 
30
#if GTK_CHECK_VERSION(2, 18, 0)
 
31
 
 
32
#define GTK_TYPE_TRAY_ICON              (gtk_tray_icon_get_type ())
 
33
#define GTK_TRAY_ICON(obj)              (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TRAY_ICON, GtkTrayIcon))
 
34
#define GTK_TRAY_ICON_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TRAY_ICON, GtkTrayIconClass))
 
35
#define GTK_IS_TRAY_ICON(obj)           (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TRAY_ICON))
 
36
#define GTK_IS_TRAY_ICON_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TRAY_ICON))
 
37
#define GTK_TRAY_ICON_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TRAY_ICON, GtkTrayIconClass))
 
38
 
 
39
typedef struct _GtkTrayIcon        GtkTrayIcon;
 
40
typedef struct _GtkTrayIconPrivate GtkTrayIconPrivate;
 
41
typedef struct _GtkTrayIconClass   GtkTrayIconClass;
 
42
 
 
43
struct _GtkTrayIcon
 
44
{
 
45
        GtkPlug parent_instance;
 
46
 
 
47
        GtkTrayIconPrivate *priv;
 
48
};
 
49
 
 
50
struct _GtkTrayIconClass
 
51
{
 
52
        GtkPlugClass parent_class;
 
53
 
 
54
        void (*__gtk_reserved1);
 
55
        void (*__gtk_reserved2);
 
56
        void (*__gtk_reserved3);
 
57
        void (*__gtk_reserved4);
 
58
        void (*__gtk_reserved5);
 
59
        void (*__gtk_reserved6);
 
60
};
 
61
 
 
62
GType          gtk_tray_icon_get_type         (void) G_GNUC_CONST;
 
63
 
 
64
GtkTrayIcon   *_gtk_tray_icon_new_for_screen  (GdkScreen   *screen,
 
65
                                               const gchar *name);
 
66
 
 
67
GtkTrayIcon   *_gtk_tray_icon_new             (const gchar *name);
 
68
 
 
69
guint          _gtk_tray_icon_send_message    (GtkTrayIcon *icon,
 
70
                                               gint         timeout,
 
71
                                               const gchar *message,
 
72
                                               gint         len);
 
73
void           _gtk_tray_icon_cancel_message  (GtkTrayIcon *icon,
 
74
                                               guint        id);
 
75
 
 
76
GtkOrientation _gtk_tray_icon_get_orientation (GtkTrayIcon *icon);
 
77
 
 
78
#else
25
79
#include <gdk/gdkx.h>
26
80
 
27
 
G_BEGIN_DECLS
28
 
 
29
81
enum _tray_widget_properties
30
82
{
31
83
        PROPERTY_ORIENTATION = 1
53
105
 
54
106
struct _tray_widget* tray_widget_init(const gchar *name);
55
107
 
 
108
#endif
56
109
G_END_DECLS
57
110
 
58
 
#endif /* _TRAY_WIDGET_H_ */
 
111
#endif /* __GTK_TRAY_ICON_H__ */