summaryrefslogtreecommitdiff
path: root/capplets/default-applications/mate-da-capplet.h
diff options
context:
space:
mode:
authorZhang Xianwei <[email protected]>2018-12-06 16:34:30 +0800
committerlukefromdc <[email protected]>2018-12-07 20:37:53 +0000
commit08d1e4e1e600d3957f7dc2771960cc5401111456 (patch)
treea327bc732352954b6c1b2f790e0604cdbfc4157e /capplets/default-applications/mate-da-capplet.h
parenta8d6bbbcd905b2a598ede612e15ccc8febd24341 (diff)
downloadmate-control-center-08d1e4e1e600d3957f7dc2771960cc5401111456.tar.bz2
mate-control-center-08d1e4e1e600d3957f7dc2771960cc5401111456.tar.xz
default-applications: Add a widget for a default calculator application
Fix https://github.com/mate-desktop/mate-control-center/issues/291 Signed-off-by: Zhang Xianwei <[email protected]>
Diffstat (limited to 'capplets/default-applications/mate-da-capplet.h')
-rw-r--r--capplets/default-applications/mate-da-capplet.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/capplets/default-applications/mate-da-capplet.h b/capplets/default-applications/mate-da-capplet.h
index 5c40bdcb..a6bb03ca 100644
--- a/capplets/default-applications/mate-da-capplet.h
+++ b/capplets/default-applications/mate-da-capplet.h
@@ -35,6 +35,9 @@
#define MOBILITY_KEY "exec"
#define MOBILITY_STARTUP_KEY "startup"
+#define CALCULATOR_SCHEMA "org.mate.applications-calculator"
+#define CALCULATOR_KEY "exec"
+
typedef struct _MateDACapplet {
GtkBuilder* builder;
@@ -55,6 +58,7 @@ typedef struct _MateDACapplet {
GtkWidget* document_combo_box;
GtkWidget* word_combo_box;
GtkWidget* spreadsheet_combo_box;
+ GtkWidget* calculator_combo_box;
/* Visual Accessibility */
GtkWidget* visual_startup_checkbutton;
@@ -76,11 +80,13 @@ typedef struct _MateDACapplet {
GList* document_viewers;
GList* word_editors;
GList* spreadsheet_editors;
+ GList* calculators;
/* Settings objects */
GSettings* terminal_settings;
GSettings* visual_settings;
GSettings* mobility_settings;
+ GSettings* calculator_settings;
} MateDACapplet;
#endif