| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
#ifndef __NA_TRAY_H__ |
| 25 |
#define __NA_TRAY_H__ |
| 26 |
|
| 27 |
#ifdef GDK_WINDOWING_X11 |
| 28 |
#include <gdk/gdkx.h> |
| 29 |
#endif |
| 30 |
#include <gtk/gtk.h> |
| 31 |
|
| 32 |
G_BEGIN_DECLS |
| 33 |
|
| 34 |
#define NA_TYPE_TRAY (na_tray_get_type ()) |
| 35 |
#define NA_TRAY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NA_TYPE_TRAY, NaTray)) |
| 36 |
#define NA_TRAY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), NA_TYPE_TRAY, NaTrayClass)) |
| 37 |
#define NA_IS_TRAY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NA_TYPE_TRAY)) |
| 38 |
#define NA_IS_TRAY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), NA_TYPE_TRAY)) |
| 39 |
#define NA_TRAY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), NA_TYPE_TRAY, NaTrayClass)) |
| 40 |
|
| 41 |
typedef struct _NaTray NaTray; |
| 42 |
typedef struct _NaTrayPrivate NaTrayPrivate; |
| 43 |
typedef struct _NaTrayClass NaTrayClass; |
| 44 |
|
| 45 |
struct _NaTray |
| 46 |
{ |
| 47 |
GtkBin parent_instance; |
| 48 |
|
| 49 |
NaTrayPrivate *priv; |
| 50 |
}; |
| 51 |
|
| 52 |
struct _NaTrayClass |
| 53 |
{ |
| 54 |
GtkBinClass parent_class; |
| 55 |
}; |
| 56 |
|
| 57 |
GType na_tray_get_type (void); |
| 58 |
NaTray *na_tray_new_for_screen (GdkScreen *screen, |
| 59 |
GtkOrientation orientation); |
| 60 |
void na_tray_set_orientation (NaTray *tray, |
| 61 |
GtkOrientation orientation); |
| 62 |
GtkOrientation na_tray_get_orientation (NaTray *tray); |
| 63 |
void na_tray_set_padding (NaTray *tray, |
| 64 |
gint padding); |
| 65 |
void na_tray_set_icon_size (NaTray *tray, |
| 66 |
gint icon_size); |
| 67 |
void na_tray_set_colors (NaTray *tray, |
| 68 |
GdkColor *fg, |
| 69 |
GdkColor *error, |
| 70 |
GdkColor *warning, |
| 71 |
GdkColor *success); |
| 72 |
void na_tray_force_redraw (NaTray *tray); |
| 73 |
|
| 74 |
G_END_DECLS |
| 75 |
|
| 76 |
#endif |