summaryrefslogtreecommitdiff
path: root/gsearchtool/gsearchtool.h
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2013-01-04 02:52:49 -0800
committerStefano Karapetsas <[email protected]>2013-01-04 02:52:49 -0800
commit4c9c8d23685d45020a42cd21f88786444e318661 (patch)
tree7ec02d49920a01c01b0607dc2c8b3bada11a0bc1 /gsearchtool/gsearchtool.h
parenta97efe514b474d2646246e98624b2a9ee38d688e (diff)
parentf4133f57ea4b265e9db1065c7a3b9f33bb5bb5c8 (diff)
downloadmate-utils-4c9c8d23685d45020a42cd21f88786444e318661.tar.bz2
mate-utils-4c9c8d23685d45020a42cd21f88786444e318661.tar.xz
Merge pull request #17 from bhull2010/master
Port mate-search-tool to Gsettings
Diffstat (limited to 'gsearchtool/gsearchtool.h')
-rw-r--r--gsearchtool/gsearchtool.h27
1 files changed, 22 insertions, 5 deletions
diff --git a/gsearchtool/gsearchtool.h b/gsearchtool/gsearchtool.h
index 6ed4e784..573bbe67 100644
--- a/gsearchtool/gsearchtool.h
+++ b/gsearchtool/gsearchtool.h
@@ -34,8 +34,6 @@ extern "C" {
#endif
#include <gtk/gtk.h>
-#include <mateconf/mateconf.h>
-#include <mateconf/mateconf-client.h>
#define GSEARCH_TYPE_WINDOW gsearch_window_get_type()
#define GSEARCH_WINDOW(obj) \
@@ -56,6 +54,7 @@ extern "C" {
#define DEFAULT_WINDOW_HEIGHT 350
#define WINDOW_HEIGHT_STEP 35
#define NUM_VISIBLE_COLUMNS 5
+#define CAJA_PREFERENCES_SCHEMA "org.mate.caja.preferences"
typedef enum {
STOPPED,
@@ -66,6 +65,18 @@ typedef enum {
} GSearchCommandStatus;
typedef enum {
+ SPEED_TRADEOFF_ALWAYS = 0,
+ SPEED_TRADEOFF_LOCAL_ONLY,
+ SPEED_TRADEOFF_NEVER
+} CajaSpeedTradeoff;
+
+typedef enum {
+ CAJA_DATE_FORMAT_LOCALE = 0,
+ CAJA_DATE_FORMAT_ISO,
+ CAJA_DATE_FORMAT_INFORMAL
+} CajaDateFormat;
+
+typedef enum {
COLUMN_ICON,
COLUMN_NAME,
COLUMN_RELATIVE_PATH,
@@ -130,7 +141,7 @@ struct _GSearchWindow {
GtkTreePath * search_results_hover_path;
GHashTable * search_results_filename_hash_table;
GHashTable * search_results_pixbuf_hash_table;
- gchar * search_results_date_format_string;
+ CajaDateFormat search_results_date_format;
gint show_thumbnails_file_size_limit;
gboolean show_thumbnails;
gboolean is_search_results_single_click_to_activate;
@@ -139,6 +150,12 @@ struct _GSearchWindow {
gchar * save_results_as_default_filename;
+ GSettings * mate_search_tool_settings;
+ GSettings * mate_search_tool_select_settings;
+ GSettings * mate_desktop_interface_settings;
+ GSettings * caja_settings;
+ gboolean caja_schema_exists;
+
GSearchCommandDetails * command_details;
};
@@ -198,8 +215,8 @@ void
remove_constraint (gint constraint_id);
void
-set_constraint_mateconf_boolean (gint constraint_id,
- gboolean flag);
+set_constraint_gsettings_boolean (gint constraint_id,
+ gboolean flag);
void
set_constraint_selected_state (GSearchWindow * gsearch,
gint constraint_id,