diff options
author | Tristan Van Berkom <tvb@src.gnome.org> | 2006-02-07 05:24:08 +0000 |
---|---|---|
committer | Tristan Van Berkom <tvb@src.gnome.org> | 2006-02-07 05:24:08 +0000 |
commit | d6ea83cbdfb9e052f16219aff90c7ad9d7efc89d (patch) | |
tree | 5f318ba795aeccaea6edec1f1289657fcc95d250 | |
parent | a95bdab5883d50680eeac350a4c4ad4c2a7b39e0 (diff) | |
download | glade-d6ea83cbdfb9e052f16219aff90c7ad9d7efc89d.tar.gz |
require automake 1.9
* autogen.sh: require automake 1.9
* Makefile.am, doc/Makefile.am, doc/.cvsignore, configure.in:
Added environment for gtk-doc generation.
* doc/glade-docs.sgml, doc/glade-sections.txt, doc/glade.types,
doc/version.xml.in, doc/tmpl/*: Added initial documentation
metadata.
* src/*.h: Line break LIBGLADEUI_API everywhere so that documentation
generation works (wierd trade, I know).
* po/POTFILES.in: Added glade-custom.c
Modified Files:
ChangeLog Makefile.am autogen.sh configure.in po/POTFILES.in
src/glade-app.h src/glade-catalog.h src/glade-clipboard-view.h
src/glade-clipboard.h src/glade-command.c src/glade-command.h
src/glade-editor-property.c src/glade-editor-property.h
src/glade-editor.c src/glade-editor.h
src/glade-fixed-manager.h src/glade-gtk.c src/glade-palette.h
src/glade-parameter.h src/glade-placeholder.h
src/glade-popup.c src/glade-project-view.c
src/glade-project-view.h src/glade-project-window.c
src/glade-project.c src/glade-project.h
src/glade-property-class.c src/glade-property-class.h
src/glade-property.c src/glade-property.h
src/glade-signal-editor.h src/glade-signal.c src/glade-utils.c
src/glade-utils.h src/glade-widget-class.h src/glade-widget.c
src/glade-widget.h src/glade-xml-utils.h
Added Files:
doc/.cvsignore doc/Makefile.am doc/glade-docs.sgml
doc/glade-sections.txt doc/glade.types doc/version.xml.in
doc/tmpl/glade-app.sgml doc/tmpl/glade-catalog.sgml
doc/tmpl/glade-clipboard-view.sgml
doc/tmpl/glade-clipboard.sgml doc/tmpl/glade-command.sgml
doc/tmpl/glade-editor-property.sgml doc/tmpl/glade-editor.sgml
doc/tmpl/glade-fixed-manager.sgml doc/tmpl/glade-palette.sgml
doc/tmpl/glade-parameter.sgml doc/tmpl/glade-parser.sgml
doc/tmpl/glade-placeholder.sgml
doc/tmpl/glade-project-view.sgml doc/tmpl/glade-project.sgml
doc/tmpl/glade-property-class.sgml
doc/tmpl/glade-property.sgml doc/tmpl/glade-signal-editor.sgml
doc/tmpl/glade-signal.sgml doc/tmpl/glade-utils.sgml
doc/tmpl/glade-widget-class.sgml doc/tmpl/glade-widget.sgml
65 files changed, 5556 insertions, 666 deletions
@@ -1,8 +1,24 @@ +2006-02-07 Tristan Van Berkom <tvb@gnome.org> + + * autogen.sh: require automake 1.9 + + * Makefile.am, doc/Makefile.am, doc/.cvsignore, configure.in: + Added environment for gtk-doc generation. + + * doc/glade-docs.sgml, doc/glade-sections.txt, doc/glade.types, + doc/version.xml.in, doc/tmpl/*: Added initial documentation + metadata. + + * src/*.h: Line break LIBGLADEUI_API everywhere so that documentation + generation works (wierd trade, I know). + + * po/POTFILES.in: Added glade-custom.c + 2006-02-06 Clytie Siddall <clytie@riverland.net.au> * configure.in Added vi in ALL_LINGUAS line. - 2006-02-03 Tristan Van Berkom <tvb@gnome.org> +2006-02-03 Tristan Van Berkom <tvb@gnome.org> * TODO: Updated (removed bugs 317949, 329514 and 324389 from list). diff --git a/Makefile.am b/Makefile.am index e6e264d2..50e9c290 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,6 +1,6 @@ ## Process this file with automake to produce Makefile.in -SUBDIRS = src po pixmaps widgets +SUBDIRS = src po pixmaps widgets doc @INTLTOOL_DESKTOP_RULE@ @@ -6,6 +6,7 @@ test -z "$srcdir" && srcdir=. PKG_NAME="glade" + (test -f $srcdir/configure.in \ && test -f $srcdir/autogen.sh) || { echo -n "**Error**: Directory "\`$srcdir\'" does not look like the" @@ -39,13 +40,14 @@ if test -z "$gnome_autogen" ; then exit 1 fi -automake_version= -case `uname` in -CYGWIN*) +automake_version=1.9 + +#case `uname` in +#CYGWIN*) # automake 1.4 of cygwin does not define EGREP in libtool.m4, and # fails to do the file magic test when -rpath is given - automake_version=1.7 - ;; -esac +# automake_version=1.7 +# ;; +#esac -REQUIRED_AUTOMAKE_VERSION="$automake_version" GNOME_DATADIR="$gnome_datadir" USE_GNOME2_MACROS=1 . $gnome_autogen +REQUIRED_AUTOMAKE_VERSION="$automake_version" GNOME_DATADIR="$gnome_datadir" USE_GNOME2_MACROS=1 . $gnome_autogen diff --git a/configure.in b/configure.in index 32289405..76a03bab 100644 --- a/configure.in +++ b/configure.in @@ -91,6 +91,8 @@ case $host_os in esac AM_CONDITIONAL(WITH_WIN32, test x"$win32" = "xyes") +GTK_DOC_CHECK(1.0) + AC_OUTPUT([ Makefile pixmaps/Makefile @@ -99,6 +101,8 @@ po/Makefile.in src/Makefile src/libgladeui-1.0.pc src/glade-paths.sh +doc/Makefile +doc/version.xml ]) echo " diff --git a/doc/.cvsignore b/doc/.cvsignore new file mode 100644 index 00000000..e0ac0c5e --- /dev/null +++ b/doc/.cvsignore @@ -0,0 +1,18 @@ +Makefile +Makefile.in +glade-decl-list.txt +glade-decl.txt +glade-scan.lo +glade-undocumented.txt +glade-unused.txt +glade.args +glade.hierarchy +glade.interfaces +glade.prerequisites +glade.signals +html +xml +*.stamp +*.lo +.libs +version.xml diff --git a/doc/Makefile.am b/doc/Makefile.am new file mode 100644 index 00000000..36340192 --- /dev/null +++ b/doc/Makefile.am @@ -0,0 +1,93 @@ +## Process this file with automake to produce Makefile.in + +# We require automake 1.6 at least. +AUTOMAKE_OPTIONS = 1.6 + +# This is a blank Makefile.am for using gtk-doc. +# Copy this to your project's API docs directory and modify the variables to +# suit your project. See the GTK+ Makefiles in gtk+/docs/reference for examples +# of using the various options. + +# The name of the module, e.g. 'glib'. +DOC_MODULE=glade + +# The top-level SGML file. You can change this if you want to. +DOC_MAIN_SGML_FILE=$(DOC_MODULE)-docs.sgml + +# The directory containing the source code. Relative to $(srcdir). +# gtk-doc will search all .c & .h files beneath here for inline comments +# documenting the functions and macros. +DOC_SOURCE_DIR=../src + +# Extra options to pass to gtkdoc-scangobj. Not normally needed. +SCANGOBJ_OPTIONS= + +# Extra options to supply to gtkdoc-scan. +# e.g. SCAN_OPTIONS=--deprecated-guards="GTK_DISABLE_DEPRECATED" +SCAN_OPTIONS= + +# Extra options to supply to gtkdoc-mkdb. +# e.g. MKDB_OPTIONS=--sgml-mode --output-format=xml +MKDB_OPTIONS=--sgml-mode --output-format=xml + +# Extra options to supply to gtkdoc-mktmpl +# e.g. MKTMPL_OPTIONS=--only-section-tmpl +MKTMPL_OPTIONS= + +# Extra options to supply to gtkdoc-fixref. Not normally needed. +# e.g. FIXXREF_OPTIONS=--extra-dir=../gdk-pixbuf/html --extra-dir=../gdk/html +# XXX We'll maybe want to use this to cross-ref into GTK+ docs... +FIXXREF_OPTIONS= + +# Used for dependencies. The docs will be rebuilt if any of these change. +# e.g. HFILE_GLOB=$(top_srcdir)/gtk/*.h +# e.g. CFILE_GLOB=$(top_srcdir)/gtk/*.c +HFILE_GLOB=$(top_srcdir)/src/*.h +CFILE_GLOB=$(top_srcdir)/src/*.c + +# Header files to ignore when scanning. +# e.g. IGNORE_HFILES=gtkdebug.h gtkintl.h +IGNORE_HFILES=\ + glade-builtins.h \ + glade-debug.h \ + glade-accumulators.h \ + glade-marshallers.h \ + glade-paths.h \ + glade-project-window.h \ + glade-custom.h \ + glade-cursor.h \ + glade-id-allocator.h \ + glade-catalog.h \ + glade.h \ + glade-xml-utils.h + + +# Images to copy into HTML directory. +# e.g. HTML_IMAGES=$(top_srcdir)/gtk/stock-icons/stock_about_24.png +HTML_IMAGES= + +# Extra SGML files that are included by $(DOC_MAIN_SGML_FILE). +# e.g. content_files=running.sgml building.sgml changes-2.0.sgml +content_files=\ + version.xml + +# SGML files where gtk-doc abbrevations (#GtkWidget) are expanded +# These files must be listed here *and* in content_files +# e.g. expand_content_files=running.sgml +expand_content_files= + +# CFLAGS and LDFLAGS for compiling gtkdoc-scangobj with your library. +# Only needed if you are using gtkdoc-scangobj to dynamically query widget +# signals and properties. +# e.g. INCLUDES=-I$(top_srcdir) -I$(top_builddir) $(GTK_DEBUG_FLAGS) +# e.g. GTKDOC_LIBS=$(top_builddir)/gtk/$(gtktargetlib) +INCLUDES=`pkg-config --cflags libgladeui-1.0` +GTKDOC_LIBS=`pkg-config --libs libgladeui-1.0` + +# This includes the standard gtk-doc make rules, copied by gtkdocize. +include $(top_srcdir)/gtk-doc.make + +# Other files to distribute +# e.g. EXTRA_DIST += version.xml.in +EXTRA_DIST += version.xml.in + diff --git a/doc/glade-docs.sgml b/doc/glade-docs.sgml new file mode 100644 index 00000000..b8345cd1 --- /dev/null +++ b/doc/glade-docs.sgml @@ -0,0 +1,108 @@ +<?xml version="1.0"?> +<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" + "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [ + +<!ENTITY GladeCommand SYSTEM "xml/glade-command.xml"> +<!ENTITY GladeApp SYSTEM "xml/glade-app.xml"> +<!ENTITY GladeCatalog SYSTEM "xml/glade-catalog.xml"> +<!ENTITY GladeClipboardView SYSTEM "xml/glade-clipboard-view.xml"> +<!ENTITY GladeClipboard SYSTEM "xml/glade-clipboard.xml"> +<!ENTITY GladeEditorProperty SYSTEM "xml/glade-editor-property.xml"> +<!ENTITY GladeEditor SYSTEM "xml/glade-editor.xml"> +<!ENTITY GladeFixedManager SYSTEM "xml/glade-fixed-manager.xml"> +<!ENTITY GladePalette SYSTEM "xml/glade-palette.xml"> +<!ENTITY GladeParameter SYSTEM "xml/glade-parameter.xml"> +<!ENTITY GladePlaceholder SYSTEM "xml/glade-placeholder.xml"> +<!ENTITY GladeProjectView SYSTEM "xml/glade-project-view.xml"> +<!ENTITY GladeProject SYSTEM "xml/glade-project.xml"> +<!ENTITY GladePropertyClass SYSTEM "xml/glade-property-class.xml"> +<!ENTITY GladeProperty SYSTEM "xml/glade-property.xml"> +<!ENTITY GladeSignalEditor SYSTEM "xml/glade-signal-editor.xml"> +<!ENTITY GladeUtils SYSTEM "xml/glade-utils.xml"> +<!ENTITY GladeWidgetClass SYSTEM "xml/glade-widget-class.xml"> +<!ENTITY GladeWidget SYSTEM "xml/glade-widget.xml"> + +<!ENTITY version SYSTEM "version.xml"> +]> +<book id="index"> + <bookinfo> + <title>Glade UI Builder API Reference Manual</title> + <releaseinfo>&version;</releaseinfo> + </bookinfo> + + <part id="intro"> + <title>Introduction</title> + <partintro> + <para> +Glade is a RAD tool to enable quick and easy development of user interfaces +for the Gtk+ toolkit and the GNOME desktop environment. +The user interfaces designed in Glade are stored in XML format, +enabling easy integration with external tools. +In particular libglade can load the XML files and create the interfaces +at runtime. The DTD for the XML files is included with libglade, and is +also at http://glade.gnome.org/glade-2.0.dtd. +Other tools are available which can turn the XML files into source code +in languages such as C++, Perl and Python. + </para> + + <para> +This version of Glade (Glade-3) is a complete rewrite of the original Glade codebase. + </para> + + <para> + One of the main differnces from glade-2 is that C code generation has been removed from +glade-3: this has been done on purpose, since using generated code is deprecated; the preferred +way to use glade files is with libglade (if code generation is needed, this can be provided +as another tool or plugin, code generation is simply not a part of the glade-3 project). +Another main difference is that glade-3 was designed to make maximal use of GObject +introspection, thus easing the integration of external toolkits and handling widgets, +signals and properties genericly; thus making it easier to write fancy features in the +future (toolkits such as gtk+ itself, gnome, gnome-db and any others are implemented +externaly as widget catalogs with optional support libraries, thus catalogs may be +distributed seperatly; possibly along with their libglade support modules). + +It has a few useful new features such as stacked Undo/Redo and Multiple Project support +and respects the same XML format as glade-2. + </para> + </partintro> + </part> + + <part id="core"> + <title>Glade Core</title> + &GladeApp; + &GladeProject; + </part> + + <part id="dockables"> + <title>Dockable Glade UI Widgets</title> + &GladeEditor; + &GladePalette; + &GladeClipboardView; + &GladeProjectView; + </part> + + <part id="metadata"> + <title>Widget and Property Definitions</title> + &GladeWidgetClass; + &GladePropertyClass; + </part> + + <part id="wrappers"> + <title>Widget and Property Runtime Wrappers</title> + &GladeWidget; + &GladeProperty; + </part> + + <part id="misc"> + <title>The rest</title> + &GladeClipboard; + &GladeSignalEditor; + &GladeEditorProperty; + &GladeFixedManager; + &GladeParameter; + &GladePlaceholder; + &GladeUtils; + &GladeCommand; + </part> + +</book> diff --git a/doc/glade-sections.txt b/doc/glade-sections.txt new file mode 100644 index 00000000..9f644536 --- /dev/null +++ b/doc/glade-sections.txt @@ -0,0 +1,563 @@ +<INCLUDE>glade.h</INCLUDE> + +<SECTION> +<FILE>glade-app</FILE> +<TITLE>GladeApp</TITLE> +GladeApp +glade_app_new +glade_app_update_ui +glade_app_set_window +glade_app_get_window +glade_app_get_editor +glade_app_get_add_class +glade_app_get_alt_class +glade_app_get_palette +glade_app_get_clipboard +glade_app_get_clipboard_view +glade_app_get_active_project +glade_app_set_project +glade_app_add_project +glade_app_remove_project +glade_app_get_projects +glade_app_get_config +glade_app_is_project_loaded +glade_app_show_properties +glade_app_hide_properties +glade_app_add_project_view +glade_app_command_copy +glade_app_command_cut +glade_app_command_paste +glade_app_command_delete +glade_app_command_undo +glade_app_command_redo +glade_app_config_save +glade_app_set_transient_parent +glade_app_get_transient_parent +glade_app_set_accel_group +glade_app_update_instance_count +glade_app_undo_button_new +glade_app_redo_button_new +glade_default_app_set +glade_default_app_get_window +glade_default_app_get_editor +glade_default_app_get_add_class +glade_default_app_get_alt_class +glade_default_app_get_palette +glade_default_app_get_clipboard +glade_default_app_get_active_project +glade_default_app_update_ui +glade_default_app_get_selection +glade_default_app_get_projects +glade_default_app_show_properties +glade_default_app_hide_properties +glade_default_app_set_transient_parent +glade_default_app_get_transient_parent +glade_default_app_is_selected +glade_default_app_selection_set +glade_default_app_selection_add +glade_default_app_selection_remove +glade_default_app_selection_clear +glade_default_app_selection_changed +glade_default_app_undo_button_new +glade_default_app_redo_button_new +<SUBSECTION Standard> +GLADE_APP +GLADE_IS_APP +GLADE_TYPE_APP +glade_app_get_type +GLADE_APP_CLASS +GLADE_IS_APP_CLASS +GLADE_APP_GET_CLASS +<SUBSECTION Private> +GLADE_CONFIG_FILENAME +GladeAppPriv +</SECTION> + +<SECTION> +<FILE>glade-clipboard-view</FILE> +<TITLE>GladeClipboardView</TITLE> +GladeClipboardView +glade_clipboard_view_new +glade_clipboard_view_add +glade_clipboard_view_remove +glade_clipboard_view_refresh_sel +<SUBSECTION Standard> +GLADE_CLIPBOARD_VIEW +GLADE_IS_CLIPBOARD_VIEW +GLADE_TYPE_CLIPBOARD_VIEW +glade_clipboard_view_get_type +GLADE_CLIPBOARD_VIEW_CLASS +GLADE_IS_CLIPBOARD_VIEW_CLASS +GLADE_CLIPBOARD_VIEW_GET_CLASS +</SECTION> + +<SECTION> +<FILE>glade-clipboard</FILE> +<TITLE>GladeClipboard</TITLE> +GladeClipboard +glade_clipboard_new +glade_clipboard_add +glade_clipboard_remove +glade_clipboard_selection_add +glade_clipboard_selection_remove +glade_clipboard_selection_clear +<SUBSECTION Standard> +GLADE_CLIPBOARD +GLADE_IS_CLIPBOARD +GLADE_TYPE_CLIPBOARD +glade_clipboard_get_type +</SECTION> + +<SECTION> +<FILE>glade-command</FILE> +<TITLE>GladeCommand</TITLE> +GCSetPropData +glade_command_undo +glade_command_redo +glade_command_next_undo_item +glade_command_next_redo_item +glade_command_push_group +glade_command_pop_group +glade_command_set_property +glade_command_set_properties +glade_command_set_properties_list +glade_command_set_name +glade_command_delete +glade_command_create +glade_command_cut +glade_command_copy +glade_command_paste +glade_command_add_signal +glade_command_remove_signal +glade_command_change_signal +<SUBSECTION Standard> +GLADE_COMMAND +GLADE_IS_COMMAND +GLADE_TYPE_COMMAND +glade_command_get_type +GLADE_COMMAND_CLASS +GLADE_IS_COMMAND_CLASS +GLADE_COMMAND_GET_CLASS +</SECTION> + +<SECTION> +<FILE>glade-editor-property</FILE> +<TITLE>GladeEditorProperty</TITLE> +GladeEditorProperty +glade_editor_property_new +glade_editor_property_load +glade_editor_property_load_by_widget +glade_editor_property_supported +glade_editor_property_new_from_widget +<SUBSECTION Standard> +GLADE_EDITOR_PROPERTY +GLADE_IS_EDITOR_PROPERTY +GLADE_TYPE_EDITOR_PROPERTY +glade_editor_property_get_type +GLADE_EDITOR_PROPERTY_CLASS +GLADE_IS_EDITOR_PROPERTY_CLASS +GLADE_EDITOR_PROPERTY_GET_CLASS +</SECTION> + +<SECTION> +<FILE>glade-editor</FILE> +<TITLE>GladeEditor</TITLE> +GladeEditor +glade_editor_new +glade_editor_load_widget +glade_editor_refresh +glade_editor_update_widget_name +glade_editor_query_dialog +<SUBSECTION Standard> +GLADE_EDITOR +GLADE_IS_EDITOR +GLADE_TYPE_EDITOR +glade_editor_get_type +GLADE_EDITOR_CLASS +GLADE_IS_EDITOR_CLASS +GLADE_EDITOR_GET_CLASS +<SUBSECTION Private> +GLADE_EDITOR_TABLE +GLADE_IS_EDITOR_TABLE +GladeEditorTable +</SECTION> + +<SECTION> +<FILE>glade-fixed-manager</FILE> +<TITLE>GladeFixedManager</TITLE> +GladeFixedManager +glade_fixed_manager_new +glade_fixed_manager_create_child +glade_fixed_manager_add_child +glade_fixed_manager_remove_child +glade_fixed_manager_post_mouse +<SUBSECTION Standard> +GLADE_FIXED_MANAGER +GLADE_IS_FIXED_MANAGER +GLADE_TYPE_FIXED_MANAGER +glade_fixed_manager_get_type +GLADE_FIXED_MANAGER_CLASS +GLADE_IS_FIXED_MANAGER_CLASS +GLADE_FIXED_MANAGER_GET_CLASS +</SECTION> + +<SECTION> +<FILE>glade-palette</FILE> +<TITLE>GladePalette</TITLE> +GladePalette +glade_palette_new +glade_palette_unselect_widget +<SUBSECTION Standard> +GLADE_PALETTE +GLADE_IS_PALETTE +GLADE_TYPE_PALETTE +glade_palette_get_type +GLADE_PALETTE_CLASS +GLADE_IS_PALETTE_CLASS +GLADE_PALETTE_GET_CLASS +</SECTION> + +<SECTION> +<FILE>glade-placeholder</FILE> +<TITLE>GladePlaceholder</TITLE> +GladePlaceholder +glade_placeholder_new +glade_placeholder_get_parent +<SUBSECTION Standard> +GLADE_PLACEHOLDER +GLADE_IS_PLACEHOLDER +GLADE_TYPE_PLACEHOLDER +glade_placeholder_get_type +GLADE_PLACEHOLDER_CLASS +GLADE_IS_PLACEHOLDER_CLASS +GLADE_PLACEHOLDER_GET_CLASS +<SUBSECTION Private> +GLADE_PLACEHOLDER_WIDTH_REQ +GLADE_PLACEHOLDER_HEIGHT_REQ +</SECTION> + +<SECTION> +<FILE>glade-project-view</FILE> +<TITLE>GladeProjectView</TITLE> +GladeProjectViewType +GladeProjectView +glade_project_view_new +glade_project_view_get_project +glade_project_view_set_project +glade_project_view_select_item +<SUBSECTION Standard> +GLADE_PROJECT_VIEW +GLADE_IS_PROJECT_VIEW +GLADE_TYPE_PROJECT_VIEW +glade_project_view_get_type +GLADE_PROJECT_VIEW_CLASS +GLADE_IS_PROJECT_VIEW_CLASS +GLADE_PROJECT_VIEW_GET_CLASS +</SECTION> + +<SECTION> +<FILE>glade-project</FILE> +<TITLE>GladeProject</TITLE> +GladeProject +glade_project_new +glade_project_open +glade_project_save +glade_project_reset_path +glade_project_add_object +glade_project_remove_object +glade_project_has_object +glade_project_get_widget_by_name +glade_project_new_widget_name +glade_project_widget_name_changed +glade_project_get_tooltips +glade_project_changed +glade_project_is_selected +glade_project_selection_set +glade_project_selection_add +glade_project_selection_remove +glade_project_selection_clear +glade_project_selection_changed +glade_project_selection_get +glade_project_set_accel_group +glade_project_set_resource +glade_project_list_resources +glade_project_resource_fullpath +glade_project_display_name +<SUBSECTION Standard> +GLADE_PROJECT +GLADE_IS_PROJECT +GLADE_TYPE_PROJECT +glade_project_get_type +GLADE_PROJECT_CLASS +GLADE_IS_PROJECT_CLASS +GLADE_PROJECT_GET_CLASS +</SECTION> + +<SECTION> +<FILE>glade-property-class</FILE> +<TITLE>GladePropertyClass</TITLE> +GladePropertyClass +glade_property_class_new +glade_property_class_new_from_spec +glade_property_class_clone +glade_property_class_free +glade_property_class_is_visible +glade_property_class_is_object +glade_property_class_make_gvalue_from_string +glade_property_class_make_string_from_gvalue +glade_property_class_make_gvalue_from_vl +glade_property_class_set_vl_from_gvalue +glade_property_class_update_from_node +glade_property_class_make_string_from_flags +glade_property_class_get_displayable_value +glade_property_class_make_adjustment +glade_property_class_match +<SUBSECTION Standard> +GLADE_PROPERTY_CLASS +GLADE_IS_PROPERTY_CLASS +</SECTION> + +<SECTION> +<FILE>glade-property</FILE> +<TITLE>GladeProperty</TITLE> +GladeProperty +glade_property_new +glade_property_dup +glade_property_reset +glade_property_default +glade_property_equals_value +glade_property_equals +glade_property_set_value +glade_property_set_va_list +glade_property_set +glade_property_get_value +glade_property_get_default +glade_property_get_va_list +glade_property_get +glade_property_sync +glade_property_write +glade_property_get_tooltip +glade_property_set_sensitive +glade_property_get_sensitive +glade_property_set_enabled +glade_property_get_enabled +glade_property_i18n_set_comment +glade_property_i18n_get_comment +glade_property_i18n_set_translatable +glade_property_i18n_get_translatable +glade_property_i18n_set_has_context +glade_property_i18n_get_has_context +<SUBSECTION Standard> +GLADE_PROPERTY_KLASS +GLADE_IS_PROPERTY_KLASS +GLADE_PROPERTY_GET_KLASS +GLADE_PROPERTY +GLADE_IS_PROPERTY +GLADE_TYPE_PROPERTY +glade_property_get_type +</SECTION> + +<SECTION> +<FILE>glade-signal-editor</FILE> +GladeSignalEditor +glade_signal_editor_get_widget +glade_signal_editor_new +glade_signal_editor_load_widget +<SUBSECTION Standard> +GLADE_SIGNAL_EDITOR +GLADE_IS_SIGNAL_EDITOR +</SECTION> + +<SECTION> +<FILE>glade-signal</FILE> +GladeSignal +glade_signal_new +glade_signal_clone +glade_signal_free +glade_signal_equal +glade_signal_write +glade_signal_new_from_signal_info +<SUBSECTION Standard> +GLADE_SIGNAL +GLADE_IS_SIGNAL +</SECTION> + +<SECTION> +<FILE>glade-widget-class</FILE> +<TITLE>GladeWidgetClass</TITLE> +GladeWidgetClass +GladeChildSetPropertyFunc +GladeChildGetPropertyFunc +GladeGetChildrenFunc +GladeAddChildFunc +GladeRemoveChildFunc +GladePostCreateFunc +GladeGetInternalFunc +GladeGetInternalChildrenFunc +GladeEditorLaunchFunc +glade_widget_class_new +glade_widget_class_free +glade_widget_class_get_by_name +glade_widget_class_get_by_type +glade_widget_class_get_derived_types +glade_widget_class_dump_param_specs +glade_widget_class_get_property_class +glade_widget_class_get_child_support +glade_widget_class_container_add +glade_widget_class_container_remove +glade_widget_class_container_has_child +glade_widget_class_container_get_children +glade_widget_class_container_get_all_children +glade_widget_class_container_set_property +glade_widget_class_container_get_property +glade_widget_class_container_replace_child +glade_widget_class_contains_extra +glade_widget_class_get_packing_default +<SUBSECTION Standard> +glade_widget_class_get_type +GLADE_WIDGET_CLASS +GLADE_IS_WIDGET_CLASS +<SUBSECTION Private> +GLADE_VALID_CREATE_REASON +GladeSupportedChild +GladeWidgetClassSignal +</SECTION> + +<SECTION> +<FILE>glade-widget</FILE> +<TITLE>GladeWidget</TITLE> +GladeWidget +glade_widget_new +glade_widget_new_for_internal_child +glade_widget_set_name +glade_widget_set_internal +glade_widget_set_object +glade_widget_set_project +glade_widget_get_name +glade_widget_get_internal +glade_widget_get_class +glade_widget_get_project +glade_widget_get_object +glade_widget_project_notify +glade_widget_show +glade_widget_hide +glade_widget_copy_properties +glade_widget_add_prop_ref +glade_widget_remove_prop_ref +glade_widget_get_property +glade_widget_get_pack_property +glade_widget_property_get +glade_widget_property_set +glade_widget_pack_property_get +glade_widget_pack_property_set +glade_widget_property_reset +glade_widget_pack_property_reset +glade_widget_property_default +glade_widget_pack_property_default +glade_widget_property_set_sensitive +glade_widget_pack_property_set_sensitive +glade_widget_property_set_enabled +glade_widget_pack_property_set_enabled +glade_widget_retrieve_from_position +glade_widget_has_decendant +glade_widget_replace +glade_widget_rebuild +glade_widget_dup +glade_widget_add_signal_handler +glade_widget_remove_signal_handler +glade_widget_change_signal_handler +glade_widget_list_signal_handlers +glade_widget_write +glade_widget_read +glade_widget_has_launcher +glade_widget_launch_editor +glade_widget_get_from_gobject +glade_widget_get_parent +glade_widget_set_parent +<SUBSECTION Standard> +GLADE_WIDGET +GLADE_IS_WIDGET +GLADE_TYPE_WIDGET +glade_widget_get_type +GLADE_WIDGET_KLASS +GLADE_IS_WIDGET_KLASS +GLADE_WIDGET_GET_KLASS +</SECTION> + +<SECTION> +<FILE>glade-parameter</FILE> +GladeParameter +glade_parameter_new +glade_parameter_clone +glade_parameter_free +glade_parameter_get_float +glade_parameter_get_integer +glade_parameter_get_boolean +glade_parameter_get_string +glade_parameter_list_new_from_node +</SECTION> + +<SECTION> +<FILE>glade-parser</FILE> +CAST_BAD +GladePropInfo +GladeSignalInfo +GladeAtkActionInfo +GladeAccelInfo +GladeWidgetInfo +GladeChildInfo +GladeInterface +GladeAtkRelationInfo +GladePackingDefault +glade_interface_new +glade_parser_parse_file +glade_parser_parse_buffer +glade_interface_destroy +glade_interface_dump +glade_interface_dump_full +<SUBSECTION Private> +glade_parser_pvalue_from_winfo +</SECTION> + +<SECTION> +<FILE>glade-utils</FILE> +glade_util_widget_set_tooltip +glade_util_get_type_from_name +glade_utils_get_pspec_from_funcname +GladeUIMessageType +glade_util_ui_message +glade_util_flash_message +glade_util_compare_stock_labels +glade_util_hide_window +glade_util_gtk_combo_func +glade_util_gtk_combo_find +glade_util_file_dialog_new +glade_util_replace +glade_util_duplicate_underscores +glade_util_add_selection +glade_util_remove_selection +glade_util_has_selection +glade_util_clear_selection +glade_util_get_selection +glade_util_selected_placeholder +glade_util_queue_draw_nodes +glade_util_get_parent +glade_util_container_get_all_children +glade_util_uri_list_parse +glade_util_gtkcontainer_relation +glade_util_any_gtkcontainer_relation +glade_util_widget_pastable +glade_util_paste_clipboard +glade_util_cut_selection +glade_util_copy_selection +glade_util_delete_selection +glade_util_delete_clipboard +glade_util_count_placeholders +glade_util_find_iter_by_widget +glade_util_basenames_match +glade_util_purify_list +glade_util_canonical_path +glade_util_copy_file +</SECTION> + + diff --git a/doc/glade.types b/doc/glade.types new file mode 100644 index 00000000..79f26202 --- /dev/null +++ b/doc/glade.types @@ -0,0 +1,15 @@ +#include <glade.h> + +glade_app_get_type +glade_clipboard_get_type +glade_clipboard_view_get_type +glade_command_get_type +glade_editor_get_type +glade_editor_property_get_type +glade_fixed_manager_get_type +glade_palette_get_type +glade_placeholder_get_type +glade_project_get_type +glade_project_view_get_type +glade_property_get_type +glade_widget_get_type diff --git a/doc/tmpl/glade-app.sgml b/doc/tmpl/glade-app.sgml new file mode 100644 index 00000000..c044f891 --- /dev/null +++ b/doc/tmpl/glade-app.sgml @@ -0,0 +1,506 @@ +<!-- ##### SECTION Title ##### --> +GladeApp + +<!-- ##### SECTION Short_Description ##### --> + + +<!-- ##### SECTION Long_Description ##### --> +<para> + +</para> + +<!-- ##### SECTION See_Also ##### --> +<para> + +</para> + +<!-- ##### SECTION Stability_Level ##### --> + + +<!-- ##### STRUCT GladeApp ##### --> +<para> + +</para> + + +<!-- ##### SIGNAL GladeApp::update-ui ##### --> +<para> + +</para> + +@gladeapp: the object which received the signal. + +<!-- ##### FUNCTION glade_app_new ##### --> +<para> + +</para> + +@Returns: + + +<!-- ##### FUNCTION glade_app_update_ui ##### --> +<para> + +</para> + +@app: + + +<!-- ##### FUNCTION glade_app_set_window ##### --> +<para> + +</para> + +@app: +@window: + + +<!-- ##### FUNCTION glade_app_get_window ##### --> +<para> + +</para> + +@app: +@Returns: + + +<!-- ##### FUNCTION glade_app_get_editor ##### --> +<para> + +</para> + +@app: +@Returns: + + +<!-- ##### FUNCTION glade_app_get_add_class ##### --> +<para> + +</para> + +@app: +@Returns: + + +<!-- ##### FUNCTION glade_app_get_alt_class ##### --> +<para> + +</para> + +@app: +@Returns: + + +<!-- ##### FUNCTION glade_app_get_palette ##### --> +<para> + +</para> + +@app: +@Returns: + + +<!-- ##### FUNCTION glade_app_get_clipboard ##### --> +<para> + +</para> + +@app: +@Returns: + + +<!-- ##### FUNCTION glade_app_get_clipboard_view ##### --> +<para> + +</para> + +@app: +@Returns: + + +<!-- ##### FUNCTION glade_app_get_active_project ##### --> +<para> + +</para> + +@app: +@Returns: + + +<!-- ##### FUNCTION glade_app_set_project ##### --> +<para> + +</para> + +@app: +@project: + + +<!-- ##### FUNCTION glade_app_add_project ##### --> +<para> + +</para> + +@app: +@project: + + +<!-- ##### FUNCTION glade_app_remove_project ##### --> +<para> + +</para> + +@app: +@project: + + +<!-- ##### FUNCTION glade_app_get_projects ##### --> +<para> + +</para> + +@app: +@Returns: + + +<!-- ##### FUNCTION glade_app_get_config ##### --> +<para> + +</para> + +@app: +@Returns: + + +<!-- ##### FUNCTION glade_app_is_project_loaded ##### --> +<para> + +</para> + +@app: +@project_path: +@Returns: + + +<!-- ##### FUNCTION glade_app_show_properties ##### --> +<para> + +</para> + +@app: +@raise: + + +<!-- ##### FUNCTION glade_app_hide_properties ##### --> +<para> + +</para> + +@app: + + +<!-- ##### FUNCTION glade_app_add_project_view ##### --> +<para> + +</para> + +@app: +@view: + + +<!-- ##### FUNCTION glade_app_command_copy ##### --> +<para> + +</para> + +@app: + + +<!-- ##### FUNCTION glade_app_command_cut ##### --> +<para> + +</para> + +@app: + + +<!-- ##### FUNCTION glade_app_command_paste ##### --> +<para> + +</para> + +@app: + + +<!-- ##### FUNCTION glade_app_command_delete ##### --> +<para> + +</para> + +@app: + + +<!-- ##### FUNCTION glade_app_command_undo ##### --> +<para> + +</para> + +@app: + + +<!-- ##### FUNCTION glade_app_command_redo ##### --> +<para> + +</para> + +@app: + + +<!-- ##### FUNCTION glade_app_config_save ##### --> +<para> + +</para> + +@app: +@Returns: + + +<!-- ##### FUNCTION glade_app_set_transient_parent ##### --> +<para> + +</para> + +@app: +@parent: + + +<!-- ##### FUNCTION glade_app_get_transient_parent ##### --> +<para> + +</para> + +@app: +@Returns: + + +<!-- ##### FUNCTION glade_app_set_accel_group ##### --> +<para> + +</para> + +@app: +@accel_group: + + +<!-- ##### FUNCTION glade_app_update_instance_count ##### --> +<para> + +</para> + +@app: +@project: + + +<!-- ##### FUNCTION glade_app_undo_button_new ##### --> +<para> + +</para> + +@app: +@Returns: + + +<!-- ##### FUNCTION glade_app_redo_button_new ##### --> +<para> + +</para> + +@app: +@Returns: + + +<!-- ##### FUNCTION glade_default_app_set ##### --> +<para> + +</para> + +@app: + + +<!-- ##### FUNCTION glade_default_app_get_window ##### --> +<para> + +</para> + +@Returns: + + +<!-- ##### FUNCTION glade_default_app_get_editor ##### --> +<para> + +</para> + +@Returns: + + +<!-- ##### FUNCTION glade_default_app_get_add_class ##### --> +<para> + +</para> + +@Returns: + + +<!-- ##### FUNCTION glade_default_app_get_alt_class ##### --> +<para> + +</para> + +@Returns: + + +<!-- ##### FUNCTION glade_default_app_get_palette ##### --> +<para> + +</para> + +@Returns: + + +<!-- ##### FUNCTION glade_default_app_get_clipboard ##### --> +<para> + +</para> + +@Returns: + + +<!-- ##### FUNCTION glade_default_app_get_active_project ##### --> +<para> + +</para> + +@Returns: + + +<!-- ##### FUNCTION glade_default_app_update_ui ##### --> +<para> + +</para> + + + +<!-- ##### FUNCTION glade_default_app_get_selection ##### --> +<para> + +</para> + +@Returns: + + +<!-- ##### FUNCTION glade_default_app_get_projects ##### --> +<para> + +</para> + +@Returns: + + +<!-- ##### FUNCTION glade_default_app_show_properties ##### --> +<para> + +</para> + +@raise: + + +<!-- ##### FUNCTION glade_default_app_hide_properties ##### --> +<para> + +</para> + + + +<!-- ##### FUNCTION glade_default_app_set_transient_parent ##### --> +<para> + +</para> + +@parent: + + +<!-- ##### FUNCTION glade_default_app_get_transient_parent ##### --> +<para> + +</para> + +@Returns: + + +<!-- ##### FUNCTION glade_default_app_is_selected ##### --> +<para> + +</para> + +@object: +@Returns: + + +<!-- ##### FUNCTION glade_default_app_selection_set ##### --> +<para> + +</para> + +@object: +@emit_signal: + + +<!-- ##### FUNCTION glade_default_app_selection_add ##### --> +<para> + +</para> + +@object: +@emit_signal: + + +<!-- ##### FUNCTION glade_default_app_selection_remove ##### --> +<para> + +</para> + +@object: +@emit_signal: + + +<!-- ##### FUNCTION glade_default_app_selection_clear ##### --> +<para> + +</para> + +@emit_signal: + + +<!-- ##### FUNCTION glade_default_app_selection_changed ##### --> +<para> + +</para> + + + +<!-- ##### FUNCTION glade_default_app_undo_button_new ##### --> +<para> + +</para> + +@Returns: + + +<!-- ##### FUNCTION glade_default_app_redo_button_new ##### --> +<para> + +</para> + +@Returns: + + diff --git a/doc/tmpl/glade-catalog.sgml b/doc/tmpl/glade-catalog.sgml new file mode 100644 index 00000000..d2aff262 --- /dev/null +++ b/doc/tmpl/glade-catalog.sgml @@ -0,0 +1,118 @@ +<!-- ##### SECTION Title ##### --> +glade-catalog + +<!-- ##### SECTION Short_Description ##### --> + + +<!-- ##### SECTION Long_Description ##### --> +<para> + +</para> + +<!-- ##### SECTION See_Also ##### --> +<para> + +</para> + +<!-- ##### SECTION Stability_Level ##### --> + + +<!-- ##### STRUCT GladeCatalog ##### --> +<para> + +</para> + + +<!-- ##### STRUCT GladeWidgetGroup ##### --> +<para> + +</para> + + +<!-- ##### FUNCTION glade_catalog_load_all ##### --> +<para> + +</para> + +@Returns: + + +<!-- ##### FUNCTION glade_catalog_get_name ##### --> +<para> + +</para> + +@catalog: +@Returns: + + +<!-- ##### FUNCTION glade_catalog_get_widget_groups ##### --> +<para> + +</para> + +@catalog: +@Returns: + + +<!-- ##### FUNCTION glade_catalog_get_widget_classes ##### --> +<para> + +</para> + +@catalog: +@Returns: + + +<!-- ##### FUNCTION glade_catalog_free ##### --> +<para> + +</para> + +@catalog: + + +<!-- ##### FUNCTION glade_widget_group_get_name ##### --> +<para> + +</para> + +@group: +@Returns: + + +<!-- ##### FUNCTION glade_widget_group_get_title ##### --> +<para> + +</para> + +@group: +@Returns: + + +<!-- ##### FUNCTION glade_widget_group_get_widget_classes ##### --> +<para> + +</para> + +@group: +@Returns: + + +<!-- ##### FUNCTION glade_widget_group_free ##### --> +<para> + +</para> + +@group: + + +<!-- ##### FUNCTION glade_catalog_is_loaded ##### --> +<para> + +</para> + +@name: +@Returns: + + diff --git a/doc/tmpl/glade-clipboard-view.sgml b/doc/tmpl/glade-clipboard-view.sgml new file mode 100644 index 00000000..9148d38c --- /dev/null +++ b/doc/tmpl/glade-clipboard-view.sgml @@ -0,0 +1,60 @@ +<!-- ##### SECTION Title ##### --> +GladeClipboardView + +<!-- ##### SECTION Short_Description ##### --> + + +<!-- ##### SECTION Long_Description ##### --> +<para> + +</para> + +<!-- ##### SECTION See_Also ##### --> +<para> + +</para> + +<!-- ##### SECTION Stability_Level ##### --> + + +<!-- ##### STRUCT GladeClipboardView ##### --> +<para> + +</para> + + +<!-- ##### FUNCTION glade_clipboard_view_new ##### --> +<para> + +</para> + +@clipboard: +@Returns: + + +<!-- ##### FUNCTION glade_clipboard_view_add ##### --> +<para> + +</para> + +@view: +@widget: + + +<!-- ##### FUNCTION glade_clipboard_view_remove ##### --> +<para> + +</para> + +@view: +@widget: + + +<!-- ##### FUNCTION glade_clipboard_view_refresh_sel ##### --> +<para> + +</para> + +@view: + + diff --git a/doc/tmpl/glade-clipboard.sgml b/doc/tmpl/glade-clipboard.sgml new file mode 100644 index 00000000..ab1d3e6e --- /dev/null +++ b/doc/tmpl/glade-clipboard.sgml @@ -0,0 +1,77 @@ +<!-- ##### SECTION Title ##### --> +GladeClipboard + +<!-- ##### SECTION Short_Description ##### --> + + +<!-- ##### SECTION Long_Description ##### --> +<para> + +</para> + +<!-- ##### SECTION See_Also ##### --> +<para> + +</para> + +<!-- ##### SECTION Stability_Level ##### --> + + +<!-- ##### STRUCT GladeClipboard ##### --> +<para> + +</para> + + +<!-- ##### FUNCTION glade_clipboard_new ##### --> +<para> + +</para> + +@Returns: + + +<!-- ##### FUNCTION glade_clipboard_add ##### --> +<para> + +</para> + +@clipboard: +@widgets: + + +<!-- ##### FUNCTION glade_clipboard_remove ##### --> +<para> + +</para> + +@clipboard: +@widgets: + + +<!-- ##### FUNCTION glade_clipboard_selection_add ##### --> +<para> + +</para> + +@clipboard: +@widget: + + +<!-- ##### FUNCTION glade_clipboard_selection_remove ##### --> +<para> + +</para> + +@clipboard: +@widget: + + +<!-- ##### FUNCTION glade_clipboard_selection_clear ##### --> +<para> + +</para> + +@clipboard: + + diff --git a/doc/tmpl/glade-command.sgml b/doc/tmpl/glade-command.sgml new file mode 100644 index 00000000..1ca1ebbb --- /dev/null +++ b/doc/tmpl/glade-command.sgml @@ -0,0 +1,189 @@ +<!-- ##### SECTION Title ##### --> +GladeCommand + +<!-- ##### SECTION Short_Description ##### --> + + +<!-- ##### SECTION Long_Description ##### --> +<para> + +</para> + +<!-- ##### SECTION See_Also ##### --> +<para> + +</para> + +<!-- ##### SECTION Stability_Level ##### --> + + +<!-- ##### STRUCT GCSetPropData ##### --> +<para> + +</para> + +@property: +@new_value: +@old_value: + +<!-- ##### FUNCTION glade_command_undo ##### --> +<para> + +</para> + +@project: + + +<!-- ##### FUNCTION glade_command_redo ##### --> +<para> + +</para> + +@project: + + +<!-- ##### FUNCTION glade_command_next_undo_item ##### --> +<para> + +</para> + +@project: +@Returns: + + +<!-- ##### FUNCTION glade_command_next_redo_item ##### --> +<para> + +</para> + +@project: +@Returns: + + +<!-- ##### FUNCTION glade_command_push_group ##### --> +<para> + +</para> + +@description: + + +<!-- ##### FUNCTION glade_command_pop_group ##### --> +<para> + +</para> + + + +<!-- ##### FUNCTION glade_command_set_property ##### --> +<para> + +</para> + +@property: +@value: + + +<!-- ##### FUNCTION glade_command_set_properties ##### --> +<para> + +</para> + +@property: +@old_value: +@new_value: +@Varargs: + + +<!-- ##### FUNCTION glade_command_set_properties_list ##### --> +<para> + +</para> + +@project: +@props: + + +<!-- ##### FUNCTION glade_command_set_name ##### --> +<para> + +</para> + +@glade_widget: +@name: + + +<!-- ##### FUNCTION glade_command_delete ##### --> +<para> + +</para> + +@widgets: + + +<!-- ##### FUNCTION glade_command_create ##### --> +<para> + +</para> + +@class: +@parent: +@placeholder: +@project: +@Returns: + + +<!-- ##### FUNCTION glade_command_cut ##### --> +<para> + +</para> + +@widgets: + + +<!-- ##### FUNCTION glade_command_copy ##### --> +<para> + +</para> + +@widgets: + + +<!-- ##### FUNCTION glade_command_paste ##### --> +<para> + +</para> + +@widgets: +@parent: +@placeholder: + + +<!-- ##### FUNCTION glade_command_add_signal ##### --> +<para> + +</para> + +@glade_widget: +@signal: + + +<!-- ##### FUNCTION glade_command_remove_signal ##### --> +<para> + +</para> + +@glade_widget: +@signal: + + +<!-- ##### FUNCTION glade_command_change_signal ##### --> +<para> + +</para> + +@glade_widget: +@old: +@new: + + diff --git a/doc/tmpl/glade-editor-property.sgml b/doc/tmpl/glade-editor-property.sgml new file mode 100644 index 00000000..1c33675e --- /dev/null +++ b/doc/tmpl/glade-editor-property.sgml @@ -0,0 +1,83 @@ +<!-- ##### SECTION Title ##### --> +GladeEditorProperty + +<!-- ##### SECTION Short_Description ##### --> + + +<!-- ##### SECTION Long_Description ##### --> +<para> + +</para> + +<!-- ##### SECTION See_Also ##### --> +<para> + +</para> + +<!-- ##### SECTION Stability_Level ##### --> + + +<!-- ##### STRUCT GladeEditorProperty ##### --> +<para> + +</para> + + +<!-- ##### ARG GladeEditorProperty:property-class ##### --> +<para> + +</para> + +<!-- ##### ARG GladeEditorProperty:use-command ##### --> +<para> + +</para> + +<!-- ##### FUNCTION glade_editor_property_new ##### --> +<para> + +</para> + +@class: +@use_command: +@Returns: + + +<!-- ##### FUNCTION glade_editor_property_load ##### --> +<para> + +</para> + +@eprop: +@property: + + +<!-- ##### FUNCTION glade_editor_property_load_by_widget ##### --> +<para> + +</para> + +@eprop: +@widget: + + +<!-- ##### FUNCTION glade_editor_property_supported ##### --> +<para> + +</para> + +@pspec: +@Returns: + + +<!-- ##### FUNCTION glade_editor_property_new_from_widget ##### --> +<para> + +</para> + +@widget: +@property: +@use_command: +@Returns: + + diff --git a/doc/tmpl/glade-editor.sgml b/doc/tmpl/glade-editor.sgml new file mode 100644 index 00000000..ce00e1fe --- /dev/null +++ b/doc/tmpl/glade-editor.sgml @@ -0,0 +1,68 @@ +<!-- ##### SECTION Title ##### --> +GladeEditor + +<!-- ##### SECTION Short_Description ##### --> + + +<!-- ##### SECTION Long_Description ##### --> +<para> + +</para> + +<!-- ##### SECTION See_Also ##### --> +<para> + +</para> + +<!-- ##### SECTION Stability_Level ##### --> + + +<!-- ##### STRUCT GladeEditor ##### --> +<para> + +</para> + + +<!-- ##### FUNCTION glade_editor_new ##### --> +<para> + +</para> + +@Returns: + + +<!-- ##### FUNCTION glade_editor_load_widget ##### --> +<para> + +</para> + +@editor: +@widget: + + +<!-- ##### FUNCTION glade_editor_refresh ##### --> +<para> + +</para> + +@editor: + + +<!-- ##### FUNCTION glade_editor_update_widget_name ##### --> +<para> + +</para> + +@editor: + + +<!-- ##### FUNCTION glade_editor_query_dialog ##### --> +<para> + +</para> + +@editor: +@widget: +@Returns: + + diff --git a/doc/tmpl/glade-fixed-manager.sgml b/doc/tmpl/glade-fixed-manager.sgml new file mode 100644 index 00000000..433c117f --- /dev/null +++ b/doc/tmpl/glade-fixed-manager.sgml @@ -0,0 +1,158 @@ +<!-- ##### SECTION Title ##### --> +GladeFixedManager + +<!-- ##### SECTION Short_Description ##### --> + + +<!-- ##### SECTION Long_Description ##### --> +<para> + +</para> + +<!-- ##### SECTION See_Also ##### --> +<para> + +</para> + +<!-- ##### SECTION Stability_Level ##### --> + + +<!-- ##### STRUCT GladeFixedManager ##### --> +<para> + +</para> + + +<!-- ##### SIGNAL GladeFixedManager::add-child ##### --> +<para> + +</para> + +@gladefixedmanager: the object which received the signal. +@arg1: +@Returns: + +<!-- ##### SIGNAL GladeFixedManager::child-created ##### --> +<para> + +</para> + +@gladefixedmanager: the object which received the signal. +@arg1: + +<!-- ##### SIGNAL GladeFixedManager::configure-begin ##### --> +<para> + +</para> + +@gladefixedmanager: the object which received the signal. +@arg1: + +<!-- ##### SIGNAL GladeFixedManager::configure-child ##### --> +<para> + +</para> + +@gladefixedmanager: the object which received the signal. +@arg1: +@arg2: +@Returns: + +<!-- ##### SIGNAL GladeFixedManager::configure-end ##### --> +<para> + +</para> + +@gladefixedmanager: the object which received the signal. +@arg1: + +<!-- ##### SIGNAL GladeFixedManager::create-child ##### --> +<para> + +</para> + +@gladefixedmanager: the object which received the signal. +@arg1: +@Returns: + +<!-- ##### SIGNAL GladeFixedManager::remove-child ##### --> +<para> + +</para> + +@gladefixedmanager: the object which received the signal. +@arg1: +@Returns: + +<!-- ##### ARG GladeFixedManager:height-prop ##### --> +<para> + +</para> + +<!-- ##### ARG GladeFixedManager:width-prop ##### --> +<para> + +</para> + +<!-- ##### ARG GladeFixedManager:x-prop ##### --> +<para> + +</para> + +<!-- ##### ARG GladeFixedManager:y-prop ##### --> +<para> + +</para> + +<!-- ##### FUNCTION glade_fixed_manager_new ##### --> +<para> + +</para> + +@gtkcontainer: +@x_prop: +@y_prop: +@width_prop: +@height_prop: +@Returns: + + +<!-- ##### FUNCTION glade_fixed_manager_create_child ##### --> +<para> + +</para> + +@manager: +@wclass: +@Returns: + + +<!-- ##### FUNCTION glade_fixed_manager_add_child ##### --> +<para> + +</para> + +@manager: +@child: +@at_mouse: + + +<!-- ##### FUNCTION glade_fixed_manager_remove_child ##### --> +<para> + +</para> + +@manager: +@child: + + +<!-- ##### FUNCTION glade_fixed_manager_post_mouse ##### --> +<para> + +</para> + +@manager: +@x: +@y: + + diff --git a/doc/tmpl/glade-palette.sgml b/doc/tmpl/glade-palette.sgml new file mode 100644 index 00000000..57c798f8 --- /dev/null +++ b/doc/tmpl/glade-palette.sgml @@ -0,0 +1,56 @@ +<!-- ##### SECTION Title ##### --> +GladePalette + +<!-- ##### SECTION Short_Description ##### --> + + +<!-- ##### SECTION Long_Description ##### --> +<para> + +</para> + +<!-- ##### SECTION See_Also ##### --> +<para> + +</para> + +<!-- ##### SECTION Stability_Level ##### --> + + +<!-- ##### STRUCT GladePalette ##### --> +<para> + +</para> + + +<!-- ##### SIGNAL GladePalette::catalog-changed ##### --> +<para> + +</para> + +@gladepalette: the object which received the signal. + +<!-- ##### SIGNAL GladePalette::toggled ##### --> +<para> + +</para> + +@gladepalette: the object which received the signal. + +<!-- ##### FUNCTION glade_palette_new ##### --> +<para> + +</para> + +@catalogs: +@Returns: + + +<!-- ##### FUNCTION glade_palette_unselect_widget ##### --> +<para> + +</para> + +@palette: + + diff --git a/doc/tmpl/glade-parameter.sgml b/doc/tmpl/glade-parameter.sgml new file mode 100644 index 00000000..8d4ea6ce --- /dev/null +++ b/doc/tmpl/glade-parameter.sgml @@ -0,0 +1,102 @@ +<!-- ##### SECTION Title ##### --> +glade-parameter + +<!-- ##### SECTION Short_Description ##### --> + + +<!-- ##### SECTION Long_Description ##### --> +<para> + +</para> + +<!-- ##### SECTION See_Also ##### --> +<para> + +</para> + +<!-- ##### SECTION Stability_Level ##### --> + + +<!-- ##### STRUCT GladeParameter ##### --> +<para> + +</para> + +@key: +@value: + +<!-- ##### FUNCTION glade_parameter_new ##### --> +<para> + +</para> + +@Returns: + + +<!-- ##### FUNCTION glade_parameter_clone ##### --> +<para> + +</para> + +@parameter: +@Returns: + + +<!-- ##### FUNCTION glade_parameter_free ##### --> +<para> + +</para> + +@parameter: + + +<!-- ##### FUNCTION glade_parameter_get_float ##### --> +<para> + +</para> + +@parameters: +@key: +@value: + + +<!-- ##### FUNCTION glade_parameter_get_integer ##### --> +<para> + +</para> + +@parameters: +@key: +@value: + + +<!-- ##### FUNCTION glade_parameter_get_boolean ##### --> +<para> + +</para> + +@parameters: +@key: +@value: + + +<!-- ##### FUNCTION glade_parameter_get_string ##### --> +<para> + +</para> + +@parameters: +@key: +@value: + + +<!-- ##### FUNCTION glade_parameter_list_new_from_node ##### --> +<para> + +</para> + +@list: +@node: +@Returns: + + diff --git a/doc/tmpl/glade-parser.sgml b/doc/tmpl/glade-parser.sgml new file mode 100644 index 00000000..e5ee4dad --- /dev/null +++ b/doc/tmpl/glade-parser.sgml @@ -0,0 +1,183 @@ +<!-- ##### SECTION Title ##### --> +glade-parser + +<!-- ##### SECTION Short_Description ##### --> + + +<!-- ##### SECTION Long_Description ##### --> +<para> + +</para> + +<!-- ##### SECTION See_Also ##### --> +<para> + +</para> + +<!-- ##### SECTION Stability_Level ##### --> + + +<!-- ##### MACRO CAST_BAD ##### --> +<para> + +</para> + + + +<!-- ##### STRUCT GladePropInfo ##### --> +<para> + +</para> + +@name: +@value: +@comment: +@translatable: +@has_context: + +<!-- ##### STRUCT GladeSignalInfo ##### --> +<para> + +</para> + +@name: +@handler: +@object: +@after: +@lookup: + +<!-- ##### STRUCT GladeAtkActionInfo ##### --> +<para> + +</para> + +@action_name: +@description: + +<!-- ##### STRUCT GladeAccelInfo ##### --> +<para> + +</para> + +@key: +@modifiers: +@signal: + +<!-- ##### STRUCT GladeWidgetInfo ##### --> +<para> + +</para> + +@parent: +@classname: +@name: +@properties: +@n_properties: +@atk_props: +@n_atk_props: +@signals: +@n_signals: +@atk_actions: +@n_atk_actions: +@relations: +@n_relations: +@accels: +@n_accels: +@children: +@n_children: + +<!-- ##### STRUCT GladeChildInfo ##### --> +<para> + +</para> + +@properties: +@n_properties: +@child: +@internal_child: + +<!-- ##### STRUCT GladeInterface ##### --> +<para> + +</para> + +@requires: +@n_requires: +@toplevels: +@n_toplevels: +@names: +@strings: + +<!-- ##### STRUCT GladeAtkRelationInfo ##### --> +<para> + +</para> + +@target: +@type: + +<!-- ##### STRUCT GladePackingDefault ##### --> +<para> + +</para> + +@id: +@value: + +<!-- ##### FUNCTION glade_interface_new ##### --> +<para> + +</para> + +@Returns: + + +<!-- ##### FUNCTION glade_parser_parse_file ##### --> +<para> + +</para> + +@file: +@domain: +@Returns: + + +<!-- ##### FUNCTION glade_parser_parse_buffer ##### --> +<para> + +</para> + +@buffer: +@len: +@domain: +@Returns: + + +<!-- ##### FUNCTION glade_interface_destroy ##### --> +<para> + +</para> + +@interface: + + +<!-- ##### FUNCTION glade_interface_dump ##### --> +<para> + +</para> + +@interface: +@filename: + + +<!-- ##### FUNCTION glade_interface_dump_full ##### --> +<para> + +</para> + +@interface: +@filename: +@error: +@Returns: + + diff --git a/doc/tmpl/glade-placeholder.sgml b/doc/tmpl/glade-placeholder.sgml new file mode 100644 index 00000000..eca25ec4 --- /dev/null +++ b/doc/tmpl/glade-placeholder.sgml @@ -0,0 +1,42 @@ +<!-- ##### SECTION Title ##### --> +GladePlaceholder + +<!-- ##### SECTION Short_Description ##### --> + + +<!-- ##### SECTION Long_Description ##### --> +<para> + +</para> + +<!-- ##### SECTION See_Also ##### --> +<para> + +</para> + +<!-- ##### SECTION Stability_Level ##### --> + + +<!-- ##### STRUCT GladePlaceholder ##### --> +<para> + +</para> + + +<!-- ##### FUNCTION glade_placeholder_new ##### --> +<para> + +</para> + +@Returns: + + +<!-- ##### FUNCTION glade_placeholder_get_parent ##### --> +<para> + +</para> + +@placeholder: +@Returns: + + diff --git a/doc/tmpl/glade-project-view.sgml b/doc/tmpl/glade-project-view.sgml new file mode 100644 index 00000000..e9a6597c --- /dev/null +++ b/doc/tmpl/glade-project-view.sgml @@ -0,0 +1,69 @@ +<!-- ##### SECTION Title ##### --> +GladeProjectView + +<!-- ##### SECTION Short_Description ##### --> + + +<!-- ##### SECTION Long_Description ##### --> +<para> + +</para> + +<!-- ##### SECTION See_Also ##### --> +<para> + +</para> + +<!-- ##### SECTION Stability_Level ##### --> + + +<!-- ##### ENUM GladeProjectViewType ##### --> +<para> + +</para> + +@GLADE_PROJECT_VIEW_LIST: +@GLADE_PROJECT_VIEW_TREE: + +<!-- ##### STRUCT GladeProjectView ##### --> +<para> + +</para> + + +<!-- ##### FUNCTION glade_project_view_new ##### --> +<para> + +</para> + +@type: +@Returns: + + +<!-- ##### FUNCTION glade_project_view_get_project ##### --> +<para> + +</para> + +@view: +@Returns: + + +<!-- ##### FUNCTION glade_project_view_set_project ##### --> +<para> + +</para> + +@view: +@project: + + +<!-- ##### FUNCTION glade_project_view_select_item ##### --> +<para> + +</para> + +@view: +@item: + + diff --git a/doc/tmpl/glade-project.sgml b/doc/tmpl/glade-project.sgml new file mode 100644 index 00000000..95226859 --- /dev/null +++ b/doc/tmpl/glade-project.sgml @@ -0,0 +1,305 @@ +<!-- ##### SECTION Title ##### --> +GladeProject + +<!-- ##### SECTION Short_Description ##### --> + + +<!-- ##### SECTION Long_Description ##### --> +<para> + +</para> + +<!-- ##### SECTION See_Also ##### --> +<para> + +</para> + +<!-- ##### SECTION Stability_Level ##### --> + + +<!-- ##### STRUCT GladeProject ##### --> +<para> + +</para> + + +<!-- ##### SIGNAL GladeProject::add-widget ##### --> +<para> + +</para> + +@gladeproject: the object which received the signal. +@arg1: + +<!-- ##### SIGNAL GladeProject::close ##### --> +<para> + +</para> + +@gladeproject: the object which received the signal. + +<!-- ##### SIGNAL GladeProject::remove-widget ##### --> +<para> + +</para> + +@gladeproject: the object which received the signal. +@arg1: + +<!-- ##### SIGNAL GladeProject::resource-added ##### --> +<para> + +</para> + +@gladeproject: the object which received the signal. +@arg1: + +<!-- ##### SIGNAL GladeProject::resource-removed ##### --> +<para> + +</para> + +@gladeproject: the object which received the signal. +@arg1: + +<!-- ##### SIGNAL GladeProject::selection-changed ##### --> +<para> + +</para> + +@gladeproject: the object which received the signal. + +<!-- ##### SIGNAL GladeProject::widget-name-changed ##### --> +<para> + +</para> + +@gladeproject: the object which received the signal. +@arg1: + +<!-- ##### FUNCTION glade_project_new ##### --> +<para> + +</para> + +@untitled: +@Returns: + + +<!-- ##### FUNCTION glade_project_open ##### --> +<para> + +</para> + +@path: +@Returns: + + +<!-- ##### FUNCTION glade_project_save ##### --> +<para> + +</para> + +@project: +@path: +@error: +@Returns: + + +<!-- ##### FUNCTION glade_project_reset_path ##### --> +<para> + +</para> + +@project: + + +<!-- ##### FUNCTION glade_project_add_object ##### --> +<para> + +</para> + +@project: +@old_project: +@object: + + +<!-- ##### FUNCTION glade_project_remove_object ##### --> +<para> + +</para> + +@project: +@object: + + +<!-- ##### FUNCTION glade_project_has_object ##### --> +<para> + +</para> + +@project: +@object: +@Returns: + + +<!-- ##### FUNCTION glade_project_get_widget_by_name ##### --> +<para> + +</para> + +@project: +@name: +@Returns: + + +<!-- ##### FUNCTION glade_project_new_widget_name ##### --> +<para> + +</para> + +@project: +@base_name: +@Returns: + + +<!-- ##### FUNCTION glade_project_widget_name_changed ##### --> +<para> + +</para> + +@project: +@widget: +@old_name: + + +<!-- ##### FUNCTION glade_project_get_tooltips ##### --> +<para> + +</para> + +@project: +@Returns: + + +<!-- ##### FUNCTION glade_project_changed ##### --> +<para> + +</para> + +@project: + + +<!-- ##### FUNCTION glade_project_is_selected ##### --> +<para> + +</para> + +@project: +@object: +@Returns: + + +<!-- ##### FUNCTION glade_project_selection_set ##### --> +<para> + +</para> + +@project: +@object: +@emit_signal: + + +<!-- ##### FUNCTION glade_project_selection_add ##### --> +<para> + +</para> + +@project: +@object: +@emit_signal: + + +<!-- ##### FUNCTION glade_project_selection_remove ##### --> +<para> + +</para> + +@project: +@object: +@emit_signal: + + +<!-- ##### FUNCTION glade_project_selection_clear ##### --> +<para> + +</para> + +@project: +@emit_signal: + + +<!-- ##### FUNCTION glade_project_selection_changed ##### --> +<para> + +</para> + +@project: + + +<!-- ##### FUNCTION glade_project_selection_get ##### --> +<para> + +</para> + +@project: +@Returns: + + +<!-- ##### FUNCTION glade_project_set_accel_group ##### --> +<para> + +</para> + +@project: +@new_group: + + +<!-- ##### FUNCTION glade_project_set_resource ##### --> +<para> + +</para> + +@project: +@property: +@resource: + + +<!-- ##### FUNCTION glade_project_list_resources ##### --> +<para> + +</para> + +@project: +@Returns: + + +<!-- ##### FUNCTION glade_project_resource_fullpath ##### --> +<para> + +</para> + +@project: +@resource: +@Returns: + + +<!-- ##### FUNCTION glade_project_display_name ##### --> +<para> + +</para> + +@project: +@Returns: + + diff --git a/doc/tmpl/glade-property-class.sgml b/doc/tmpl/glade-property-class.sgml new file mode 100644 index 00000000..932682ed --- /dev/null +++ b/doc/tmpl/glade-property-class.sgml @@ -0,0 +1,195 @@ +<!-- ##### SECTION Title ##### --> +GladePropertyClass + +<!-- ##### SECTION Short_Description ##### --> + + +<!-- ##### SECTION Long_Description ##### --> +<para> + +</para> + +<!-- ##### SECTION See_Also ##### --> +<para> + +</para> + +<!-- ##### SECTION Stability_Level ##### --> + + +<!-- ##### STRUCT GladePropertyClass ##### --> +<para> + +</para> + +@pspec: +@id: +@name: +@tooltip: +@def: +@orig_def: +@parameters: +@displayable_values: +@query: +@optional: +@optional_default: +@construct_only: +@common: +@packing: +@translatable: +@visible_lines: +@save: +@visible: +@ignore: +@is_modified: +@resource: +@verify_function: +@set_function: +@get_function: + +<!-- ##### FUNCTION glade_property_class_new ##### --> +<para> + +</para> + +@Returns: + + +<!-- ##### FUNCTION glade_property_class_new_from_spec ##### --> +<para> + +</para> + +@spec: +@Returns: + + +<!-- ##### FUNCTION glade_property_class_clone ##### --> +<para> + +</para> + +@property_class: +@Returns: + + +<!-- ##### FUNCTION glade_property_class_free ##### --> +<para> + +</para> + +@property_class: + + +<!-- ##### FUNCTION glade_property_class_is_visible ##### --> +<para> + +</para> + +@property_class: +@Returns: + + +<!-- ##### FUNCTION glade_property_class_is_object ##### --> +<para> + +</para> + +@property_class: +@Returns: + + +<!-- ##### FUNCTION glade_property_class_make_gvalue_from_string ##### --> +<para> + +</para> + +@property_class: +@string: +@project: +@Returns: + + +<!-- ##### FUNCTION glade_property_class_make_string_from_gvalue ##### --> +<para> + +</para> + +@property_class: +@value: +@Returns: + + +<!-- ##### FUNCTION glade_property_class_make_gvalue_from_vl ##### --> +<para> + +</para> + +@property_class: +@vl: +@Returns: + + +<!-- ##### FUNCTION glade_property_class_set_vl_from_gvalue ##### --> +<para> + +</para> + +@class: +@value: +@vl: + + +<!-- ##### FUNCTION glade_property_class_update_from_node ##### --> +<para> + +</para> + +@node: +@module: +@object_type: +@property_class: +@domain: +@Returns: + + +<!-- ##### FUNCTION glade_property_class_make_string_from_flags ##### --> +<para> + +</para> + +@class: +@fvals: +@displayables: +@Returns: + + +<!-- ##### FUNCTION glade_property_class_get_displayable_value ##### --> +<para> + +</para> + +@class: +@value: +@Returns: + + +<!-- ##### FUNCTION glade_property_class_make_adjustment ##### --> +<para> + +</para> + +@class: +@Returns: + + +<!-- ##### FUNCTION glade_property_class_match ##### --> +<para> + +</para> + +@class: +@comp: +@Returns: + + diff --git a/doc/tmpl/glade-property.sgml b/doc/tmpl/glade-property.sgml new file mode 100644 index 00000000..8d5fd5aa --- /dev/null +++ b/doc/tmpl/glade-property.sgml @@ -0,0 +1,306 @@ +<!-- ##### SECTION Title ##### --> +GladeProperty + +<!-- ##### SECTION Short_Description ##### --> + + +<!-- ##### SECTION Long_Description ##### --> +<para> + +</para> + +<!-- ##### SECTION See_Also ##### --> +<para> + +</para> + +<!-- ##### SECTION Stability_Level ##### --> + + +<!-- ##### STRUCT GladeProperty ##### --> +<para> + +</para> + + +<!-- ##### SIGNAL GladeProperty::tooltip-changed ##### --> +<para> + +</para> + +@gladeproperty: the object which received the signal. +@arg1: + +<!-- ##### SIGNAL GladeProperty::value-changed ##### --> +<para> + +</para> + +@gladeproperty: the object which received the signal. +@arg1: + +<!-- ##### ARG GladeProperty:enabled ##### --> +<para> + +</para> + +<!-- ##### ARG GladeProperty:i18n-comment ##### --> +<para> + +</para> + +<!-- ##### ARG GladeProperty:i18n-has-context ##### --> +<para> + +</para> + +<!-- ##### ARG GladeProperty:i18n-translatable ##### --> +<para> + +</para> + +<!-- ##### ARG GladeProperty:sensitive ##### --> +<para> + +</para> + +<!-- ##### FUNCTION glade_property_new ##### --> +<para> + +</para> + +@class: +@widget: +@value: +@Returns: + + +<!-- ##### FUNCTION glade_property_dup ##### --> +<para> + +</para> + +@template: +@widget: +@Returns: + + +<!-- ##### FUNCTION glade_property_reset ##### --> +<para> + +</para> + +@property: + + +<!-- ##### FUNCTION glade_property_default ##### --> +<para> + +</para> + +@property: +@Returns: + + +<!-- ##### FUNCTION glade_property_equals_value ##### --> +<para> + +</para> + +@property: +@value: +@Returns: + + +<!-- ##### FUNCTION glade_property_equals ##### --> +<para> + +</para> + +@property: +@Varargs: +@Returns: + + +<!-- ##### FUNCTION glade_property_set_value ##### --> +<para> + +</para> + +@property: +@value: + + +<!-- ##### FUNCTION glade_property_set_va_list ##### --> +<para> + +</para> + +@property: +@vl: + + +<!-- ##### FUNCTION glade_property_set ##### --> +<para> + +</para> + +@property: +@Varargs: + + +<!-- ##### FUNCTION glade_property_get_value ##### --> +<para> + +</para> + +@property: +@value: + + +<!-- ##### FUNCTION glade_property_get_default ##### --> +<para> + +</para> + +@property: +@value: + + +<!-- ##### FUNCTION glade_property_get_va_list ##### --> +<para> + +</para> + +@property: +@vl: + + +<!-- ##### FUNCTION glade_property_get ##### --> +<para> + +</para> + +@property: +@Varargs: + + +<!-- ##### FUNCTION glade_property_sync ##### --> +<para> + +</para> + +@property: + + +<!-- ##### FUNCTION glade_property_write ##### --> +<para> + +</para> + +@property: +@interface: +@props: +@Returns: + + +<!-- ##### FUNCTION glade_property_get_tooltip ##### --> +<para> + +</para> + +@property: +@Returns: + + +<!-- ##### FUNCTION glade_property_set_sensitive ##### --> +<para> + +</para> + +@property: +@sensitive: +@reason: + + +<!-- ##### FUNCTION glade_property_get_sensitive ##### --> +<para> + +</para> + +@property: +@Returns: + + +<!-- ##### FUNCTION glade_property_set_enabled ##### --> +<para> + +</para> + +@property: +@enabled: + + +<!-- ##### FUNCTION glade_property_get_enabled ##### --> +<para> + +</para> + +@property: +@Returns: + + +<!-- ##### FUNCTION glade_property_i18n_set_comment ##### --> +<para> + +</para> + +@property: +@str: + + +<!-- ##### FUNCTION glade_property_i18n_get_comment ##### --> +<para> + +</para> + +@property: +@Returns: + + +<!-- ##### FUNCTION glade_property_i18n_set_translatable ##### --> +<para> + +</para> + +@property: +@translatable: + + +<!-- ##### FUNCTION glade_property_i18n_get_translatable ##### --> +<para> + +</para> + +@property: +@Returns: + + +<!-- ##### FUNCTION glade_property_i18n_set_has_context ##### --> +<para> + +</para> + +@property: +@has_context: + + +<!-- ##### FUNCTION glade_property_i18n_get_has_context ##### --> +<para> + +</para> + +@property: +@Returns: + + diff --git a/doc/tmpl/glade-signal-editor.sgml b/doc/tmpl/glade-signal-editor.sgml new file mode 100644 index 00000000..7e5e18e2 --- /dev/null +++ b/doc/tmpl/glade-signal-editor.sgml @@ -0,0 +1,59 @@ +<!-- ##### SECTION Title ##### --> +glade-signal-editor + +<!-- ##### SECTION Short_Description ##### --> + + +<!-- ##### SECTION Long_Description ##### --> +<para> + +</para> + +<!-- ##### SECTION See_Also ##### --> +<para> + +</para> + +<!-- ##### SECTION Stability_Level ##### --> + + +<!-- ##### STRUCT GladeSignalEditor ##### --> +<para> + +</para> + +@main_window: +@widget: +@class: +@editor: +@signals_list: +@model: +@tree_view: + +<!-- ##### FUNCTION glade_signal_editor_get_widget ##### --> +<para> + +</para> + +@editor: +@Returns: + + +<!-- ##### FUNCTION glade_signal_editor_new ##### --> +<para> + +</para> + +@editor: +@Returns: + + +<!-- ##### FUNCTION glade_signal_editor_load_widget ##### --> +<para> + +</para> + +@editor: +@widget: + + diff --git a/doc/tmpl/glade-signal.sgml b/doc/tmpl/glade-signal.sgml new file mode 100644 index 00000000..6a5eb1bf --- /dev/null +++ b/doc/tmpl/glade-signal.sgml @@ -0,0 +1,90 @@ +<!-- ##### SECTION Title ##### --> +glade-signal + +<!-- ##### SECTION Short_Description ##### --> + + +<!-- ##### SECTION Long_Description ##### --> +<para> + +</para> + +<!-- ##### SECTION See_Also ##### --> +<para> + +</para> + +<!-- ##### SECTION Stability_Level ##### --> + + +<!-- ##### STRUCT GladeSignal ##### --> +<para> + +</para> + +@name: +@handler: +@userdata: +@lookup: +@after: + +<!-- ##### FUNCTION glade_signal_new ##### --> +<para> + +</para> + +@name: +@handler: +@userdata: +@lookup: +@after: +@Returns: + + +<!-- ##### FUNCTION glade_signal_clone ##### --> +<para> + +</para> + +@signal: +@Returns: + + +<!-- ##### FUNCTION glade_signal_free ##### --> +<para> + +</para> + +@signal: + + +<!-- ##### FUNCTION glade_signal_equal ##### --> +<para> + +</para> + +@sig1: +@sig2: +@Returns: + + +<!-- ##### FUNCTION glade_signal_write ##### --> +<para> + +</para> + +@info: +@signal: +@interface: +@Returns: + + +<!-- ##### FUNCTION glade_signal_new_from_signal_info ##### --> +<para> + +</para> + +@info: +@Returns: + + diff --git a/doc/tmpl/glade-utils.sgml b/doc/tmpl/glade-utils.sgml new file mode 100644 index 00000000..72b1ccdb --- /dev/null +++ b/doc/tmpl/glade-utils.sgml @@ -0,0 +1,354 @@ +<!-- ##### SECTION Title ##### --> +glade-utils + +<!-- ##### SECTION Short_Description ##### --> + + +<!-- ##### SECTION Long_Description ##### --> +<para> + +</para> + +<!-- ##### SECTION See_Also ##### --> +<para> + +</para> + +<!-- ##### SECTION Stability_Level ##### --> + + +<!-- ##### FUNCTION glade_util_widget_set_tooltip ##### --> +<para> + +</para> + +@widget: +@str: + + +<!-- ##### FUNCTION glade_util_get_type_from_name ##### --> +<para> + +</para> + +@name: +@Returns: + + +<!-- ##### FUNCTION glade_utils_get_pspec_from_funcname ##### --> +<para> + +</para> + +@funcname: +@Returns: + + +<!-- ##### ENUM GladeUIMessageType ##### --> +<para> + +</para> + +@GLADE_UI_INFO: +@GLADE_UI_WARN: +@GLADE_UI_ERROR: +@GLADE_UI_ARE_YOU_SURE: +@GLADE_UI_YES_OR_NO: + +<!-- ##### FUNCTION glade_util_ui_message ##### --> +<para> + +</para> + +@parent: +@type: +@format: +@Varargs: +@Returns: + + +<!-- ##### FUNCTION glade_util_flash_message ##### --> +<para> + +</para> + +@statusbar: +@context_id: +@format: +@Varargs: + + +<!-- ##### FUNCTION glade_util_compare_stock_labels ##### --> +<para> + +</para> + +@a: +@b: +@Returns: + + +<!-- ##### FUNCTION glade_util_hide_window ##### --> +<para> + +</para> + +@window: + + +<!-- ##### FUNCTION glade_util_gtk_combo_func ##### --> +<para> + +</para> + +@data: +@Returns: + + +<!-- ##### FUNCTION glade_util_gtk_combo_find ##### --> +<para> + +</para> + +@combo: +@Returns: + + +<!-- ##### FUNCTION glade_util_file_dialog_new ##### --> +<para> + +</para> + +@title: +@parent: +@action: +@Returns: + + +<!-- ##### FUNCTION glade_util_replace ##### --> +<para> + +</para> + +@str: +@a: +@b: + + +<!-- ##### FUNCTION glade_util_duplicate_underscores ##### --> +<para> + +</para> + +@name: +@Returns: + + +<!-- ##### FUNCTION glade_util_add_selection ##### --> +<para> + +</para> + +@widget: + + +<!-- ##### FUNCTION glade_util_remove_selection ##### --> +<para> + +</para> + +@widget: + + +<!-- ##### FUNCTION glade_util_has_selection ##### --> +<para> + +</para> + +@widget: +@Returns: + + +<!-- ##### FUNCTION glade_util_clear_selection ##### --> +<para> + +</para> + + + +<!-- ##### FUNCTION glade_util_get_selection ##### --> +<para> + +</para> + +@Returns: + + +<!-- ##### FUNCTION glade_util_selected_placeholder ##### --> +<para> + +</para> + +@Returns: + + +<!-- ##### FUNCTION glade_util_queue_draw_nodes ##### --> +<para> + +</para> + +@window: + + +<!-- ##### FUNCTION glade_util_get_parent ##### --> +<para> + +</para> + +@w: +@Returns: + + +<!-- ##### FUNCTION glade_util_container_get_all_children ##### --> +<para> + +</para> + +@container: +@Returns: + + +<!-- ##### FUNCTION glade_util_uri_list_parse ##### --> +<para> + +</para> + +@uri_list: +@Returns: + + +<!-- ##### FUNCTION glade_util_gtkcontainer_relation ##### --> +<para> + +</para> + +@parent: +@widget: +@Returns: + + +<!-- ##### FUNCTION glade_util_any_gtkcontainer_relation ##### --> +<para> + +</para> + +@parent: +@widgets: +@Returns: + + +<!-- ##### FUNCTION glade_util_widget_pastable ##### --> +<para> + +</para> + +@child: +@parent: +@Returns: + + +<!-- ##### FUNCTION glade_util_paste_clipboard ##### --> +<para> + +</para> + +@placeholder: +@parent: + + +<!-- ##### FUNCTION glade_util_cut_selection ##### --> +<para> + +</para> + + + +<!-- ##### FUNCTION glade_util_copy_selection ##### --> +<para> + +</para> + + + +<!-- ##### FUNCTION glade_util_delete_selection ##### --> +<para> + +</para> + + + +<!-- ##### FUNCTION glade_util_delete_clipboard ##### --> +<para> + +</para> + + + +<!-- ##### FUNCTION glade_util_count_placeholders ##### --> +<para> + +</para> + +@parent: +@Returns: + + +<!-- ##### FUNCTION glade_util_find_iter_by_widget ##### --> +<para> + +</para> + +@model: +@findme: +@column: +@Returns: + + +<!-- ##### FUNCTION glade_util_basenames_match ##### --> +<para> + +</para> + +@path1: +@path2: +@Returns: + + +<!-- ##### FUNCTION glade_util_purify_list ##### --> +<para> + +</para> + +@list: +@Returns: + + +<!-- ##### FUNCTION glade_util_canonical_path ##### --> +<para> + +</para> + +@path: +@Returns: + + +<!-- ##### FUNCTION glade_util_copy_file ##### --> +<para> + +</para> + +@src_path: +@dest_path: +@Returns: + + diff --git a/doc/tmpl/glade-widget-class.sgml b/doc/tmpl/glade-widget-class.sgml new file mode 100644 index 00000000..53f58bcb --- /dev/null +++ b/doc/tmpl/glade-widget-class.sgml @@ -0,0 +1,307 @@ +<!-- ##### SECTION Title ##### --> +GladeWidgetClass + +<!-- ##### SECTION Short_Description ##### --> + + +<!-- ##### SECTION Long_Description ##### --> +<para> + +</para> + +<!-- ##### SECTION See_Also ##### --> +<para> + +</para> + +<!-- ##### SECTION Stability_Level ##### --> + + +<!-- ##### STRUCT GladeWidgetClass ##### --> +<para> + +</para> + +@type: +@name: +@catalog: +@icon: +@generic_name: +@palette_name: +@properties: +@signals: +@children: +@child_packings: +@module: +@in_palette: +@post_create_function: +@get_internal_child: +@get_internal_children: +@launch_editor: + +<!-- ##### USER_FUNCTION GladeChildSetPropertyFunc ##### --> +<para> + +</para> + +@container: +@child: +@property_name: +@value: + + +<!-- ##### USER_FUNCTION GladeChildGetPropertyFunc ##### --> +<para> + +</para> + +@container: +@child: +@property_name: +@value: + + +<!-- ##### USER_FUNCTION GladeGetChildrenFunc ##### --> +<para> + +</para> + +@container: +@Returns: + + +<!-- ##### USER_FUNCTION GladeAddChildFunc ##### --> +<para> + +</para> + +@parent: +@child: + + +<!-- ##### USER_FUNCTION GladeRemoveChildFunc ##### --> +<para> + +</para> + +@parent: +@child: + + +<!-- ##### USER_FUNCTION GladePostCreateFunc ##### --> +<para> + +</para> + +@object: +@reason: + + +<!-- ##### USER_FUNCTION GladeGetInternalFunc ##### --> +<para> + +</para> + +@parent: +@name: +@child: + + +<!-- ##### USER_FUNCTION GladeGetInternalChildrenFunc ##### --> +<para> + +</para> + +@parent: +@Returns: + + +<!-- ##### USER_FUNCTION GladeEditorLaunchFunc ##### --> +<para> + +</para> + +@object: + + +<!-- ##### FUNCTION glade_widget_class_new ##### --> +<para> + +</para> + +@class_node: +@catname: +@library: +@domain: +@Returns: + + +<!-- ##### FUNCTION glade_widget_class_free ##### --> +<para> + +</para> + +@widget_class: + + +<!-- ##### FUNCTION glade_widget_class_get_by_name ##### --> +<para> + +</para> + +@name: +@Returns: + + +<!-- ##### FUNCTION glade_widget_class_get_by_type ##### --> +<para> + +</para> + +@type: +@Returns: + + +<!-- ##### FUNCTION glade_widget_class_get_derived_types ##### --> +<para> + +</para> + +@type: +@Returns: + + +<!-- ##### FUNCTION glade_widget_class_dump_param_specs ##### --> +<para> + +</para> + +@class: + + +<!-- ##### FUNCTION glade_widget_class_get_property_class ##### --> +<para> + +</para> + +@class: +@name: +@Returns: + + +<!-- ##### FUNCTION glade_widget_class_get_child_support ##### --> +<para> + +</para> + +@class: +@child_type: +@Returns: + + +<!-- ##### FUNCTION glade_widget_class_container_add ##### --> +<para> + +</para> + +@class: +@container: +@child: + + +<!-- ##### FUNCTION glade_widget_class_container_remove ##### --> +<para> + +</para> + +@class: +@container: +@child: + + +<!-- ##### FUNCTION glade_widget_class_container_has_child ##### --> +<para> + +</para> + +@class: +@container: +@child: +@Returns: + + +<!-- ##### FUNCTION glade_widget_class_container_get_children ##### --> +<para> + +</para> + +@class: +@container: +@Returns: + + +<!-- ##### FUNCTION glade_widget_class_container_get_all_children ##### --> +<para> + +</para> + +@class: +@container: +@Returns: + + +<!-- ##### FUNCTION glade_widget_class_container_set_property ##### --> +<para> + +</para> + +@class: +@container: +@child: +@property_name: +@value: + + +<!-- ##### FUNCTION glade_widget_class_container_get_property ##### --> +<para> + +</para> + +@class: +@container: +@child: +@property_name: +@value: + + +<!-- ##### FUNCTION glade_widget_class_container_replace_child ##### --> +<para> + +</para> + +@class: +@container: +@old: +@new: + + +<!-- ##### FUNCTION glade_widget_class_contains_extra ##### --> +<para> + +</para> + +@class: +@Returns: + + +<!-- ##### FUNCTION glade_widget_class_get_packing_default ##### --> +<para> + +</para> + +@child_class: +@container_class: +@propert_id: +@Returns: + + diff --git a/doc/tmpl/glade-widget.sgml b/doc/tmpl/glade-widget.sgml new file mode 100644 index 00000000..176569d1 --- /dev/null +++ b/doc/tmpl/glade-widget.sgml @@ -0,0 +1,497 @@ +<!-- ##### SECTION Title ##### --> +GladeWidget + +<!-- ##### SECTION Short_Description ##### --> + + +<!-- ##### SECTION Long_Description ##### --> +<para> + +</para> + +<!-- ##### SECTION See_Also ##### --> +<para> + +</para> + +<!-- ##### SECTION Stability_Level ##### --> + + +<!-- ##### STRUCT GladeWidget ##### --> +<para> + +</para> + +@parent_instance: +@widget_class: +@project: +@parent: +@name: +@internal: +@object: +@properties: +@packing_properties: +@query_user: +@signals: +@manager: +@visible: +@prop_refs_readonly: +@prop_refs: +@save_x: +@save_y: +@pos_saved: + +<!-- ##### FUNCTION glade_widget_new ##### --> +<para> + +</para> + +@parent: +@klass: +@project: +@Returns: + + +<!-- ##### FUNCTION glade_widget_new_for_internal_child ##### --> +<para> + +</para> + +@parent: +@internal_object: +@internal_name: +@Returns: + + +<!-- ##### FUNCTION glade_widget_set_name ##### --> +<para> + +</para> + +@widget: +@name: + + +<!-- ##### FUNCTION glade_widget_set_internal ##### --> +<para> + +</para> + +@widget: +@internal: + + +<!-- ##### FUNCTION glade_widget_set_object ##### --> +<para> + +</para> + +@gwidget: +@new_object: + + +<!-- ##### FUNCTION glade_widget_set_project ##### --> +<para> + +</para> + +@widget: +@project: + + +<!-- ##### FUNCTION glade_widget_get_name ##### --> +<para> + +</para> + +@widget: +@Returns: + + +<!-- ##### FUNCTION glade_widget_get_internal ##### --> +<para> + +</para> + +@widget: +@Returns: + + +<!-- ##### FUNCTION glade_widget_get_class ##### --> +<para> + +</para> + +@widget: +@Returns: + + +<!-- ##### FUNCTION glade_widget_get_project ##### --> +<para> + +</para> + +@widget: +@Returns: + + +<!-- ##### FUNCTION glade_widget_get_object ##### --> +<para> + +</para> + +@widget: +@Returns: + + +<!-- ##### FUNCTION glade_widget_project_notify ##### --> +<para> + +</para> + +@widget: +@project: + + +<!-- ##### FUNCTION glade_widget_show ##### --> +<para> + +</para> + +@widget: + + +<!-- ##### FUNCTION glade_widget_hide ##### --> +<para> + +</para> + +@widget: + + +<!-- ##### FUNCTION glade_widget_copy_properties ##### --> +<para> + +</para> + +@widget: +@template: + + +<!-- ##### FUNCTION glade_widget_add_prop_ref ##### --> +<para> + +</para> + +@widget: +@property: + + +<!-- ##### FUNCTION glade_widget_remove_prop_ref ##### --> +<para> + +</para> + +@widget: +@property: + + +<!-- ##### FUNCTION glade_widget_get_property ##### --> +<para> + +</para> + +@widget: +@id_property: +@Returns: + + +<!-- ##### FUNCTION glade_widget_get_pack_property ##### --> +<para> + +</para> + +@widget: +@id_property: +@Returns: + + +<!-- ##### FUNCTION glade_widget_property_get ##### --> +<para> + +</para> + +@widget: +@id_property: +@Varargs: +@Returns: + + +<!-- ##### FUNCTION glade_widget_property_set ##### --> +<para> + +</para> + +@widget: +@id_property: +@Varargs: +@Returns: + + +<!-- ##### FUNCTION glade_widget_pack_property_get ##### --> +<para> + +</para> + +@widget: +@id_property: +@Varargs: +@Returns: + + +<!-- ##### FUNCTION glade_widget_pack_property_set ##### --> +<para> + +</para> + +@widget: +@id_property: +@Varargs: +@Returns: + + +<!-- ##### FUNCTION glade_widget_property_reset ##### --> +<para> + +</para> + +@widget: +@id_property: +@Returns: + + +<!-- ##### FUNCTION glade_widget_pack_property_reset ##### --> +<para> + +</para> + +@widget: +@id_property: +@Returns: + + +<!-- ##### FUNCTION glade_widget_property_default ##### --> +<para> + +</para> + +@widget: +@id_property: +@Returns: + + +<!-- ##### FUNCTION glade_widget_pack_property_default ##### --> +<para> + +</para> + +@widget: +@id_property: +@Returns: + + +<!-- ##### FUNCTION glade_widget_property_set_sensitive ##### --> +<para> + +</para> + +@widget: +@id_property: +@sensitive: +@reason: +@Returns: + + +<!-- ##### FUNCTION glade_widget_pack_property_set_sensitive ##### --> +<para> + +</para> + +@widget: +@id_property: +@sensitive: +@reason: +@Returns: + + +<!-- ##### FUNCTION glade_widget_property_set_enabled ##### --> +<para> + +</para> + +@widget: +@id_property: +@enabled: +@Returns: + + +<!-- ##### FUNCTION glade_widget_pack_property_set_enabled ##### --> +<para> + +</para> + +@widget: +@id_property: +@enabled: +@Returns: + + +<!-- ##### FUNCTION glade_widget_retrieve_from_position ##### --> +<para> + +</para> + +@base: +@x: +@y: +@Returns: + + +<!-- ##### FUNCTION glade_widget_has_decendant ##### --> +<para> + +</para> + +@widget: +@type: +@Returns: + + +<!-- ##### FUNCTION glade_widget_replace ##### --> +<para> + +</para> + +@parent: +@old_object: +@new_object: + + +<!-- ##### FUNCTION glade_widget_rebuild ##### --> +<para> + +</para> + +@glade_widget: + + +<!-- ##### FUNCTION glade_widget_dup ##### --> +<para> + +</para> + +@widget: +@Returns: + + +<!-- ##### FUNCTION glade_widget_add_signal_handler ##### --> +<para> + +</para> + +@widget: +@signal_handler: + + +<!-- ##### FUNCTION glade_widget_remove_signal_handler ##### --> +<para> + +</para> + +@widget: +@signal_handler: + + +<!-- ##### FUNCTION glade_widget_change_signal_handler ##### --> +<para> + +</para> + +@widget: +@old_signal_handler: +@new_signal_handler: + + +<!-- ##### FUNCTION glade_widget_list_signal_handlers ##### --> +<para> + +</para> + +@widget: +@signal_name: +@Returns: + + +<!-- ##### FUNCTION glade_widget_write ##### --> +<para> + +</para> + +@widget: +@interface: +@Returns: + + +<!-- ##### FUNCTION glade_widget_read ##### --> +<para> + +</para> + +@project: +@info: +@Returns: + + +<!-- ##### FUNCTION glade_widget_has_launcher ##### --> +<para> + +</para> + +@widget: +@Returns: + + +<!-- ##### FUNCTION glade_widget_launch_editor ##### --> +<para> + +</para> + +@widget: + + +<!-- ##### MACRO glade_widget_get_from_gobject ##### --> +<para> + +</para> + +@w: + + +<!-- ##### FUNCTION glade_widget_get_parent ##### --> +<para> + +</para> + +@widget: +@Returns: + + +<!-- ##### FUNCTION glade_widget_set_parent ##### --> +<para> + +</para> + +@widget: +@parent: + + diff --git a/doc/version.xml.in b/doc/version.xml.in new file mode 100644 index 00000000..10032a71 --- /dev/null +++ b/doc/version.xml.in @@ -0,0 +1 @@ +@PACKAGE_STRING@
\ No newline at end of file diff --git a/po/POTFILES.in b/po/POTFILES.in index fe3f6db8..b4bc775e 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -33,6 +33,7 @@ src/glade-widget-class.c src/glade-widget.c src/glade-xml-utils.c src/glade-project-view.c +src/glade-custom.c # gladegtk plugin backend src/glade-gtk.c diff --git a/src/glade-app.h b/src/glade-app.h index 80eceefb..1dd4f9cb 100644 --- a/src/glade-app.h +++ b/src/glade-app.h @@ -60,82 +60,139 @@ struct _GladeAppClass void (* update_ui_signal) (GladeApp *app); }; -LIBGLADEUI_API GType glade_app_get_type (void); - -LIBGLADEUI_API GladeApp* glade_app_new (void); - -LIBGLADEUI_API void glade_app_update_ui (GladeApp* app); - -LIBGLADEUI_API void glade_app_set_window (GladeApp* app, GtkWidget *window); -LIBGLADEUI_API GtkWidget* glade_app_get_window (GladeApp* app); - -LIBGLADEUI_API GladeEditor* glade_app_get_editor (GladeApp* app); -LIBGLADEUI_API GladeWidgetClass* glade_app_get_add_class (GladeApp* app); -LIBGLADEUI_API GladeWidgetClass* glade_app_get_alt_class (GladeApp* app); -LIBGLADEUI_API GladePalette* glade_app_get_palette (GladeApp* app); -LIBGLADEUI_API GladeClipboard* glade_app_get_clipboard (GladeApp* app); -LIBGLADEUI_API GtkWidget* glade_app_get_clipboard_view (GladeApp* app); - -LIBGLADEUI_API GladeProject* glade_app_get_active_project (GladeApp* app); -LIBGLADEUI_API void glade_app_set_project (GladeApp *app, GladeProject *project); -LIBGLADEUI_API void glade_app_add_project (GladeApp *app, GladeProject *project); -LIBGLADEUI_API void glade_app_remove_project (GladeApp *app, GladeProject *project); -LIBGLADEUI_API GList* glade_app_get_projects (GladeApp *app); -LIBGLADEUI_API GKeyFile* glade_app_get_config (GladeApp *app); -LIBGLADEUI_API gboolean glade_app_is_project_loaded (GladeApp *app, const gchar *project_path); -LIBGLADEUI_API void glade_app_show_properties (GladeApp* app, gboolean raise); -LIBGLADEUI_API void glade_app_hide_properties (GladeApp* app); - -LIBGLADEUI_API void glade_app_add_project_view (GladeApp *app, GladeProjectView *view); - -LIBGLADEUI_API void glade_app_command_copy (GladeApp *app); -LIBGLADEUI_API void glade_app_command_cut (GladeApp *app); -LIBGLADEUI_API void glade_app_command_paste (GladeApp *app); -LIBGLADEUI_API void glade_app_command_delete (GladeApp *app); -LIBGLADEUI_API void glade_app_command_undo (GladeApp *app); -LIBGLADEUI_API void glade_app_command_redo (GladeApp *app); - -LIBGLADEUI_API gint glade_app_config_save (GladeApp *app); -LIBGLADEUI_API void glade_app_set_transient_parent (GladeApp *app, GtkWindow *parent); -LIBGLADEUI_API GtkWindow *glade_app_get_transient_parent (GladeApp *app); -LIBGLADEUI_API void glade_app_set_accel_group (GladeApp *app, GtkAccelGroup *accel_group); -LIBGLADEUI_API void glade_app_update_instance_count (GladeApp *app, GladeProject *project); - -LIBGLADEUI_API GtkWidget *glade_app_undo_button_new (GladeApp *app); -LIBGLADEUI_API GtkWidget *glade_app_redo_button_new (GladeApp *app); +LIBGLADEUI_API +GType glade_app_get_type (void); + +LIBGLADEUI_API +GladeApp* glade_app_new (void); + +LIBGLADEUI_API +void glade_app_update_ui (GladeApp* app); + +LIBGLADEUI_API +void glade_app_set_window (GladeApp* app, GtkWidget *window); +LIBGLADEUI_API +GtkWidget* glade_app_get_window (GladeApp* app); + +LIBGLADEUI_API +GladeEditor* glade_app_get_editor (GladeApp* app); +LIBGLADEUI_API +GladeWidgetClass* glade_app_get_add_class (GladeApp* app); +LIBGLADEUI_API +GladeWidgetClass* glade_app_get_alt_class (GladeApp* app); +LIBGLADEUI_API +GladePalette* glade_app_get_palette (GladeApp* app); +LIBGLADEUI_API +GladeClipboard* glade_app_get_clipboard (GladeApp* app); +LIBGLADEUI_API +GtkWidget* glade_app_get_clipboard_view (GladeApp* app); + +LIBGLADEUI_API +GladeProject* glade_app_get_active_project (GladeApp* app); +LIBGLADEUI_API +void glade_app_set_project (GladeApp *app, GladeProject *project); +LIBGLADEUI_API +void glade_app_add_project (GladeApp *app, GladeProject *project); +LIBGLADEUI_API +void glade_app_remove_project (GladeApp *app, GladeProject *project); +LIBGLADEUI_API +GList* glade_app_get_projects (GladeApp *app); +LIBGLADEUI_API +GKeyFile* glade_app_get_config (GladeApp *app); +LIBGLADEUI_API +gboolean glade_app_is_project_loaded (GladeApp *app, const gchar *project_path); +LIBGLADEUI_API +void glade_app_show_properties (GladeApp* app, gboolean raise); +LIBGLADEUI_API +void glade_app_hide_properties (GladeApp* app); + +LIBGLADEUI_API +void glade_app_add_project_view (GladeApp *app, GladeProjectView *view); + +LIBGLADEUI_API +void glade_app_command_copy (GladeApp *app); +LIBGLADEUI_API +void glade_app_command_cut (GladeApp *app); +LIBGLADEUI_API +void glade_app_command_paste (GladeApp *app); +LIBGLADEUI_API +void glade_app_command_delete (GladeApp *app); +LIBGLADEUI_API +void glade_app_command_undo (GladeApp *app); +LIBGLADEUI_API +void glade_app_command_redo (GladeApp *app); + +LIBGLADEUI_API +gint glade_app_config_save (GladeApp *app); +LIBGLADEUI_API +void glade_app_set_transient_parent (GladeApp *app, GtkWindow *parent); +LIBGLADEUI_API +GtkWindow *glade_app_get_transient_parent (GladeApp *app); +LIBGLADEUI_API +void glade_app_set_accel_group (GladeApp *app, GtkAccelGroup *accel_group); +LIBGLADEUI_API +void glade_app_update_instance_count (GladeApp *app, GladeProject *project); + +LIBGLADEUI_API +GtkWidget *glade_app_undo_button_new (GladeApp *app); +LIBGLADEUI_API +GtkWidget *glade_app_redo_button_new (GladeApp *app); /* Default glade application */ -LIBGLADEUI_API void glade_default_app_set (GladeApp *app); -LIBGLADEUI_API GtkWidget* glade_default_app_get_window (void); -LIBGLADEUI_API GladeEditor* glade_default_app_get_editor (void); -LIBGLADEUI_API GladeWidgetClass* glade_default_app_get_add_class (void); -LIBGLADEUI_API GladeWidgetClass* glade_default_app_get_alt_class (void); -LIBGLADEUI_API GladePalette* glade_default_app_get_palette (void); -LIBGLADEUI_API GladeClipboard* glade_default_app_get_clipboard (void); -LIBGLADEUI_API GladeProject* glade_default_app_get_active_project (void); -LIBGLADEUI_API void glade_default_app_update_ui (void); -LIBGLADEUI_API GList* glade_default_app_get_selection (void); -LIBGLADEUI_API GList* glade_default_app_get_projects (void); -LIBGLADEUI_API void glade_default_app_show_properties (gboolean raise); -LIBGLADEUI_API void glade_default_app_hide_properties (void); -LIBGLADEUI_API void glade_default_app_set_transient_parent (GtkWindow *parent); -LIBGLADEUI_API GtkWindow *glade_default_app_get_transient_parent (void); +LIBGLADEUI_API +void glade_default_app_set (GladeApp *app); +LIBGLADEUI_API +GtkWidget* glade_default_app_get_window (void); +LIBGLADEUI_API +GladeEditor* glade_default_app_get_editor (void); +LIBGLADEUI_API +GladeWidgetClass* glade_default_app_get_add_class (void); +LIBGLADEUI_API +GladeWidgetClass* glade_default_app_get_alt_class (void); +LIBGLADEUI_API +GladePalette* glade_default_app_get_palette (void); +LIBGLADEUI_API +GladeClipboard* glade_default_app_get_clipboard (void); +LIBGLADEUI_API +GladeProject* glade_default_app_get_active_project (void); +LIBGLADEUI_API +void glade_default_app_update_ui (void); +LIBGLADEUI_API +GList* glade_default_app_get_selection (void); +LIBGLADEUI_API +GList* glade_default_app_get_projects (void); +LIBGLADEUI_API +void glade_default_app_show_properties (gboolean raise); +LIBGLADEUI_API +void glade_default_app_hide_properties (void); +LIBGLADEUI_API +void glade_default_app_set_transient_parent (GtkWindow *parent); +LIBGLADEUI_API +GtkWindow *glade_default_app_get_transient_parent (void); /* These handle selection on a global scope and take care * of multiple project logic. */ -LIBGLADEUI_API gboolean glade_default_app_is_selected (GObject *object); -LIBGLADEUI_API void glade_default_app_selection_set (GObject *object, - gboolean emit_signal); -LIBGLADEUI_API void glade_default_app_selection_add (GObject *object, - gboolean emit_signal); -LIBGLADEUI_API void glade_default_app_selection_remove (GObject *object, - gboolean emit_signal); -LIBGLADEUI_API void glade_default_app_selection_clear (gboolean emit_signal); -LIBGLADEUI_API void glade_default_app_selection_changed(void); -LIBGLADEUI_API GtkWidget *glade_default_app_undo_button_new (void); -LIBGLADEUI_API GtkWidget *glade_default_app_redo_button_new (void); +LIBGLADEUI_API +gboolean glade_default_app_is_selected (GObject *object); +LIBGLADEUI_API +void glade_default_app_selection_set (GObject *object, + gboolean emit_signal); +LIBGLADEUI_API +void glade_default_app_selection_add (GObject *object, + gboolean emit_signal); +LIBGLADEUI_API +void glade_default_app_selection_remove (GObject *object, + gboolean emit_signal); +LIBGLADEUI_API +void glade_default_app_selection_clear (gboolean emit_signal); +LIBGLADEUI_API +void glade_default_app_selection_changed(void); +LIBGLADEUI_API +GtkWidget *glade_default_app_undo_button_new (void); +LIBGLADEUI_API +GtkWidget *glade_default_app_redo_button_new (void); G_END_DECLS diff --git a/src/glade-catalog.h b/src/glade-catalog.h index d9e49b78..32b01f36 100644 --- a/src/glade-catalog.h +++ b/src/glade-catalog.h @@ -32,22 +32,32 @@ typedef struct _GladeCatalog GladeCatalog; typedef struct _GladeWidgetGroup GladeWidgetGroup; -LIBGLADEUI_API GList * glade_catalog_load_all (void); +LIBGLADEUI_API +GList * glade_catalog_load_all (void); -LIBGLADEUI_API const gchar * glade_catalog_get_name (GladeCatalog *catalog); +LIBGLADEUI_API +const gchar * glade_catalog_get_name (GladeCatalog *catalog); -LIBGLADEUI_API GList * glade_catalog_get_widget_groups (GladeCatalog *catalog); -LIBGLADEUI_API GList * glade_catalog_get_widget_classes (GladeCatalog *catalog); +LIBGLADEUI_API +GList * glade_catalog_get_widget_groups (GladeCatalog *catalog); +LIBGLADEUI_API +GList * glade_catalog_get_widget_classes (GladeCatalog *catalog); -LIBGLADEUI_API void glade_catalog_free (GladeCatalog *catalog); +LIBGLADEUI_API +void glade_catalog_free (GladeCatalog *catalog); -LIBGLADEUI_API const gchar * glade_widget_group_get_name (GladeWidgetGroup *group); -LIBGLADEUI_API const gchar * glade_widget_group_get_title (GladeWidgetGroup *group); -LIBGLADEUI_API GList * glade_widget_group_get_widget_classes (GladeWidgetGroup *group); +LIBGLADEUI_API +const gchar * glade_widget_group_get_name (GladeWidgetGroup *group); +LIBGLADEUI_API +const gchar * glade_widget_group_get_title (GladeWidgetGroup *group); +LIBGLADEUI_API +GList * glade_widget_group_get_widget_classes (GladeWidgetGroup *group); -LIBGLADEUI_API void glade_widget_group_free (GladeWidgetGroup *group); +LIBGLADEUI_API +void glade_widget_group_free (GladeWidgetGroup *group); -LIBGLADEUI_API gboolean glade_catalog_is_loaded (const gchar *name); +LIBGLADEUI_API +gboolean glade_catalog_is_loaded (const gchar *name); G_END_DECLS diff --git a/src/glade-clipboard-view.h b/src/glade-clipboard-view.h index 65d3bf52..63c550dd 100644 --- a/src/glade-clipboard-view.h +++ b/src/glade-clipboard-view.h @@ -2,8 +2,9 @@ #ifndef __GLADE_CLIPBOARD_VIEW_H__ #define __GLADE_CLIPBOARD_VIEW_H__ -G_BEGIN_DECLS +#include "glade.h" +G_BEGIN_DECLS #define GLADE_TYPE_CLIPBOARD_VIEW (glade_clipboard_view_get_type ()) #define GLADE_CLIPBOARD_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GLADE_TYPE_CLIPBOARD_VIEW, GladeClipboardView)) @@ -29,16 +30,19 @@ struct _GladeClipboardViewClass { GtkWindowClass __parent__; }; -GType glade_clipboard_view_get_type (); -GtkWidget *glade_clipboard_view_new (GladeClipboard *clipboard); +LIBGLADEUI_API +GType glade_clipboard_view_get_type (void) G_GNUC_CONST; +LIBGLADEUI_API +GtkWidget *glade_clipboard_view_new (GladeClipboard *clipboard); +LIBGLADEUI_API void glade_clipboard_view_add (GladeClipboardView *view, GladeWidget *widget); - +LIBGLADEUI_API void glade_clipboard_view_remove (GladeClipboardView *view, GladeWidget *widget); - +LIBGLADEUI_API void glade_clipboard_view_refresh_sel (GladeClipboardView *view); G_END_DECLS diff --git a/src/glade-clipboard.h b/src/glade-clipboard.h index 8cb4b77a..365f87a2 100644 --- a/src/glade-clipboard.h +++ b/src/glade-clipboard.h @@ -2,6 +2,8 @@ #ifndef __GLADE_CLIPBOARD_H__ #define __GLADE_CLIPBOARD_H__ +#include "glade.h" + G_BEGIN_DECLS #define GLADE_TYPE_CLIPBOARD (glade_clipboard_get_type ()) @@ -24,18 +26,25 @@ struct _GladeClipboardClass { }; +LIBGLADEUI_API GType glade_clipboard_get_type (void); +LIBGLADEUI_API GladeClipboard *glade_clipboard_new (void); +LIBGLADEUI_API void glade_clipboard_add (GladeClipboard *clipboard, GList *widgets); +LIBGLADEUI_API void glade_clipboard_remove (GladeClipboard *clipboard, GList *widgets); +LIBGLADEUI_API void glade_clipboard_selection_add (GladeClipboard *clipboard, GladeWidget *widget); +LIBGLADEUI_API void glade_clipboard_selection_remove (GladeClipboard *clipboard, GladeWidget *widget); +LIBGLADEUI_API void glade_clipboard_selection_clear (GladeClipboard *clipboard); diff --git a/src/glade-command.c b/src/glade-command.c index 38341139..e9f222e7 100644 --- a/src/glade-command.c +++ b/src/glade-command.c @@ -397,7 +397,7 @@ glade_command_set_property_undo (GladeCommand *cmd) return glade_command_set_property_execute (cmd); } -/** +/* * Execute the set property command and revert it. IE, after the execution of * this function cmd will point to the undo action */ @@ -655,7 +655,7 @@ glade_command_set_name_undo (GladeCommand *cmd) return glade_command_set_name_execute (cmd); } -/** +/* * Execute the set name command and revert it. Ie, after the execution of this * function cmd will point to the undo action */ @@ -898,7 +898,7 @@ glade_command_delete_execute (GladeCommandCreateDelete *me) return TRUE; } -/** +/* * Execute the cmd and revert it. Ie, after the execution of this * function cmd will point to the undo action */ @@ -958,9 +958,9 @@ glade_command_create_delete_collapse (GladeCommand *this, GladeCommand *other) /** * glade_command_delete: - * @widget: a #GladeWidget + * @widgets: a #GList of #GladeWidgets * - * TODO: write me + * Performs a delete command on the list of widgets */ void glade_command_delete (GList *widgets) @@ -1306,7 +1306,7 @@ glade_command_copy_undo (GladeCommandCutCopyPaste *me) return TRUE; } -/** +/* * Execute the cmd and revert it. Ie, after the execution of this * function cmd will point to the undo action */ @@ -1601,7 +1601,9 @@ glade_command_cut_copy_paste_common (GList *widgets, * @parent: a #GladeWidget * @placeholder: a #GladePlaceholder * - * TODO: write me + * Performs a paste command on all widgets in @widgets to @parent, possibly + * replacing @placeholder (note toplevels dont need a parent; the active project + * will be used when pasting toplevel objects). */ void glade_command_paste (GList *widgets, GladeWidget *parent, GladePlaceholder *placeholder) diff --git a/src/glade-command.h b/src/glade-command.h index d0edb1fa..d83b1b44 100644 --- a/src/glade-command.h +++ b/src/glade-command.h @@ -54,44 +54,66 @@ struct _GladeCommandClass }; -LIBGLADEUI_API GType glade_command_get_type (void); - -LIBGLADEUI_API void glade_command_undo (GladeProject *project); -LIBGLADEUI_API void glade_command_redo (GladeProject *project); - -LIBGLADEUI_API GladeCommand *glade_command_next_undo_item (GladeProject *project); -LIBGLADEUI_API GladeCommand *glade_command_next_redo_item (GladeProject *project); - -LIBGLADEUI_API void glade_command_push_group (const gchar *description); -LIBGLADEUI_API void glade_command_pop_group (void); - -LIBGLADEUI_API void glade_command_set_property (GladeProperty *property, const GValue *value); -LIBGLADEUI_API void glade_command_set_properties(GladeProperty *property, - const GValue *old_value, - const GValue *new_value, ...); - -LIBGLADEUI_API void glade_command_set_properties_list (GladeProject *project, - GList *props); // list of GCSetPropData - -LIBGLADEUI_API void glade_command_set_name (GladeWidget *glade_widget, const gchar *name); - -LIBGLADEUI_API void glade_command_delete (GList *widgets); -LIBGLADEUI_API GladeWidget *glade_command_create (GladeWidgetClass *widget_class, - GladeWidget *parent, - GladePlaceholder *placeholder, - GladeProject *project); - -LIBGLADEUI_API void glade_command_cut (GList *widgets); -LIBGLADEUI_API void glade_command_copy (GList *widgets); -LIBGLADEUI_API void glade_command_paste (GList *widgets, - GladeWidget *parent, - GladePlaceholder *placeholder); - -LIBGLADEUI_API void glade_command_add_signal (GladeWidget *glade_widget, const GladeSignal *signal); -LIBGLADEUI_API void glade_command_remove_signal (GladeWidget *glade_widget, const GladeSignal *signal); -LIBGLADEUI_API void glade_command_change_signal (GladeWidget *glade_widget, - const GladeSignal *old, - const GladeSignal *new); +LIBGLADEUI_API +GType glade_command_get_type (void); + +LIBGLADEUI_API +void glade_command_undo (GladeProject *project); +LIBGLADEUI_API +void glade_command_redo (GladeProject *project); + +LIBGLADEUI_API +GladeCommand *glade_command_next_undo_item (GladeProject *project); +LIBGLADEUI_API +GladeCommand *glade_command_next_redo_item (GladeProject *project); + +LIBGLADEUI_API +void glade_command_push_group (const gchar *description); +LIBGLADEUI_API +void glade_command_pop_group (void); + +LIBGLADEUI_API +void glade_command_set_property (GladeProperty *property, + const GValue *value); +LIBGLADEUI_API +void glade_command_set_properties(GladeProperty *property, + const GValue *old_value, + const GValue *new_value, ...); + +LIBGLADEUI_API +void glade_command_set_properties_list (GladeProject *project, + GList *props); // list of GCSetPropData + +LIBGLADEUI_API +void glade_command_set_name (GladeWidget *glade_widget, const gchar *name); + +LIBGLADEUI_API +void glade_command_delete (GList *widgets); +LIBGLADEUI_API +GladeWidget *glade_command_create (GladeWidgetClass *class, + GladeWidget *parent, + GladePlaceholder *placeholder, + GladeProject *project); + +LIBGLADEUI_API +void glade_command_cut (GList *widgets); +LIBGLADEUI_API +void glade_command_copy (GList *widgets); +LIBGLADEUI_API +void glade_command_paste (GList *widgets, + GladeWidget *parent, + GladePlaceholder *placeholder); + +LIBGLADEUI_API +void glade_command_add_signal (GladeWidget *glade_widget, + const GladeSignal *signal); +LIBGLADEUI_API +void glade_command_remove_signal (GladeWidget *glade_widget, + const GladeSignal *signal); +LIBGLADEUI_API +void glade_command_change_signal (GladeWidget *glade_widget, + const GladeSignal *old, + const GladeSignal *new); G_END_DECLS diff --git a/src/glade-editor-property.c b/src/glade-editor-property.c index 6572d3ca..5a4f81e7 100644 --- a/src/glade-editor-property.c +++ b/src/glade-editor-property.c @@ -1864,7 +1864,7 @@ glade_eprop_object_name (const gchar *name, } -/** +/* * Note that widgets is a list of GtkWidgets, while what we store * in the model are the associated GladeWidgets. */ diff --git a/src/glade-editor-property.h b/src/glade-editor-property.h index 719409c5..b3368dcd 100644 --- a/src/glade-editor-property.h +++ b/src/glade-editor-property.h @@ -60,17 +60,23 @@ struct _GladeEditorPropertyClass { }; -LIBGLADEUI_API GType glade_editor_property_get_type (void); -LIBGLADEUI_API GladeEditorProperty *glade_editor_property_new (GladePropertyClass *class, - gboolean use_command); -LIBGLADEUI_API void glade_editor_property_load (GladeEditorProperty *eprop, - GladeProperty *property); -LIBGLADEUI_API void glade_editor_property_load_by_widget (GladeEditorProperty *eprop, - GladeWidget *widget); -LIBGLADEUI_API gboolean glade_editor_property_supported (GParamSpec *pspec); - -LIBGLADEUI_API GladeEditorProperty *glade_editor_property_new_from_widget (GladeWidget *widget, - const gchar *property, - gboolean use_command); +LIBGLADEUI_API +GType glade_editor_property_get_type (void); +LIBGLADEUI_API +GladeEditorProperty *glade_editor_property_new (GladePropertyClass *class, + gboolean use_command); +LIBGLADEUI_API +void glade_editor_property_load (GladeEditorProperty *eprop, + GladeProperty *property); +LIBGLADEUI_API +void glade_editor_property_load_by_widget (GladeEditorProperty *eprop, + GladeWidget *widget); +LIBGLADEUI_API +gboolean glade_editor_property_supported (GParamSpec *pspec); + +LIBGLADEUI_API +GladeEditorProperty *glade_editor_property_new_from_widget (GladeWidget *widget, + const gchar *property, + gboolean use_command); #endif // __GLADE_EDITOR_PROPERTY_H__ diff --git a/src/glade-editor.c b/src/glade-editor.c index 3bfd8b44..c1cb2e25 100644 --- a/src/glade-editor.c +++ b/src/glade-editor.c @@ -177,7 +177,7 @@ glade_editor_new (void) return editor; } -/** +/* * We call this function when the user changes the widget name using the * entry on the properties editor. */ diff --git a/src/glade-editor.h b/src/glade-editor.h index edf3af7c..b7dfbc96 100644 --- a/src/glade-editor.h +++ b/src/glade-editor.h @@ -164,14 +164,20 @@ struct _GladeEditorTable gint rows; }; -LIBGLADEUI_API GType glade_editor_get_type (void); -LIBGLADEUI_API GladeEditor *glade_editor_new (void); -LIBGLADEUI_API void glade_editor_load_widget (GladeEditor *editor, - GladeWidget *widget); -LIBGLADEUI_API void glade_editor_refresh (GladeEditor *editor); -LIBGLADEUI_API void glade_editor_update_widget_name (GladeEditor *editor); -LIBGLADEUI_API gboolean glade_editor_query_dialog (GladeEditor *editor, - GladeWidget *widget); +LIBGLADEUI_API +GType glade_editor_get_type (void); +LIBGLADEUI_API +GladeEditor *glade_editor_new (void); +LIBGLADEUI_API +void glade_editor_load_widget (GladeEditor *editor, + GladeWidget *widget); +LIBGLADEUI_API +void glade_editor_refresh (GladeEditor *editor); +LIBGLADEUI_API +void glade_editor_update_widget_name (GladeEditor *editor); +LIBGLADEUI_API +gboolean glade_editor_query_dialog (GladeEditor *editor, + GladeWidget *widget); G_END_DECLS diff --git a/src/glade-fixed-manager.h b/src/glade-fixed-manager.h index 491a9df7..73e67716 100644 --- a/src/glade-fixed-manager.h +++ b/src/glade-fixed-manager.h @@ -68,22 +68,28 @@ struct _GladeFixedManagerClass { }; -LIBGLADEUI_API GType glade_fixed_manager_get_type (void); -LIBGLADEUI_API GladeFixedManager *glade_fixed_manager_new (GladeWidget *gtkcontainer, - const gchar *x_prop, - const gchar *y_prop, - const gchar *width_prop, - const gchar *height_prop); -LIBGLADEUI_API GladeWidget *glade_fixed_manager_create_child (GladeFixedManager *manager, - GladeWidgetClass *wclass); -LIBGLADEUI_API void glade_fixed_manager_add_child (GladeFixedManager *manager, - GladeWidget *child, - gboolean at_mouse); -LIBGLADEUI_API void glade_fixed_manager_remove_child (GladeFixedManager *manager, - GladeWidget *child); -LIBGLADEUI_API void glade_fixed_manager_post_mouse (GladeFixedManager *manager, - gint x, - gint y); +LIBGLADEUI_API +GType glade_fixed_manager_get_type (void); +LIBGLADEUI_API +GladeFixedManager *glade_fixed_manager_new (GladeWidget *gtkcontainer, + const gchar *x_prop, + const gchar *y_prop, + const gchar *width_prop, + const gchar *height_prop); +LIBGLADEUI_API +GladeWidget *glade_fixed_manager_create_child (GladeFixedManager *manager, + GladeWidgetClass *wclass); +LIBGLADEUI_API +void glade_fixed_manager_add_child (GladeFixedManager *manager, + GladeWidget *child, + gboolean at_mouse); +LIBGLADEUI_API +void glade_fixed_manager_remove_child (GladeFixedManager *manager, + GladeWidget *child); +LIBGLADEUI_API +void glade_fixed_manager_post_mouse (GladeFixedManager *manager, + gint x, + gint y); G_END_DECLS diff --git a/src/glade-gtk.c b/src/glade-gtk.c index 77df3e23..91def7c8 100644 --- a/src/glade-gtk.c +++ b/src/glade-gtk.c @@ -1488,7 +1488,6 @@ glade_gtk_list_item_post_create (GObject *object, GladeCreateReason reason) void GLADEGTK_API glade_gtk_combo_box_post_create (GObject *object, GladeCreateReason reason) { -// GtkWidget *combo_box; GtkCellRenderer *cell; GtkListStore *store; diff --git a/src/glade-palette.h b/src/glade-palette.h index 5a64e909..9c3f45ba 100644 --- a/src/glade-palette.h +++ b/src/glade-palette.h @@ -67,11 +67,14 @@ struct _GladePaletteClass void (*catalog_change) (GladePalette *palette); }; -LIBGLADEUI_API GType glade_palette_get_type (void); +LIBGLADEUI_API +GType glade_palette_get_type (void); -LIBGLADEUI_API GladePalette *glade_palette_new (GList *catalogs); +LIBGLADEUI_API +GladePalette *glade_palette_new (GList *catalogs); -LIBGLADEUI_API void glade_palette_unselect_widget (GladePalette *palette); +LIBGLADEUI_API +void glade_palette_unselect_widget (GladePalette *palette); G_END_DECLS diff --git a/src/glade-parameter.h b/src/glade-parameter.h index 127a57a3..80b7cb67 100644 --- a/src/glade-parameter.h +++ b/src/glade-parameter.h @@ -32,17 +32,23 @@ struct _GladeParameter { gchar *value; /* The textual representation of the parameter */ }; +LIBGLADEUI_API GladeParameter *glade_parameter_new (void); +LIBGLADEUI_API GladeParameter *glade_parameter_clone (GladeParameter *parameter); -void glade_parameter_free (GladeParameter *parameter); - -void glade_parameter_get_float (GList *parameters, const gchar *key, gfloat *value); -void glade_parameter_get_integer (GList *parameters, const gchar *key, gint *value); -void glade_parameter_get_boolean (GList *parameters, const gchar *key, gboolean *value); -void glade_parameter_get_string (GList *parameters, const gchar *key, gchar **value); - - -GList * glade_parameter_list_new_from_node (GList *list, GladeXmlNode *node); +LIBGLADEUI_API +void glade_parameter_free (GladeParameter *parameter); + +LIBGLADEUI_API +void glade_parameter_get_float (GList *parameters, const gchar *key, gfloat *value); +LIBGLADEUI_API +void glade_parameter_get_integer (GList *parameters, const gchar *key, gint *value); +LIBGLADEUI_API +void glade_parameter_get_boolean (GList *parameters, const gchar *key, gboolean *value); +LIBGLADEUI_API +void glade_parameter_get_string (GList *parameters, const gchar *key, gchar **value); +LIBGLADEUI_API +GList * glade_parameter_list_new_from_node (GList *list, GladeXmlNode *node); G_END_DECLS diff --git a/src/glade-placeholder.h b/src/glade-placeholder.h index e39645ba..2f008083 100644 --- a/src/glade-placeholder.h +++ b/src/glade-placeholder.h @@ -33,10 +33,12 @@ struct _GladePlaceholderClass GtkWidgetClass parent_class; }; - -LIBGLADEUI_API GType glade_placeholder_get_type (void) G_GNUC_CONST; -LIBGLADEUI_API GtkWidget *glade_placeholder_new (void); -LIBGLADEUI_API GladeWidget *glade_placeholder_get_parent (GladePlaceholder *placeholder); +LIBGLADEUI_API +GType glade_placeholder_get_type (void) G_GNUC_CONST; +LIBGLADEUI_API +GtkWidget *glade_placeholder_new (void); +LIBGLADEUI_API +GladeWidget *glade_placeholder_get_parent (GladePlaceholder *placeholder); G_END_DECLS diff --git a/src/glade-popup.c b/src/glade-popup.c index c6119e9a..636b58c5 100644 --- a/src/glade-popup.c +++ b/src/glade-popup.c @@ -334,14 +334,6 @@ glade_popup_create_clipboard_menu (GladeWidget *widget) return popup_menu; } -/** - * glade_popup_widget_pop: - * @widget: - * @event: - * @add_children: - * - * TODO: write me - */ void glade_popup_widget_pop (GladeWidget *widget, GdkEventButton *event, gboolean add_children) { @@ -367,13 +359,6 @@ glade_popup_widget_pop (GladeWidget *widget, GdkEventButton *event, gboolean add NULL, NULL, button, event_time); } -/** - * glade_popup_placeholder_pop: - * @placeholder: - * @event: - * - * TODO: write me - */ void glade_popup_placeholder_pop (GladePlaceholder *placeholder, GdkEventButton *event) @@ -401,13 +386,6 @@ glade_popup_placeholder_pop (GladePlaceholder *placeholder, NULL, NULL, button, event_time); } -/** - * glade_popup_clipboard_pop: - * @placeholder: - * @event: - * - * TODO: write me - */ void glade_popup_clipboard_pop (GladeWidget *widget, GdkEventButton *event) diff --git a/src/glade-project-view.c b/src/glade-project-view.c index 5c1b2eff..f22c64f0 100644 --- a/src/glade-project-view.c +++ b/src/glade-project-view.c @@ -141,7 +141,7 @@ glade_project_view_widget_name_changed (GladeProjectView *view, } } -/** +/* * Note that widgets is a list of GtkWidgets, while what we store * in the model are the associated GladeWidgets. */ diff --git a/src/glade-project-view.h b/src/glade-project-view.h index 94aefcb7..4fa72fc3 100644 --- a/src/glade-project-view.h +++ b/src/glade-project-view.h @@ -96,16 +96,21 @@ typedef enum { } GladeProjectViewType; -LIBGLADEUI_API GType glade_project_view_get_type (void); +LIBGLADEUI_API +GType glade_project_view_get_type (void); -LIBGLADEUI_API GladeProjectView *glade_project_view_new (GladeProjectViewType type); +LIBGLADEUI_API +GladeProjectView *glade_project_view_new (GladeProjectViewType type); -LIBGLADEUI_API GladeProject *glade_project_view_get_project (GladeProjectView *project_view); +LIBGLADEUI_API +GladeProject *glade_project_view_get_project (GladeProjectView *view); -LIBGLADEUI_API void glade_project_view_set_project (GladeProjectView *project_view, - GladeProject *project); +LIBGLADEUI_API +void glade_project_view_set_project (GladeProjectView *view, + GladeProject *project); -LIBGLADEUI_API void glade_project_view_select_item (GladeProjectView *view, GladeWidget *item); +LIBGLADEUI_API +void glade_project_view_select_item (GladeProjectView *view, GladeWidget *item); G_END_DECLS diff --git a/src/glade-project-window.c b/src/glade-project-window.c index 8d2954a9..af66e4ac 100644 --- a/src/glade-project-window.c +++ b/src/glade-project-window.c @@ -1449,11 +1449,6 @@ glade_project_window_add_project (GladeProjectWindow *gpw, GladeProject *project gpw_select_project_menu (gpw); } -/** - * glade_project_window_new_project: - * - * Creates a new #GladeProject and adds it to the #GladeProjectWindow. - */ void glade_project_window_new_project (GladeProjectWindow *gpw) { @@ -1470,11 +1465,8 @@ glade_project_window_new_project (GladeProjectWindow *gpw) glade_project_window_add_project (gpw, project); } -/** - * glade_project_window_open_project: - * @path: a string containing a filename - * - * Opens the project specified by @path and adds it to the #GladeProjectWindow. +/* + * Opens the project specified by path and adds it to the GladeProjectWindow. */ void glade_project_window_open_project (GladeProjectWindow *gpw, const gchar *path) @@ -1503,15 +1495,6 @@ glade_project_window_open_project (GladeProjectWindow *gpw, const gchar *path) glade_project_window_add_project (gpw, project); } -/** - * glade_project_window_change_menu_label: - * @gpw: - * @path: - * @prefix: - * @suffix: - * - * TODO: write me - */ void glade_project_window_change_menu_label (GladeProjectWindow *gpw, const gchar *path, @@ -1546,11 +1529,6 @@ glade_project_window_change_menu_label (GladeProjectWindow *gpw, g_free (text); } -/** - * glade_project_window_refresh_undo_redo: - * - * TODO: write me - */ void glade_project_window_refresh_undo_redo (GladeProjectWindow *gpw) { @@ -1602,11 +1580,6 @@ glade_project_window_update_ui (GladeApp *app) glade_project_window_refresh_undo_redo (gpw); } -/** - * glade_project_window_show_all: - * - * TODO: write me - */ void glade_project_window_show_all (GladeProjectWindow *gpw) { @@ -1681,14 +1654,6 @@ glade_project_window_get_type () return obj_type; } -/** - * glade_project_window_new: - * @catalogs: - * - * TODO: write me - * - * Returns: - */ GladeProjectWindow * glade_project_window_new (void) { diff --git a/src/glade-project.c b/src/glade-project.c index 5f95a980..5ed4c959 100644 --- a/src/glade-project.c +++ b/src/glade-project.c @@ -549,11 +549,11 @@ glade_project_release_widget_name (GladeProject *project, GladeWidget *glade_wid /** * glade_project_remove_object: * @project: a #GladeProject - * @widget: the #GtkWidget to remove + * @object: the #GObject to remove * - * Removes @widget from @project. + * Removes @object from @project. * - * Note that when removing the #GtkWidget from the project we + * Note that when removing the #GObject from the project we * don't change ->project in the associated #GladeWidget; this * way UNDO can work. */ diff --git a/src/glade-project.h b/src/glade-project.h index eb91900e..67c22391 100644 --- a/src/glade-project.h +++ b/src/glade-project.h @@ -75,56 +75,82 @@ struct _GladeProjectClass const gchar *resource); }; -LIBGLADEUI_API GType glade_project_get_type (void); - -LIBGLADEUI_API GladeProject *glade_project_new (gboolean untitled); -LIBGLADEUI_API GladeProject *glade_project_open (const gchar *path); -LIBGLADEUI_API gboolean glade_project_save (GladeProject *project, - const gchar *path, - GError **error); -LIBGLADEUI_API void glade_project_reset_path (GladeProject *project); -LIBGLADEUI_API void glade_project_add_object (GladeProject *project, - GladeProject *old_project, - GObject *object); -LIBGLADEUI_API void glade_project_remove_object (GladeProject *project, GObject *object); -LIBGLADEUI_API gboolean glade_project_has_object (GladeProject *project, GObject *object); -LIBGLADEUI_API GladeWidget *glade_project_get_widget_by_name (GladeProject *project, const char *name); -LIBGLADEUI_API char *glade_project_new_widget_name (GladeProject *project, const char *base_name); -LIBGLADEUI_API void glade_project_widget_name_changed (GladeProject *project, GladeWidget *widget, - const char *old_name); -LIBGLADEUI_API GtkTooltips *glade_project_get_tooltips (GladeProject *project); - -LIBGLADEUI_API void glade_project_changed (GladeProject *project); +LIBGLADEUI_API +GType glade_project_get_type (void); + +LIBGLADEUI_API +GladeProject *glade_project_new (gboolean untitled); +LIBGLADEUI_API +GladeProject *glade_project_open (const gchar *path); +LIBGLADEUI_API +gboolean glade_project_save (GladeProject *project, + const gchar *path, + GError **error); +LIBGLADEUI_API +void glade_project_reset_path (GladeProject *project); +LIBGLADEUI_API +void glade_project_add_object (GladeProject *project, + GladeProject *old_project, + GObject *object); +LIBGLADEUI_API +void glade_project_remove_object (GladeProject *project, GObject *object); +LIBGLADEUI_API +gboolean glade_project_has_object (GladeProject *project, GObject *object); +LIBGLADEUI_API +GladeWidget *glade_project_get_widget_by_name (GladeProject *project, const char *name); +LIBGLADEUI_API +char *glade_project_new_widget_name (GladeProject *project, const char *base_name); +LIBGLADEUI_API +void glade_project_widget_name_changed (GladeProject *project, GladeWidget *widget, + const char *old_name); +LIBGLADEUI_API +GtkTooltips *glade_project_get_tooltips (GladeProject *project); + +LIBGLADEUI_API +void glade_project_changed (GladeProject *project); /* Selection */ -LIBGLADEUI_API gboolean glade_project_is_selected (GladeProject *project, - GObject *object); -LIBGLADEUI_API void glade_project_selection_set (GladeProject *project, - GObject *object, - gboolean emit_signal); -LIBGLADEUI_API void glade_project_selection_add (GladeProject *project, - GObject *object, - gboolean emit_signal); -LIBGLADEUI_API void glade_project_selection_remove (GladeProject *project, - GObject *object, - gboolean emit_signal); -LIBGLADEUI_API void glade_project_selection_clear (GladeProject *project, - gboolean emit_signal); -LIBGLADEUI_API void glade_project_selection_changed (GladeProject *project); -LIBGLADEUI_API GList *glade_project_selection_get (GladeProject *project); - -LIBGLADEUI_API void glade_project_set_accel_group (GladeProject *project, GtkAccelGroup *new_group); - -LIBGLADEUI_API void glade_project_set_resource (GladeProject *project, - GladeProperty *property, - const gchar *resource); - -LIBGLADEUI_API GList *glade_project_list_resources (GladeProject *project); - -LIBGLADEUI_API gchar *glade_project_resource_fullpath (GladeProject *project, - const gchar *resource); - -LIBGLADEUI_API gchar *glade_project_display_name (GladeProject *project); +LIBGLADEUI_API +gboolean glade_project_is_selected (GladeProject *project, + GObject *object); +LIBGLADEUI_API +void glade_project_selection_set (GladeProject *project, + GObject *object, + gboolean emit_signal); +LIBGLADEUI_API +void glade_project_selection_add (GladeProject *project, + GObject *object, + gboolean emit_signal); +LIBGLADEUI_API +void glade_project_selection_remove (GladeProject *project, + GObject *object, + gboolean emit_signal); +LIBGLADEUI_API +void glade_project_selection_clear (GladeProject *project, + gboolean emit_signal); +LIBGLADEUI_API +void glade_project_selection_changed (GladeProject *project); +LIBGLADEUI_API +GList *glade_project_selection_get (GladeProject *project); + +LIBGLADEUI_API +void glade_project_set_accel_group (GladeProject *project, + GtkAccelGroup *new_group); + +LIBGLADEUI_API +void glade_project_set_resource (GladeProject *project, + GladeProperty *property, + const gchar *resource); + +LIBGLADEUI_API +GList *glade_project_list_resources (GladeProject *project); + +LIBGLADEUI_API +gchar *glade_project_resource_fullpath (GladeProject *project, + const gchar *resource); + +LIBGLADEUI_API +gchar *glade_project_display_name (GladeProject *project); G_END_DECLS diff --git a/src/glade-property-class.c b/src/glade-property-class.c index 1ee5517d..0f188963 100644 --- a/src/glade-property-class.c +++ b/src/glade-property-class.c @@ -149,42 +149,42 @@ glade_property_class_clone (GladePropertyClass *property_class) /** * glade_property_class_free: - * @class: a #GladePropertyClass + * @property_class: a #GladePropertyClass * * Frees @class and its associated memory. */ void -glade_property_class_free (GladePropertyClass *class) +glade_property_class_free (GladePropertyClass *property_class) { if (class == NULL) return; - g_return_if_fail (GLADE_IS_PROPERTY_CLASS (class)); + g_return_if_fail (GLADE_IS_PROPERTY_CLASS (property_class)); - g_free (class->id); - g_free (class->tooltip); - g_free (class->name); - if (class->orig_def) + g_free (property_class->id); + g_free (property_class->tooltip); + g_free (property_class->name); + if (property_class->orig_def) { - if (G_VALUE_TYPE (class->orig_def) != 0) - g_value_unset (class->orig_def); - g_free (class->orig_def); + if (G_VALUE_TYPE (property_class->orig_def) != 0) + g_value_unset (property_class->orig_def); + g_free (property_class->orig_def); } - if (class->def) + if (property_class->def) { - if (G_VALUE_TYPE (class->def) != 0) - g_value_unset (class->def); - g_free (class->def); + if (G_VALUE_TYPE (property_class->def) != 0) + g_value_unset (property_class->def); + g_free (property_class->def); } - g_list_foreach (class->parameters, (GFunc) glade_parameter_free, NULL); - g_list_free (class->parameters); + g_list_foreach (property_class->parameters, (GFunc) glade_parameter_free, NULL); + g_list_free (property_class->parameters); - if (class->displayable_values) + if (property_class->displayable_values) { gint i, len; GArray *disp_val; - disp_val = class->displayable_values; + disp_val = property_class->displayable_values; len = disp_val->len; for (i = 0; i < len; i++) @@ -201,7 +201,7 @@ glade_property_class_free (GladePropertyClass *class) g_array_free(disp_val, TRUE); } - g_free (class); + g_free (property_class); } @@ -748,11 +748,10 @@ glade_property_class_set_vl_from_gvalue (GladePropertyClass *class, /** * glade_property_class_new_from_spec: - * @spec: - * - * TODO: write me + * @spec: A #GParamSpec * - * Returns: + * Returns: a newly created #GladePropertyClass based on @spec + * or %NULL if its unsupported. */ GladePropertyClass * glade_property_class_new_from_spec (GParamSpec *spec) @@ -1002,11 +1001,11 @@ glade_property_class_make_adjustment (GladePropertyClass *property_class) /** * glade_property_class_update_from_node: - * @node: the <property> node + * @node: the property node * @module: a #GModule to lookup symbols from the plugin * @object_type: the #GType of the owning object * @property_class: a pointer to the property class - * @domain: the domain to translate catalog strings from. + * @domain: the domain to translate catalog strings from * * Updates the @property_class with the contents of the node in the xml * file. Only the values found in the xml file are overridden. diff --git a/src/glade-property-class.h b/src/glade-property-class.h index d3ba5c0e..ff86b9cd 100644 --- a/src/glade-property-class.h +++ b/src/glade-property-class.h @@ -129,36 +129,51 @@ struct _GladePropertyClass }; -LIBGLADEUI_API GladePropertyClass *glade_property_class_new (void); -LIBGLADEUI_API GladePropertyClass *glade_property_class_new_from_spec (GParamSpec *spec); -LIBGLADEUI_API GladePropertyClass *glade_property_class_clone (GladePropertyClass *property_class); -LIBGLADEUI_API void glade_property_class_free (GladePropertyClass *property_class); -LIBGLADEUI_API gboolean glade_property_class_is_visible (GladePropertyClass *property_class); -LIBGLADEUI_API gboolean glade_property_class_is_object (GladePropertyClass *property_class); -LIBGLADEUI_API GValue *glade_property_class_make_gvalue_from_string (GladePropertyClass *property_class, - const gchar *string, - GladeProject *project); -LIBGLADEUI_API gchar *glade_property_class_make_string_from_gvalue (GladePropertyClass *property_class, - const GValue *value); -LIBGLADEUI_API GValue *glade_property_class_make_gvalue_from_vl (GladePropertyClass *property_class, - va_list vl); -LIBGLADEUI_API void glade_property_class_set_vl_from_gvalue (GladePropertyClass *class, - GValue *value, - va_list vl); -LIBGLADEUI_API gboolean glade_property_class_update_from_node (GladeXmlNode *node, - GModule *module, - GType widget_type, - GladePropertyClass **property_class, - const gchar *domain); -LIBGLADEUI_API gchar *glade_property_class_make_string_from_flags (GladePropertyClass *class, - guint fvals, - gboolean displayables); -LIBGLADEUI_API gchar *glade_property_class_get_displayable_value (GladePropertyClass *class, - gint value); -LIBGLADEUI_API GtkAdjustment *glade_property_class_make_adjustment (GladePropertyClass *class); - -LIBGLADEUI_API gboolean glade_property_class_match (GladePropertyClass *class, - GladePropertyClass *comp); +LIBGLADEUI_API +GladePropertyClass *glade_property_class_new (void); +LIBGLADEUI_API +GladePropertyClass *glade_property_class_new_from_spec (GParamSpec *spec); +LIBGLADEUI_API +GladePropertyClass *glade_property_class_clone (GladePropertyClass *property_class); +LIBGLADEUI_API +void glade_property_class_free (GladePropertyClass *property_class); +LIBGLADEUI_API +gboolean glade_property_class_is_visible (GladePropertyClass *property_class); +LIBGLADEUI_API +gboolean glade_property_class_is_object (GladePropertyClass *property_class); +LIBGLADEUI_API +GValue *glade_property_class_make_gvalue_from_string (GladePropertyClass *property_class, + const gchar *string, + GladeProject *project); +LIBGLADEUI_API +gchar *glade_property_class_make_string_from_gvalue (GladePropertyClass *property_class, + const GValue *value); +LIBGLADEUI_API +GValue *glade_property_class_make_gvalue_from_vl (GladePropertyClass *property_class, + va_list vl); +LIBGLADEUI_API +void glade_property_class_set_vl_from_gvalue (GladePropertyClass *class, + GValue *value, + va_list vl); +LIBGLADEUI_API +gboolean glade_property_class_update_from_node (GladeXmlNode *node, + GModule *module, + GType object_type, + GladePropertyClass **property_class, + const gchar *domain); +LIBGLADEUI_API +gchar *glade_property_class_make_string_from_flags (GladePropertyClass *class, + guint fvals, + gboolean displayables); +LIBGLADEUI_API +gchar *glade_property_class_get_displayable_value (GladePropertyClass *class, + gint value); +LIBGLADEUI_API +GtkAdjustment *glade_property_class_make_adjustment (GladePropertyClass *class); + +LIBGLADEUI_API +gboolean glade_property_class_match (GladePropertyClass *class, + GladePropertyClass *comp); G_END_DECLS diff --git a/src/glade-property.c b/src/glade-property.c index 5defc6c6..857e0077 100644 --- a/src/glade-property.c +++ b/src/glade-property.c @@ -117,7 +117,7 @@ glade_property_equals_value_impl (GladeProperty *property, property->value, value); } -/** +/* * Generic set function for properties that do not have a * custom set_property method. This includes packing properties. */ @@ -741,7 +741,7 @@ glade_property_set_value (GladeProperty *property, const GValue *value) /** * glade_property_set_va_list: * @property: a #GladeProperty - * @va_list: a va_list with value to set + * @vl: a va_list with value to set * * Sets the property's value */ diff --git a/src/glade-property.h b/src/glade-property.h index 5c95538f..2bdc1778 100644 --- a/src/glade-property.h +++ b/src/glade-property.h @@ -78,54 +78,81 @@ struct _GladePropertyKlass void (* tooltip_changed) (GladeProperty *, const gchar *); }; -LIBGLADEUI_API GType glade_property_get_type (void); -LIBGLADEUI_API GladeProperty *glade_property_new (GladePropertyClass *class, - GladeWidget *widget, - GValue *value); -LIBGLADEUI_API GladeProperty *glade_property_dup (GladeProperty *template, - GladeWidget *widget); -LIBGLADEUI_API void glade_property_reset (GladeProperty *property); -LIBGLADEUI_API gboolean glade_property_default (GladeProperty *property); -LIBGLADEUI_API gboolean glade_property_equals_value (GladeProperty *property, - GValue *value); -LIBGLADEUI_API gboolean glade_property_equals (GladeProperty *property, - ...); -LIBGLADEUI_API void glade_property_set_value (GladeProperty *property, - const GValue *value); -LIBGLADEUI_API void glade_property_set_va_list (GladeProperty *property, - va_list vl); -LIBGLADEUI_API void glade_property_set (GladeProperty *property, - ...); -LIBGLADEUI_API void glade_property_get_value (GladeProperty *property, - GValue *value); -LIBGLADEUI_API void glade_property_get_default (GladeProperty *property, - GValue *value); -LIBGLADEUI_API void glade_property_get_va_list (GladeProperty *property, - va_list vl); -LIBGLADEUI_API void glade_property_get (GladeProperty *property, - ...); -LIBGLADEUI_API void glade_property_sync (GladeProperty *property); -LIBGLADEUI_API gboolean glade_property_write (GladeProperty *property, - GladeInterface *interface, - GArray *props); -LIBGLADEUI_API G_CONST_RETURN gchar *glade_property_get_tooltip (GladeProperty *property); -LIBGLADEUI_API void glade_property_set_sensitive (GladeProperty *property, - gboolean sensitive, - const gchar *reason); -LIBGLADEUI_API gboolean glade_property_get_sensitive (GladeProperty *property); -LIBGLADEUI_API void glade_property_set_enabled (GladeProperty *property, - gboolean enabled); -LIBGLADEUI_API gboolean glade_property_get_enabled (GladeProperty *property); - -LIBGLADEUI_API void glade_property_i18n_set_comment (GladeProperty *property, - const gchar *str); -LIBGLADEUI_API G_CONST_RETURN gchar *glade_property_i18n_get_comment (GladeProperty *property); -LIBGLADEUI_API void glade_property_i18n_set_translatable (GladeProperty *property, - gboolean translatable); -LIBGLADEUI_API gboolean glade_property_i18n_get_translatable (GladeProperty *property); -LIBGLADEUI_API void glade_property_i18n_set_has_context (GladeProperty *property, - gboolean has_context); -LIBGLADEUI_API gboolean glade_property_i18n_get_has_context (GladeProperty *property); +LIBGLADEUI_API +GType glade_property_get_type (void); +LIBGLADEUI_API +GladeProperty *glade_property_new (GladePropertyClass *class, + GladeWidget *widget, + GValue *value); +LIBGLADEUI_API +GladeProperty *glade_property_dup (GladeProperty *template, + GladeWidget *widget); +LIBGLADEUI_API +void glade_property_reset (GladeProperty *property); +LIBGLADEUI_API +gboolean glade_property_default (GladeProperty *property); +LIBGLADEUI_API +gboolean glade_property_equals_value (GladeProperty *property, + GValue *value); +LIBGLADEUI_API +gboolean glade_property_equals (GladeProperty *property, + ...); +LIBGLADEUI_API +void glade_property_set_value (GladeProperty *property, + const GValue *value); +LIBGLADEUI_API +void glade_property_set_va_list (GladeProperty *property, + va_list vl); +LIBGLADEUI_API +void glade_property_set (GladeProperty *property, + ...); +LIBGLADEUI_API +void glade_property_get_value (GladeProperty *property, + GValue *value); +LIBGLADEUI_API +void glade_property_get_default (GladeProperty *property, + GValue *value); +LIBGLADEUI_API +void glade_property_get_va_list (GladeProperty *property, + va_list vl); +LIBGLADEUI_API +void glade_property_get (GladeProperty *property, + ...); +LIBGLADEUI_API +void glade_property_sync (GladeProperty *property); +LIBGLADEUI_API +gboolean glade_property_write (GladeProperty *property, + GladeInterface *interface, + GArray *props); +LIBGLADEUI_API +G_CONST_RETURN gchar *glade_property_get_tooltip (GladeProperty *property); +LIBGLADEUI_API +void glade_property_set_sensitive (GladeProperty *property, + gboolean sensitive, + const gchar *reason); +LIBGLADEUI_API +gboolean glade_property_get_sensitive (GladeProperty *property); +LIBGLADEUI_API +void glade_property_set_enabled (GladeProperty *property, + gboolean enabled); +LIBGLADEUI_API +gboolean glade_property_get_enabled (GladeProperty *property); + +LIBGLADEUI_API +void glade_property_i18n_set_comment (GladeProperty *property, + const gchar *str); +LIBGLADEUI_API +G_CONST_RETURN gchar *glade_property_i18n_get_comment (GladeProperty *property); +LIBGLADEUI_API +void glade_property_i18n_set_translatable (GladeProperty *property, + gboolean translatable); +LIBGLADEUI_API +gboolean glade_property_i18n_get_translatable (GladeProperty *property); +LIBGLADEUI_API +void glade_property_i18n_set_has_context (GladeProperty *property, + gboolean has_context); +LIBGLADEUI_API +gboolean glade_property_i18n_get_has_context (GladeProperty *property); G_END_DECLS diff --git a/src/glade-signal-editor.h b/src/glade-signal-editor.h index 4970f425..5389dac7 100644 --- a/src/glade-signal-editor.h +++ b/src/glade-signal-editor.h @@ -2,6 +2,8 @@ #ifndef __GLADE_SIGNAL_EDITOR_H__ #define __GLADE_SIGNAL_EDITOR_H__ +#include "glade.h" + G_BEGIN_DECLS @@ -29,10 +31,13 @@ struct _GladeSignalEditor }; +LIBGLADEUI_API GtkWidget *glade_signal_editor_get_widget (GladeSignalEditor *editor); +LIBGLADEUI_API GladeSignalEditor *glade_signal_editor_new (gpointer *editor); +LIBGLADEUI_API void glade_signal_editor_load_widget (GladeSignalEditor *editor, GladeWidget *widget); diff --git a/src/glade-signal.c b/src/glade-signal.c index 046b6193..03bbfcd7 100644 --- a/src/glade-signal.c +++ b/src/glade-signal.c @@ -137,12 +137,8 @@ glade_signal_write (GladeSignalInfo *info, GladeSignal *signal, return TRUE; } -/** - * glade_signal_new_from_signal_info: - * @node: a #GladeSignalInfo - * - * Returns: a new #GladeSignal with the attributes defined in @node, %NULL if - * there is an error +/* + * Returns a new GladeSignal with the attributes defined in node */ GladeSignal *glade_signal_new_from_signal_info (GladeSignalInfo *info) { diff --git a/src/glade-utils.c b/src/glade-utils.c index 95299898..f7d80936 100644 --- a/src/glade-utils.c +++ b/src/glade-utils.c @@ -158,11 +158,10 @@ glade_util_get_type_from_name (const gchar *name) /** * glade_utils_get_pspec_from_funcname: - * @name: - * - * TODO: write me + * @funcname: the symbol name of a function to generate a #GParamSpec * - * Returns: + * Returns: A #GParamSpec created by the delagate function + * specified by @funcname */ GParamSpec * glade_utils_get_pspec_from_funcname (const gchar *funcname) @@ -1035,11 +1034,10 @@ glade_util_gtkcontainer_relation (GladeWidget *parent, GladeWidget *widget) /** * glade_util_any_gtkcontainer_relation: - * @widget: a GladeWidget - * @parent: a GladeWidget - * + * @widgets: a #GList of #GladeWidgets + * @parent: the parent #GladeWidget * - * Returns whether any of these widgets are parented by a GtkContainer + * Returns: whether any of these widgets are parented by a GtkContainer * through the GtkContainer interface. */ gboolean diff --git a/src/glade-utils.h b/src/glade-utils.h index f92bad65..62a63863 100644 --- a/src/glade-utils.h +++ b/src/glade-utils.h @@ -7,7 +7,6 @@ G_BEGIN_DECLS typedef enum _GladeUtilFileDialogType GladeUtilFileDialogType; -typedef enum _GladeUIMessageType GladeUIMessageType; enum _GladeUtilFileDialogType { @@ -15,85 +14,119 @@ enum _GladeUtilFileDialogType GLADE_FILE_DIALOG_ACTION_SAVE }; -enum _GladeUIMessageType { +typedef enum +{ GLADE_UI_INFO, GLADE_UI_WARN, GLADE_UI_ERROR, GLADE_UI_ARE_YOU_SURE, GLADE_UI_YES_OR_NO -}; - - -#define glade_implement_me() g_print ("Implement me : %s %d %s\n", __FILE__, __LINE__, G_GNUC_FUNCTION); - - -LIBGLADEUI_API void glade_util_widget_set_tooltip (GtkWidget *widget, const gchar *str); -LIBGLADEUI_API GType glade_util_get_type_from_name (const gchar *name); -LIBGLADEUI_API GParamSpec *glade_utils_get_pspec_from_funcname (const gchar *funcname); -LIBGLADEUI_API gboolean glade_util_ui_message (GtkWidget *parent, - GladeUIMessageType type, - const gchar *format, ...); -LIBGLADEUI_API void glade_util_flash_message (GtkWidget *statusbar, - guint context_id, - gchar *format, ...); +} GladeUIMessageType; + + +LIBGLADEUI_API +void glade_util_widget_set_tooltip (GtkWidget *widget, const gchar *str); +LIBGLADEUI_API +GType glade_util_get_type_from_name (const gchar *name); +LIBGLADEUI_API +GParamSpec *glade_utils_get_pspec_from_funcname (const gchar *funcname); +LIBGLADEUI_API +gboolean glade_util_ui_message (GtkWidget *parent, + GladeUIMessageType type, + const gchar *format, ...); +LIBGLADEUI_API +void glade_util_flash_message (GtkWidget *statusbar, + guint context_id, + gchar *format, ...); /* This is a GCompareFunc for comparing the labels of 2 stock items, ignoring any '_' characters. It isn't particularly efficient. */ -LIBGLADEUI_API gint glade_util_compare_stock_labels (gconstpointer a, gconstpointer b); - -LIBGLADEUI_API void glade_util_hide_window (GtkWindow *window); -LIBGLADEUI_API gchar *glade_util_gtk_combo_func (gpointer data); -LIBGLADEUI_API gpointer glade_util_gtk_combo_find (GtkCombo *combo); - -LIBGLADEUI_API GtkWidget *glade_util_file_dialog_new (const gchar *title, - GtkWindow *parent, - GladeUtilFileDialogType action); -LIBGLADEUI_API void glade_util_replace (char *str, char a, char b); -LIBGLADEUI_API gchar *glade_util_duplicate_underscores (const char *name); - -LIBGLADEUI_API void glade_util_add_selection (GtkWidget *widget); -LIBGLADEUI_API void glade_util_remove_selection (GtkWidget *widget); -LIBGLADEUI_API gboolean glade_util_has_selection (GtkWidget *widget); -LIBGLADEUI_API void glade_util_clear_selection (void); -LIBGLADEUI_API GList *glade_util_get_selection (void); -LIBGLADEUI_API GladePlaceholder *glade_util_selected_placeholder (void); - -LIBGLADEUI_API void glade_util_queue_draw_nodes (GdkWindow *window); - -LIBGLADEUI_API GladeWidget *glade_util_get_parent (GtkWidget *w); -LIBGLADEUI_API GList *glade_util_container_get_all_children (GtkContainer *container); - -LIBGLADEUI_API GList *glade_util_uri_list_parse (const gchar* uri_list); - -LIBGLADEUI_API gboolean glade_util_gtkcontainer_relation (GladeWidget *parent, - GladeWidget *widget); -LIBGLADEUI_API gboolean glade_util_any_gtkcontainer_relation (GladeWidget *parent, - GList *widgets); - -LIBGLADEUI_API gboolean glade_util_widget_pastable (GladeWidget *child, - GladeWidget *parent); - -LIBGLADEUI_API void glade_util_paste_clipboard (GladePlaceholder *placeholder, - GladeWidget *parent); -LIBGLADEUI_API void glade_util_cut_selection (void); -LIBGLADEUI_API void glade_util_copy_selection (void); -LIBGLADEUI_API void glade_util_delete_selection (void); -LIBGLADEUI_API void glade_util_delete_clipboard (void); - -LIBGLADEUI_API gint glade_util_count_placeholders (GladeWidget *parent); - -LIBGLADEUI_API GtkTreeIter *glade_util_find_iter_by_widget (GtkTreeModel *model, - GladeWidget *findme, - gint column); - -LIBGLADEUI_API gboolean glade_util_basenames_match (const gchar *path1, - const gchar *path2); - -LIBGLADEUI_API GList *glade_util_purify_list (GList *list); -LIBGLADEUI_API gchar *glade_util_canonical_path (const gchar *path); - -LIBGLADEUI_API gboolean glade_util_copy_file (const gchar *src, - const gchar *dest); +LIBGLADEUI_API +gint glade_util_compare_stock_labels (gconstpointer a, gconstpointer b); + +LIBGLADEUI_API +void glade_util_hide_window (GtkWindow *window); +LIBGLADEUI_API +gchar *glade_util_gtk_combo_func (gpointer data); +LIBGLADEUI_API +gpointer glade_util_gtk_combo_find (GtkCombo *combo); + +LIBGLADEUI_API +GtkWidget *glade_util_file_dialog_new (const gchar *title, + GtkWindow *parent, + GladeUtilFileDialogType action); +LIBGLADEUI_API +void glade_util_replace (char *str, char a, char b); +LIBGLADEUI_API +gchar *glade_util_duplicate_underscores (const char *name); + +LIBGLADEUI_API +void glade_util_add_selection (GtkWidget *widget); +LIBGLADEUI_API +void glade_util_remove_selection (GtkWidget *widget); +LIBGLADEUI_API +gboolean glade_util_has_selection (GtkWidget *widget); +LIBGLADEUI_API +void glade_util_clear_selection (void); +LIBGLADEUI_API +GList *glade_util_get_selection (void); +LIBGLADEUI_API +GladePlaceholder *glade_util_selected_placeholder (void); + +LIBGLADEUI_API +void glade_util_queue_draw_nodes (GdkWindow *window); + +LIBGLADEUI_API +GladeWidget *glade_util_get_parent (GtkWidget *w); +LIBGLADEUI_API +GList *glade_util_container_get_all_children (GtkContainer *container); + +LIBGLADEUI_API +GList *glade_util_uri_list_parse (const gchar* uri_list); + +LIBGLADEUI_API +gboolean glade_util_gtkcontainer_relation (GladeWidget *parent, + GladeWidget *widget); +LIBGLADEUI_API +gboolean glade_util_any_gtkcontainer_relation (GladeWidget *parent, + GList *widgets); + +LIBGLADEUI_API +gboolean glade_util_widget_pastable (GladeWidget *child, + GladeWidget *parent); + +LIBGLADEUI_API +void glade_util_paste_clipboard (GladePlaceholder *placeholder, + GladeWidget *parent); +LIBGLADEUI_API +void glade_util_cut_selection (void); +LIBGLADEUI_API +void glade_util_copy_selection (void); +LIBGLADEUI_API +void glade_util_delete_selection (void); +LIBGLADEUI_API +void glade_util_delete_clipboard (void); + +LIBGLADEUI_API +gint glade_util_count_placeholders (GladeWidget *parent); + +LIBGLADEUI_API +GtkTreeIter *glade_util_find_iter_by_widget (GtkTreeModel *model, + GladeWidget *findme, + gint column); + +LIBGLADEUI_API +gboolean glade_util_basenames_match (const gchar *path1, + const gchar *path2); + +LIBGLADEUI_API +GList *glade_util_purify_list (GList *list); +LIBGLADEUI_API +gchar *glade_util_canonical_path (const gchar *path); + +LIBGLADEUI_API +gboolean glade_util_copy_file (const gchar *src_path, + const gchar *dest_path); diff --git a/src/glade-widget-class.h b/src/glade-widget-class.h index 0244d7a8..9b96f93d 100644 --- a/src/glade-widget-class.h +++ b/src/glade-widget-class.h @@ -174,53 +174,72 @@ struct _GladeWidgetClassSignal * eg GtkButton */ }; -LIBGLADEUI_API GladeWidgetClass *glade_widget_class_new (GladeXmlNode *class_node, - const gchar *catname, - const gchar *library, - const gchar *domain); -LIBGLADEUI_API void glade_widget_class_free (GladeWidgetClass *widget_class); -LIBGLADEUI_API GladeWidgetClass *glade_widget_class_get_by_name (const char *name); -LIBGLADEUI_API GladeWidgetClass *glade_widget_class_get_by_type (GType type); -LIBGLADEUI_API GList *glade_widget_class_get_derived_types (GType type); -LIBGLADEUI_API GType glade_widget_class_get_type (GladeWidgetClass *class); -LIBGLADEUI_API void glade_widget_class_dump_param_specs (GladeWidgetClass *class); -LIBGLADEUI_API GladePropertyClass *glade_widget_class_get_property_class (GladeWidgetClass *class, - const gchar *name); -LIBGLADEUI_API GladeSupportedChild *glade_widget_class_get_child_support (GladeWidgetClass *class, - GType child_type); - -LIBGLADEUI_API void glade_widget_class_container_add (GladeWidgetClass *class, - GObject *container, - GObject *child); -LIBGLADEUI_API void glade_widget_class_container_remove (GladeWidgetClass *class, - GObject *container, - GObject *child); -LIBGLADEUI_API gboolean glade_widget_class_container_has_child (GladeWidgetClass *class, - GObject *container, - GObject *child); -LIBGLADEUI_API GList *glade_widget_class_container_get_children (GladeWidgetClass *class, - GObject *container); -LIBGLADEUI_API GList *glade_widget_class_container_get_all_children (GladeWidgetClass *class, - GObject *container); -LIBGLADEUI_API void glade_widget_class_container_set_property (GladeWidgetClass *class, - GObject *container, - GObject *child, - const gchar *property_name, - const GValue *value); -LIBGLADEUI_API void glade_widget_class_container_get_property (GladeWidgetClass *class, - GObject *container, - GObject *child, - const gchar *property_name, - GValue *value); -LIBGLADEUI_API void glade_widget_class_container_replace_child (GladeWidgetClass *class, - GObject *container, - GObject *old, - GObject *new); -LIBGLADEUI_API gboolean glade_widget_class_contains_extra (GladeWidgetClass *class); - -LIBGLADEUI_API GladePackingDefault *glade_widget_class_get_packing_default (GladeWidgetClass *child_class, - GladeWidgetClass *container_class, - const gchar *propert_id); +LIBGLADEUI_API +GladeWidgetClass *glade_widget_class_new (GladeXmlNode *class_node, + const gchar *catname, + const gchar *library, + const gchar *domain); +LIBGLADEUI_API +void glade_widget_class_free (GladeWidgetClass *widget_class); +LIBGLADEUI_API +GladeWidgetClass *glade_widget_class_get_by_name (const char *name); +LIBGLADEUI_API +GladeWidgetClass *glade_widget_class_get_by_type (GType type); +LIBGLADEUI_API +GList *glade_widget_class_get_derived_types (GType type); +LIBGLADEUI_API +GType glade_widget_class_get_type (GladeWidgetClass *class); +LIBGLADEUI_API +void glade_widget_class_dump_param_specs (GladeWidgetClass *class); +LIBGLADEUI_API +GladePropertyClass *glade_widget_class_get_property_class (GladeWidgetClass *class, + const gchar *name); +LIBGLADEUI_API +GladeSupportedChild *glade_widget_class_get_child_support (GladeWidgetClass *class, + GType child_type); + +LIBGLADEUI_API +void glade_widget_class_container_add (GladeWidgetClass *class, + GObject *container, + GObject *child); +LIBGLADEUI_API +void glade_widget_class_container_remove (GladeWidgetClass *class, + GObject *container, + GObject *child); +LIBGLADEUI_API +gboolean glade_widget_class_container_has_child (GladeWidgetClass *class, + GObject *container, + GObject *child); +LIBGLADEUI_API +GList *glade_widget_class_container_get_children (GladeWidgetClass *class, + GObject *container); +LIBGLADEUI_API +GList *glade_widget_class_container_get_all_children (GladeWidgetClass *class, + GObject *container); +LIBGLADEUI_API +void glade_widget_class_container_set_property (GladeWidgetClass *class, + GObject *container, + GObject *child, + const gchar *property_name, + const GValue *value); +LIBGLADEUI_API +void glade_widget_class_container_get_property (GladeWidgetClass *class, + GObject *container, + GObject *child, + const gchar *property_name, + GValue *value); +LIBGLADEUI_API +void glade_widget_class_container_replace_child (GladeWidgetClass *class, + GObject *container, + GObject *old, + GObject *new); +LIBGLADEUI_API +gboolean glade_widget_class_contains_extra (GladeWidgetClass *class); + +LIBGLADEUI_API +GladePackingDefault *glade_widget_class_get_packing_default (GladeWidgetClass *child_class, + GladeWidgetClass *container_class, + const gchar *propert_id); G_END_DECLS diff --git a/src/glade-widget.c b/src/glade-widget.c index 0de733c4..ab0c0507 100644 --- a/src/glade-widget.c +++ b/src/glade-widget.c @@ -1009,14 +1009,13 @@ glade_widget_rebuild (GladeWidget *glade_widget) /** * glade_widget_new_for_internal_child: - * @klass: - * @parent: - * @internal_widget: - * @internal_name: + * @parent: The parent #GladeWidget + * @internal_object: the #GObject + * @internal_name: a string identifier for this internal widget. * - * TODO: write me * - * Returns: + * Returns: a freshly created #GladeWidget wrapper object for the + * @internal_object of name @internal_name */ GladeWidget * glade_widget_new_for_internal_child (GladeWidget *parent, @@ -2010,8 +2009,8 @@ glade_widget_connect_signal_handlers (GtkWidget *widget_gtk, gpointer data) /** * glade_widget_set_object: - * @gwidget: - * @new_object: + * @gwidget: A #GladeWidget + * @new_object: the new #GObject for @gwidget * * Set the runtime object for this GladeWidget wrapper * (this is used deep in the core and is probably unsafe @@ -2217,7 +2216,7 @@ glade_widget_set_parent (GladeWidget *widget, g_object_notify (G_OBJECT (widget), "parent"); } -/** +/* * Returns a list of GladeProperties from a list for the correct * child type for this widget of this container. */ diff --git a/src/glade-widget.h b/src/glade-widget.h index ecf4609a..cb3a0cee 100644 --- a/src/glade-widget.h +++ b/src/glade-widget.h @@ -104,122 +104,170 @@ struct _GladeWidgetKlass GladeSignal *new_signal_handler); }; -LIBGLADEUI_API GType glade_widget_get_type (void); -LIBGLADEUI_API GladeWidget * glade_widget_new (GladeWidget *parent, - GladeWidgetClass *klass, - GladeProject *project); -LIBGLADEUI_API GladeWidget * glade_widget_new_for_internal_child (GladeWidget *parent, - GObject *internal_object, - const gchar *internal_name); -LIBGLADEUI_API void glade_widget_set_name (GladeWidget *widget, - const gchar *name); -LIBGLADEUI_API void glade_widget_set_internal (GladeWidget *widget, - const gchar *internal); -LIBGLADEUI_API void glade_widget_set_object (GladeWidget *widget, - GObject *new_object); -LIBGLADEUI_API void glade_widget_set_project (GladeWidget *widget, - GladeProject *project); -LIBGLADEUI_API const gchar *glade_widget_get_name (GladeWidget *widget); -LIBGLADEUI_API const gchar *glade_widget_get_internal (GladeWidget *widget); -LIBGLADEUI_API GladeWidgetClass *glade_widget_get_class (GladeWidget *widget); -LIBGLADEUI_API GladeProject *glade_widget_get_project (GladeWidget *widget); -LIBGLADEUI_API GObject *glade_widget_get_object (GladeWidget *widget); - -LIBGLADEUI_API void glade_widget_project_notify (GladeWidget *widget, - GladeProject *project); - -LIBGLADEUI_API void glade_widget_show (GladeWidget *widget); -LIBGLADEUI_API void glade_widget_hide (GladeWidget *widget); - -LIBGLADEUI_API void glade_widget_copy_properties (GladeWidget *widget, - GladeWidget *template); - - -LIBGLADEUI_API void glade_widget_add_prop_ref (GladeWidget *widget, - GladeProperty *property); -LIBGLADEUI_API void glade_widget_remove_prop_ref (GladeWidget *widget, - GladeProperty *property); - -LIBGLADEUI_API GladeProperty *glade_widget_get_property (GladeWidget *widget, - const gchar *id_property); -LIBGLADEUI_API GladeProperty *glade_widget_get_pack_property (GladeWidget *widget, - const gchar *id_property); +LIBGLADEUI_API +GType glade_widget_get_type (void); + +LIBGLADEUI_API +GladeWidget * glade_widget_new (GladeWidget *parent, + GladeWidgetClass *klass, + GladeProject *project); +LIBGLADEUI_API +GladeWidget * glade_widget_new_for_internal_child (GladeWidget *parent, + GObject *internal_object, + const gchar *internal_name); +LIBGLADEUI_API +void glade_widget_set_name (GladeWidget *widget, + const gchar *name); +LIBGLADEUI_API +void glade_widget_set_internal (GladeWidget *widget, + const gchar *internal); +LIBGLADEUI_API +void glade_widget_set_object (GladeWidget *gwidget, + GObject *new_object); +LIBGLADEUI_API +void glade_widget_set_project (GladeWidget *widget, + GladeProject *project); +LIBGLADEUI_API +const gchar *glade_widget_get_name (GladeWidget *widget); +LIBGLADEUI_API +const gchar *glade_widget_get_internal (GladeWidget *widget); +LIBGLADEUI_API +GladeWidgetClass *glade_widget_get_class (GladeWidget *widget); +LIBGLADEUI_API +GladeProject *glade_widget_get_project (GladeWidget *widget); +LIBGLADEUI_API +GObject *glade_widget_get_object (GladeWidget *widget); + +LIBGLADEUI_API +void glade_widget_project_notify (GladeWidget *widget, + GladeProject *project); + +LIBGLADEUI_API +void glade_widget_show (GladeWidget *widget); +LIBGLADEUI_API +void glade_widget_hide (GladeWidget *widget); + +LIBGLADEUI_API +void glade_widget_copy_properties (GladeWidget *widget, + GladeWidget *template); + + +LIBGLADEUI_API +void glade_widget_add_prop_ref (GladeWidget *widget, + GladeProperty *property); +LIBGLADEUI_API +void glade_widget_remove_prop_ref (GladeWidget *widget, + GladeProperty *property); + +LIBGLADEUI_API +GladeProperty *glade_widget_get_property (GladeWidget *widget, + const gchar *id_property); +LIBGLADEUI_API +GladeProperty *glade_widget_get_pack_property (GladeWidget *widget, + const gchar *id_property); /* Convenience functions for plugin & application use */ -LIBGLADEUI_API gboolean glade_widget_property_get (GladeWidget *widget, - const gchar *id_property, - ...); -LIBGLADEUI_API gboolean glade_widget_property_set (GladeWidget *widget, - const gchar *id_property, - ...); -LIBGLADEUI_API gboolean glade_widget_pack_property_get (GladeWidget *widget, - const gchar *id_property, - ...); -LIBGLADEUI_API gboolean glade_widget_pack_property_set (GladeWidget *widget, - const gchar *id_property, - ...); -LIBGLADEUI_API gboolean glade_widget_property_reset (GladeWidget *widget, - const gchar *id_property); -LIBGLADEUI_API gboolean glade_widget_pack_property_reset (GladeWidget *widget, - const gchar *id_property); -LIBGLADEUI_API gboolean glade_widget_property_default (GladeWidget *widget, - const gchar *id_property); -LIBGLADEUI_API gboolean glade_widget_pack_property_default (GladeWidget *widget, - const gchar *id_property); -LIBGLADEUI_API gboolean glade_widget_property_set_sensitive (GladeWidget *widget, - const gchar *id_property, - gboolean sensitive, - const gchar *reason); -LIBGLADEUI_API gboolean glade_widget_pack_property_set_sensitive (GladeWidget *widget, - const gchar *id_property, - gboolean sensitive, - const gchar *reason); -LIBGLADEUI_API gboolean glade_widget_property_set_enabled (GladeWidget *widget, - const gchar *id_property, - gboolean enabled); -LIBGLADEUI_API gboolean glade_widget_pack_property_set_enabled (GladeWidget *widget, - const gchar *id_property, - gboolean enabled); - - -LIBGLADEUI_API GladeWidget *glade_widget_retrieve_from_position (GtkWidget *base, int x, int y); - -LIBGLADEUI_API gboolean glade_widget_has_decendant (GladeWidget *widget, - GType type); - -LIBGLADEUI_API void glade_widget_replace (GladeWidget *parent, - GObject *old_object, - GObject *new_object); -LIBGLADEUI_API void glade_widget_rebuild (GladeWidget *widget); -LIBGLADEUI_API GladeWidget *glade_widget_dup (GladeWidget *widget); +LIBGLADEUI_API +gboolean glade_widget_property_get (GladeWidget *widget, + const gchar *id_property, + ...); +LIBGLADEUI_API +gboolean glade_widget_property_set (GladeWidget *widget, + const gchar *id_property, + ...); +LIBGLADEUI_API +gboolean glade_widget_pack_property_get (GladeWidget *widget, + const gchar *id_property, + ...); +LIBGLADEUI_API +gboolean glade_widget_pack_property_set (GladeWidget *widget, + const gchar *id_property, + ...); +LIBGLADEUI_API +gboolean glade_widget_property_reset (GladeWidget *widget, + const gchar *id_property); +LIBGLADEUI_API +gboolean glade_widget_pack_property_reset (GladeWidget *widget, + const gchar *id_property); +LIBGLADEUI_API +gboolean glade_widget_property_default (GladeWidget *widget, + const gchar *id_property); +LIBGLADEUI_API +gboolean glade_widget_pack_property_default (GladeWidget *widget, + const gchar *id_property); +LIBGLADEUI_API +gboolean glade_widget_property_set_sensitive (GladeWidget *widget, + const gchar *id_property, + gboolean sensitive, + const gchar *reason); +LIBGLADEUI_API +gboolean glade_widget_pack_property_set_sensitive (GladeWidget *widget, + const gchar *id_property, + gboolean sensitive, + const gchar *reason); +LIBGLADEUI_API +gboolean glade_widget_property_set_enabled (GladeWidget *widget, + const gchar *id_property, + gboolean enabled); +LIBGLADEUI_API +gboolean glade_widget_pack_property_set_enabled (GladeWidget *widget, + const gchar *id_property, + gboolean enabled); + + +LIBGLADEUI_API +GladeWidget *glade_widget_retrieve_from_position (GtkWidget *base, int x, int y); + +LIBGLADEUI_API +gboolean glade_widget_has_decendant (GladeWidget *widget, + GType type); + +LIBGLADEUI_API +void glade_widget_replace (GladeWidget *parent, + GObject *old_object, + GObject *new_object); +LIBGLADEUI_API +void glade_widget_rebuild (GladeWidget *glade_widget); +LIBGLADEUI_API +GladeWidget *glade_widget_dup (GladeWidget *widget); /* widget signals */ -LIBGLADEUI_API void glade_widget_add_signal_handler (GladeWidget *widget, - GladeSignal *signal_handler); -LIBGLADEUI_API void glade_widget_remove_signal_handler (GladeWidget *widget, - GladeSignal *signal_handler); -LIBGLADEUI_API void glade_widget_change_signal_handler (GladeWidget *widget, - GladeSignal *old_signal_handler, - GladeSignal *new_signal_handler); +LIBGLADEUI_API +void glade_widget_add_signal_handler (GladeWidget *widget, + GladeSignal *signal_handler); +LIBGLADEUI_API +void glade_widget_remove_signal_handler (GladeWidget *widget, + GladeSignal *signal_handler); +LIBGLADEUI_API +void glade_widget_change_signal_handler (GladeWidget *widget, + GladeSignal *old_signal_handler, + GladeSignal *new_signal_handler); /* array of GladeSignal* */ -LIBGLADEUI_API GPtrArray * glade_widget_list_signal_handlers (GladeWidget *widget, - const gchar *signal_name); +LIBGLADEUI_API +GPtrArray * glade_widget_list_signal_handlers (GladeWidget *widget, + const gchar *signal_name); /* serialization */ -LIBGLADEUI_API GladeWidgetInfo *glade_widget_write (GladeWidget *widget, - GladeInterface *interface); -LIBGLADEUI_API GladeWidget *glade_widget_read (GladeProject *project, - GladeWidgetInfo *info); - -LIBGLADEUI_API gboolean glade_widget_has_launcher (GladeWidget *widget); -LIBGLADEUI_API void glade_widget_launch_editor (GladeWidget *widget); +LIBGLADEUI_API +GladeWidgetInfo *glade_widget_write (GladeWidget *widget, + GladeInterface *interface); +LIBGLADEUI_API +GladeWidget *glade_widget_read (GladeProject *project, + GladeWidgetInfo *info); + +LIBGLADEUI_API +gboolean glade_widget_has_launcher (GladeWidget *widget); +LIBGLADEUI_API +void glade_widget_launch_editor (GladeWidget *widget); /* helper functions */ #define glade_widget_get_from_gobject(w) \ g_object_get_data (G_OBJECT (w), "GladeWidgetDataTag") -LIBGLADEUI_API GladeWidget *glade_widget_get_parent (GladeWidget *widget); -LIBGLADEUI_API void glade_widget_set_parent (GladeWidget *widget, - GladeWidget *parent); +LIBGLADEUI_API +GladeWidget *glade_widget_get_parent (GladeWidget *widget); +LIBGLADEUI_API +void glade_widget_set_parent (GladeWidget *widget, + GladeWidget *parent); G_END_DECLS diff --git a/src/glade-xml-utils.h b/src/glade-xml-utils.h index e369377f..639c5beb 100644 --- a/src/glade-xml-utils.h +++ b/src/glade-xml-utils.h @@ -21,10 +21,10 @@ GladeXmlNode * glade_xml_search_child_required (GladeXmlNode * tree, const gch /* content */ -gchar * glade_xml_get_content (GladeXmlNode * node); /* Get the content of the node */ +gchar * glade_xml_get_content (GladeXmlNode * node_in); /* Get the content of the node */ void glade_xml_set_content (GladeXmlNode *node_in, const gchar *content); -gboolean glade_xml_get_value_int (GladeXmlNode * node, const gchar *name, int *val); +gboolean glade_xml_get_value_int (GladeXmlNode * node_in, const gchar *name, int *val); gboolean glade_xml_get_value_int_required (GladeXmlNode * node, const gchar *name, int *val); gchar * glade_xml_get_value_string (GladeXmlNode * node, const gchar *name); @@ -34,7 +34,7 @@ gchar * glade_xml_get_value_string_required (GladeXmlNode * node, gboolean glade_xml_get_boolean (GladeXmlNode * node, const gchar *name, gboolean _default); -void glade_xml_set_value (GladeXmlNode * node, const gchar *name, const gchar *val); +void glade_xml_set_value (GladeXmlNode * node_in, const gchar *name, const gchar *val); /* Properties */ gchar * glade_xml_get_property_string_required (GladeXmlNode *node_in, const gchar *name, const gchar *xtra); @@ -49,7 +49,7 @@ GladeXmlNode * glade_xml_node_new (GladeXmlContext *context, const gchar *name); void glade_xml_node_delete (GladeXmlNode *node); GladeXmlNode * glade_xml_node_get_children (GladeXmlNode *node); GladeXmlNode * glade_xml_node_next (GladeXmlNode *node_in); -gboolean glade_xml_node_verify (GladeXmlNode * node, const gchar *name); +gboolean glade_xml_node_verify (GladeXmlNode * node_in, const gchar *name); gboolean glade_xml_node_verify_silent (GladeXmlNode *node_in, const gchar *name); const gchar * glade_xml_node_get_name (GladeXmlNode *node_in); void glade_xml_node_append_child (GladeXmlNode * node, GladeXmlNode * child); |