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