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