summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2020-06-03 19:08:17 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2020-06-08 17:37:06 +0800
commit65ca01bba52c71ad7b0aefa2e1aad9db49b30bcf (patch)
treea06111b807fcef309c8154380ce4def13ef5ad2e
parent711567dcca87d426e27df7a88c76bdd0276b2c5c (diff)
downloadglade-65ca01bba52c71ad7b0aefa2e1aad9db49b30bcf.tar.gz
gladeui: Mark public APIs with GLADEUI_EXPORTS
This prepares for exporting via compiler directives, where needed, such as on Visual Studio.
-rw-r--r--gladeui/glade-adaptor-chooser.h4
-rw-r--r--gladeui/glade-app.h27
-rw-r--r--gladeui/glade-base-editor.h9
-rw-r--r--gladeui/glade-builtins.h19
-rw-r--r--gladeui/glade-catalog.h20
-rw-r--r--gladeui/glade-cell-renderer-icon.h7
-rw-r--r--gladeui/glade-clipboard.h6
-rw-r--r--gladeui/glade-command.h33
-rw-r--r--gladeui/glade-cursor.h5
-rw-r--r--gladeui/glade-debug.h5
-rw-r--r--gladeui/glade-design-view.h4
-rw-r--r--gladeui/glade-displayable-values.h8
-rw-r--r--gladeui/glade-editable.h8
-rw-r--r--gladeui/glade-editor-property.h28
-rw-r--r--gladeui/glade-editor-skeleton.h3
-rw-r--r--gladeui/glade-editor-table.h2
-rw-r--r--gladeui/glade-editor.h10
-rw-r--r--gladeui/glade-inspector.h6
-rw-r--r--gladeui/glade-name-context.h8
-rw-r--r--gladeui/glade-named-icon-chooser-dialog.h7
-rw-r--r--gladeui/glade-palette.h11
-rw-r--r--gladeui/glade-placeholder.h5
-rw-r--r--gladeui/glade-project.h76
-rw-r--r--gladeui/glade-property-def.h63
-rw-r--r--gladeui/glade-property-label.h14
-rw-r--r--gladeui/glade-property-shell.h12
-rw-r--r--gladeui/glade-property.h48
-rw-r--r--gladeui/glade-signal-def.h14
-rw-r--r--gladeui/glade-signal-editor.h5
-rw-r--r--gladeui/glade-signal-model.h2
-rw-r--r--gladeui/glade-signal.h20
-rw-r--r--gladeui/glade-tsort.h4
-rw-r--r--gladeui/glade-utils.h45
-rw-r--r--gladeui/glade-widget-action.h15
-rw-r--r--gladeui/glade-widget-adaptor.h66
-rw-r--r--gladeui/glade-widget.h107
-rw-r--r--gladeui/glade-xml-utils.h55
-rw-r--r--gladeui/glade.h1
-rw-r--r--gladeui/gladeui-enum-types.h.template1
39 files changed, 783 insertions, 0 deletions
diff --git a/gladeui/glade-adaptor-chooser.h b/gladeui/glade-adaptor-chooser.h
index 226db8c8..fd821fc2 100644
--- a/gladeui/glade-adaptor-chooser.h
+++ b/gladeui/glade-adaptor-chooser.h
@@ -30,12 +30,16 @@
G_BEGIN_DECLS
#define GLADE_TYPE_ADAPTOR_CHOOSER (glade_adaptor_chooser_get_type ())
+GLADEUI_EXPORTS
G_DECLARE_FINAL_TYPE (GladeAdaptorChooser, glade_adaptor_chooser, GLADE, ADAPTOR_CHOOSER, GtkBox)
+GLADEUI_EXPORTS
GtkWidget *glade_adaptor_chooser_new (void);
+GLADEUI_EXPORTS
void glade_adaptor_chooser_set_project (GladeAdaptorChooser *chooser,
GladeProject *project);
+GLADEUI_EXPORTS
GladeProject *glade_adaptor_chooser_get_project (GladeAdaptorChooser *chooser);
G_END_DECLS
diff --git a/gladeui/glade-app.h b/gladeui/glade-app.h
index d5c9c27f..c10611d5 100644
--- a/gladeui/glade-app.h
+++ b/gladeui/glade-app.h
@@ -30,6 +30,7 @@
G_BEGIN_DECLS
#define GLADE_TYPE_APP glade_app_get_type ()
+GLADEUI_EXPORTS
G_DECLARE_DERIVABLE_TYPE (GladeApp, glade_app, GLADE, APP, GObject)
#define GLADE_ENV_CATALOG_PATH "GLADE_CATALOG_SEARCH_PATH"
@@ -46,44 +47,70 @@ struct _GladeAppClass
gpointer padding[6];
};
+GLADEUI_EXPORTS
void glade_init (void);
+GLADEUI_EXPORTS
GladeApp* glade_app_new (void);
+GLADEUI_EXPORTS
GladeApp* glade_app_get (void);
+GLADEUI_EXPORTS
GKeyFile* glade_app_get_config (void);
+GLADEUI_EXPORTS
gint glade_app_config_save (void);
+GLADEUI_EXPORTS
gboolean glade_app_do_event (GdkEvent *event);
+GLADEUI_EXPORTS
gboolean glade_app_get_catalog_version (const gchar *name,
gint *major,
gint *minor);
+GLADEUI_EXPORTS
GList *glade_app_get_catalogs (void);
+GLADEUI_EXPORTS
GladeCatalog *glade_app_get_catalog (const gchar *name);
+GLADEUI_EXPORTS
GladeClipboard* glade_app_get_clipboard (void);
+GLADEUI_EXPORTS
void glade_app_add_project (GladeProject *project);
+GLADEUI_EXPORTS
void glade_app_remove_project (GladeProject *project);
+GLADEUI_EXPORTS
GList* glade_app_get_projects (void);
+GLADEUI_EXPORTS
gboolean glade_app_is_project_loaded (const gchar *project_path);
+GLADEUI_EXPORTS
GladeProject* glade_app_get_project_by_path (const gchar *project_path);
+GLADEUI_EXPORTS
void glade_app_set_window (GtkWidget *window);
+GLADEUI_EXPORTS
GtkWidget* glade_app_get_window (void);
+GLADEUI_EXPORTS
void glade_app_set_accel_group (GtkAccelGroup *accel_group);
+GLADEUI_EXPORTS
GtkAccelGroup *glade_app_get_accel_group (void);
+GLADEUI_EXPORTS
void glade_app_search_docs (const gchar *book,
const gchar *page,
const gchar *search);
/* package paths */
+GLADEUI_EXPORTS
const gchar *glade_app_get_catalogs_dir (void) G_GNUC_CONST;
+GLADEUI_EXPORTS
const gchar *glade_app_get_modules_dir (void) G_GNUC_CONST;
+GLADEUI_EXPORTS
const gchar *glade_app_get_pixmaps_dir (void) G_GNUC_CONST;
+GLADEUI_EXPORTS
const gchar *glade_app_get_locale_dir (void) G_GNUC_CONST;
+GLADEUI_EXPORTS
const gchar *glade_app_get_bin_dir (void) G_GNUC_CONST;
+GLADEUI_EXPORTS
const gchar *glade_app_get_lib_dir (void) G_GNUC_CONST;
G_END_DECLS
diff --git a/gladeui/glade-base-editor.h b/gladeui/glade-base-editor.h
index 5d53aae8..aa8403e9 100644
--- a/gladeui/glade-base-editor.h
+++ b/gladeui/glade-base-editor.h
@@ -28,6 +28,7 @@
G_BEGIN_DECLS
#define GLADE_TYPE_BASE_EDITOR glade_base_editor_get_type ()
+GLADEUI_EXPORTS
G_DECLARE_DERIVABLE_TYPE (GladeBaseEditor, glade_base_editor, GLADE, BASE_EDITOR, GtkBox)
struct _GladeBaseEditorClass
@@ -44,33 +45,41 @@ struct _GladeBaseEditorClass
gpointer padding[6];
};
+GLADEUI_EXPORTS
GladeBaseEditor *glade_base_editor_new (GObject *container,
GladeEditable *main_editable,
...);
+GLADEUI_EXPORTS
void glade_base_editor_append_types (GladeBaseEditor *editor,
GType parent_type,
...);
+GLADEUI_EXPORTS
void glade_base_editor_add_editable (GladeBaseEditor *editor,
GladeWidget *gchild,
GladeEditorPageType page);
+GLADEUI_EXPORTS
void glade_base_editor_add_default_properties (GladeBaseEditor *editor,
GladeWidget *gchild);
+GLADEUI_EXPORTS
void glade_base_editor_add_properties (GladeBaseEditor *editor,
GladeWidget *gchild,
gboolean packing,
...);
+GLADEUI_EXPORTS
void glade_base_editor_add_label (GladeBaseEditor *editor,
gchar *str);
+GLADEUI_EXPORTS
void glade_base_editor_set_show_signal_editor (GladeBaseEditor *editor,
gboolean val);
/* Convenience functions */
+GLADEUI_EXPORTS
GtkWidget *glade_base_editor_pack_new_window (GladeBaseEditor *editor,
gchar *title,
gchar *help_markup);
diff --git a/gladeui/glade-builtins.h b/gladeui/glade-builtins.h
index 5837900d..1f6aee64 100644
--- a/gladeui/glade-builtins.h
+++ b/gladeui/glade-builtins.h
@@ -27,33 +27,52 @@ typedef struct _GladeParamSpecObjects GladeParamSpecObjects;
(G_TYPE_CHECK_INSTANCE_CAST ((pspec), \
GLADE_TYPE_PARAM_OBJECTS, GladeParamSpecObjects))
+GLADEUI_EXPORTS
GType glade_standard_stock_get_type (void) G_GNUC_CONST;
+GLADEUI_EXPORTS
GType glade_standard_stock_image_get_type (void) G_GNUC_CONST;
+GLADEUI_EXPORTS
GType glade_glist_get_type (void) G_GNUC_CONST;
+GLADEUI_EXPORTS
GType glade_param_objects_get_type (void) G_GNUC_CONST;
+GLADEUI_EXPORTS
GParamSpec *glade_param_spec_objects (const gchar *name,
const gchar *nick,
const gchar *blurb,
GType accepted_type,
GParamFlags flags);
+GLADEUI_EXPORTS
void glade_param_spec_objects_set_type (GladeParamSpecObjects *pspec,
GType type);
+GLADEUI_EXPORTS
GType glade_param_spec_objects_get_type (GladeParamSpecObjects *pspec);
+GLADEUI_EXPORTS
GParamSpec *glade_standard_pixbuf_spec (void);
+GLADEUI_EXPORTS
GParamSpec *glade_standard_gdkcolor_spec (void);
+GLADEUI_EXPORTS
GParamSpec *glade_standard_objects_spec (void);
+GLADEUI_EXPORTS
GParamSpec *glade_standard_stock_spec (void);
+GLADEUI_EXPORTS
GParamSpec *glade_standard_stock_image_spec (void);
+GLADEUI_EXPORTS
GParamSpec *glade_standard_int_spec (void);
+GLADEUI_EXPORTS
GParamSpec *glade_standard_uint_spec (void);
+GLADEUI_EXPORTS
GParamSpec *glade_standard_string_spec (void);
+GLADEUI_EXPORTS
GParamSpec *glade_standard_strv_spec (void);
+GLADEUI_EXPORTS
GParamSpec *glade_standard_float_spec (void);
+GLADEUI_EXPORTS
GParamSpec *glade_standard_boolean_spec (void);
+GLADEUI_EXPORTS
void glade_standard_stock_append_prefix (const gchar *prefix);
G_END_DECLS
diff --git a/gladeui/glade-catalog.h b/gladeui/glade-catalog.h
index 5187e7dd..3daf4a42 100644
--- a/gladeui/glade-catalog.h
+++ b/gladeui/glade-catalog.h
@@ -53,37 +53,57 @@ typedef struct {
} GladeTargetableVersion;
+GLADEUI_EXPORTS
void glade_catalog_add_path (const gchar *path);
+GLADEUI_EXPORTS
void glade_catalog_remove_path (const gchar *path);
+GLADEUI_EXPORTS
const GList *glade_catalog_get_extra_paths (void);
+GLADEUI_EXPORTS
const GList *glade_catalog_load_all (void);
+GLADEUI_EXPORTS
const gchar *glade_catalog_get_name (GladeCatalog *catalog);
+GLADEUI_EXPORTS
const gchar *glade_catalog_get_prefix (GladeCatalog *catalog);
+GLADEUI_EXPORTS
const gchar *glade_catalog_get_icon_prefix(GladeCatalog *catalog);
+GLADEUI_EXPORTS
const gchar *glade_catalog_get_domain (GladeCatalog *catalog);
+GLADEUI_EXPORTS
const gchar *glade_catalog_get_book (GladeCatalog *catalog);
+GLADEUI_EXPORTS
GList *glade_catalog_get_targets (GladeCatalog *catalog);
+GLADEUI_EXPORTS
guint16 glade_catalog_get_major_version (GladeCatalog *catalog);
+GLADEUI_EXPORTS
guint16 glade_catalog_get_minor_version (GladeCatalog *catalog);
+GLADEUI_EXPORTS
GList *glade_catalog_get_widget_groups (GladeCatalog *catalog);
+GLADEUI_EXPORTS
GList *glade_catalog_get_adaptors (GladeCatalog *catalog);
+GLADEUI_EXPORTS
gboolean glade_catalog_is_loaded (const gchar *name);
+GLADEUI_EXPORTS
void glade_catalog_destroy_all (void);
+GLADEUI_EXPORTS
const gchar *glade_widget_group_get_name (GladeWidgetGroup *group);
+GLADEUI_EXPORTS
const gchar *glade_widget_group_get_title (GladeWidgetGroup *group);
+GLADEUI_EXPORTS
gboolean glade_widget_group_get_expanded (GladeWidgetGroup *group);
+GLADEUI_EXPORTS
const GList *glade_widget_group_get_adaptors (GladeWidgetGroup *group);
G_END_DECLS
diff --git a/gladeui/glade-cell-renderer-icon.h b/gladeui/glade-cell-renderer-icon.h
index e7fbad9a..c31118b6 100644
--- a/gladeui/glade-cell-renderer-icon.h
+++ b/gladeui/glade-cell-renderer-icon.h
@@ -23,11 +23,13 @@
#define __GLADE_CELL_RENDERER_ICON_H__
#include <gtk/gtk.h>
+#include <gladeui/glade-macros.h>
G_BEGIN_DECLS
#define GLADE_TYPE_CELL_RENDERER_ICON glade_cell_renderer_icon_get_type ()
+GLADEUI_EXPORTS
G_DECLARE_DERIVABLE_TYPE (GladeCellRendererIcon, glade_cell_renderer_icon, GLADE, CELL_RENDERER_ICON, GtkCellRendererPixbuf)
struct _GladeCellRendererIconClass
@@ -38,13 +40,18 @@ struct _GladeCellRendererIconClass
const gchar *path);
};
+GLADEUI_EXPORTS
GtkCellRenderer *glade_cell_renderer_icon_new (void);
+GLADEUI_EXPORTS
gboolean glade_cell_renderer_icon_get_active (GladeCellRendererIcon *icon);
+GLADEUI_EXPORTS
void glade_cell_renderer_icon_set_active (GladeCellRendererIcon *icon,
gboolean setting);
+GLADEUI_EXPORTS
gboolean glade_cell_renderer_icon_get_activatable (GladeCellRendererIcon *icon);
+GLADEUI_EXPORTS
void glade_cell_renderer_icon_set_activatable (GladeCellRendererIcon *icon,
gboolean setting);
diff --git a/gladeui/glade-clipboard.h b/gladeui/glade-clipboard.h
index e61712f5..03c38360 100644
--- a/gladeui/glade-clipboard.h
+++ b/gladeui/glade-clipboard.h
@@ -6,6 +6,7 @@
G_BEGIN_DECLS
#define GLADE_TYPE_CLIPBOARD glade_clipboard_get_type ()
+GLADEUI_EXPORTS
G_DECLARE_DERIVABLE_TYPE (GladeClipboard, glade_clipboard, GLADE, CLIPBOARD, GObject)
struct _GladeClipboardClass
@@ -15,12 +16,17 @@ struct _GladeClipboardClass
gpointer padding[4];
};
+GLADEUI_EXPORTS
GladeClipboard *glade_clipboard_new (void);
+GLADEUI_EXPORTS
void glade_clipboard_add (GladeClipboard *clipboard,
GList *widgets);
+GLADEUI_EXPORTS
void glade_clipboard_clear (GladeClipboard *clipboard);
+GLADEUI_EXPORTS
gboolean glade_clipboard_get_has_selection(GladeClipboard *clipboard);
+GLADEUI_EXPORTS
GList *glade_clipboard_widgets (GladeClipboard *clipboard);
G_END_DECLS
diff --git a/gladeui/glade-command.h b/gladeui/glade-command.h
index 67e2debf..3523158f 100644
--- a/gladeui/glade-command.h
+++ b/gladeui/glade-command.h
@@ -11,6 +11,7 @@
G_BEGIN_DECLS
#define GLADE_TYPE_COMMAND glade_command_get_type ()
+GLADEUI_EXPORTS
G_DECLARE_DERIVABLE_TYPE (GladeCommand, glade_command, GLADE, COMMAND, GObject)
typedef struct _GladeCommandSetPropData GladeCommandSetPropData;
@@ -43,80 +44,105 @@ struct _GladeCommandClass
gpointer padding[4];
};
+GLADEUI_EXPORTS
void glade_command_push_group (const gchar *fmt,
...) G_GNUC_PRINTF (1, 2);
+GLADEUI_EXPORTS
void glade_command_pop_group (void);
+GLADEUI_EXPORTS
gint glade_command_get_group_depth (void);
+GLADEUI_EXPORTS
const gchar *glade_command_description (GladeCommand *command);
+GLADEUI_EXPORTS
gint glade_command_group_id (GladeCommand *command);
+GLADEUI_EXPORTS
gboolean glade_command_execute (GladeCommand *command);
+GLADEUI_EXPORTS
gboolean glade_command_undo (GladeCommand *command);
+GLADEUI_EXPORTS
gboolean glade_command_unifies (GladeCommand *command,
GladeCommand *other);
+GLADEUI_EXPORTS
void glade_command_collapse (GladeCommand *command,
GladeCommand *other);
/************************ project ******************************/
+GLADEUI_EXPORTS
void glade_command_set_project_target (GladeProject *project,
const gchar *catalog,
gint major,
gint minor);
+GLADEUI_EXPORTS
void glade_command_set_project_domain (GladeProject *project,
const gchar *domain);
+GLADEUI_EXPORTS
void glade_command_set_project_template(GladeProject *project,
GladeWidget *widget);
+GLADEUI_EXPORTS
void glade_command_set_project_license (GladeProject *project,
const gchar *license);
+GLADEUI_EXPORTS
void glade_command_set_project_resource_path (GladeProject *project,
const gchar *path);
/************************** properties *********************************/
+GLADEUI_EXPORTS
void glade_command_set_property_enabled(GladeProperty *property,
gboolean enabled);
+GLADEUI_EXPORTS
void glade_command_set_property (GladeProperty *property,
...);
+GLADEUI_EXPORTS
void glade_command_set_property_value (GladeProperty *property,
const GValue *value);
+GLADEUI_EXPORTS
void glade_command_set_properties (GladeProperty *property,
const GValue *old_value,
const GValue *new_value,
...);
+GLADEUI_EXPORTS
void glade_command_set_properties_list (GladeProject *project,
GList *props); /* list of GladeCommandSetPropData */
/************************** name ******************************/
+GLADEUI_EXPORTS
void glade_command_set_name (GladeWidget *glade_widget, const gchar *name);
/************************ protection ******************************/
+GLADEUI_EXPORTS
void glade_command_lock_widget (GladeWidget *widget,
GladeWidget *locked);
+GLADEUI_EXPORTS
void glade_command_unlock_widget (GladeWidget *widget);
/************************ create/add/delete ******************************/
+GLADEUI_EXPORTS
void glade_command_add (GList *widgets,
GladeWidget *parent,
GladePlaceholder *placeholder,
GladeProject *project,
gboolean pasting);
+GLADEUI_EXPORTS
void glade_command_delete (GList *widgets);
+GLADEUI_EXPORTS
GladeWidget *glade_command_create (GladeWidgetAdaptor *adaptor,
GladeWidget *parent,
GladePlaceholder *placeholder,
@@ -124,31 +150,38 @@ GladeWidget *glade_command_create (GladeWidgetAdaptor *adaptor,
/************************ cut/paste/dnd ******************************/
+GLADEUI_EXPORTS
void glade_command_cut (GList *widgets);
+GLADEUI_EXPORTS
void glade_command_paste (GList *widgets,
GladeWidget *parent,
GladePlaceholder *placeholder,
GladeProject *project);
+GLADEUI_EXPORTS
void glade_command_dnd (GList *widgets,
GladeWidget *parent,
GladePlaceholder *placeholder);
/************************ signals ******************************/
+GLADEUI_EXPORTS
void glade_command_add_signal (GladeWidget *glade_widget,
const GladeSignal *signal);
+GLADEUI_EXPORTS
void glade_command_remove_signal (GladeWidget *glade_widget,
const GladeSignal *signal);
+GLADEUI_EXPORTS
void glade_command_change_signal (GladeWidget *glade_widget,
const GladeSignal *old_signal,
const GladeSignal *new_signal);
/************************ set i18n ******************************/
+GLADEUI_EXPORTS
void glade_command_set_i18n (GladeProperty *property,
gboolean translatable,
const gchar *context,
diff --git a/gladeui/glade-cursor.h b/gladeui/glade-cursor.h
index e38b5e09..e1a83415 100644
--- a/gladeui/glade-cursor.h
+++ b/gladeui/glade-cursor.h
@@ -1,6 +1,8 @@
#ifndef __GLADE_CURSOR_H__
#define __GLADE_CURSOR_H__
+#include <gladeui/glade-macros.h>
+
G_BEGIN_DECLS
/* GladeCursor is just a structures that has a pointer to all the cursors
@@ -45,10 +47,13 @@ typedef enum {
GLADE_CURSOR_DRAG
} GladeCursorType;
+GLADEUI_EXPORTS
void glade_cursor_init (void);
+GLADEUI_EXPORTS
void glade_cursor_set (GladeProject *project,
GdkWindow *window,
GladeCursorType type);
+GLADEUI_EXPORTS
const GdkPixbuf* glade_cursor_get_add_widget_pixbuf (void);
G_END_DECLS
diff --git a/gladeui/glade-debug.h b/gladeui/glade-debug.h
index c591e2ad..736eabcc 100644
--- a/gladeui/glade-debug.h
+++ b/gladeui/glade-debug.h
@@ -1,6 +1,8 @@
#ifndef __GLADE_DEBUG_H__
#define __GLADE_DEBUG_H__
+#include <gladeui/glade-macros.h>
+
G_BEGIN_DECLS
typedef enum {
@@ -25,9 +27,12 @@ typedef enum {
#endif /* GLADE_ENABLE_DEBUG */
+GLADEUI_EXPORTS
void glade_init_debug_flags (void);
+GLADEUI_EXPORTS
guint glade_get_debug_flags (void);
+GLADEUI_EXPORTS
void glade_setup_log_handlers (void);
G_END_DECLS
diff --git a/gladeui/glade-design-view.h b/gladeui/glade-design-view.h
index ed20e412..e3c21829 100644
--- a/gladeui/glade-design-view.h
+++ b/gladeui/glade-design-view.h
@@ -33,6 +33,7 @@
G_BEGIN_DECLS
#define GLADE_TYPE_DESIGN_VIEW glade_design_view_get_type ()
+GLADEUI_EXPORTS
G_DECLARE_DERIVABLE_TYPE (GladeDesignView, glade_design_view, GLADE, DESIGN_VIEW, GtkBox)
struct _GladeDesignViewClass
@@ -42,10 +43,13 @@ struct _GladeDesignViewClass
gpointer padding[4];
};
+GLADEUI_EXPORTS
GtkWidget *glade_design_view_new (GladeProject *project);
+GLADEUI_EXPORTS
GladeProject *glade_design_view_get_project (GladeDesignView *view);
+GLADEUI_EXPORTS
GladeDesignView *glade_design_view_get_from_project (GladeProject *project);
G_END_DECLS
diff --git a/gladeui/glade-displayable-values.h b/gladeui/glade-displayable-values.h
index 602b1c62..11b21e26 100644
--- a/gladeui/glade-displayable-values.h
+++ b/gladeui/glade-displayable-values.h
@@ -3,31 +3,39 @@
#include <glib.h>
#include <glib-object.h>
+#include <gladeui/glade-macros.h>
G_BEGIN_DECLS
+GLADEUI_EXPORTS
void glade_register_displayable_value (GType type,
const gchar *value,
const gchar *domain,
const gchar *string);
+GLADEUI_EXPORTS
void glade_register_translated_value (GType type,
const gchar *value,
const gchar *string);
+GLADEUI_EXPORTS
gboolean glade_type_has_displayable_values (GType type);
+GLADEUI_EXPORTS
const
gchar *glade_get_displayable_value (GType type,
const gchar *value);
+GLADEUI_EXPORTS
gboolean glade_displayable_value_is_disabled (GType type,
const gchar *value);
+GLADEUI_EXPORTS
void glade_displayable_value_set_disabled (GType type,
const gchar *value,
gboolean disabled);
+GLADEUI_EXPORTS
const
gchar *glade_get_value_from_displayable (GType type,
const gchar *displayabe);
diff --git a/gladeui/glade-editable.h b/gladeui/glade-editable.h
index 509a6931..2dd0c4d1 100644
--- a/gladeui/glade-editable.h
+++ b/gladeui/glade-editable.h
@@ -3,10 +3,12 @@
#include <glib.h>
#include <glib-object.h>
+#include <gladeui/glade-macros.h>
G_BEGIN_DECLS
#define GLADE_TYPE_EDITABLE glade_editable_get_type ()
+GLADEUI_EXPORTS
G_DECLARE_INTERFACE (GladeEditable, glade_editable, GLADE, EDITABLE, GtkWidget)
typedef enum
@@ -31,14 +33,20 @@ struct _GladeEditableInterface
gboolean show_name);
};
+GLADEUI_EXPORTS
void glade_editable_load (GladeEditable *editable,
GladeWidget *widget);
+GLADEUI_EXPORTS
void glade_editable_set_show_name (GladeEditable *editable,
gboolean show_name);
+GLADEUI_EXPORTS
GladeWidget *glade_editable_loaded_widget (GladeEditable *editable);
+GLADEUI_EXPORTS
gboolean glade_editable_loading (GladeEditable *editable);
+GLADEUI_EXPORTS
void glade_editable_block (GladeEditable *editable);
+GLADEUI_EXPORTS
void glade_editable_unblock (GladeEditable *editable);
G_END_DECLS
diff --git a/gladeui/glade-editor-property.h b/gladeui/glade-editor-property.h
index d18cf735..25cbc92a 100644
--- a/gladeui/glade-editor-property.h
+++ b/gladeui/glade-editor-property.h
@@ -2,6 +2,7 @@
#define __GLADE_EDITOR_PROPERTY_H__
#include <gtk/gtk.h>
+#include <gladeui/glade-macros.h>
G_BEGIN_DECLS
@@ -34,6 +35,7 @@ func ## _init (type *self) \
}
#define GLADE_TYPE_EDITOR_PROPERTY glade_editor_property_get_type ()
+GLADEUI_EXPORTS
G_DECLARE_DERIVABLE_TYPE (GladeEditorProperty, glade_editor_property, GLADE, EDITOR_PROPERTY, GtkBox)
struct _GladeEditorPropertyClass {
@@ -47,37 +49,52 @@ struct _GladeEditorPropertyClass {
gpointer padding[4];
};
+GLADEUI_EXPORTS
void glade_editor_property_load (GladeEditorProperty *eprop,
GladeProperty *property);
+GLADEUI_EXPORTS
void glade_editor_property_load_by_widget (GladeEditorProperty *eprop,
GladeWidget *widget);
+GLADEUI_EXPORTS
void glade_editor_property_commit (GladeEditorProperty *eprop,
GValue *value);
+GLADEUI_EXPORTS
void glade_editor_property_commit_no_callback (GladeEditorProperty *eprop,
GValue *value);
+GLADEUI_EXPORTS
void glade_editor_property_set_custom_text (GladeEditorProperty *eprop,
const gchar *custom_text);
+GLADEUI_EXPORTS
const gchar *glade_editor_property_get_custom_text (GladeEditorProperty *eprop);
+GLADEUI_EXPORTS
void glade_editor_property_set_disable_check (GladeEditorProperty *eprop,
gboolean disable_check);
+GLADEUI_EXPORTS
gboolean glade_editor_property_get_disable_check (GladeEditorProperty *eprop);
+GLADEUI_EXPORTS
GtkWidget *glade_editor_property_get_item_label (GladeEditorProperty *eprop);
+GLADEUI_EXPORTS
GladePropertyDef *glade_editor_property_get_property_def (GladeEditorProperty *eprop);
+GLADEUI_EXPORTS
GladeProperty *glade_editor_property_get_property (GladeEditorProperty *eprop);
+GLADEUI_EXPORTS
gboolean glade_editor_property_loading (GladeEditorProperty *eprop);
+GLADEUI_EXPORTS
gboolean glade_editor_property_show_i18n_dialog (GtkWidget *parent,
gchar **text,
gchar **context,
gchar **comment,
gboolean *translatable);
+GLADEUI_EXPORTS
gboolean glade_editor_property_show_resource_dialog (GladeProject *project,
GtkWidget *parent,
gchar **filename);
+GLADEUI_EXPORTS
gboolean glade_editor_property_show_object_dialog (GladeProject *project,
const gchar *title,
GtkWidget *parent,
@@ -97,16 +114,27 @@ gboolean glade_editor_property_show_object_dialog (GladeProject
#define GLADE_TYPE_EPROP_UNICHAR (glade_eprop_unichar_get_type())
#define GLADE_TYPE_EPROP_OBJECT (glade_eprop_object_get_type())
#define GLADE_TYPE_EPROP_OBJECTS (glade_eprop_objects_get_type())
+GLADEUI_EXPORTS
GType glade_eprop_numeric_get_type (void) G_GNUC_CONST;
+GLADEUI_EXPORTS
GType glade_eprop_enum_get_type (void) G_GNUC_CONST;
+GLADEUI_EXPORTS
GType glade_eprop_flags_get_type (void) G_GNUC_CONST;
+GLADEUI_EXPORTS
GType glade_eprop_color_get_type (void) G_GNUC_CONST;
+GLADEUI_EXPORTS
GType glade_eprop_named_icon_get_type (void) G_GNUC_CONST;
+GLADEUI_EXPORTS
GType glade_eprop_text_get_type (void) G_GNUC_CONST;
+GLADEUI_EXPORTS
GType glade_eprop_bool_get_type (void) G_GNUC_CONST;
+GLADEUI_EXPORTS
GType glade_eprop_check_get_type (void) G_GNUC_CONST;
+GLADEUI_EXPORTS
GType glade_eprop_unichar_get_type (void) G_GNUC_CONST;
+GLADEUI_EXPORTS
GType glade_eprop_object_get_type (void) G_GNUC_CONST;
+GLADEUI_EXPORTS
GType glade_eprop_objects_get_type (void) G_GNUC_CONST;
diff --git a/gladeui/glade-editor-skeleton.h b/gladeui/glade-editor-skeleton.h
index 1e6d22be..bf935deb 100644
--- a/gladeui/glade-editor-skeleton.h
+++ b/gladeui/glade-editor-skeleton.h
@@ -28,6 +28,7 @@
G_BEGIN_DECLS
#define GLADE_TYPE_EDITOR_SKELETON glade_editor_skeleton_get_type ()
+GLADEUI_EXPORTS
G_DECLARE_DERIVABLE_TYPE (GladeEditorSkeleton, glade_editor_skeleton, GLADE, EDITOR_SKELETON, GtkBox)
struct _GladeEditorSkeletonClass
@@ -35,7 +36,9 @@ struct _GladeEditorSkeletonClass
GtkBoxClass parent_class;
};
+GLADEUI_EXPORTS
GtkWidget *glade_editor_skeleton_new (void);
+GLADEUI_EXPORTS
void glade_editor_skeleton_add_editor (GladeEditorSkeleton *skeleton,
GladeEditable *editor);
diff --git a/gladeui/glade-editor-table.h b/gladeui/glade-editor-table.h
index d2946b20..21668425 100644
--- a/gladeui/glade-editor-table.h
+++ b/gladeui/glade-editor-table.h
@@ -28,6 +28,7 @@
G_BEGIN_DECLS
#define GLADE_TYPE_EDITOR_TABLE glade_editor_table_get_type ()
+GLADEUI_EXPORTS
G_DECLARE_DERIVABLE_TYPE (GladeEditorTable, glade_editor_table, GLADE, EDITOR_TABLE, GtkGrid)
struct _GladeEditorTableClass
@@ -40,6 +41,7 @@ struct _GladeEditorTableClass
void (* glade_reserved4) (void);
};
+GLADEUI_EXPORTS
GtkWidget *glade_editor_table_new (GladeWidgetAdaptor *adaptor,
GladeEditorPageType type);
diff --git a/gladeui/glade-editor.h b/gladeui/glade-editor.h
index 968fc8a3..8780ac99 100644
--- a/gladeui/glade-editor.h
+++ b/gladeui/glade-editor.h
@@ -7,6 +7,7 @@
G_BEGIN_DECLS
#define GLADE_TYPE_EDITOR glade_editor_get_type ()
+GLADEUI_EXPORTS
G_DECLARE_DERIVABLE_TYPE (GladeEditor, glade_editor, GLADE, EDITOR, GtkBox)
/* The GladeEditor is a window that is used to display and modify widget
@@ -21,19 +22,28 @@ struct _GladeEditorClass
gpointer padding[4];
};
+GLADEUI_EXPORTS
GladeEditor *glade_editor_new (void);
+GLADEUI_EXPORTS
void glade_editor_load_widget (GladeEditor *editor,
GladeWidget *widget);
G_DEPRECATED
+GLADEUI_EXPORTS
void glade_editor_show_info (GladeEditor *editor);
G_DEPRECATED
+GLADEUI_EXPORTS
void glade_editor_hide_info (GladeEditor *editor);
+GLADEUI_EXPORTS
void glade_editor_show_class_field (GladeEditor *editor);
+GLADEUI_EXPORTS
void glade_editor_hide_class_field (GladeEditor *editor);
+GLADEUI_EXPORTS
gboolean glade_editor_query_dialog (GladeWidget *widget);
+GLADEUI_EXPORTS
GtkWidget *glade_editor_dialog_for_widget (GladeWidget *widget);
+GLADEUI_EXPORTS
void glade_editor_reset_dialog_run (GtkWidget *parent,
GladeWidget *gwidget);
diff --git a/gladeui/glade-inspector.h b/gladeui/glade-inspector.h
index d2aa5e56..3101df55 100644
--- a/gladeui/glade-inspector.h
+++ b/gladeui/glade-inspector.h
@@ -34,6 +34,7 @@
G_BEGIN_DECLS
#define GLADE_TYPE_INSPECTOR glade_inspector_get_type ()
+GLADEUI_EXPORTS
G_DECLARE_DERIVABLE_TYPE (GladeInspector, glade_inspector, GLADE, INSPECTOR, GtkBox)
/**
@@ -53,11 +54,16 @@ struct _GladeInspectorClass
gpointer padding[4];
};
+GLADEUI_EXPORTS
GtkWidget *glade_inspector_new (void);
+GLADEUI_EXPORTS
GtkWidget *glade_inspector_new_with_project (GladeProject *project);
+GLADEUI_EXPORTS
void glade_inspector_set_project (GladeInspector *inspector,
GladeProject *project);
+GLADEUI_EXPORTS
GladeProject *glade_inspector_get_project (GladeInspector *inspector);
+GLADEUI_EXPORTS
GList *glade_inspector_get_selected_items (GladeInspector *inspector);
G_END_DECLS
diff --git a/gladeui/glade-name-context.h b/gladeui/glade-name-context.h
index ddc360f6..1c6086a1 100644
--- a/gladeui/glade-name-context.h
+++ b/gladeui/glade-name-context.h
@@ -2,25 +2,33 @@
#define __GLADE_NAME_CONTEXT_H__
#include <glib.h>
+#include <gladeui/glade-macros.h>
G_BEGIN_DECLS
typedef struct _GladeNameContext GladeNameContext;
+GLADEUI_EXPORTS
GladeNameContext *glade_name_context_new (void);
+GLADEUI_EXPORTS
void glade_name_context_destroy (GladeNameContext *context);
+GLADEUI_EXPORTS
gchar *glade_name_context_new_name (GladeNameContext *context,
const gchar *base_name);
+GLADEUI_EXPORTS
guint glade_name_context_n_names (GladeNameContext *context);
+GLADEUI_EXPORTS
gboolean glade_name_context_has_name (GladeNameContext *context,
const gchar *name);
+GLADEUI_EXPORTS
gboolean glade_name_context_add_name (GladeNameContext *context,
const gchar *name);
+GLADEUI_EXPORTS
void glade_name_context_release_name (GladeNameContext *context,
const gchar *name);
diff --git a/gladeui/glade-named-icon-chooser-dialog.h b/gladeui/glade-named-icon-chooser-dialog.h
index f42db348..c73a1628 100644
--- a/gladeui/glade-named-icon-chooser-dialog.h
+++ b/gladeui/glade-named-icon-chooser-dialog.h
@@ -24,10 +24,12 @@
#define __GLADE_NAMED_ICON_CHOOSER_DIALOG_H__
#include <gtk/gtk.h>
+#include <gladeui/glade-macros.h>
G_BEGIN_DECLS
#define GLADE_TYPE_NAMED_ICON_CHOOSER_DIALOG glade_named_icon_chooser_dialog_get_type ()
+GLADEUI_EXPORTS
G_DECLARE_DERIVABLE_TYPE (GladeNamedIconChooserDialog, glade_named_icon_chooser_dialog, GLADE, NAMED_ICON_CHOOSER_DIALOG, GtkDialog)
struct _GladeNamedIconChooserDialogClass
@@ -41,19 +43,24 @@ struct _GladeNamedIconChooserDialogClass
gpointer padding[4];
};
+GLADEUI_EXPORTS
GtkWidget *glade_named_icon_chooser_dialog_new (const gchar *title,
GtkWindow *parent,
const gchar *first_button_text,
...) G_GNUC_NULL_TERMINATED;
+GLADEUI_EXPORTS
gchar *glade_named_icon_chooser_dialog_get_icon_name (GladeNamedIconChooserDialog *chooser);
+GLADEUI_EXPORTS
void glade_named_icon_chooser_dialog_set_icon_name (GladeNamedIconChooserDialog *chooser,
const gchar *icon_name);
+GLADEUI_EXPORTS
gboolean glade_named_icon_chooser_dialog_set_context (GladeNamedIconChooserDialog *chooser,
const gchar *context);
+GLADEUI_EXPORTS
gchar *glade_named_icon_chooser_dialog_get_context (GladeNamedIconChooserDialog *chooser);
G_END_DECLS
diff --git a/gladeui/glade-palette.h b/gladeui/glade-palette.h
index 37d38c63..c1c67cbc 100644
--- a/gladeui/glade-palette.h
+++ b/gladeui/glade-palette.h
@@ -72,29 +72,40 @@ typedef enum
} GladeItemAppearance;
+GLADEUI_EXPORTS
GType glade_palette_get_type (void) G_GNUC_CONST;
+GLADEUI_EXPORTS
GtkWidget *glade_palette_new (void);
+GLADEUI_EXPORTS
GladeProject *glade_palette_get_project (GladePalette *palette);
+GLADEUI_EXPORTS
void glade_palette_set_project (GladePalette *palette,
GladeProject *project);
+GLADEUI_EXPORTS
GladeItemAppearance glade_palette_get_item_appearance (GladePalette *palette);
+GLADEUI_EXPORTS
void glade_palette_set_item_appearance (GladePalette *palette,
GladeItemAppearance item_appearance);
+GLADEUI_EXPORTS
gboolean glade_palette_get_use_small_item_icons (GladePalette *palette);
+GLADEUI_EXPORTS
void glade_palette_set_use_small_item_icons (GladePalette *palette,
gboolean use_small_item_icons);
+GLADEUI_EXPORTS
void glade_palette_set_show_selector_button (GladePalette *palette,
gboolean show_selector_button);
+GLADEUI_EXPORTS
gboolean glade_palette_get_show_selector_button (GladePalette *palette);
+GLADEUI_EXPORTS
GtkToolPalette *glade_palette_get_tool_palette (GladePalette *palette);
G_END_DECLS
diff --git a/gladeui/glade-placeholder.h b/gladeui/glade-placeholder.h
index 9cb29bd1..791c624d 100644
--- a/gladeui/glade-placeholder.h
+++ b/gladeui/glade-placeholder.h
@@ -58,11 +58,16 @@ struct _GladePlaceholderClass
};
+GLADEUI_EXPORTS
GType glade_placeholder_get_type (void) G_GNUC_CONST;
+GLADEUI_EXPORTS
GtkWidget *glade_placeholder_new (void);
+GLADEUI_EXPORTS
GladeProject *glade_placeholder_get_project (GladePlaceholder *placeholder);
+GLADEUI_EXPORTS
GladeWidget *glade_placeholder_get_parent (GladePlaceholder *placeholder);
+GLADEUI_EXPORTS
GList *glade_placeholder_packing_actions (GladePlaceholder *placeholder);
G_END_DECLS
diff --git a/gladeui/glade-project.h b/gladeui/glade-project.h
index 0d4c0932..a36edddb 100644
--- a/gladeui/glade-project.h
+++ b/gladeui/glade-project.h
@@ -129,159 +129,235 @@ struct _GladeProjectClass
};
+GLADEUI_EXPORTS
GType glade_project_get_type (void) G_GNUC_CONST;
+GLADEUI_EXPORTS
GladeProject *glade_project_new (void);
+GLADEUI_EXPORTS
GladeProject *glade_project_load (const gchar *path);
+GLADEUI_EXPORTS
gboolean glade_project_load_from_file (GladeProject *project,
const gchar *path);
+GLADEUI_EXPORTS
gboolean glade_project_save (GladeProject *project,
const gchar *path,
GError **error);
+GLADEUI_EXPORTS
gboolean glade_project_save_verify (GladeProject *project,
const gchar *path,
GladeVerifyFlags flags,
GError **error);
+GLADEUI_EXPORTS
gboolean glade_project_autosave (GladeProject *project,
GError **error);
+GLADEUI_EXPORTS
gboolean glade_project_backup (GladeProject *project,
const gchar *path,
GError **error);
+GLADEUI_EXPORTS
void glade_project_push_progress (GladeProject *project);
+GLADEUI_EXPORTS
gboolean glade_project_load_cancelled (GladeProject *project);
+GLADEUI_EXPORTS
void glade_project_cancel_load (GladeProject *project);
+GLADEUI_EXPORTS
void glade_project_preview (GladeProject *project,
GladeWidget *gwidget);
+GLADEUI_EXPORTS
void glade_project_properties (GladeProject *project);
+GLADEUI_EXPORTS
gchar *glade_project_resource_fullpath (GladeProject *project,
const gchar *resource);
+GLADEUI_EXPORTS
void glade_project_set_resource_path (GladeProject *project,
const gchar *path);
+GLADEUI_EXPORTS
const gchar *glade_project_get_resource_path (GladeProject *project);
+GLADEUI_EXPORTS
void glade_project_widget_visibility_changed (GladeProject *project,
GladeWidget *widget,
gboolean visible);
+GLADEUI_EXPORTS
void glade_project_check_reordered (GladeProject *project,
GladeWidget *parent,
GList *old_order);
+GLADEUI_EXPORTS
void glade_project_set_template (GladeProject *project,
GladeWidget *widget);
+GLADEUI_EXPORTS
GladeWidget *glade_project_get_template (GladeProject *project);
+GLADEUI_EXPORTS
void glade_project_set_license (GladeProject *project,
const gchar *license);
+GLADEUI_EXPORTS
const gchar *glade_project_get_license (GladeProject *project);
/* Commands */
+GLADEUI_EXPORTS
void glade_project_undo (GladeProject *project);
+GLADEUI_EXPORTS
void glade_project_redo (GladeProject *project);
+GLADEUI_EXPORTS
GladeCommand *glade_project_next_undo_item (GladeProject *project);
+GLADEUI_EXPORTS
GladeCommand *glade_project_next_redo_item (GladeProject *project);
+GLADEUI_EXPORTS
void glade_project_push_undo (GladeProject *project,
GladeCommand *cmd);
+GLADEUI_EXPORTS
GtkWidget *glade_project_undo_items (GladeProject *project);
+GLADEUI_EXPORTS
GtkWidget *glade_project_redo_items (GladeProject *project);
/* Add/Remove Objects */
+GLADEUI_EXPORTS
const GList *glade_project_get_objects (GladeProject *project);
+GLADEUI_EXPORTS
void glade_project_add_object (GladeProject *project,
GObject *object);
+GLADEUI_EXPORTS
void glade_project_remove_object (GladeProject *project,
GObject *object);
+GLADEUI_EXPORTS
gboolean glade_project_has_object (GladeProject *project,
GObject *object);
+GLADEUI_EXPORTS
void glade_project_widget_changed (GladeProject *project,
GladeWidget *gwidget);
/* Widget names */
+GLADEUI_EXPORTS
GladeWidget *glade_project_get_widget_by_name (GladeProject *project,
const gchar *name);
+GLADEUI_EXPORTS
void glade_project_set_widget_name (GladeProject *project,
GladeWidget *widget,
const gchar *name);
+GLADEUI_EXPORTS
gchar *glade_project_new_widget_name (GladeProject *project,
GladeWidget *widget,
const gchar *base_name);
+GLADEUI_EXPORTS
gboolean glade_project_available_widget_name(GladeProject *project,
GladeWidget *widget,
const gchar *name);
/* Selection */
+GLADEUI_EXPORTS
gboolean glade_project_is_selected (GladeProject *project,
GObject *object);
+GLADEUI_EXPORTS
void glade_project_selection_set (GladeProject *project,
GObject *object,
gboolean emit_signal);
+GLADEUI_EXPORTS
void glade_project_selection_add (GladeProject *project,
GObject *object,
gboolean emit_signal);
+GLADEUI_EXPORTS
void glade_project_selection_remove (GladeProject *project,
GObject *object,
gboolean emit_signal);
+GLADEUI_EXPORTS
void glade_project_selection_clear (GladeProject *project,
gboolean emit_signal);
+GLADEUI_EXPORTS
void glade_project_selection_changed (GladeProject *project);
+GLADEUI_EXPORTS
void glade_project_queue_selection_changed (GladeProject *project);
+GLADEUI_EXPORTS
GList *glade_project_selection_get (GladeProject *project);
+GLADEUI_EXPORTS
gboolean glade_project_get_has_selection (GladeProject *project);
/* Accessors */
+GLADEUI_EXPORTS
const gchar *glade_project_get_path (GladeProject *project);
+GLADEUI_EXPORTS
gchar *glade_project_get_name (GladeProject *project);
+GLADEUI_EXPORTS
void glade_project_reset_path (GladeProject *project);
+GLADEUI_EXPORTS
gboolean glade_project_is_loading (GladeProject *project);
+GLADEUI_EXPORTS
time_t glade_project_get_file_mtime (GladeProject *project);
+GLADEUI_EXPORTS
gboolean glade_project_get_readonly (GladeProject *project);
+GLADEUI_EXPORTS
gboolean glade_project_get_modified (GladeProject *project);
+GLADEUI_EXPORTS
void glade_project_set_pointer_mode (GladeProject *project,
GladePointerMode mode);
+GLADEUI_EXPORTS
GladePointerMode glade_project_get_pointer_mode (GladeProject *project);
+GLADEUI_EXPORTS
void glade_project_set_add_item (GladeProject *project,
GladeWidgetAdaptor *adaptor);
+GLADEUI_EXPORTS
GladeWidgetAdaptor *glade_project_get_add_item (GladeProject *project);
+GLADEUI_EXPORTS
void glade_project_set_target_version (GladeProject *project,
const gchar *catalog,
gint major,
gint minor);
+GLADEUI_EXPORTS
void glade_project_get_target_version (GladeProject *project,
const gchar *catalog,
gint *major,
gint *minor);
+GLADEUI_EXPORTS
GList *glade_project_required_libs (GladeProject *project);
+GLADEUI_EXPORTS
gchar *glade_project_display_dependencies (GladeProject *project);
+GLADEUI_EXPORTS
GList *glade_project_toplevels (GladeProject *project);
+GLADEUI_EXPORTS
void glade_project_set_translation_domain (GladeProject *project,
const gchar *domain);
+GLADEUI_EXPORTS
const gchar *glade_project_get_translation_domain (GladeProject *project);
+GLADEUI_EXPORTS
void glade_project_set_css_provider_path (GladeProject *project,
const gchar *path);
+GLADEUI_EXPORTS
const gchar *glade_project_get_css_provider_path (GladeProject *project);
/* Verifications */
+GLADEUI_EXPORTS
gboolean glade_project_verify (GladeProject *project,
gboolean saving,
GladeVerifyFlags flags);
+GLADEUI_EXPORTS
gchar *glade_project_verify_widget_adaptor(GladeProject *project,
GladeWidgetAdaptor *adaptor,
GladeSupportMask *mask);
+GLADEUI_EXPORTS
void glade_project_verify_property (GladeProperty *property);
+GLADEUI_EXPORTS
void glade_project_verify_signal (GladeWidget *widget,
GladeSignal *signal);
+GLADEUI_EXPORTS
gboolean glade_project_writing_preview (GladeProject *project);
/* General selection driven commands */
+GLADEUI_EXPORTS
void glade_project_copy_selection (GladeProject *project);
+GLADEUI_EXPORTS
void glade_project_command_cut (GladeProject *project);
+GLADEUI_EXPORTS
void glade_project_command_paste (GladeProject *project,
GladePlaceholder *placeholder);
+GLADEUI_EXPORTS
void glade_project_command_delete (GladeProject *project);
G_END_DECLS
diff --git a/gladeui/glade-property-def.h b/gladeui/glade-property-def.h
index 8076fca0..b7c6903d 100644
--- a/gladeui/glade-property-def.h
+++ b/gladeui/glade-property-def.h
@@ -54,116 +54,179 @@ G_BEGIN_DECLS
typedef struct _GladePropertyDef GladePropertyDef;
+GLADEUI_EXPORTS
GType glade_property_def_get_type (void) G_GNUC_CONST;
+GLADEUI_EXPORTS
GladePropertyDef *glade_property_def_new (GladeWidgetAdaptor *adaptor,
const gchar *id);
+GLADEUI_EXPORTS
GladePropertyDef *glade_property_def_new_from_spec (GladeWidgetAdaptor *adaptor,
GParamSpec *spec);
+GLADEUI_EXPORTS
GladePropertyDef *glade_property_def_new_from_spec_full (GladeWidgetAdaptor *adaptor,
GParamSpec *spec,
gboolean need_handle);
+GLADEUI_EXPORTS
GladePropertyDef *glade_property_def_clone (GladePropertyDef *property_def);
+GLADEUI_EXPORTS
void glade_property_def_free (GladePropertyDef *property_def);
+GLADEUI_EXPORTS
void glade_property_def_set_adaptor (GladePropertyDef *property_def,
GladeWidgetAdaptor *adaptor);
+GLADEUI_EXPORTS
GladeWidgetAdaptor *glade_property_def_get_adaptor (GladePropertyDef *property_def);
+GLADEUI_EXPORTS
void glade_property_def_set_pspec (GladePropertyDef *property_def,
GParamSpec *pspec);
+GLADEUI_EXPORTS
GParamSpec *glade_property_def_get_pspec (GladePropertyDef *property_def);
+GLADEUI_EXPORTS
void glade_property_def_set_is_packing (GladePropertyDef *property_def,
gboolean is_packing);
+GLADEUI_EXPORTS
gboolean glade_property_def_get_is_packing (GladePropertyDef *property_def);
+GLADEUI_EXPORTS
gboolean glade_property_def_save (GladePropertyDef *property_def);
+GLADEUI_EXPORTS
gboolean glade_property_def_save_always (GladePropertyDef *property_def);
+GLADEUI_EXPORTS
gboolean glade_property_def_is_visible (GladePropertyDef *property_def);
+GLADEUI_EXPORTS
gboolean glade_property_def_is_object (GladePropertyDef *property_def);
+GLADEUI_EXPORTS
void glade_property_def_set_virtual (GladePropertyDef *property_def,
gboolean value);
+GLADEUI_EXPORTS
gboolean glade_property_def_get_virtual (GladePropertyDef *property_def);
+GLADEUI_EXPORTS
void glade_property_def_set_ignore (GladePropertyDef *property_def,
gboolean ignore);
+GLADEUI_EXPORTS
gboolean glade_property_def_get_ignore (GladePropertyDef *property_def);
+GLADEUI_EXPORTS
void glade_property_def_set_name (GladePropertyDef *property_def,
const gchar *name);
+GLADEUI_EXPORTS
const gchar *glade_property_def_get_name (GladePropertyDef *property_def);
+GLADEUI_EXPORTS
void glade_property_def_set_tooltip (GladePropertyDef *property_def,
const gchar *tooltip);
+GLADEUI_EXPORTS
const gchar *glade_property_def_get_tooltip (GladePropertyDef *property_def);
+GLADEUI_EXPORTS
const gchar *glade_property_def_id (GladePropertyDef *property_def);
+GLADEUI_EXPORTS
gboolean glade_property_def_themed_icon (GladePropertyDef *property_def);
+GLADEUI_EXPORTS
void glade_property_def_set_construct_only (GladePropertyDef *property_def,
gboolean construct_only);
+GLADEUI_EXPORTS
gboolean glade_property_def_get_construct_only (GladePropertyDef *property_def);
+GLADEUI_EXPORTS
const GValue *glade_property_def_get_default (GladePropertyDef *property_def);
+GLADEUI_EXPORTS
const GValue *glade_property_def_get_original_default (GladePropertyDef *property_def);
+GLADEUI_EXPORTS
gboolean glade_property_def_translatable (GladePropertyDef *property_def);
+GLADEUI_EXPORTS
gboolean glade_property_def_needs_sync (GladePropertyDef *property_def);
+GLADEUI_EXPORTS
gboolean glade_property_def_query (GladePropertyDef *property_def);
+GLADEUI_EXPORTS
gboolean glade_property_def_atk (GladePropertyDef *property_def);
+GLADEUI_EXPORTS
gboolean glade_property_def_common (GladePropertyDef *property_def);
+GLADEUI_EXPORTS
gboolean glade_property_def_parentless_widget (GladePropertyDef *property_def);
+GLADEUI_EXPORTS
gboolean glade_property_def_optional (GladePropertyDef *property_def);
+GLADEUI_EXPORTS
gboolean glade_property_def_optional_default (GladePropertyDef *property_def);
+GLADEUI_EXPORTS
gboolean glade_property_def_multiline (GladePropertyDef *property_def);
+GLADEUI_EXPORTS
gboolean glade_property_def_stock (GladePropertyDef *property_def);
+GLADEUI_EXPORTS
gboolean glade_property_def_stock_icon (GladePropertyDef *property_def);
+GLADEUI_EXPORTS
gboolean glade_property_def_transfer_on_paste (GladePropertyDef *property_def);
+GLADEUI_EXPORTS
gboolean glade_property_def_custom_layout (GladePropertyDef *property_def);
+GLADEUI_EXPORTS
gdouble glade_property_def_weight (GladePropertyDef *property_def);
+GLADEUI_EXPORTS
const gchar *glade_property_def_create_type (GladePropertyDef *property_def);
+GLADEUI_EXPORTS
guint16 glade_property_def_since_major (GladePropertyDef *property_def);
+GLADEUI_EXPORTS
guint16 glade_property_def_since_minor (GladePropertyDef *property_def);
+GLADEUI_EXPORTS
gboolean glade_property_def_deprecated (GladePropertyDef *property_def);
+GLADEUI_EXPORTS
GValue *glade_property_def_make_gvalue_from_string (GladePropertyDef *property_def,
const gchar *string,
GladeProject *project);
+GLADEUI_EXPORTS
gchar *glade_property_def_make_string_from_gvalue (GladePropertyDef *property_def,
const GValue *value);
+GLADEUI_EXPORTS
GValue *glade_property_def_make_gvalue_from_vl (GladePropertyDef *property_def,
va_list vl);
+GLADEUI_EXPORTS
void glade_property_def_set_vl_from_gvalue (GladePropertyDef *property_def,
GValue *value,
va_list vl);
+GLADEUI_EXPORTS
GValue *glade_property_def_make_gvalue (GladePropertyDef *property_def,
...);
+GLADEUI_EXPORTS
void glade_property_def_get_from_gvalue (GladePropertyDef *property_def,
GValue *value,
...);
+GLADEUI_EXPORTS
gboolean glade_property_def_update_from_node (GladeXmlNode *node,
GType object_type,
GladePropertyDef **property_def_ref,
const gchar *domain);
+GLADEUI_EXPORTS
GtkAdjustment *glade_property_def_make_adjustment (GladePropertyDef *property_def);
+GLADEUI_EXPORTS
gboolean glade_property_def_match (GladePropertyDef *property_def,
GladePropertyDef *comp);
+GLADEUI_EXPORTS
gboolean glade_property_def_void_value (GladePropertyDef *property_def,
GValue *value);
+GLADEUI_EXPORTS
gint glade_property_def_compare (GladePropertyDef *property_def,
const GValue *value1,
const GValue *value2);
+GLADEUI_EXPORTS
GValue *glade_property_def_get_default_from_spec (GParamSpec *spec);
+GLADEUI_EXPORTS
void glade_property_def_set_weights (GList **properties,
GType parent);
+GLADEUI_EXPORTS
void glade_property_def_load_defaults_from_spec (GladePropertyDef *property_def);
+GLADEUI_EXPORTS
guint glade_property_def_make_flags_from_string (GType type,
const char *string);
G_END_DECLS
diff --git a/gladeui/glade-property-label.h b/gladeui/glade-property-label.h
index 2bef9eb9..7ff9173c 100644
--- a/gladeui/glade-property-label.h
+++ b/gladeui/glade-property-label.h
@@ -52,29 +52,43 @@ struct _GladePropertyLabelClass
GtkEventBoxClass parent_class;
};
+GLADEUI_EXPORTS
GType glade_property_label_get_type (void) G_GNUC_CONST;
+GLADEUI_EXPORTS
GtkWidget *glade_property_label_new (void);
+GLADEUI_EXPORTS
void glade_property_label_set_property_name (GladePropertyLabel *label,
const gchar *property_name);
+GLADEUI_EXPORTS
const gchar *glade_property_label_get_property_name (GladePropertyLabel *label);
+GLADEUI_EXPORTS
void glade_property_label_set_append_colon (GladePropertyLabel *label,
gboolean append_colon);
+GLADEUI_EXPORTS
gboolean glade_property_label_get_append_colon (GladePropertyLabel *label);
+GLADEUI_EXPORTS
void glade_property_label_set_packing (GladePropertyLabel *label,
gboolean packing);
+GLADEUI_EXPORTS
gboolean glade_property_label_get_packing (GladePropertyLabel *label);
+GLADEUI_EXPORTS
void glade_property_label_set_custom_text (GladePropertyLabel *label,
const gchar *custom_text);
+GLADEUI_EXPORTS
const gchar *glade_property_label_get_custom_text (GladePropertyLabel *label);
+GLADEUI_EXPORTS
void glade_property_label_set_custom_tooltip(GladePropertyLabel *label,
const gchar *custom_tooltip);
+GLADEUI_EXPORTS
const gchar *glade_property_label_get_custom_tooltip(GladePropertyLabel *label);
+GLADEUI_EXPORTS
void glade_property_label_set_property (GladePropertyLabel *label,
GladeProperty *property);
+GLADEUI_EXPORTS
GladeProperty *glade_property_label_get_property (GladePropertyLabel *label);
G_END_DECLS
diff --git a/gladeui/glade-property-shell.h b/gladeui/glade-property-shell.h
index dfb42c59..c3787e82 100644
--- a/gladeui/glade-property-shell.h
+++ b/gladeui/glade-property-shell.h
@@ -52,24 +52,36 @@ struct _GladePropertyShellClass
GtkBoxClass parent_class;
};
+GLADEUI_EXPORTS
GType glade_property_shell_get_type (void) G_GNUC_CONST;
+GLADEUI_EXPORTS
GtkWidget *glade_property_shell_new (void);
+GLADEUI_EXPORTS
void glade_property_shell_set_property_name (GladePropertyShell *shell,
const gchar *property_name);
+GLADEUI_EXPORTS
const gchar *glade_property_shell_get_property_name (GladePropertyShell *shell);
+GLADEUI_EXPORTS
void glade_property_shell_set_custom_text (GladePropertyShell *shell,
const gchar *custom_text);
+GLADEUI_EXPORTS
const gchar *glade_property_shell_get_custom_text (GladePropertyShell *shell);
+GLADEUI_EXPORTS
void glade_property_shell_set_packing (GladePropertyShell *shell,
gboolean packing);
+GLADEUI_EXPORTS
gboolean glade_property_shell_get_packing (GladePropertyShell *shell);
+GLADEUI_EXPORTS
void glade_property_shell_set_use_command (GladePropertyShell *shell,
gboolean use_command);
+GLADEUI_EXPORTS
gboolean glade_property_shell_get_use_command (GladePropertyShell *shell);
+GLADEUI_EXPORTS
void glade_property_shell_set_disable_check (GladePropertyShell *shell,
gboolean disable_check);
+GLADEUI_EXPORTS
gboolean glade_property_shell_get_disable_check (GladePropertyShell *shell);
G_END_DECLS
diff --git a/gladeui/glade-property.h b/gladeui/glade-property.h
index b4ecf5c1..8531c224 100644
--- a/gladeui/glade-property.h
+++ b/gladeui/glade-property.h
@@ -2,6 +2,7 @@
#define __GLADE_PROPERTY_H__
#include <glib-object.h>
+#include <gladeui/glade-macros.h>
G_BEGIN_DECLS
@@ -59,126 +60,173 @@ struct _GladePropertyClass
};
+GLADEUI_EXPORTS
GType glade_property_get_type (void) G_GNUC_CONST;
+GLADEUI_EXPORTS
GladeProperty *glade_property_new (GladePropertyDef *def,
GladeWidget *widget,
GValue *value);
+GLADEUI_EXPORTS
GladeProperty *glade_property_dup (GladeProperty *template_prop,
GladeWidget *widget);
+GLADEUI_EXPORTS
void glade_property_reset (GladeProperty *property);
+GLADEUI_EXPORTS
void glade_property_original_reset (GladeProperty *property);
+GLADEUI_EXPORTS
gboolean glade_property_default (GladeProperty *property);
+GLADEUI_EXPORTS
gboolean glade_property_original_default (GladeProperty *property);
+GLADEUI_EXPORTS
gboolean glade_property_equals_value (GladeProperty *property,
const GValue *value);
+GLADEUI_EXPORTS
gboolean glade_property_equals (GladeProperty *property,
...);
+GLADEUI_EXPORTS
gboolean glade_property_set_value (GladeProperty *property,
const GValue *value);
+GLADEUI_EXPORTS
gboolean glade_property_set_va_list (GladeProperty *property,
va_list vl);
+GLADEUI_EXPORTS
gboolean glade_property_set (GladeProperty *property,
...);
+GLADEUI_EXPORTS
void glade_property_get_value (GladeProperty *property,
GValue *value);
+GLADEUI_EXPORTS
void glade_property_get_default (GladeProperty *property,
GValue *value);
+GLADEUI_EXPORTS
void glade_property_get_va_list (GladeProperty *property,
va_list vl);
+GLADEUI_EXPORTS
void glade_property_get (GladeProperty *property,
...);
+GLADEUI_EXPORTS
void glade_property_add_object (GladeProperty *property,
GObject *object);
+GLADEUI_EXPORTS
void glade_property_remove_object (GladeProperty *property,
GObject *object);
+GLADEUI_EXPORTS
void glade_property_sync (GladeProperty *property);
+GLADEUI_EXPORTS
void glade_property_load (GladeProperty *property);
+GLADEUI_EXPORTS
void glade_property_read (GladeProperty *property,
GladeProject *project,
GladeXmlNode *node);
+GLADEUI_EXPORTS
void glade_property_write (GladeProperty *property,
GladeXmlContext *context,
GladeXmlNode *node);
+GLADEUI_EXPORTS
GladePropertyDef *glade_property_get_def (GladeProperty *property);
+GLADEUI_EXPORTS
void glade_property_set_sensitive (GladeProperty *property,
gboolean sensitive,
const gchar *reason);
+GLADEUI_EXPORTS
const gchar *glade_propert_get_insensitive_tooltip(GladeProperty *property);
+GLADEUI_EXPORTS
void glade_property_set_support_warning (GladeProperty *property,
gboolean disable,
const gchar *reason);
+GLADEUI_EXPORTS
const gchar *glade_property_get_support_warning (GladeProperty *property);
+GLADEUI_EXPORTS
gboolean glade_property_warn_usage (GladeProperty *property);
+GLADEUI_EXPORTS
gboolean glade_property_get_sensitive (GladeProperty *property);
+GLADEUI_EXPORTS
void glade_property_set_save_always (GladeProperty *property,
gboolean setting);
+GLADEUI_EXPORTS
gboolean glade_property_get_save_always (GladeProperty *property);
+GLADEUI_EXPORTS
void glade_property_set_enabled (GladeProperty *property,
gboolean enabled);
+GLADEUI_EXPORTS
gboolean glade_property_get_enabled (GladeProperty *property);
+GLADEUI_EXPORTS
gchar *glade_property_make_string (GladeProperty *property);
+GLADEUI_EXPORTS
GladeWidget *glade_property_get_widget (GladeProperty *property);
+GLADEUI_EXPORTS
void glade_property_set_widget (GladeProperty *property,
GladeWidget *widget);
+GLADEUI_EXPORTS
GValue *glade_property_inline_value (GladeProperty *property);
+GLADEUI_EXPORTS
GladePropertyState glade_property_get_state (GladeProperty *property);
+GLADEUI_EXPORTS
void glade_property_i18n_set_comment (GladeProperty *property,
const gchar *str);
+GLADEUI_EXPORTS
const gchar *glade_property_i18n_get_comment (GladeProperty *property);
+GLADEUI_EXPORTS
void glade_property_i18n_set_context (GladeProperty *property,
const gchar *str);
+GLADEUI_EXPORTS
const gchar *glade_property_i18n_get_context (GladeProperty *property);
+GLADEUI_EXPORTS
void glade_property_i18n_set_translatable (GladeProperty *property,
gboolean translatable);
+GLADEUI_EXPORTS
gboolean glade_property_i18n_get_translatable (GladeProperty *property);
+GLADEUI_EXPORTS
void glade_property_push_superuser (void);
+GLADEUI_EXPORTS
void glade_property_pop_superuser (void);
+GLADEUI_EXPORTS
gboolean glade_property_superuser (void);
G_END_DECLS
diff --git a/gladeui/glade-signal-def.h b/gladeui/glade-signal-def.h
index cb843bc4..652ae550 100644
--- a/gladeui/glade-signal-def.h
+++ b/gladeui/glade-signal-def.h
@@ -49,29 +49,43 @@ G_BEGIN_DECLS
typedef struct _GladeSignalDef GladeSignalDef;
+GLADEUI_EXPORTS
GType glade_signal_def_get_type (void) G_GNUC_CONST;
+GLADEUI_EXPORTS
GladeSignalDef *glade_signal_def_new (GladeWidgetAdaptor *adaptor,
GType for_type,
guint signal_id);
+GLADEUI_EXPORTS
GladeSignalDef *glade_signal_def_clone (GladeSignalDef *signal_def);
+GLADEUI_EXPORTS
void glade_signal_def_free (GladeSignalDef *signal_def);
+GLADEUI_EXPORTS
void glade_signal_def_update_from_node (GladeSignalDef *signal_def,
GladeXmlNode *node,
const gchar *domain);
+GLADEUI_EXPORTS
GladeWidgetAdaptor *glade_signal_def_get_adaptor (const GladeSignalDef *signal_def);
+GLADEUI_EXPORTS
const gchar *glade_signal_def_get_name (const GladeSignalDef *signal_def);
+GLADEUI_EXPORTS
const gchar *glade_signal_def_get_object_type_name (const GladeSignalDef *signal_def);
+GLADEUI_EXPORTS
GSignalFlags glade_signal_def_get_flags (const GladeSignalDef *signal_def);
+GLADEUI_EXPORTS
void glade_signal_def_set_since (GladeSignalDef *signal_def,
guint16 since_major,
guint16 since_minor);
+GLADEUI_EXPORTS
guint16 glade_signal_def_since_major (GladeSignalDef *signal_def);
+GLADEUI_EXPORTS
guint16 glade_signal_def_since_minor (GladeSignalDef *signal_def);
+GLADEUI_EXPORTS
void glade_signal_def_set_deprecated (GladeSignalDef *signal_def,
gboolean deprecated);
+GLADEUI_EXPORTS
gboolean glade_signal_def_deprecated (GladeSignalDef *signal_def);
diff --git a/gladeui/glade-signal-editor.h b/gladeui/glade-signal-editor.h
index a5039ee7..3a61b8a4 100644
--- a/gladeui/glade-signal-editor.h
+++ b/gladeui/glade-signal-editor.h
@@ -7,6 +7,7 @@
G_BEGIN_DECLS
#define GLADE_TYPE_SIGNAL_EDITOR glade_signal_editor_get_type ()
+GLADEUI_EXPORTS
G_DECLARE_DERIVABLE_TYPE (GladeSignalEditor, glade_signal_editor, GLADE, SIGNAL_EDITOR, GtkBox)
/* The GladeSignalEditor is used to house the signal editor interface and
@@ -23,11 +24,15 @@ struct _GladeSignalEditorClass
gpointer padding[4];
};
+GLADEUI_EXPORTS
GladeSignalEditor *glade_signal_editor_new (void);
+GLADEUI_EXPORTS
void glade_signal_editor_load_widget (GladeSignalEditor *editor,
GladeWidget *widget);
+GLADEUI_EXPORTS
GladeWidget *glade_signal_editor_get_widget (GladeSignalEditor *editor);
+GLADEUI_EXPORTS
void glade_signal_editor_enable_dnd (GladeSignalEditor *editor,
gboolean enabled);
diff --git a/gladeui/glade-signal-model.h b/gladeui/glade-signal-model.h
index 10236696..207fa1c0 100644
--- a/gladeui/glade-signal-model.h
+++ b/gladeui/glade-signal-model.h
@@ -62,7 +62,9 @@ struct _GladeSignalModel
GladeSignalModelPrivate *priv;
};
+GLADEUI_EXPORTS
GType glade_signal_model_get_type (void) G_GNUC_CONST;
+GLADEUI_EXPORTS
GtkTreeModel *glade_signal_model_new (GladeWidget *widget,
GHashTable *signals);
diff --git a/gladeui/glade-signal.h b/gladeui/glade-signal.h
index 3a8fdd60..df64ebaf 100644
--- a/gladeui/glade-signal.h
+++ b/gladeui/glade-signal.h
@@ -34,41 +34,61 @@ struct _GladeSignalClass {
};
+GLADEUI_EXPORTS
GType glade_signal_get_type (void) G_GNUC_CONST;
+GLADEUI_EXPORTS
GladeSignal *glade_signal_new (const GladeSignalDef *sig_def,
const gchar *handler,
const gchar *userdata,
gboolean after,
gboolean swapped);
+GLADEUI_EXPORTS
GladeSignal *glade_signal_clone (const GladeSignal *signal);
+GLADEUI_EXPORTS
gboolean glade_signal_equal (const GladeSignal *sig1,
const GladeSignal *sig2);
+GLADEUI_EXPORTS
GladeSignal *glade_signal_read (GladeXmlNode *node,
GladeWidgetAdaptor *adaptor);
+GLADEUI_EXPORTS
void glade_signal_write (GladeSignal *signal,
GladeXmlContext *context,
GladeXmlNode *node);
+GLADEUI_EXPORTS
const gchar *glade_signal_get_name (const GladeSignal *signal);
+GLADEUI_EXPORTS
const GladeSignalDef *glade_signal_get_def (const GladeSignal * signal);
+GLADEUI_EXPORTS
void glade_signal_set_detail (GladeSignal *signal,
const gchar *detail);
+GLADEUI_EXPORTS
const gchar *glade_signal_get_detail (const GladeSignal *signal);
+GLADEUI_EXPORTS
void glade_signal_set_handler (GladeSignal *signal,
const gchar *handler);
+GLADEUI_EXPORTS
const gchar *glade_signal_get_handler (const GladeSignal *signal);
+GLADEUI_EXPORTS
void glade_signal_set_userdata (GladeSignal *signal,
const gchar *userdata);
+GLADEUI_EXPORTS
const gchar *glade_signal_get_userdata (const GladeSignal *signal);
+GLADEUI_EXPORTS
void glade_signal_set_after (GladeSignal *signal,
gboolean after);
+GLADEUI_EXPORTS
gboolean glade_signal_get_after (const GladeSignal *signal);
+GLADEUI_EXPORTS
void glade_signal_set_swapped (GladeSignal *signal,
gboolean swapped);
+GLADEUI_EXPORTS
gboolean glade_signal_get_swapped (const GladeSignal *signal);
+GLADEUI_EXPORTS
void glade_signal_set_support_warning (GladeSignal *signal,
const gchar *support_warning);
+GLADEUI_EXPORTS
const gchar *glade_signal_get_support_warning (const GladeSignal *signal);
G_END_DECLS
diff --git a/gladeui/glade-tsort.h b/gladeui/glade-tsort.h
index 28ed6e48..a5a0726c 100644
--- a/gladeui/glade-tsort.h
+++ b/gladeui/glade-tsort.h
@@ -25,6 +25,7 @@
#define __GLADE_TSORT_H__
#include <glib.h>
+#include <gladeui/glade-macros.h>
G_BEGIN_DECLS
@@ -36,12 +37,15 @@ struct __NodeEdge
gpointer successor;
};
+GLADEUI_EXPORTS
GList *_node_edge_prepend (GList *list,
gpointer predecessor,
gpointer successor);
+GLADEUI_EXPORTS
void _node_edge_list_free (GList *list);
+GLADEUI_EXPORTS
GList *_glade_tsort (GList **nodes,
GList **edges);
diff --git a/gladeui/glade-utils.h b/gladeui/glade-utils.h
index 54204b04..8d81a70d 100644
--- a/gladeui/glade-utils.h
+++ b/gladeui/glade-utils.h
@@ -25,67 +25,97 @@ typedef enum
} GladeUIMessageType;
/* UI interaction */
+GLADEUI_EXPORTS
gboolean glade_util_ui_message (GtkWidget *parent,
GladeUIMessageType type,
GtkWidget *widget,
const gchar *format,
...) G_GNUC_PRINTF (4, 5);
+GLADEUI_EXPORTS
void glade_util_flash_message (GtkWidget *statusbar,
guint context_id,
gchar *format,
...) G_GNUC_PRINTF (3, 4);
+GLADEUI_EXPORTS
gboolean glade_util_url_show (const gchar *url);
+GLADEUI_EXPORTS
GtkWidget *glade_util_file_dialog_new (const gchar *title,
GladeProject *project,
GtkWindow *parent,
GladeUtilFileDialogType action);
/* Strings */
+GLADEUI_EXPORTS
gint glade_util_compare_stock_labels (gconstpointer a, gconstpointer b);
+GLADEUI_EXPORTS
void glade_util_replace (gchar *str, gchar a, gchar b);
+GLADEUI_EXPORTS
gchar *glade_util_read_prop_name (const gchar *str);
+GLADEUI_EXPORTS
gchar *glade_util_duplicate_underscores (const gchar *name);
/* GModule stuff */
+GLADEUI_EXPORTS
GType glade_util_get_type_from_name (const gchar *name, gboolean have_func);
+GLADEUI_EXPORTS
GParamSpec *glade_utils_get_pspec_from_funcname (const gchar *funcname);
+GLADEUI_EXPORTS
GModule *glade_util_load_library (const gchar *library_name);
/* String/Value utilities */
+GLADEUI_EXPORTS
gint glade_utils_enum_value_from_string (GType enum_type, const gchar *strval);
+GLADEUI_EXPORTS
gchar *glade_utils_enum_string_from_value (GType enum_type, gint value);
+GLADEUI_EXPORTS
gint glade_utils_flags_value_from_string (GType enum_type, const gchar *strval);
+GLADEUI_EXPORTS
gchar *glade_utils_flags_string_from_value (GType enum_type, gint value);
+GLADEUI_EXPORTS
gchar *glade_utils_flags_string_from_value_displayable (GType flags_type, gint value);
+GLADEUI_EXPORTS
gchar *glade_utils_enum_string_from_value_displayable (GType flags_type, gint value);
+GLADEUI_EXPORTS
GValue *glade_utils_value_from_string (GType type,
const gchar *string,
GladeProject *project);
+GLADEUI_EXPORTS
gchar *glade_utils_string_from_value (const GValue *value);
+GLADEUI_EXPORTS
gboolean glade_utils_boolean_from_string (const gchar *string,
gboolean *value);
/* Devhelp */
+GLADEUI_EXPORTS
gboolean glade_util_have_devhelp (void);
+GLADEUI_EXPORTS
GtkWidget *glade_util_get_devhelp_icon (GtkIconSize size);
+GLADEUI_EXPORTS
void glade_util_search_devhelp (const gchar *book,
const gchar *page,
const gchar *search);
/* Files/Filenames*/
+GLADEUI_EXPORTS
gchar *glade_utils_replace_home_dir_with_tilde (const gchar *path);
+GLADEUI_EXPORTS
gchar *glade_util_canonical_path (const gchar *path);
+GLADEUI_EXPORTS
time_t glade_util_get_file_mtime (const gchar *filename, GError **error);
+GLADEUI_EXPORTS
gboolean glade_util_file_is_writeable (const gchar *path);
+GLADEUI_EXPORTS
gchar *glade_util_filename_to_icon_name (const gchar *value);
+GLADEUI_EXPORTS
gchar *glade_util_icon_name_to_filename (const gchar *value);
/* Cairo utilities */
+GLADEUI_EXPORTS
void glade_utils_cairo_draw_line (cairo_t *cr,
GdkColor *color,
gint x1,
@@ -94,6 +124,7 @@ void glade_utils_cairo_draw_line (cairo_t *cr,
gint y2);
+GLADEUI_EXPORTS
void glade_utils_cairo_draw_rectangle (cairo_t *cr,
GdkColor *color,
gboolean filled,
@@ -103,30 +134,43 @@ void glade_utils_cairo_draw_rectangle (cairo_t *cr,
gint height);
/* Lists */
+GLADEUI_EXPORTS
GList *glade_util_purify_list (GList *list);
+GLADEUI_EXPORTS
GList *glade_util_added_in_list (GList *old_list,
GList *new_list);
+GLADEUI_EXPORTS
GList *glade_util_removed_from_list (GList *old_list,
GList *new_list);
/* Other utilities */
+GLADEUI_EXPORTS
GtkListStore *glade_utils_liststore_from_enum_type (GType enum_type, gboolean include_empty);
+GLADEUI_EXPORTS
gint glade_utils_hijack_key_press (GtkWindow *win,
GdkEventKey *event,
gpointer user_data);
+GLADEUI_EXPORTS
gboolean glade_util_check_and_warn_scrollable (GladeWidget *parent,
GladeWidgetAdaptor *child_adaptor,
GtkWidget *parent_widget);
+GLADEUI_EXPORTS
GList *glade_util_container_get_all_children (GtkContainer *container);
+GLADEUI_EXPORTS
gint glade_util_count_placeholders (GladeWidget *parent);
+GLADEUI_EXPORTS
GtkTreeIter *glade_util_find_iter_by_widget (GtkTreeModel *model,
GladeWidget *findme,
gint column);
+GLADEUI_EXPORTS
GtkWidget *glade_util_get_placeholder_from_pointer (GtkContainer *container);
+GLADEUI_EXPORTS
gboolean glade_util_object_is_loading (GObject *object);
+GLADEUI_EXPORTS
GdkPixbuf *glade_utils_pointer_mode_render_icon (GladePointerMode mode, GtkIconSize size);
+GLADEUI_EXPORTS
void glade_utils_get_pointer (GtkWidget *widget,
GdkWindow *window,
GdkDevice *device,
@@ -134,6 +178,7 @@ void glade_utils_get_pointer (GtkWidget *widget,
gint *y);
+GLADEUI_EXPORTS
void glade_util_remove_scroll_events (GtkWidget *widget);
G_END_DECLS
diff --git a/gladeui/glade-widget-action.h b/gladeui/glade-widget-action.h
index d40677f2..0fa8e820 100644
--- a/gladeui/glade-widget-action.h
+++ b/gladeui/glade-widget-action.h
@@ -23,6 +23,7 @@
#define _GLADE_WIDGET_ACTION_H_
#include <glib-object.h>
+#include <gladeui/glade-macros.h>
G_BEGIN_DECLS
@@ -69,26 +70,40 @@ struct _GladeWidgetActionClass
};
+GLADEUI_EXPORTS
GType glade_widget_action_get_type (void) G_GNUC_CONST;
+GLADEUI_EXPORTS
void glade_widget_action_set_sensitive (GladeWidgetAction *action,
gboolean sensitive);
+GLADEUI_EXPORTS
gboolean glade_widget_action_get_sensitive (GladeWidgetAction *action);
+GLADEUI_EXPORTS
void glade_widget_action_set_visible (GladeWidgetAction *action,
gboolean visible);
+GLADEUI_EXPORTS
gboolean glade_widget_action_get_visible (GladeWidgetAction *action);
+GLADEUI_EXPORTS
GList *glade_widget_action_get_children (GladeWidgetAction *action);
+GLADEUI_EXPORTS
GladeWidgetActionDef *glade_widget_action_get_def (GladeWidgetAction *action);
+GLADEUI_EXPORTS
GType glade_widget_action_def_get_type (void) G_GNUC_CONST;
+GLADEUI_EXPORTS
GladeWidgetActionDef *glade_widget_action_def_new (const gchar *path);
+GLADEUI_EXPORTS
GladeWidgetActionDef *glade_widget_action_def_clone (GladeWidgetActionDef *action);
+GLADEUI_EXPORTS
void glade_widget_action_def_free (GladeWidgetActionDef *action);
+GLADEUI_EXPORTS
void glade_widget_action_def_set_label (GladeWidgetActionDef *action,
const gchar *label);
+GLADEUI_EXPORTS
void glade_widget_action_def_set_stock (GladeWidgetActionDef *action,
const gchar *stock);
+GLADEUI_EXPORTS
void glade_widget_action_def_set_important (GladeWidgetActionDef *action,
gboolean important);
diff --git a/gladeui/glade-widget-adaptor.h b/gladeui/glade-widget-adaptor.h
index 3e5268d4..4216b377 100644
--- a/gladeui/glade-widget-adaptor.h
+++ b/gladeui/glade-widget-adaptor.h
@@ -14,6 +14,7 @@
G_BEGIN_DECLS
#define GLADE_TYPE_WIDGET_ADAPTOR glade_widget_adaptor_get_type ()
+GLADEUI_EXPORTS
G_DECLARE_DERIVABLE_TYPE (GladeWidgetAdaptor, glade_widget_adaptor, GLADE, WIDGET_ADAPTOR, GObject)
/**
@@ -718,27 +719,43 @@ struct _GladeWidgetAdaptorClass
#define glade_widget_adaptor_create_widget(adaptor, query, ...) \
(glade_widget_adaptor_create_widget_real (query, "adaptor", adaptor, __VA_ARGS__));
+GLADEUI_EXPORTS
GType glade_widget_adaptor_get_object_type (GladeWidgetAdaptor *adaptor);
+GLADEUI_EXPORTS
const gchar *glade_widget_adaptor_get_name (GladeWidgetAdaptor *adaptor);
+GLADEUI_EXPORTS
const gchar *glade_widget_adaptor_get_generic_name (GladeWidgetAdaptor *adaptor);
+GLADEUI_EXPORTS
const gchar *glade_widget_adaptor_get_display_name (GladeWidgetAdaptor *adaptor);
+GLADEUI_EXPORTS
const gchar *glade_widget_adaptor_get_title (GladeWidgetAdaptor *adaptor);
+GLADEUI_EXPORTS
const gchar *glade_widget_adaptor_get_icon_name (GladeWidgetAdaptor *adaptor);
+GLADEUI_EXPORTS
const gchar *glade_widget_adaptor_get_missing_icon (GladeWidgetAdaptor *adaptor);
+GLADEUI_EXPORTS
const gchar *glade_widget_adaptor_get_catalog (GladeWidgetAdaptor *adaptor);
+GLADEUI_EXPORTS
const gchar *glade_widget_adaptor_get_book (GladeWidgetAdaptor *adaptor);
+GLADEUI_EXPORTS
const GList *glade_widget_adaptor_get_properties (GladeWidgetAdaptor *adaptor);
+GLADEUI_EXPORTS
const GList *glade_widget_adaptor_get_packing_props(GladeWidgetAdaptor *adaptor);
+GLADEUI_EXPORTS
const GList *glade_widget_adaptor_get_signals (GladeWidgetAdaptor *adaptor);
+GLADEUI_EXPORTS
GList *glade_widget_adaptor_list_adaptors (void);
+GLADEUI_EXPORTS
GladeWidgetAdaptor *glade_widget_adaptor_from_catalog (GladeCatalog *catalog,
GladeXmlNode *class_node,
GModule *module);
+GLADEUI_EXPORTS
void glade_widget_adaptor_register (GladeWidgetAdaptor *adaptor);
+GLADEUI_EXPORTS
GladeWidget *glade_widget_adaptor_create_internal (GladeWidget *parent,
GObject *internal_object,
const gchar *internal_name,
@@ -746,158 +763,207 @@ GladeWidget *glade_widget_adaptor_create_internal (GladeWidget
gboolean anarchist,
GladeCreateReason reason);
+GLADEUI_EXPORTS
GladeWidget *glade_widget_adaptor_create_widget_real (gboolean query,
const gchar *first_property,
...);
+GLADEUI_EXPORTS
GladeWidgetAdaptor *glade_widget_adaptor_get_by_name (const gchar *name);
+GLADEUI_EXPORTS
GladeWidgetAdaptor *glade_widget_adaptor_get_by_type (GType type);
+GLADEUI_EXPORTS
GladeWidgetAdaptor *glade_widget_adaptor_from_pspec (GladeWidgetAdaptor *adaptor,
GParamSpec *pspec);
+GLADEUI_EXPORTS
GladePropertyDef *glade_widget_adaptor_get_property_def (GladeWidgetAdaptor *adaptor,
const gchar *name);
+GLADEUI_EXPORTS
GladePropertyDef *glade_widget_adaptor_get_pack_property_def (GladeWidgetAdaptor *adaptor,
const gchar *name);
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+GLADEUI_EXPORTS
GParameter *glade_widget_adaptor_default_params (GladeWidgetAdaptor *adaptor,
gboolean construct,
guint *n_params);
+GLADEUI_EXPORTS
GObject *glade_widget_adaptor_construct_object (GladeWidgetAdaptor *adaptor,
guint n_parameters,
GParameter *parameters);
G_GNUC_END_IGNORE_DEPRECATIONS
+GLADEUI_EXPORTS
void glade_widget_adaptor_destroy_object (GladeWidgetAdaptor *adaptor,
GObject *object);
+GLADEUI_EXPORTS
void glade_widget_adaptor_post_create (GladeWidgetAdaptor *adaptor,
GObject *object,
GladeCreateReason reason);
+GLADEUI_EXPORTS
GObject *glade_widget_adaptor_get_internal_child (GladeWidgetAdaptor *adaptor,
GObject *object,
const gchar *internal_name);
+GLADEUI_EXPORTS
void glade_widget_adaptor_set_property (GladeWidgetAdaptor *adaptor,
GObject *object,
const gchar *property_name,
const GValue *value);
+GLADEUI_EXPORTS
void glade_widget_adaptor_get_property (GladeWidgetAdaptor *adaptor,
GObject *object,
const gchar *property_name,
GValue *value);
+GLADEUI_EXPORTS
gboolean glade_widget_adaptor_verify_property (GladeWidgetAdaptor *adaptor,
GObject *object,
const gchar *property_name,
const GValue *value);
+GLADEUI_EXPORTS
gboolean glade_widget_adaptor_add_verify (GladeWidgetAdaptor *adaptor,
GObject *container,
GObject *child,
gboolean user_feedback);
+GLADEUI_EXPORTS
void glade_widget_adaptor_add (GladeWidgetAdaptor *adaptor,
GObject *container,
GObject *child);
+GLADEUI_EXPORTS
void glade_widget_adaptor_remove (GladeWidgetAdaptor *adaptor,
GObject *container,
GObject *child);
+GLADEUI_EXPORTS
GList *glade_widget_adaptor_get_children (GladeWidgetAdaptor *adaptor,
GObject *container);
+GLADEUI_EXPORTS
gboolean glade_widget_adaptor_has_child (GladeWidgetAdaptor *adaptor,
GObject *container,
GObject *child);
+GLADEUI_EXPORTS
void glade_widget_adaptor_child_set_property (GladeWidgetAdaptor *adaptor,
GObject *container,
GObject *child,
const gchar *property_name,
const GValue *value);
+GLADEUI_EXPORTS
void glade_widget_adaptor_child_get_property (GladeWidgetAdaptor *adaptor,
GObject *container,
GObject *child,
const gchar *property_name,
GValue *value);
+GLADEUI_EXPORTS
gboolean glade_widget_adaptor_child_verify_property (GladeWidgetAdaptor *adaptor,
GObject *container,
GObject *child,
const gchar *property_name,
const GValue *value);
+GLADEUI_EXPORTS
void glade_widget_adaptor_replace_child (GladeWidgetAdaptor *adaptor,
GObject *container,
GObject *old_obj,
GObject *new_obj);
+GLADEUI_EXPORTS
gboolean glade_widget_adaptor_query (GladeWidgetAdaptor *adaptor);
+GLADEUI_EXPORTS
const gchar *glade_widget_adaptor_get_packing_default(GladeWidgetAdaptor *child_adaptor,
GladeWidgetAdaptor *container_adaptor,
const gchar *id);
+GLADEUI_EXPORTS
gboolean glade_widget_adaptor_is_container (GladeWidgetAdaptor *adaptor);
+GLADEUI_EXPORTS
gboolean glade_widget_adaptor_action_add (GladeWidgetAdaptor *adaptor,
const gchar *action_path,
const gchar *label,
const gchar *stock,
gboolean important);
+GLADEUI_EXPORTS
gboolean glade_widget_adaptor_pack_action_add (GladeWidgetAdaptor *adaptor,
const gchar *action_path,
const gchar *label,
const gchar *stock,
gboolean important);
+GLADEUI_EXPORTS
gboolean glade_widget_adaptor_action_remove (GladeWidgetAdaptor *adaptor,
const gchar *action_path);
+GLADEUI_EXPORTS
gboolean glade_widget_adaptor_pack_action_remove (GladeWidgetAdaptor *adaptor,
const gchar *action_path);
+GLADEUI_EXPORTS
GList *glade_widget_adaptor_actions_new (GladeWidgetAdaptor *adaptor);
+GLADEUI_EXPORTS
GList *glade_widget_adaptor_pack_actions_new (GladeWidgetAdaptor *adaptor);
+GLADEUI_EXPORTS
void glade_widget_adaptor_action_activate (GladeWidgetAdaptor *adaptor,
GObject *object,
const gchar *action_path);
+GLADEUI_EXPORTS
void glade_widget_adaptor_child_action_activate (GladeWidgetAdaptor *adaptor,
GObject *container,
GObject *object,
const gchar *action_path);
+GLADEUI_EXPORTS
GtkWidget *glade_widget_adaptor_action_submenu (GladeWidgetAdaptor *adaptor,
GObject *object,
const gchar *action_path);
G_DEPRECATED
+GLADEUI_EXPORTS
gboolean glade_widget_adaptor_depends (GladeWidgetAdaptor *adaptor,
GladeWidget *widget,
GladeWidget *another);
+GLADEUI_EXPORTS
void glade_widget_adaptor_read_widget (GladeWidgetAdaptor *adaptor,
GladeWidget *widget,
GladeXmlNode *node);
+GLADEUI_EXPORTS
void glade_widget_adaptor_write_widget (GladeWidgetAdaptor *adaptor,
GladeWidget *widget,
GladeXmlContext *context,
GladeXmlNode *node);
+GLADEUI_EXPORTS
void glade_widget_adaptor_write_widget_after (GladeWidgetAdaptor *adaptor,
GladeWidget *widget,
GladeXmlContext *context,
GladeXmlNode *node);
+GLADEUI_EXPORTS
void glade_widget_adaptor_read_child (GladeWidgetAdaptor *adaptor,
GladeWidget *widget,
GladeXmlNode *node);
+GLADEUI_EXPORTS
void glade_widget_adaptor_write_child (GladeWidgetAdaptor *adaptor,
GladeWidget *widget,
GladeXmlContext *context,
GladeXmlNode *node);
+GLADEUI_EXPORTS
GladeEditorProperty *glade_widget_adaptor_create_eprop (GladeWidgetAdaptor *adaptor,
GladePropertyDef *def,
gboolean use_command);
+GLADEUI_EXPORTS
GladeEditorProperty *glade_widget_adaptor_create_eprop_by_name (GladeWidgetAdaptor *adaptor,
const gchar *property_id,
gboolean packing,
gboolean use_command);
+GLADEUI_EXPORTS
gchar *glade_widget_adaptor_string_from_value (GladeWidgetAdaptor *adaptor,
GladePropertyDef *def,
const GValue *value);
+GLADEUI_EXPORTS
GladeEditable *glade_widget_adaptor_create_editable (GladeWidgetAdaptor *adaptor,
GladeEditorPageType type);
+GLADEUI_EXPORTS
GladeSignalDef *glade_widget_adaptor_get_signal_def (GladeWidgetAdaptor *adaptor,
const gchar *name);
+GLADEUI_EXPORTS
GladeWidgetAdaptor *glade_widget_adaptor_get_parent_adaptor (GladeWidgetAdaptor *adaptor);
+GLADEUI_EXPORTS
gboolean glade_widget_adaptor_has_internal_children (GladeWidgetAdaptor *adaptor);
+GLADEUI_EXPORTS
const gchar *glade_widget_adaptor_get_type_func (GladeWidgetAdaptor *adaptor);
G_END_DECLS
diff --git a/gladeui/glade-widget.h b/gladeui/glade-widget.h
index c6189731..39e67332 100644
--- a/gladeui/glade-widget.h
+++ b/gladeui/glade-widget.h
@@ -70,164 +70,213 @@ struct _GladeWidgetClass
General api
*******************************************************************************/
+GLADEUI_EXPORTS
GType glade_widget_get_type (void);
+GLADEUI_EXPORTS
GladeWidget *glade_widget_get_from_gobject (gpointer object);
+GLADEUI_EXPORTS
gboolean glade_widget_add_verify (GladeWidget *widget,
GladeWidget *child,
gboolean user_feedback);
+GLADEUI_EXPORTS
void glade_widget_add_child (GladeWidget *parent,
GladeWidget *child,
gboolean at_mouse);
+GLADEUI_EXPORTS
void glade_widget_remove_child (GladeWidget *parent,
GladeWidget *child);
+GLADEUI_EXPORTS
void glade_widget_replace (GladeWidget *parent,
GObject *old_object,
GObject *new_object);
+GLADEUI_EXPORTS
void glade_widget_rebuild (GladeWidget *gwidget);
+GLADEUI_EXPORTS
GladeWidget *glade_widget_dup (GladeWidget *template_widget,
gboolean exact);
+GLADEUI_EXPORTS
GList *glade_widget_get_signal_list (GladeWidget *widget);
+GLADEUI_EXPORTS
void glade_widget_copy_signals (GladeWidget *widget,
GladeWidget *template_widget);
+GLADEUI_EXPORTS
void glade_widget_copy_properties (GladeWidget *widget,
GladeWidget *template_widget,
gboolean copy_parentless,
gboolean exact);
+GLADEUI_EXPORTS
void glade_widget_set_packing_properties (GladeWidget *widget,
GladeWidget *container);
+GLADEUI_EXPORTS
GList *glade_widget_get_properties (GladeWidget *widget);
+GLADEUI_EXPORTS
GList *glade_widget_get_packing_properties (GladeWidget *widget);
+GLADEUI_EXPORTS
GladeProperty *glade_widget_get_property (GladeWidget *widget,
const gchar *id_property);
+GLADEUI_EXPORTS
GladeProperty *glade_widget_get_pack_property (GladeWidget *widget,
const gchar *id_property);
+GLADEUI_EXPORTS
GList *glade_widget_dup_properties (GladeWidget *dest_widget,
GList *template_props,
gboolean as_load,
gboolean copy_parentless,
gboolean exact);
+GLADEUI_EXPORTS
void glade_widget_remove_property (GladeWidget *widget,
const gchar *id_property);
+GLADEUI_EXPORTS
void glade_widget_show (GladeWidget *widget);
+GLADEUI_EXPORTS
void glade_widget_hide (GladeWidget *widget);
+GLADEUI_EXPORTS
void glade_widget_add_signal_handler (GladeWidget *widget,
const GladeSignal *signal_handler);
+GLADEUI_EXPORTS
void glade_widget_remove_signal_handler (GladeWidget *widget,
const GladeSignal *signal_handler);
+GLADEUI_EXPORTS
void glade_widget_change_signal_handler (GladeWidget *widget,
const GladeSignal *old_signal_handler,
const GladeSignal *new_signal_handler);
+GLADEUI_EXPORTS
GPtrArray * glade_widget_list_signal_handlers (GladeWidget *widget,
const gchar *signal_name);
+GLADEUI_EXPORTS
gboolean glade_widget_has_decendant (GladeWidget *widget,
GType type);
+GLADEUI_EXPORTS
gboolean glade_widget_event (GladeWidget *gwidget,
GdkEvent *event);
+GLADEUI_EXPORTS
gboolean glade_widget_placeholder_relation (GladeWidget *parent,
GladeWidget *widget);
+GLADEUI_EXPORTS
GladeWidgetAction *glade_widget_get_action (GladeWidget *widget,
const gchar *action_path);
+GLADEUI_EXPORTS
GladeWidgetAction *glade_widget_get_pack_action (GladeWidget *widget,
const gchar *action_path);
+GLADEUI_EXPORTS
GList *glade_widget_get_actions (GladeWidget *widget);
+GLADEUI_EXPORTS
GList *glade_widget_get_pack_actions (GladeWidget *widget);
+GLADEUI_EXPORTS
gboolean glade_widget_set_action_sensitive (GladeWidget *widget,
const gchar *action_path,
gboolean sensitive);
+GLADEUI_EXPORTS
gboolean glade_widget_set_pack_action_sensitive (GladeWidget *widget,
const gchar *action_path,
gboolean sensitive);
+GLADEUI_EXPORTS
gboolean glade_widget_set_action_visible (GladeWidget *widget,
const gchar *action_path,
gboolean visible);
+GLADEUI_EXPORTS
gboolean glade_widget_set_pack_action_visible (GladeWidget *widget,
const gchar *action_path,
gboolean visible);
+GLADEUI_EXPORTS
void glade_widget_write (GladeWidget *widget,
GladeXmlContext *context,
GladeXmlNode *node);
+GLADEUI_EXPORTS
void glade_widget_write_child (GladeWidget *widget,
GladeWidget *child,
GladeXmlContext *context,
GladeXmlNode *node);
+GLADEUI_EXPORTS
void glade_widget_write_signals (GladeWidget *widget,
GladeXmlContext *context,
GladeXmlNode *node);
+GLADEUI_EXPORTS
void glade_widget_write_placeholder (GladeWidget *parent,
GObject *object,
GladeXmlContext *context,
GladeXmlNode *node);
+GLADEUI_EXPORTS
GladeWidget *glade_widget_read (GladeProject *project,
GladeWidget *parent,
GladeXmlNode *node,
const gchar *internal);
+GLADEUI_EXPORTS
void glade_widget_read_child (GladeWidget *widget,
GladeXmlNode *node);
+GLADEUI_EXPORTS
void glade_widget_write_special_child_prop (GladeWidget *parent,
GObject *object,
GladeXmlContext *context,
GladeXmlNode *node);
+GLADEUI_EXPORTS
void glade_widget_set_child_type_from_node (GladeWidget *parent,
GObject *child,
GladeXmlNode *node);
+GLADEUI_EXPORTS
GladeEditorProperty *glade_widget_create_editor_property (GladeWidget *widget,
const gchar *property,
gboolean packing,
gboolean use_command);
+GLADEUI_EXPORTS
gchar *glade_widget_generate_path_name (GladeWidget *widget);
+GLADEUI_EXPORTS
gboolean glade_widget_is_ancestor (GladeWidget *widget,
GladeWidget *ancestor);
G_DEPRECATED
+GLADEUI_EXPORTS
gboolean glade_widget_depends (GladeWidget *widget,
GladeWidget *other);
G_DEPRECATED
+GLADEUI_EXPORTS
GdkDevice *glade_widget_get_device_from_event (GdkEvent *event);
+GLADEUI_EXPORTS
void glade_widget_ensure_name (GladeWidget *widget,
GladeProject *project,
gboolean use_command);
@@ -236,37 +285,47 @@ void glade_widget_ensure_name (GladeWidget *w
Project, object property references
*******************************************************************************/
+GLADEUI_EXPORTS
void glade_widget_add_prop_ref (GladeWidget *widget,
GladeProperty *property);
+GLADEUI_EXPORTS
void glade_widget_remove_prop_ref (GladeWidget *widget,
GladeProperty *property);
+GLADEUI_EXPORTS
GList *glade_widget_list_prop_refs (GladeWidget *widget);
+GLADEUI_EXPORTS
gboolean glade_widget_has_prop_refs (GladeWidget *widget);
+GLADEUI_EXPORTS
GladeProperty *glade_widget_get_parentless_widget_ref (GladeWidget *widget);
+GLADEUI_EXPORTS
GList *glade_widget_get_parentless_reffed_widgets (GladeWidget *widget);
/*******************************************************************************
Functions that deal with properties on the runtime object
*******************************************************************************/
+GLADEUI_EXPORTS
void glade_widget_object_set_property (GladeWidget *widget,
const gchar *property_name,
const GValue *value);
+GLADEUI_EXPORTS
void glade_widget_object_get_property (GladeWidget *widget,
const gchar *property_name,
GValue *value);
+GLADEUI_EXPORTS
void glade_widget_child_set_property (GladeWidget *widget,
GladeWidget *child,
const gchar *property_name,
const GValue *value);
+GLADEUI_EXPORTS
void glade_widget_child_get_property (GladeWidget *widget,
GladeWidget *child,
const gchar *property_name,
@@ -276,69 +335,86 @@ void glade_widget_child_get_property (GladeWidget *w
GladeProperty api convenience wrappers
*******************************************************************************/
+GLADEUI_EXPORTS
gboolean glade_widget_property_get (GladeWidget *widget,
const gchar *id_property,
...);
+GLADEUI_EXPORTS
gboolean glade_widget_property_set (GladeWidget *widget,
const gchar *id_property,
...);
+GLADEUI_EXPORTS
gboolean glade_widget_pack_property_get (GladeWidget *widget,
const gchar *id_property,
...);
+GLADEUI_EXPORTS
gboolean glade_widget_pack_property_set (GladeWidget *widget,
const gchar *id_property,
...);
+GLADEUI_EXPORTS
gboolean glade_widget_property_reset (GladeWidget *widget,
const gchar *id_property);
+GLADEUI_EXPORTS
gboolean glade_widget_pack_property_reset (GladeWidget *widget,
const gchar *id_property);
+GLADEUI_EXPORTS
gboolean glade_widget_property_default (GladeWidget *widget,
const gchar *id_property);
+GLADEUI_EXPORTS
gboolean glade_widget_property_original_default (GladeWidget *widget,
const gchar *id_property);
+GLADEUI_EXPORTS
gboolean glade_widget_pack_property_default (GladeWidget *widget,
const gchar *id_property);
+GLADEUI_EXPORTS
gboolean glade_widget_property_set_sensitive (GladeWidget *widget,
const gchar *id_property,
gboolean sensitive,
const gchar *reason);
+GLADEUI_EXPORTS
gboolean glade_widget_pack_property_set_sensitive (GladeWidget *widget,
const gchar *id_property,
gboolean sensitive,
const gchar *reason);
+GLADEUI_EXPORTS
gboolean glade_widget_property_set_enabled (GladeWidget *widget,
const gchar *id_property,
gboolean enabled);
+GLADEUI_EXPORTS
gboolean glade_widget_pack_property_set_enabled (GladeWidget *widget,
const gchar *id_property,
gboolean enabled);
+GLADEUI_EXPORTS
gboolean glade_widget_property_set_save_always (GladeWidget *widget,
const gchar *id_property,
gboolean setting);
+GLADEUI_EXPORTS
gboolean glade_widget_pack_property_set_save_always (GladeWidget *widget,
const gchar *id_property,
gboolean setting);
+GLADEUI_EXPORTS
gchar *glade_widget_property_string (GladeWidget *widget,
const gchar *id_property,
const GValue *value);
+GLADEUI_EXPORTS
gchar *glade_widget_pack_property_string (GladeWidget *widget,
const gchar *id_property,
const GValue *value);
@@ -347,68 +423,99 @@ gchar *glade_widget_pack_property_string (GladeWidget *w
Accessors
*******************************************************************************/
+GLADEUI_EXPORTS
void glade_widget_set_name (GladeWidget *widget,
const gchar *name);
+GLADEUI_EXPORTS
const gchar *glade_widget_get_name (GladeWidget *widget);
+GLADEUI_EXPORTS
const gchar *glade_widget_get_display_name (GladeWidget *widget);
+GLADEUI_EXPORTS
gboolean glade_widget_has_name (GladeWidget *widget);
+GLADEUI_EXPORTS
void glade_widget_set_is_composite (GladeWidget *widget,
gboolean composite);
+GLADEUI_EXPORTS
gboolean glade_widget_get_is_composite (GladeWidget *widget);
+GLADEUI_EXPORTS
void glade_widget_set_internal (GladeWidget *widget,
const gchar *internal);
+GLADEUI_EXPORTS
const gchar *glade_widget_get_internal (GladeWidget *widget);
+GLADEUI_EXPORTS
GObject *glade_widget_get_object (GladeWidget *widget);
+GLADEUI_EXPORTS
void glade_widget_set_project (GladeWidget *widget,
GladeProject *project);
+GLADEUI_EXPORTS
GladeProject *glade_widget_get_project (GladeWidget *widget);
+GLADEUI_EXPORTS
void glade_widget_set_in_project (GladeWidget *widget,
gboolean in_project);
+GLADEUI_EXPORTS
gboolean glade_widget_in_project (GladeWidget *widget);
+GLADEUI_EXPORTS
GladeWidgetAdaptor *glade_widget_get_adaptor (GladeWidget *widget);
+GLADEUI_EXPORTS
GladeWidget *glade_widget_get_parent (GladeWidget *widget);
+GLADEUI_EXPORTS
void glade_widget_set_parent (GladeWidget *widget,
GladeWidget *parent);
+GLADEUI_EXPORTS
GList *glade_widget_get_children (GladeWidget* widget);
+GLADEUI_EXPORTS
GladeWidget *glade_widget_get_toplevel (GladeWidget *widget);
+GLADEUI_EXPORTS
gboolean glade_widget_superuser (void);
+GLADEUI_EXPORTS
void glade_widget_push_superuser (void);
+GLADEUI_EXPORTS
void glade_widget_pop_superuser (void);
+GLADEUI_EXPORTS
void glade_widget_verify (GladeWidget *widget);
+GLADEUI_EXPORTS
void glade_widget_set_support_warning (GladeWidget *widget,
const gchar *warning);
+GLADEUI_EXPORTS
const gchar *glade_widget_support_warning (GladeWidget *widget);
+GLADEUI_EXPORTS
void glade_widget_lock (GladeWidget *widget,
GladeWidget *locked);
+GLADEUI_EXPORTS
void glade_widget_unlock (GladeWidget *widget);
+GLADEUI_EXPORTS
GladeWidget *glade_widget_get_locker (GladeWidget *widget);
+GLADEUI_EXPORTS
GList *glade_widget_list_locked_widgets (GladeWidget *widget);
+GLADEUI_EXPORTS
void glade_widget_support_changed (GladeWidget *widget);
+GLADEUI_EXPORTS
GtkTreeModel *glade_widget_get_signal_model (GladeWidget *widget);
+GLADEUI_EXPORTS
GladeWidget *glade_widget_find_child (GladeWidget *widget,
const gchar *name);
diff --git a/gladeui/glade-xml-utils.h b/gladeui/glade-xml-utils.h
index 3a88acef..a1b85d25 100644
--- a/gladeui/glade-xml-utils.h
+++ b/gladeui/glade-xml-utils.h
@@ -5,6 +5,7 @@
#include <glib.h>
#include <glib-object.h>
#include <gmodule.h>
+#include <gladeui/glade-macros.h>
G_BEGIN_DECLS
@@ -194,83 +195,137 @@ typedef struct _GladeProject GladeProject;
/* search child */
+GLADEUI_EXPORTS
GladeXmlNode * glade_xml_search_child (GladeXmlNode *node, const gchar *name);
+GLADEUI_EXPORTS
GladeXmlNode * glade_xml_search_child_required (GladeXmlNode *tree, const gchar *name);
/* content */
+GLADEUI_EXPORTS
gchar * glade_xml_get_content (GladeXmlNode *node_in); /* Get the content of the node */
+GLADEUI_EXPORTS
void glade_xml_set_content (GladeXmlNode *node_in, const gchar *content);
+GLADEUI_EXPORTS
gboolean glade_xml_get_value_int (GladeXmlNode *node_in, const gchar *name, int *val);
+GLADEUI_EXPORTS
gboolean glade_xml_get_value_int_required (GladeXmlNode *node, const gchar *name, int *val);
+GLADEUI_EXPORTS
gchar * glade_xml_get_value_string (GladeXmlNode *node, const gchar *name);
+GLADEUI_EXPORTS
gchar * glade_xml_get_value_string_required (GladeXmlNode *node,
const gchar *name,
const gchar *xtra_info);
+GLADEUI_EXPORTS
gboolean glade_xml_get_boolean (GladeXmlNode *node, const gchar *name, gboolean _default);
+GLADEUI_EXPORTS
void glade_xml_set_value (GladeXmlNode *node_in, const gchar *name, const gchar *val);
/* Properties */
+GLADEUI_EXPORTS
gchar *glade_xml_get_property_string_required (GladeXmlNode *node_in, const gchar *name, const gchar *xtra);
+GLADEUI_EXPORTS
gchar *glade_xml_get_property_string (GladeXmlNode *node_in, const gchar *name);
+GLADEUI_EXPORTS
gboolean glade_xml_get_property_boolean (GladeXmlNode *node_in, const gchar *name, gboolean _default);
+GLADEUI_EXPORTS
gdouble glade_xml_get_property_double (GladeXmlNode *node_in, const gchar *name, gdouble _default);
+GLADEUI_EXPORTS
gint glade_xml_get_property_int (GladeXmlNode *node_in, const gchar *name, gint _default);
+GLADEUI_EXPORTS
gboolean glade_xml_get_property_version (GladeXmlNode *node_in, const gchar *name, guint16 *major, guint16 *minor);
+GLADEUI_EXPORTS
GList *glade_xml_get_property_targetable_versions (GladeXmlNode *node_in, const gchar *name);
+GLADEUI_EXPORTS
void glade_xml_node_set_property_string (GladeXmlNode *node_in, const gchar *name, const gchar *string);
+GLADEUI_EXPORTS
void glade_xml_node_set_property_boolean (GladeXmlNode *node_in, const gchar *name, gboolean value);
/* Node operations */
+GLADEUI_EXPORTS
GladeXmlNode * glade_xml_node_new (GladeXmlContext *context, const gchar *name);
+GLADEUI_EXPORTS
GladeXmlNode * glade_xml_node_new_comment (GladeXmlContext *context, const gchar *comment);
+GLADEUI_EXPORTS
GladeXmlNode * glade_xml_node_copy (GladeXmlNode *node);
+GLADEUI_EXPORTS
void glade_xml_node_delete (GladeXmlNode *node);
+GLADEUI_EXPORTS
GladeXmlNode * glade_xml_node_get_children (GladeXmlNode *node);
+GLADEUI_EXPORTS
GladeXmlNode * glade_xml_node_get_parent (GladeXmlNode *node_in);
+GLADEUI_EXPORTS
GladeXmlNode * glade_xml_node_next (GladeXmlNode *node_in);
+GLADEUI_EXPORTS
gboolean glade_xml_node_verify (GladeXmlNode *node_in, const gchar *name);
+GLADEUI_EXPORTS
gboolean glade_xml_node_verify_silent (GladeXmlNode *node_in, const gchar *name);
+GLADEUI_EXPORTS
const gchar * glade_xml_node_get_name (GladeXmlNode *node_in);
+GLADEUI_EXPORTS
void glade_xml_node_append_child (GladeXmlNode * node, GladeXmlNode *child);
+GLADEUI_EXPORTS
void glade_xml_node_remove (GladeXmlNode *node_in);
+GLADEUI_EXPORTS
gboolean glade_xml_node_is_comment (GladeXmlNode *node_in);
+GLADEUI_EXPORTS
GladeXmlNode * glade_xml_node_next_with_comments (GladeXmlNode *node_in);
+GLADEUI_EXPORTS
GladeXmlNode * glade_xml_node_prev_with_comments (GladeXmlNode *node_in);
+GLADEUI_EXPORTS
GladeXmlNode * glade_xml_node_get_children_with_comments (GladeXmlNode *node);
+GLADEUI_EXPORTS
GladeXmlNode * glade_xml_node_add_prev_sibling (GladeXmlNode *node, GladeXmlNode *new_node);
+GLADEUI_EXPORTS
GladeXmlNode * glade_xml_node_add_next_sibling (GladeXmlNode *node, GladeXmlNode *new_node);
+GLADEUI_EXPORTS
GType glade_xml_node_get_type (void) G_GNUC_CONST;
/* Document Operations */
+GLADEUI_EXPORTS
GladeXmlNode * glade_xml_doc_get_root (GladeXmlDoc *doc);
+GLADEUI_EXPORTS
GladeXmlDoc * glade_xml_doc_new (void);
+GLADEUI_EXPORTS
GladeXmlDoc * glade_xml_doc_ref (GladeXmlDoc *doc);
+GLADEUI_EXPORTS
void glade_xml_doc_unref (GladeXmlDoc *doc);
+GLADEUI_EXPORTS
void glade_xml_doc_set_root (GladeXmlDoc *doc, GladeXmlNode *node);
+GLADEUI_EXPORTS
gint glade_xml_doc_save (GladeXmlDoc *doc_in, const gchar *full_path);
+GLADEUI_EXPORTS
GladeXmlNode * glade_xml_doc_new_comment (GladeXmlDoc *doc, const gchar *comment);
+GLADEUI_EXPORTS
GType glade_xml_doc_get_type (void) G_GNUC_CONST;
/* Parse Context */
+GLADEUI_EXPORTS
GladeXmlContext * glade_xml_context_new (GladeXmlDoc *doc, const gchar *name_space);
+GLADEUI_EXPORTS
GladeXmlContext * glade_xml_context_copy (GladeXmlContext *context);
+GLADEUI_EXPORTS
void glade_xml_context_free (GladeXmlContext *context);
+GLADEUI_EXPORTS
GladeXmlContext * glade_xml_context_new_from_path (const gchar *full_path,
const gchar *nspace,
const gchar *root_name);
+GLADEUI_EXPORTS
GladeXmlDoc * glade_xml_context_get_doc (GladeXmlContext *context);
+GLADEUI_EXPORTS
GType glade_xml_context_get_type (void) G_GNUC_CONST;
/* Dumps an xml string from a context */
+GLADEUI_EXPORTS
gchar * glade_xml_dump_from_context (GladeXmlContext *context);
+GLADEUI_EXPORTS
gboolean glade_xml_load_sym_from_node (GladeXmlNode *node_in,
GModule *module,
gchar *tagname,
diff --git a/gladeui/glade.h b/gladeui/glade.h
index 69291bea..87f2dd0e 100644
--- a/gladeui/glade.h
+++ b/gladeui/glade.h
@@ -21,6 +21,7 @@
#ifndef __GLADE_H__
#define __GLADE_H__
+#include <gladeui/glade-macros.h>
#include <gladeui/glade-xml-utils.h>
#include <gladeui/glade-widget-adaptor.h>
#include <gladeui/glade-widget.h>
diff --git a/gladeui/gladeui-enum-types.h.template b/gladeui/gladeui-enum-types.h.template
index bed70fd3..ee3b15a6 100644
--- a/gladeui/gladeui-enum-types.h.template
+++ b/gladeui/gladeui-enum-types.h.template
@@ -14,6 +14,7 @@ G_BEGIN_DECLS
/*** END file-production ***/
/*** BEGIN value-header ***/
+GLADEUI_EXPORTS
GType @enum_name@_get_type (void) G_GNUC_CONST;
#define @ENUMPREFIX@_TYPE_@ENUMSHORT@ (@enum_name@_get_type ())
/*** END value-header ***/