]> gitweb.michael.orlitzky.com - xfce4-hdaps.git/blob - panel-plugin/xfce4-hdaps.h
Fixed compilation under XFCE 4.6 RC1 thanks to Evgeni Golov.
[xfce4-hdaps.git] / panel-plugin / xfce4-hdaps.h
1 #ifndef __XFCE4_HDAPS_H__
2 #define __XFCE4_HDAPS_H__
3
4 #include <gtk/gtk.h>
5 #include <libxfce4panel/xfce-panel-plugin.h>
6 #include <libxfce4panel/xfce-hvbox.h>
7 #include <libxfce4util/libxfce4util.h>
8 #include "hdaps.h"
9
10 G_BEGIN_DECLS
11
12 typedef struct {
13 XfcePanelPlugin *plugin;
14
15 /* Panel widgets */
16 GtkWidget *eventbox;
17 GtkWidget *hvbox;
18 GtkWidget *icon;
19 GtkTooltips *tooltip;
20
21 /* A pointer to the timeout function.
22 That is, a pointer to the function that gets
23 executed every poll_frequency milliseconds. */
24 gint timeout;
25
26 /* Keep track of the previous status so we don't update the
27 icon every poll_frequency for no reason. */
28 int previous_status;
29
30 /* Settings */
31 gchar *device_name;
32 gint poll_frequency;
33
34 /* Pseudo-setting, updated whenever device_name is. */
35 char sysfs_file[FILENAME_MAX];
36
37 /* Configuration dialog widgets */
38 GtkWidget *sb_poll_frequency; /* Spinners on all our rides, yo. */
39 GtkWidget *cb_device_name; /* The "Device name" combo box. */
40
41
42 } HdapsPlugin;
43
44 void hdaps_save(XfcePanelPlugin *plugin,
45 HdapsPlugin *hdaps);
46
47 G_END_DECLS
48
49 #endif