X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=panel-plugin%2Fxfce4-hdaps.h;h=08f54fb49fcad5121382891c00b592e432792372;hb=60ffd1d1b7266d9a030b2c864135ff444f0cb917;hp=65e545e719037956a91c5e68e273022374f43db4;hpb=f96fd73099713a39795b0b32c418f2af8818a96a;p=xfce4-hdaps.git diff --git a/panel-plugin/xfce4-hdaps.h b/panel-plugin/xfce4-hdaps.h index 65e545e..08f54fb 100644 --- a/panel-plugin/xfce4-hdaps.h +++ b/panel-plugin/xfce4-hdaps.h @@ -1,21 +1,22 @@ /* * xfce4-hdaps, an XFCE4 panel plugin for the HDAPS system. * - * Copyright Michael Orlitzky + * Copyright (C) 2019 Michael Orlitzky * - * http://michael.orlitzky.com/ + * http://michael.orlitzky.com/ * * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details: + * + * https://www.gnu.org/licenses/agpl-3.0.html * - * http://www.fsf.org/licensing/licenses/gpl.html */ #ifndef __XFCE4_HDAPS_H__ @@ -23,20 +24,18 @@ #include #include -#include #include G_BEGIN_DECLS typedef struct { XfcePanelPlugin *plugin; - + /* Panel widgets */ GtkWidget *eventbox; GtkWidget *hvbox; GtkWidget *icon; - GtkTooltips *tooltip; - + /* A pointer to the timeout function. That is, a pointer to the function that gets executed every poll_frequency milliseconds. */ @@ -45,19 +44,19 @@ typedef struct { /* Keep track of the previous status so we don't update the icon every poll_frequency for no reason. */ int previous_status; - + /* Settings */ gchar *device_name; gint poll_frequency; - + /* Pseudo-setting, updated whenever device_name is. */ char sysfs_file[FILENAME_MAX]; - - /* Configuration dialog widgets */ + + /* Configuration dialog widgets */ GtkWidget *sb_poll_frequency; /* Spinners on all our rides, yo. */ GtkWidget *cb_device_name; /* The "Device name" combo box. */ - - + + } HdapsPlugin; void hdaps_save(XfcePanelPlugin *plugin,