summaryrefslogtreecommitdiff
path: root/cut-n-paste/toolbar-editor/egg-toolbars-model.h
diff options
context:
space:
mode:
authorChristian Persch <[email protected]>2012-06-12 20:20:47 +0200
committerraveit65 <[email protected]>2018-03-22 21:44:39 +0100
commite0f26b9dbe29642ea37c6c95e14f355e155e1608 (patch)
treeb48e80acca20fd00b071e1335949dd6e7d86e17f /cut-n-paste/toolbar-editor/egg-toolbars-model.h
parent6b84d6fde57b36b5d8c7185d4c508d183d4a8cdf (diff)
downloadatril-e0f26b9dbe29642ea37c6c95e14f355e155e1608.tar.bz2
atril-e0f26b9dbe29642ea37c6c95e14f355e155e1608.tar.xz
toolbar-editor: Add methods to load from GResource
origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-6&id=8c240d9
Diffstat (limited to 'cut-n-paste/toolbar-editor/egg-toolbars-model.h')
-rw-r--r--cut-n-paste/toolbar-editor/egg-toolbars-model.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/cut-n-paste/toolbar-editor/egg-toolbars-model.h b/cut-n-paste/toolbar-editor/egg-toolbars-model.h
index 5d9841f8..88f563ab 100644
--- a/cut-n-paste/toolbar-editor/egg-toolbars-model.h
+++ b/cut-n-paste/toolbar-editor/egg-toolbars-model.h
@@ -23,6 +23,7 @@
#include <glib.h>
#include <glib-object.h>
+#include <gio/gio.h>
#include <gdk/gdk.h>
G_BEGIN_DECLS
@@ -114,12 +115,16 @@ GType egg_tb_model_flags_get_type (void);
GType egg_toolbars_model_get_type (void);
EggToolbarsModel *egg_toolbars_model_new (void);
gboolean egg_toolbars_model_load_names (EggToolbarsModel *model,
- const char *xml_file);
+ const char *xml_file);
gboolean egg_toolbars_model_load_toolbars (EggToolbarsModel *model,
- const char *xml_file);
+ const char *xml_file);
void egg_toolbars_model_save_toolbars (EggToolbarsModel *model,
- const char *xml_file,
- const char *version);
+ const char *xml_file,
+ const char *version);
+gboolean egg_toolbars_model_load_names_from_resource (EggToolbarsModel *model,
+ const char *path);
+gboolean egg_toolbars_model_load_toolbars_from_resource (EggToolbarsModel *model,
+ const char *path);
/* Functions for manipulating the types of portable data this toolbar understands. */
GList * egg_toolbars_model_get_types (EggToolbarsModel *model);