2006-04-26 Tristan Van Berkom * NEWS: Updated for snapshot release 2006-04-25 Tristan Van Berkom * src/Makefile.am: added atk.xpm to $(libgladeuiinclude_HEADERS) * doc/gladeui-sections.txt: Updated with new apis. * widgets/gtk+.xml.in: Listed all atk action properties needed for the gtk catalog. * src/glade-property-class.c, src/glade.h: o Added GLADE_TAG_ATK_ACTION & GLADE_TAG_ATK_PROPERTY tag support and stripped out introspection on atk properties. o Synonymous '-' and '_' in property names at catalog load time. * src/main.c: backed out the "GTK_MODULES=$GTK_MODULES:gail" module loading thing. * src/glade-widget.c: Synonymous '-' and '_' in glade_widget_get_[packing_]property(). 2006-04-25 Tristan Van Berkom * src/glade-builtins.c: Allowed negative custom integer specs. * src/glade-palette.c: Removed notion of class->in_palette * src/glade-widget-class.[ch]: Removed notion of class->in_palette and cleaned up the parsing of generic_name and widget titles. (modifies muntyan's patch on bug 336594). 2006-04-25 Johannes Schmid * src/glade-project.c: Fixed crasher because of read-only check where project could be NULL. 2006-04-24 Tristan Van Berkom * src/glade-gtk.c: Fixed load & save of internal buttons * src/glade-property.[ch]: Added glade_property_load() (to introspect property values on internal children of composite widgets at creation time). * src/glade-widget.c: introspect property values on internal children of composite widgets at creation time 2006-04-24 Tristan Van Berkom * TODO: Updated * doc/gladeui-sections.txt updated * src/glade-app.[ch]: Majorly reduced the api, now GladeApp is a singleton. Added "active-project" signal. * src/glade-builtins.[ch]: Removed unused variable. Enhanced objects pspec type to recognize interfaces. Added glade_param_spec_objects_get_type() * src/glade-clipboard-view.c: Trying a cute border. * src/glade-command.c, src/glade-fixed-manager.c, src/glade-placehodler.c, src/glade-popup.c, src/glade-project-view.c, src/glade-project-window.c: Updated for glade-app changes * src/glade-editor-property.c: Implemented objects pspec * src/glade-editor.[ch]: Added atk tab, added cuteness. * src/glade-gtk.c: o Translated image type names o Added button types (translated) o Support for button label & use-underline properties * src/glade-parser.c: o Updated for glade-app changes o Added save support for atk actions and relations. * src/glade-project.c: o Updated for glade-app changes o Fixed glade_project_fix_object_props for object lists * src/glade-property-class.[ch]: o Hardcoded atk relations and action names o Added glade_property_class_make_gvalue(), glade_property_class_get_from_gvalue(), glade_property_class_new_atk_action(), glade_property_class_list_atk_relations(), glade_property_class_atk_realname() o Fixed glade_property_class_is_object() (object lists qualify) * src/glade-property.[ch]: o Integrated property load proceedure into glade-property, loading code much cleaner and less redundant. (Added glade_property_read()) o Implemented atk properties (save/load) * src/glade-utils.[ch]: Added glade_util_read_prop_name(), glade_util_added_in_list(), glade_util_removed_from_list(), glade_util_class_implements_interface() * src/glade-widget-class.c: Introspect atk properties * src/glade-widget.c: Simplified load code, moved property load code to glade-property, save atk props properly. * src/glade.h: Removed the unused atk-relation tag. * src/main.c: Load gail (for atk action introspection) * src/atk.xpm: New atk icon * widgets/gtk+.xml.in: o GtkLabel label property --> translatable o GtkButton label property --> translatable, multi-line o Added GtkButton "type" property and GtkButton remove-child-function 2006-04-19 Juan Pablo Ugarte * src/glade-editor-property.c: Simplified code and added comments * src/glade-property-class.c: Fixed possible deadlock in glade_property_class_make_string_from_flags * src/glade-widget.c: Enhanced trace output * widgets/gtk+.xml.in: Disabled some pointless/obsolete properties. 2006-04-18 Tristan Van Berkom * src/glade-utils.c: Open file in "a+" mode and not "w", which was truncating the file only to check if it was writable ( ! doh ! ) * src/glade-widget.[ch]: o Added GladeCreateReason argument to glade_widget_new_for_internal_child(), now internal children get post create functions called for them. o Fixed bug 336581 (apply internal widget names at load time). * src/glade-gtk.c: o Added per dialog support for dialog buttons (get_children(), get_internal_child() && create internals in post_create()) (Fixing bug 337196) o Added #include "config.h" for GETTEXT_PACKAGE, now glade-gtk shares the same domain as libgladeui-1. * widgets/gtk+.xml.in: Removed redundant declaration of glade_gtk_dialog_post_create() in the GtkMessageDialog, added "get-children-function" support to GtkDialog. * doc/Makefile.am: Added webdocs target to tailor docs for the web (to cross-link to the developer.g.o api docs properly). * doc/gladeui-sections.txt, doc/tmpl/*: Updated sections for new apis 2006-04-17 Kjartan Maraas * configure.in: Remove obsolete entry for no_NO. * po/no.po: And the translation. 2006-04-11 Tristan Van Berkom * src/glade-utils.c: Fixed broken build (I commited with an error of undefined W_OK for g_access), now we actually try to open the file for writing to see if its writable. * doc/catalogintro.sgml: Added a bit about the new init-function by Juan. 2006-04-10 Vincent Geddes * src/glade-project-window.c: o Manage the sensitivities of all the ui actions. o Fix some issues with the Undo & Redo actions. * src/glade-project.[ch]: o Detect if project file is read-only. New property "read-only" o Detect if project has a selection. New property "has-selection" * src/glade-clipboard.[ch]: o Detect if clipboard has selected items to paste. New property "has-selection" * src/glade-utils.h: New function: glade_util_file_is_writeable (). * src/main.c: o Use glib instead of libpopt for command-line parsing. o Added '--version' option. o Do not try to open non-existent files supplied on command-line. * configure.in: Remove libpopt dependency. 2006-04-04 Yevgen Muntyan * src/glade-project-window.c: Removed GDK_WINDOW_TYPE_HINT_UTILITY hint from palette, as this does weird things like remove it from the tab list on some window managers. * src/glade-catalog.c: Fixed possible segfault by assigning GError * to NULL. 2006-04-05 Juan Pablo Ugarte * src/glade-editor-property.c: new GladeEditorProperty class GladeEPropAdjustment. * src/glade-gtk.c: removed old GtkSpinButton adjustment support. added glade_gtk_spin_button_set_adjustment (). * src/glade-property-class.c: added support for GtkAdjustment properties. * widgets/gtk+.xml.in: added default adjustment values for GtkSpinButton and GtkRange. Disabled GtkViewport and GtkScrolledWindow adjustment properties. 2006-04-04 Tristan Van Berkom * doc/catalogintro.sgml: Updated docs to reflect the recently implemented installation method. * src/glade-project-window.c: Refitted Yevgen Muntyan's patch on bug 336579 to apply for "Save" as well and applied (also enhanced saving untitled projects when prompted at close time). * src/glade-widget.[ch]: Added glade_widget_is_dupping() * src/glade-property.c: Dont call verify functions if the project is loading or there is a widget recursive dup happening. * src/glade-property-class.h: Clarified docs * src/glade-gtk.c: Removed obsolete call to glade_project_is_loading() in a verify function. 2006-04-04 Yevgen Muntyan * configure.in, src/Makefile.am, src/glade-3.pc.in: New pc file for extention libraries to find where to install there catalogs, pixmaps and library. * src/glade-widget.[ch]: Added a "parent_name" argument to glade_widget_new_for_internal_child(), create internal widget names accordingly. * src/glade-gtk.c: Adjusted callers to glade_widget_new_for_internal_child(). 2006-04-03 Juan Pablo Ugarte * src/glade-catalog.c: Added GladeCatalogInitFunc so you could define a function to be executed before instantiating any catalog's object. * src/glade-project-view.c: glade_project_view_populate_model now shows toplevels in the right order. * src/glade-property.c: fixed a bug in glade_property_write_impl which prevented properties with an empty string as value being saved. * src/glade-utils.[c/h]: new function glade_util_load_library() moved from glade_widget_class_load_library() * src/glade-widget-class.c: glade_widget_class_load_library() replaced with glade_util_load_library() * src/glade.h: added tag GLADE_TAG_INIT_FUNCTION. 2006-03-29 Tristan Van Berkom * src/glade-project-window.c: Removed idle handler hack that has been obsoleted by Vincent's smarter one-line patch. * src/glade_project.c: glade_project_open() fixed segfault on open faiure. * src/glade-property-class.[ch]: Added glade_property_class_void_value() * src/glade-widget.c: when creating new objects; ignore voided defaults using glade_property_class_void_value() (and finally added myself as an author). * src/glade-editor-property.c: Fixed segfaults & assertions when dealing with NULL colors in GladeEPropColor. * widgets/gtk+.xml.in: Dont save virtual "pages" property on notebook, if we dont need it in glade-2 files we dont need it period. 2006-03-29 Vincent Geddes * src/glade_project.c: glade_project_changed() should not set project->changed if project is still in process of being loaded. 2006-03-22 Tristan Van Berkom * src/glade-editor.c: Call gtk_container_set_focus_[vh]adjustment() to fix keynav in the editor. 2006-03-21 Tristan Van Berkom * src/glade-utils.c: Made file chooser ENTER activate the open/save button (using gtk_dialog_set_default_response). 2006-03-20 Tristan Van Berkom * doc/children.sgml: Added a bit about anarchist children * doc/widgetclasses.sgml: Removed the notion of get_anarchist_children() * doc/gladeui-sections.txt: removed undefined symbols * doc/tmpl/*: auto-updates templates. * src/glade-gtk.c: Updated to use the new glade_widget_new_for_internal_child API * src/glade-widget-class.[ch], src/glade.h: Removed notion of anarchist children * src/glade-widget.[ch]: Added "anarchist" property and "anarchist" argument to glade_widget_new_for_internal_child() (only internal children can be anarchists). * src/glade-project-view.[ch]: Dramaticly reworked, now each project has its own metadata struct where signal ids and project view state is stored, project signals now are only disconnected at project close time. The open treeview leafs and scrollbar positions are now saved/restored when switching active projects. * src/glade-project-window.c: o Translated window title o Fixed a bug where the loaded project title apears as unsaved. * src/glade-utils.c: Added comments, changed 'char' --> 'gchar' * widgets/gtk+.xml.in: Removed mention of the get_anarchist_children func, override the get_children func for GtkCombo to additionally return the combo->list member (which is an anarchist child). Also added a gtk_container_remove remove-function for GtkListItem since it seemed to be empty and causing errors. * src/glade-project.c: o Fixed glade_project_write() to count the required libs in the GList before freeing the GList (was SEGFAULT on save of any projects useing extra libs). o Made glade_project_display_name() take a "mnemonic" arg... to escape any underscores when setting the display name in a mnemonic label. o Fixed a bug where projects with required added libs where segfaulting at save time. 2006-03-15 Vincent Geddes * src/glade-project.c: Improved name generation for new empty projects. * src/glade-utils.c: Enable overwrite confirmation in FileChooser dialog 2006-03-15 Tristan Van Berkom * src/glade-project-window.c, src/glade-project.[ch]: Tweaked the project list to look more aligned with unsaved changes indicated (using tab charachters); also reverted to print the project path in the status bar as a tooltip (as this is the only indication as to which project is which). * src/glade-widget-class.[ch], src/glade.h: Removed glade_widget_class_get_all_children, now glade_widget_class_get_children returns all desired children, including orphan ararchist internal children. * src/glade-editor-property.c, src/glade-project-view.c, src/glade-project.c, src/glade-widget.c, src/glade-utils.c: Adjusted callers for glade_widget_class_get_children. * src/glade-gtk.c, widgets/gtk+.xml.in: Adjusted backend, removed obsolete get_internal_children funcs and added the appropriate get_anarchist_children. * doc/tmpl/*, doc/gladeui-sections.txt: Added new symbols... removed old ones. * doc/widgetclasses.sgml: added a bit about get-anarchist-children-function 2006-03-15 Vincent Geddes * src/glade-project-window.c: o Reimplemented code for management of projects list menu. o Projects with unsaved changes have a '*' prepended to their names. o Refresh window title when all projects have been closed. * src/glade-project.c: New GObject property 'has-unsaved-changes'. glade_project_changed() will now emit notify signal for this property. * src/glade-app.c: change order in which projects are added to list of open projects in glade_app_add_project(). 2006-03-14 Tristan Van Berkom * src/glade-property-class.c: Removed a ridiculous line of code that was making all container class properties recognized as packing properties (overlooked from my previous rework in that area). 2006-03-01 Tristan Van Berkom * src/glade-property.[ch], src/glade-widget.[ch]: Added "catalog_default" arg to glade_property_new() and adjusted callers. * src/glade-property-class.[ch]: Ensure that there are always ->def and ->orig_def members resolved. 2006-03-01 Juan Pablo Ugarte * src/glade-gtk.c: o GtkBox loading issues fixed. o Removed unused code from: glade_gtk_table_has_child and glade_gtk_table_refresh_placeholders. * src/glade-widget.c: o Ignore properties properly when creating the object. (glade_widget_params_from_widget_info and glade_widget_build_object functions) o Use the introspected default value for properties when loading a project. glade_widget_properties_from_widget_info * widgets/gtk+.xml.in: Avoid warnings. o Ignore GtkWidget has-default property. o Ignore GtkComboBox active, column-span-column and row-span-column properties. 2006-02-27 Vincent Geddes * src/glade-utils.c: Added file filters "All Files" and "Glade Files" to FileChooser Dialog. * src/glade-project-window.c: FileChooser save dialog uses 'project->name' or 'project->path' as initial selected filename so that dialog is more intuitive to user. 2006-02-24 Tristan Van Berkom * src/glade-command.c: o Added packing property recording mechianism to create/delete commands (was only there for Cut/Paste). o Call glade_widget_create_packing_properties after calling glade_widget_class_container_add() * src/glade-gtk.c, widgets/gtk+.xml.in: o Removed unused code from glade_gtk_table_add_child() o Added support funcs glade_gtk_container_add/remove_child() * src/glade-property-class.c: Removed unused function: gpc_load_function (now uses glade-xml-utils implementation) * src/glade-widget.[ch]: exposed glade_widget_create_packing_properties() 2006-02-23 Tristan Van Berkom * TODO: Updated list * doc/glade-sections.txt: Updated list * doc/tmpl/*: updated templates from source * src/glade-builtins.[ch]: Implemented GladeParamSpecObjects and GLADE_TYPE_GLIST boxed type (intended use for AtkRelation properties). * src/glade-command.c, src/glade-gtk.c: Fixed refcounting for placeholders. (updated code for glade_widget_new () also) * src/glade-project-window.c: Fixed parenthesis in complex statement. * src/glade-property-class.[ch]: o Added support for atk property detection & GladeParamSpecObjects. o Added some more logic that belonged here and was in glade-widget-class.c o Fixed "make gvalue from object" logic to not leak a reference to a pixbuf (it doesnt crash with pixbuf manipulation... not sure if we dont leak pixbufs though). * src/glade-property.c: Simplified code (and fixed limitation of optional properties to integer inputs... now any property can be optional). Added implicit case to ignore atk_properties * src/glade-widget-class.c: Deffered some logic to glade-property-class and simplified code; also added support for atk properties. ATK: Disabled for now, not completely implemented... needs save support in glade-property and edit support in GladeEditorProperty... just needed to sync CVS for all the other relevent work. * src/glade-widget.[ch]: glade_widget_new () takes a boolean query arg now * src/glade-xml-utils.[ch]: now has glade_xml_load_sym_from_node() (it makes sence here because we have access to the xml node structs; so we can debug around here a little easier). * src/glade-editor-property.c: Added prelimenary support for GladeParamSpecObjects (readonly view of glade_widget_class_make_string_from_gvalue() ). * src/glade-fixed-manager.c: Adjusted caller to glade_widget_new(). * src/glade.h: added "atk-relation" tag definition. 2006-02-21 Tristan Van Berkom * src/glade-editor.c: Packing GladeEditorProperties were being loaded with "use-command" = FALSE, fixed. 2006-02-21 Juan Pablo Ugarte * src/glade-gtk.c: fixed bug 325791. Various GtkTable and GtkBox support fixes. (added glade_gtk_table_verify_*_attach, glade_gtk_box_set_child_property and glade_gtk_box_remove_child functions) * src/glade-command.c: fixed bug 330305. Added glade_command_placeholder_destroyed() destroy handler. * src/glade-project.[ch]: added loading state to projects, glade_project_is_loading() * widgets/gtk+.xml.in: added GtkTable child-set-property-function, replace-child-function and attach child properties. Added GtkBox remove-child-function and child-set-property-function. 2006-02-15 Tristan Van Berkom * src/glade-utils.c: Emergency commit for broken cvs. 2006-02-14 Tristan Van Berkom * TODO: Updated the list. * src/glade-widget.c: Fixed bug in glade_widget_dup_internal () (stupid typo of mine when fixing 320077) * src/glade-utils.[ch]: Removed all the Cut/Copy/Paste/Delete stuff, now all in GladeApp. * src/glade-app.c: - Moved the bulk of code from glade-utils to glade-app (cut/copy/paste/delete) since it was confusing to see the chain of events, it should be simpler overall now. - Revamped glade_app_config_save() to report errors smoothly (fixes bug 310141) * doc/glade-sections.txt, doc/tmpl/*: Adjusted doc structure for new apis and removed old apis. * src/glade-project-window.c: Now the statusbar message shows the correct project name after "Save As...". 2006-02-13 Tristan Van Berkom * src/glade-command.c: No more glade_util_ui_message(), deffer that to callers, g_critical() messages added where inapropriate states are detected. * src/glade-utils.c: Take some responsability when calling glade_command for Cut/Copy/Paste/Delete. * src/glade-widget.c: Documented some functions, special-cased GtkWindow in glade_widget_dup_internal(), replicating copied GtkWindow "run-time" sizes (bug 320077). Removed useless special-cased call to gtk_widget_show_all() also in glade_widget_dup_internal(); showing widgets is taken care of in glade_widget_show(). 2006-02-10 Tristan Van Berkom * doc/*.sgml, doc/tmpl/*.sgml: Finished writing up short and long descriptions for all generated docs, also fixed up main page a bit. 2006-02-09 Tristan Van Berkom * configure.in: Glade 3.0 --> Glade-3 * doc/tmpl/*.sgml, doc/*.sgml, src/*.c: Massive doc updates, migrated some doc from sgml into source files. 2006-02-08 Tristan Van Berkom * configure.in: Require gtkdocize 1.4 * doc/Makefile.am: Ignore glade-popup.h * doc/children.sgml, doc/gladeui-docs.sgml, doc/tmpl/glade-app.sgml, doc/tmpl/glade-project.sgml, doc/tmpl/glade-widget.sgml: Doc updates. * src/glade-project.c: Made project signals have object type args for GladeWidgets (of type GLADE_TYPE_WIDGET). * src/glade-widget.c: GladeWidget GType is now registered as "GladeWidget" and not "Gladewidget". 2006-02-08 Tristan Van Berkom * doc/Makefile.am, Added Files: doc/gladeui-docs.sgml, doc/gladeui-overrides.txt, doc/gladeui-sections.txt, doc/gladeui.types, Removed Files: doc/glade-docs.sgml, doc/glade-sections.txt, doc/glade.types: Making doc module called "gladeui" instead of "glade" to represent the libgladeui library, mostly just to make sure we have namespace wherever we install (since "glade" docs could concievably come from libglade, glade-2 or whatever), these are the initial revisions of these files anyway, so no need to surgically move the cvs history. 2006-02-07 Tristan Van Berkom * src/glade-property.c: Fixed up blurbs on installed properties * src/glade-editor-property.c: Added tooltips on i18n dialog. * configure.in: Now really bumping the required GTK+ to 2.8 2006-02-07 Tristan Van Berkom * 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 * configure.in Added vi in ALL_LINGUAS line. 2006-02-03 Tristan Van Berkom * TODO: Updated (removed bugs 317949, 329514 and 324389 from list). * src/Makefile.am: Added glade-custom.[ch] to the libgladeui library. * src/glade-fixed-manager.c: Fixed comment * src/glade-placeholder.c: Removed redundant code * src/glade-property.c: Added myself as an author since I rewrote this file as an object. * src/glade-custom.[ch]: New files, custom widget derivatives to emulate custom widgets as provided by glade 2 (fixes bug 317949) * widgets/gtk+.xml.in: added Custom widgets to the obsolete group. * src/glade-editor-property.c: - Added glade_editor_property_commit which fixes bug 329514. - Fixed conflict in sensitivity and enabled for optional properties (noticably, now optionaly defaulted to disabled properties show up insensitive untill you check them). - Enhanced title of object selection dialog. * src/glade-project-window.c: Filtered out cut/copy/paste accelerators from the editor window (fixing bug 324389). 2006-02-01 Tristan Van Berkom * TODO: Added bug 329514 to blockers. * widgets/adding-widgets.txt: Added technical notes for get-function and verify-function 2006-01-31 Juan Pablo Ugarte * src/glade-gtk.c: o glade_gtk_menu_editor_reorder () fixed, so you can move a submenu item into the menubar. o glade_gtk_menu_bar_append_new_item () now sets "stock" property. o glade_gtk_menu_editor_is_child () item has to be a GtkMenuItem. (this prevents treeview to be refresh when adding an image to an item :) * widgets/gtk+.xml.in: added new GtkMenuBar displayable values for properties child-pack-direction and pack-direction. 2006-01-30 Tristan Van Berkom * src/glade-project.c: Fixed a stupid segfault typicly in strcmp(). * TODO: first go at blockers for glade-3 beta release. 2006-01-28 Tristan Van Berkom * src/glade-editor-property.c: GladeEPropFlags now shows treeview directly in editor - Mikael Hermansson * src/glade-project.[ch]: Removed "resource-updated" signal, added "resource-added" signal, now resource signals seem to be working more logicly (but there will be no signal fired when a resource's contents is overwritten from a different source). 2006-01-26 Tristan Van Berkom * configure.in: Relesed 2.91.0, now we are working on 2.91.1