summaryrefslogtreecommitdiff
path: root/baobab/src/baobab.h
diff options
context:
space:
mode:
authorBrent Hull <[email protected]>2012-11-17 22:13:08 -0500
committerBrent Hull <[email protected]>2012-11-17 22:13:08 -0500
commit507090e64e66315d6dad960791489a477dced017 (patch)
tree12d8fac0a43fda29116866a7b131960fb5d27c49 /baobab/src/baobab.h
parent233037a709c7843cc63e49b90da961da04bed545 (diff)
downloadmate-utils-507090e64e66315d6dad960791489a477dced017.tar.bz2
mate-utils-507090e64e66315d6dad960791489a477dced017.tar.xz
Port disk-usage-analyzer to Gsettings (based on GNOME patch)
Diffstat (limited to 'baobab/src/baobab.h')
-rw-r--r--baobab/src/baobab.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/baobab/src/baobab.h b/baobab/src/baobab.h
index bab9b8bb..eb7c4a58 100644
--- a/baobab/src/baobab.h
+++ b/baobab/src/baobab.h
@@ -28,22 +28,18 @@
#include <glib.h>
#include <gtk/gtk.h>
#include <gio/gio.h>
-#include <mateconf/mateconf-client.h>
-typedef struct _baobab_fs baobab_fs;
struct BaobabSearchOpt;
-#define BAOBAB_UI_FILE PKGDATADIR "/baobab-main-window.ui"
-#define BAOBAB_DIALOG_SCAN_UI_FILE PKGDATADIR "/baobab-dialog-scan-props.ui"
-
/* Settings */
-#define BAOBAB_KEY_DIR "/apps/baobab"
-#define BAOBAB_TOOLBAR_VISIBLE_KEY BAOBAB_KEY_DIR "/ui/toolbar_visible"
-#define BAOBAB_STATUSBAR_VISIBLE_KEY BAOBAB_KEY_DIR "/ui/statusbar_visible"
-#define BAOBAB_SUBFLSTIPS_VISIBLE_KEY BAOBAB_KEY_DIR "/ui/baobab_subfoldertips_visible"
-#define BAOBAB_EXCLUDED_DIRS_KEY BAOBAB_KEY_DIR "/properties/skip_scan_uri_list"
-#define BAOBAB_ENABLE_HOME_MONITOR_KEY BAOBAB_KEY_DIR "/properties/enable_home_monitor"
-#define SYSTEM_TOOLBAR_STYLE_KEY "/desktop/mate/interface/toolbar_style"
+#define BAOBAB_UI_SETTINGS_SCHEMA "org.mate.disk-usage-analyzer.ui"
+#define BAOBAB_PREFS_SETTINGS_SCHEMA "org.mate.disk-usage-analyzer.preferences"
+#define BAOBAB_SETTINGS_TOOLBAR_VISIBLE "toolbar-visible"
+#define BAOBAB_SETTINGS_STATUSBAR_VISIBLE "statusbar-visible"
+#define BAOBAB_SETTINGS_SUBFLSTIPS_VISIBLE "subfoldertips-visible"
+#define BAOBAB_SETTINGS_ACTIVE_CHART "active-chart"
+#define BAOBAB_SETTINGS_MONITOR_HOME "monitor-home"
+#define BAOBAB_SETTINGS_EXCLUDED_URIS "excluded-uris"
typedef struct _BaobabChartMenu BaobabChartMenu;
@@ -73,6 +69,7 @@ struct _BaobabApplication {
GtkBuilder *main_ui;
GtkWidget *window;
GtkWidget *tree_view;
+ GtkWidget *chart_frame;
GtkWidget *rings_chart;
GtkWidget *treemap_chart;
GtkWidget *current_chart;
@@ -95,8 +92,10 @@ struct _BaobabApplication {
GVolumeMonitor *monitor_vol;
GFileMonitor *monitor_home;
- MateConfClient *mateconf_client;
gint model_max_depth;
+
+ GSettings *ui_settings;
+ GSettings *prefs_settings;
};
/* Application singleton */
@@ -124,5 +123,6 @@ gboolean baobab_is_excluded_location (GFile *);
void baobab_set_toolbar_visible (gboolean visible);
void baobab_set_statusbar_visible (gboolean visible);
void baobab_set_statusbar (const gchar *);
+void baobab_quit (void);
#endif /* __BAOBAB_H_ */