diff options
author | rbuj <[email protected]> | 2020-07-18 19:06:21 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2020-08-07 17:56:04 +0200 |
commit | 36309af730e239289925ea5701edf9ec8452bae3 (patch) | |
tree | a36c296d3abae082836278ec95c33f8ddac99cad /battstat/battstat-preferences.h | |
parent | de05d11aadbb0881613df6dbf13717781930a22b (diff) | |
download | mate-applets-36309af730e239289925ea5701edf9ec8452bae3.tar.bz2 mate-applets-36309af730e239289925ea5701edf9ec8452bae3.tar.xz |
battstat: Rewrite preference dialog from scratch
To manage the settings stored by GSettings. The preference dialog
is a subclass of GtkDialog, and the ui file is a template.
There is more info available in the "GTK+ Overview" chapter of "GTK+
3 Reference Manual": "Building applications - A preference dialog"
https://developer.gnome.org/gtk3/stable/ch01s04.html
Diffstat (limited to 'battstat/battstat-preferences.h')
-rw-r--r-- | battstat/battstat-preferences.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/battstat/battstat-preferences.h b/battstat/battstat-preferences.h new file mode 100644 index 00000000..d3cc882d --- /dev/null +++ b/battstat/battstat-preferences.h @@ -0,0 +1,39 @@ +/* -*- Mode: C; tab-width: 2; indent-tabs-mode: t; c-basic-offset: 2 -*- */ +/* battstat A MATE battery meter for laptops. + * Copyright (C) 2000 by Jörgen Pehrson <[email protected]> + * + * 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 2 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. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + $Id$ + */ + +#ifndef __BATTSTAT_PREFERENCES_H__ +#define __BATTSTAT_PREFERENCES_H__ + +#include <glib.h> + +#include "battstat.h" + +G_BEGIN_DECLS + +#define BATTSTAT_TYPE_PREFERENCES battstat_preferences_get_type () +G_DECLARE_FINAL_TYPE (BattstatPreferences, battstat_preferences, + BATTSTAT, PREFERENCES, GtkDialog) + +GtkWidget *battstat_preferences_new (ProgressData *battstat); + +G_END_DECLS + +#endif /* __BATTSTAT_PREFERENCES_H__ */ |