1
/* c-basic-offset: 2; tab-width: 2; indent-tabs-mode: nil
2
* vi: set shiftwidth=2 tabstop=2 expandtab:
3
* :indentSize=2:tabSize=2:noTabs=true:
8
#include <rest/oauth2-proxy.h>
9
#include <rest/rest-proxy-call.h>
12
#include <glib/gi18n.h>
15
#define GPUMP_TYPE_SETTINGS (gpump_settings_get_type ())
16
#define GPUMP_SETTINGS(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GPUMP_TYPE_SETTINGS, GPumpSettings))
17
#define GPUMP_SETTINGS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GPUMP_TYPE_SETTINGS, GPumpSettingsClass))
18
#define GPUMP_IS_SETTINGS(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GPUMP_TYPE_SETTINGS))
19
#define GPUMP_IS_SETTINGS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GPUMP_TYPE_SETTINGS))
20
#define GPUMP_SETTINGS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GPUMP_TYPE_SETTINGS, GPumpSettingsClass))
22
typedef struct GPumpSettings GPumpSettings;
23
typedef struct GPumpSettingsClass GPumpSettingsClass;
24
typedef struct GPumpSettingsPrivate GPumpSettingsPrivate;
29
* GPumpSettings the widget tha displays the UI for the sittings dialoug.
32
struct GPumpSettings {
35
GSettings * ui_settings; /* Do not */
36
GSettings * gpump_settings;
39
* Priavte structure defined in the .c file.
41
GPumpSettingsPrivate * priv;
44
struct GPumpSettingsClass {
45
GtkDialogClass parent;
49
* Create a settings widget and class that contains the settings of the
50
* application. Do not free this untill the app is closing!
52
* @param parent The parent widget, the widget that this widget is suppose to
55
GPumpSettings * gpump_settings_new (GtkWidget * parent);
59
* Frees the self object in an un-safe facion.
60
* you have been warned!
62
void gpump_settings_free (GPumpSettings * self);
65
* Shows the widget and attatches it to the parent window defined when the
66
* object was created with gpump_setting_new.
68
void gpump_settings_show (GPumpSettings * self);
71
* Hides the widget, this is only useful from the widget itself.
74
void gpump_settings_hide (GPumpSettings * self);