2004-05-09 Dodji Seketeli * configure.in: make mlview depend on libxml2 2.5.11 and libxslt 1.0.33 (at least) * src/mlview-parsing-utils.c: make this compile with libxml2 < 2.6. * src/mlview-app.c: updated copyright in the about dialog box. * NEWS: updated this. * src/mlview-parsing-utils.c: (mlview_resolve_external_entity): smalling fix here in the resolution algorithm. Better handling of local dtds not addressed by the system catalog. * docs/release-notes-template.xml, docs/release-notes-template.xhtml: Updated the release notes. * configure.in: bumped version-info to 5:0:0. 2004-05-08 Dodji Seketeli * src/mlview-xml-document.c: (search_in_node): Search in attributes of element nodes only. This fixes http://bugzilla.gnome.org/show_bug.cgi?id=142152 . Also make this go look into more types of nodes. * po/de.po: update of German translation by Daniel Holbach. * src/main.c,src/mlview-editor.c: applied a path from Daniel Holbach to fix several string errors. * docs/mlview-internals/src/mlview-internals2.xml: went forward in writting this. * src/mlview-app-context.c: (mlview_app_context_message): make this come back to life. * src/mlview-utils.c: (mlview_utils_display_message_dialog): added this method to display info dialogs. * src/mlview-xml-document.c: (mlview_xml_document_dispose): fixed a crasher here during xmlDoc/xmlDtd destruction. Basically disociate the document and the dtd because (in our case) they don't share the same string dictionnary. Otherwise, xmlFreeDtd() crashes. * src/mlview-icon-tree.c: (node_cell_edited_cb): Add support for cdata section editing. * src/mlview-tree-editor2.c: (build_tree_model_from_xml_tree): (node_cell_edited_cb): add support for cdata section editing. (mlview_tree_editor2_edit_cdata_section_node): Created this new method for cdata node editing. * src/mlview-utils.c: (mlview_utils_parse_cdata_section): Created this helper method to parse cdata node tag. * src/main.c: fixed a string typo. * src/mlview-icon-tree.c: handle the readonly support of cdata section nodes. * src/mlview-node-editor.c: implement the semi transaction scheme for cdata section node to fix the bad memory management bug that happens when the node editor is used. Do the same thing fo comment nodes. * src/mlview-tree-editor2.c: handle the readonly support of cdata section nodes. 2004-05-07 Dodji Seketeli * src/mlview-node-editor.c: In the element node view, implement the transaction scheme to update the document model. * docs/mlview-internals/src/mlview-internals2.xml: went forward on this. * src/mlview-node-editor.c: Started to code a mini editing transaction support for the text nodes. This solves some big memory management problems and should be applied to all the types of nodes. More on this later ... 2004-05-05 Dodji Seketeli * docs/release-notes-template.xhtml, docs/release-notes-template.xml: Started to update the release notes. 2004-05-04 Dodji Seketeli * src/mlview-attrs-editor.c: (attr_name_cell_edited_cb): Make sure we can't have two attributes with the same name. This should fix http://bugzilla.gnome.org/show_bug.cgi?id=132756 . * src/mlview-tree-editor2.c: (mlview_tree_editor2_add_child_node): (mlview_tree_editor2_insert_sibling_node): make sure we don't end up with two root elements. This fixes http://bugzilla.gnome.org/show_bug.cgi?id=130251 . 2004-05-03 Dodji Seketeli * src/mlview-parsing-utils.c: (mlview_external_subset_sax_handler): fix a silly bug here, otherwise we won't load the dtd. (mlview_parsing_utils_validate_dtd): Initialise the validation context to zero, otherwise validation is b0rked. This fixes http://bugzilla.gnome.org/show_bug.cgi?id=141664 . (mlview_parsing_utils_build_element_name_completion_list): Do a hack here to workaround a libxml2 regression: Do xmlGenericError = NULL before calling xmlValidGetValidElements() and call xmlSetGenericErrorFunc after otherwise xmlValidGetValidElements keeps dumping error messages. * tests/validation/valid.dtd,tests/validation/valid.xml: modify this so that valid.xml validates. * po/POTFILES.in: added src/mlview-styled-view.c, ui/mlview-main-app-win.glade and ui/mlview-css-picker.glade here. * configure.in: replace AM_PROG_LIBTOOL with AC_PROG_LIBTOOL as the former is deprecated in libtool > 1.4.x 2004-05-02 Dodji Seketeli * schemas/Makefile.am: make the schemas go in $(GCONF_SCHMA_FILE_DIR). This fixes http://bugzilla.gnome.org/show_bug.cgi?id=135429 . * src/mlview-icon-tree.h: fix the MLVIEW_TYPE_ICON_TREE macro. * src/mlview-editor.c: (mlview_editor_load_xml_file): convert relative file path to absolute one. This is way safer. * src/mlview-parsing-utils.c: (load_xml_document_from_local_file): don't forget to overload the resolveEntity callback with our own mlview_sax_resolve_entity(). (mlview_resolve_external_entity): if the external entity *paths* haven't been resolved via the catalog, check if the system id is reachable in the file system. (mlview_parsing_utils_ask_for_DTD_change_and_validation): change the signature and code of this function to make sure to convert the relative uri of the dtd into an absolute one using the document uri as a base, hence the modification of mlview_editor_load_xml_file(). This should fix http://bugzilla.gnome.org/show_bug.cgi?id=127072 . (mlview_parsing_utils_load_a_dtd): Ported this over libxml 2.6 series and above without breaking it on libxml2 < 2.6. * src/mlview-utils.c: (mlview_utils_uri_is_relative): (mlview_utils_relative_uri_to_absolute_uri): (mlview_utils_get_dir_name_from_uri): Added these new helper functions. 2004-05-01 Dodji Seketeli * autogen.sh: unplugged the styled view by default. * schemas/mlview.schemas, src/mlview-app-context.c, src/mlview-app-context.h, src/mlview-tree-editor2.c, src/mlview-tree-view.c, src/mlview-view-adapter.c: Applied a patch sent by Nicolas Centa to support element name completion in the popup menu. 2004-05-01 Adam Weinberger * configure.in: Added en_CA to ALL_LINGUAS. 2004-04-09 Gareth Owen * configure.in: Added en_GB to ALL_LINGUAS 2004-02-28 Dodji Seketeli * src/mlview-parsing-utils.c: (mlview_external_subset_sax_handler): start to make the parsing facilities more libxml2 2.6.xx friendly. * configure.in: forced mlview to use libxml2 2.6.6 and libxslt 1.1.2 2004-02-26 Dodji Seketeli * config.h.in,configure.in: define the macro LIBXML_2_6_SERIES_OR_ABOVE when we use libxml2 2.6.xx. This will be useful in the process of cleaning up the way we use libxml2 (given the new api in 2.6) without breaking the 2.N.xx (N<6) series. 2004-02-24 Dodji Seketeli * src/mlview-app.[ch]: (set_editing_enabled): better enabling/disabling of editing when its needed. * src/mlview-tree-view.c: now some menuitems of the contextual menu are disabled to prevent the user to perform unwanted editing actions, or enabled when applicable. 2004-02-21 Dodji Seketeli * src/mlview-editor.c: (mlview_editor_confirm_close): removed a warning. * src/mlview-iview.[hc]: removed a crasher related to bad signal handling. * src/mlview-node-editor.c: (xml_doc_node_unselected_cb): (mlview_node_editor_connect_to_doc): connect to and handle the "node-unselected" signal. * src/mlview-styled-view.c: removed the update_from_cascade() function. * src/mlview-tree-editor2.c: make sure to disconnect from the "content-changed" signal of xml-document . * src/mlview-view-adapter.c: made a lot of cleanup. * src/mlview-xml-document.[ch]: add a "node-unselected" signal emited just before selecting a new node. 2004-02-18 Dodji Seketeli * ui/mlview-css-picker.glade: applied a patch from Stephane Bonhomme to fix a stupid error I have made. 2004-02-18 Dodji Seketeli * autogen.sh: enable default arguments even when users provide some. * src/mlview-app-context.[ch], src/mlview-app.[ch], src/mlview-editor.[ch]: Editing is now enabled only when editing views are opened. * src/mlview-iview.h: fix a nasty crasher already fixed in HEAD. * src/mlview-tree-view.c: start working on the support of contextual menu enabling/disabling depending on the ... context. 2004-02-15 Dodji Seketeli * docs/mlview-internals/uml/mlview-class-diagram.dia, docs/mlview-internals/uml/mlview-class-diagram.png: added this uml class diagram of the project. 2004-02-15 Dodji Seketeli * src/mlview-iview.h: First field of struct _MlViewIView should be a field of type GTypeInterFace g_iface. 2004-02-15 Dodji Seketeli * src/mlview-iview.[ch]: changed the prototype of the "name-changed" signal here. * src/mlview-view-adapter.c: removed the "name-changed" signal as this signal is already defined by the parent interface already. This is a possible crasher. We rely on the "name-changed" signal of MlViewIView instead. 2004-02-14 Dodji Seketeli * src/mlview-app.c: (init_app_win): make sure to set a default icon for all mlview windows. src/mlview-editor.c: (mlview_editor_select_view_to_open), (mlview_editor_create_new_view_on_document) applied a patch from Stephane Bonhomme. This patch lets the user choose the kind of view she want to use to edit a document. It is triggered whenever the user clicks in "action->new view on document". 2004-02-09 Sebastien Bacher * src/mlview-app.c: (close_application), (delete_event_cb): * src/mlview-editor.[ch]: (mlview_editor_close_all_xml_documents_interactive), (mlview_editor_confirm_close): Fixed bug with cancel on the exit dialog (Closes: #130184). Added name, of the document to save, to the dialog. 2004-02-09 Dodji Seketeli * src/mlview-editor.c: (mlview_editor_add_xml_document_view): don't forget to set the view name even when the name is "untitled". 2004-02-07 Robert Sedak * configure.in: Added "hr" (Croatian) to ALL_LINGUAS. 2004-02-05 Dodji Seketeli * src/mlview-styled-view.c: wired up the editing support of the left hand tree editing widget to it's contextual menu. 2004-02-04 Dodji Seketeli * configure.in: fixed some typos in the options enabling. * src/mlview-app-context.[ch]: (mlview_app_context_ask_internal_subset_node_name): put this new function here. This is the result of a small refactoring task. * src/mlview-styled-view.c: coded a cascade selection dialog. Went forward in editing support wiring of the left hand tree editor, especially the contextual menu stuff. Started to add some facility to reload css (broken atm) and to dump the box model (this still needs some love). * ui/mlview-css-picker.glade: new glade file added (for the css selection dialog) 2004-02-01 Dodji Seketeli * src/mlview-node-type-picker.c,src/mlview-tree-editor2.c: applied a patch from nicolas to address http://bugzilla.gnome.org/show_bug.cgi?id=132034. 2004-01-31 Luuk de Waard * src/main.c: * src/mlview-editor.h, src/mlview-xml-document.h: * src/mlview-editor.c, src/mlview-xml-document.c: Added --dtd/-d commandline option Changed mlview_xml_document_open, mlview_editor_load_xml_file Added mlview_xml_document_open_with_dtd Added mlview_editor_load_xml_file_with_dtd Bugzilla: 131372 2004-01-31 Sebastien Bacher * src/mlview-attrs-editor.c: (mlview_attrs_editor_construct), (tree_key_press_cb): allow to delete the selected attribute by pressing the Del key in the list of the attributes. 2004-01-31 Dodji Seketeli * tests/test4.xml: new test file. 2004-01-31 Dodji Seketeli * src/mlview-editor.c: removed every reference to mlview_tree_view_*** and replaced it with the new multi-type-of-view scheme. * src/mlview-styled-view.c: properly connected the tree editing widget to the document object model -> it does editing in this view now. Also added some api documentation here. Well, it seems like hacking in the bus makes me write some api doc ... sweet. 2004-01-29 Kjartan Maraas * configure.in: Added "no" to ALL_LINGUAS. 2004-01-29 Dodji Seketeli * tests/test3.xml: added this new simple test file 2004-01-27 Dodji Seketeli * src/mlview-editor.c: added the "styled-view" to the table of possible views. Still have to remove all references to mlview_tree_view_* from this file though. * src/mlview-styled-view.c: (mlview_styled_view_new) : added this new entry point. (mlview_styled_view_construct): make this work. 2004-01-25 Dodji Seketeli * autogen.sh: configure --enable-style=yes --enable-verbose=yes by default in development mode. * config.h.in: defined MLVIEW_VERBOSE and MLVIEW_WITH_STYLE macros to control when the styled view is switched on and when verbose debug message dumping should be switched on. * src/main.c: removed include config.h. * src/mlview-app-context.h: include config.h here. * configure.in: autotool plumbering to support what's above. * src/Makefile.am: added new files mlview-styled-view.[hc] to the build system 2004-01-24 Dodji Seketeli * src/main.c: some smallish cleanups. 2004-01-24 Dodji Seketeli * src/mlview-editor.[ch]: (mlview_editor_create_new_view_on_document): wired the support of the semi-dynamic editing view type choice. 2004-01-22 Dodji Seketeli * src/mlview-app-context.[ch]: added a new gconf key to define the name of the default editing view. * src/mlview-editor.c: (mlview_editor_load_xml_file): added the ability to semi-dynamically instanciate editing views, based on their name. 2004-01-22 Dodji Seketeli * src/mlview-app-context.[ch]: added a signal plumbering to notifies views' swapping. * src/mlview-app.c: make the main menu bar accessible from the application context. * src/mlview-editor.c: notify the application (via the application context) when views swap * src/mlview-tree-editor2.c: (button_press_event_cb)fix some bad button press handling here. * src/mlview-tree-view.c: added the ability to detect when this view comes up front (swapped). 2004-01-17 Dodji Seketeli * src/mlview-completion-table.c,src/mlview-tree-view.c, src/mlview-xml-document.c: applied a patch from Nicolas Centa to make the presence of the completion widget be contextual. Made some minor modifications to prevent some smallish potential problems. 2004-01-17 Dodji Seketeli * src/mlview-app.c,ui/mlview-main-app-win.glade: added "associate dtd, validate doc and apply xslt" menuitems to the Action menu. * src/mlview-tree-view.c: added several menu items to the contextual menu. 2004-01-15 Dodji Seketeli * src/mlview-tree-view.c: Wired the contextual menu to real editing actions. (mlview_tree_view_dispose): make sure to disconnect from signal we connect to on objects which life time is longer than ours. Otherwise, bang. 2004-01-15 Dodji Seketeli * src/mlview-app-context.c: (mlview_app_context_init_clas): fixed some bugs in signal creation * src/mlview-editor.c: (mlview_editor_load_xml_file): unwired some button-pressed event handling code that had nothing to do here. * src/mlview-tree-editor2.c: used the new (still wet) contextual menu architecture to signal a contextual menu request when needed. * src/mlview-tree-view.c: started to connect to the contextual menu request signal and build the menu. 2004-01-13 Dodji Seketeli * src/mlview-app-context.[ch]: (mlview_app_context_notify_contextual_menu_request): This new function adds the ability for editing widget to signal that a user wants a contextual menu. * src/mlview-app.c: (mlview_app_new) fix a crash prone memory management error. * src/mlview-tree-view.c: (mlview_tree_view_handle_contextual_menu_request) (contextual_menu_requested_cb): added these functions to handle the contextual menu requests comming from editing widgets. 2004-01-12 Dodji Seketeli * po/POTFILES.in: added src/mlview-completion-table.c into the translatable files list. * ui/Makefile.am: removed the mlview-main-app-win.glade file that has nothing to do in HEAD right now. 2004-01-12 Dodji Seketeli * src/mlview-tree-view.c: (mlview_tree_view_build_contextual_menu), (mlview_tree_view_get_contextual_menu): started to write the contextual menu code. * src/mlview-app.c: (connect_menu_and_toolbar_signals) (init_menu_and_tool_bar): do the necessary signal plumbing to wire the basic editing functionalities. * ui/mlview-main-app-win.glade: more gui-fu here. 2004-01-11 Dodji Seketeli * pixmaps/Makefile.am: cleanup icon naming and packaging. * src/main.c,src/mlview-app-context.[ch],src/mlview-app.[ch], src/mlview-editor.[ch], src/mlview-utils.[ch], ui/Makefile.am: started a big refactoring to replace the GnomeApp-&-co based application container building scheme by a scheme based on glade. This the start of the final work toward the support of multi-type-of-editing-views. 2004-01-11 Dodji Seketeli * src/mlview-xml-document.c,src/mlview-utils.[ch], src/mlview-xml-document.c,src/mlview-xslt-utils.c: Applied patch http://bugzilla.gnome.org/showattachment.cgi?attach_id=22740. from Paolo Borelli. That fixes bug http://bugzilla.gnome.org/show_bug.cgi?id=130089 . 2004-01-11 Dodji Seketeli * src/mlview-completion-table.[ch],src/Makefile.am, src/mlview-tree-view.c: applied a patch from Nicolas Centa that provides the current editing view with an completion based entirely based on gtk+-2.xxx 2004-01-11 Dodji Seketeli * revert previous changeset. Screwed up the branch creation. 2004-01-11 Dodji Seketeli * pixmaps/Makefile.am: cleanup icon naming and packaging. * src/main.c,src/mlview-app-context.[ch],src/mlview-app.[ch], src/mlview-editor.[ch], src/mlview-utils.[ch], ui/Makefile.am: started a big refactoring to replace the GnomeApp-&-co based application container building scheme by a scheme based on glade. This the start of the final work toward the support of multi-type-of-editing-views. 2003-12-26 Dodji Seketeli * src/mlview-icon-tree.c: (mlview_icon_tree_load_icons): fixed a typo I've made here. (mlview_icon_tree_free_icons): made this more reliable. * pixmaps/xml-entity-ref-node.png: added this new icone done by Baptiste Mille-Mathias . * src/mlview-node-type-picker.c: (mlview_node_type_picker_init): disactivate combo drowpdown when the "enter" key is hit. This fixes http://bugzilla.gnome.org/show_bug.cgi?id=130027. * src/mlview-tree-editor2.c: (handle_nt_picker_ok_button_clicked_to_add_child) : Stop considering that strings coming from gtk widgets are non utf8. This fixes http://bugzilla.gnome.org/show_bug.cgi?id=130036 . 2003-12-25 Dodji Seketeli * src/mlview-app-context.c: (mlview_app_context_dispose), (mlview_app_context_finalize): fixed a leak here. * short-term-todo.xml: updated TODO list. * pixmaps/Makefile.am: added a new placeholder icon for the new supported entity reference nodes. * src/mlview-icon-tree.c: added read only support for entity reference nodes. * src/mlview-tree-editor2.c: added read only support fo entity ref nodes. Also did a bit of refactoring here. * tests/test2.xml: added a test case for the entity ref nodes. 2003-12-22 Dodji Seketeli * src/mlview-utils.c: (xmlSetEntityNodeName) take care we can not give entity A a name that belongs to entity B. * src/mlview-xml-document.c: (mlview_xml_document_set_entity_node_name) better handling of error cases. 2003-12-21 Dodji Seketeli * src/mlview-attrs-editor.c: added an #include here. * src/mlview-tree-editor2.c: (handle_nt_picker_ok_button_clicked_to_add_child), (handle_nt_picker_ok_button_clicked_to_insert_sibling_node) (mlview_tree_editor2_edit_xml_entity_decl_node): use mlview_xml_document_set_entity_node_name() to set entity node name, not, mlview_xml_document_set_node_name() because entity nodes are special. Editing their name requires special considerations. Basically, this makes the core of entity addition/edition work now. * src/mlview-utils.[ch]: (xmlSetEntityNodeName): added this as the low level function to edit an entity's name. Take care to update the entities dictionary accordingly. * src/mlview-xml-document.[ch]: (mlview_xml_document_set_entity_node_name): added this public api to allow entity name editing. 2003-12-21 Dodji Seketeli * src/mlview-app.c: added a new "create an internal subset" menu item in the "action" menu. * src/mlview-icon-tree.c: added support for internal subset node editing here. Also made a bit of refactoring here. * src/mlview-node-type-picker.c: add support for the 4 entity declaration types. Did some refactoring here too. * src/mlview-tree-editor2.[ch]: added support to add/edit internal subset nodes and also allow an internal subset node can have entity declaration nodes as children nodes. * src/mlview-tree-view.[ch]: allow support for internal subset node creation. * src/mlview-xml-document.[ch]: (mlview_xml_document_create_internal_subset): added this to create internal subset node. 2003-12-19 Dodji Seketeli * src/mlview-icon-tree.c: (build_tree_model_from_xml_tree): make entity decl nodes editable. (node_cell_edited_cb): plug the entity decl nodes edition capabilities. * src/mlview-tree-editor2.c: (node_cell_editor_cb):factorize the entity decl edition, put it in a reusable function and use this function here. (mlview_tree_editor2_edit_xml_entity_decl_node): new function that contains factorize code to edit entity decl node. 2003-12-18 Dodji Seketeli * src/mlview-tree-editor2.c: (entity_node_public_id_changed_cb) (entity_node_system_id_changed_cb) (entity_node_content_changed_cb): new callbacks for entity to handle entity nodes editing events. (node_cell_edited_cb): plug everything to make entity nodes editing work. (mlview_tree_editor2_external_general_parsed_entity_to_string) (mlview_tree_editor2_external_general_unparsed_entity_to_string) (mlview_tree_editor2_external_parameter_entity_to_string): heavily debugged these functions. (mlview_tree_editor2_connect_to_doc): connect to entity nodes editing signals. * src/mlview-utils.c: (mlview_utils_parse_char_ref) (mlview_utils_parse_internal_general_entity) (mlview_utils_parse_internal_parameter_entity): A lot of debugging here too ... * src/mlview-xml-document.[ch]: (mlview_xml_document_set_entity_content) (mlview_xml_document_set_entity_public_id) (mlview_xml_document_set_entity_system_id): added these new entity node editing functions. 2003-12-18 Dodji Seketeli * src/mlview-tree-editor2.c: (build_tree_model_from_xml_tree): enable editing of entity declaration nodes, at least for testing purposes. (node_cell_edited_cb): started to plug the new entity declaration parsing helpers functions here. * src/mlview-utils.c: random debugging here to make the new entity declaration parsing helper function basically work. 2003-12-17 Dodji Seketeli * src/mlview-utils.[ch]: (mlview_utils_parse_external_general_unparsed_entity), (mlview_utils_parse_internal_parameter_entity), (mlview_utils_parse_external_parameter_entity): More helper functions for the read/write support of the entity declaration nodes. 2003-12-17 Dodji Seketeli * src/mlview-tree-editor2.c: (node_cell_edited_cb): prepare the read/write support of entity declaration nodes. * src/mlview-utils.[ch]: (mlview_utils_parse_entity_ref) (mlview_utils_parse_char_ref) (mlview_utils_parse_pe_ref) (mlview_utils_parse_entity_value) (mlview_utils_parse_internal_general_entity) (mlview_utils_parse_external_general_parsed_entity): added these helper functions for the read/write support of entity declaration nodes. 2003-12-15 Dodji Seketeli * src/mlview-utils.c: (mlview_utils_parse_external_id): fixed a small bug in the external id parser. * src/mlview-xml-document.c: (mlview_xml_document_set_dtd_node_system_id) (mlview_xml_document_set_dtd_node_public_id): added these two new methods. * src/mlview-tree-editor2.c: (node_cell_edited_cb): better doctype node editing support based on the enhancements above. 2003-12-14 Dodji Seketeli * src/mlview-utils.c: (mlview_utils_parse_external_id) (mlview_utils_is_pubidchar): added these helper functions for the DOCTYPE node editing support. (mlview_utils_parse_doctype_decl): continued this for the read/write support of DOCTYPE nodes. * src/mlview-tree-editor2.c: (node_cell_edited_cb) started to add an experimental doctype node editing support. 2003-12-10 Dodji Seketeli ================== 0.6.2 release =================