2009-10-19 Pierre Wieser * NEWS: Updated. * src/nact/nact-imenubar.c: Remove New menu and Preferences cross-references. * src/nact/nact-window.c (nact_window_signal_connect): Check GObject validity. 2009-10-14 Pierre Wieser * src/nact/nact-window.c (instance_dispose): Only disconnect not null handlers. * src/nact/nact-main-window.c (get_selected_object): Only returns an object when selection is unique. * src/nact/nact-imenubar.c: * src/nact/nautilus-actions-config-tool.actions: Remove New menu and Preferences items. * po/POTFILES.in: * src/nact/Makefile.am: New file src/nact/nact-assistant-export.ui. * src/nact/nact-assistant.c: * src/nact/nact-assistant.h (get_ui_fname): New virtual function. * src/nact/nact-assistant-export.c: Define a specific UI filename. * src/nact/nautilus-actions-config-tool.ui: Make some ids unique inside the file (why not all ??) 2009-08-30 Pierre Wieser * data/nautilus-actions.schemas.in: Remove schema for 'Use submenu' preference. Add schemas for 'Add About' and 'Alphabetical order' preferences. * doc/objects-hierarchy.odg: Update doc to show new NAObjectItem and NAActionMenu classes. * src/common/na-action-class.h: NAAction is now derived from NAObjectItem. * src/common/na-action-profile.c: Remove PROP_NAPROFILE_NAME and PROP_NAPROFILE_LABEL properties. Remove duplicate() virtual function. Add new() and get_clipboard_id() virtual functions. * src/common/na-action.c: Remove PROP_NAACTION_UUID, PROP_NAACTION_LABEL, PROP_NAACTION_TOOLTIP and PROP_NAACTION_ICON properties. Remove duplicate() and check_edited_status() virtual functions. Add new() and get_clipboard_id() virtual functions. * src/common/na-action-menu.c: * src/common/na-action-menu.h: New files. * src/common/na-gconf.c: Now watches for preferences directory to manage display mode in Nautilus. * src/common/na-iduplicable.c: * src/common/na-iduplicable.h: Replace duplicate() virtual function with copy() and new(). All interface is now declared with NAIDuplicable instead of NAObject. * src/common/na-iio-provider.c: * src/common/na-iio-provider.h: Temporarily sort read actions. Define NA_IIO_PROVIDER_SIGNAL_DISPLAY_ORDER_CHANGED and NA_IIO_PROVIDER_SIGNAL_DISPLAY_ABOUT_CHANGED new signals. * src/common/na-ipivot-consumer.c: Take advantage of new signals defined in na-iio-provider.h. Define on_display_about_changed() and on_display_order_changed() new virtual functions. * src/common/na-iprefs.c: * src/common/na-iprefs.h (na_iprefs_get_alphabetical_order, na_iprefs_get_add_about_item): New functions. * src/common/na-object.c: * src/common/na-object.h (new, copy, get_clipboard_id): New virtual functions. * src/common/na-object-item.c: * src/common/na-object-item.h: New files. * src/common/na-pivot.c: Take advantage of new signals defined in na-iio-provider.h. * src/common/na-utils.c: * src/common/na-utils.h (na_utils_remove_last_level_from_path, na_utils_is_writable_dir, na_utils_exist_file): New functions. * src/common/na-xml-writer.c: * src/common/na-xml-writer.h (na_xml_writer_get_output_fname, na_xml_writer_get_xml_buffer, na_xml_writer_output_xml): New functions. * src/nact/egg-tree-multi-dnd.c: * src/nact/egg-tree-multi-dnd.h: New files. * src/nact/nact-application.c: No more display debug message in appli_get_application_name(). * src/nact/nact-assistant-export.c (on_actions_list_selection_changed): Use actual parameters types. (is_writable_dir): Removed function. * src/nact/nact-iaction-tab.c: * src/nact/nact-iaction-tab.h (get_selected): Removed virtual function. (nact_iaction_tab_set_action): Add selected items parameter. * src/nact/nact-iactions-list.c: * src/nact/nact-iactions-list.h: Implements drag from the tree view based on a dedicated NactTreeModel. Remove virtual function on_selection_changed(). nact_iactions_list_get_selected_items(), nact_iactions_list_set_dnd_mode(): New functions. * nact/nact-imenubar.c: * nact/nact-imenubar.h: Add 'New menu' item in the menubar. Define new insert_item() virtual function. * src/nact/nact-main-window.c: * src/nact/nact-main-window.h: Implements NaIPrefs interface. Be kept informed of preferences modifications. * src/nact/nact-preferences-editor.c: Replace 'Display as submenu' by 'Add About' and 'Display in alphabetical order' preferences. * src/nact/nact-selection.c: * src/nact/nact-selection.h: New files. * src/nact/nact-tree-model.c: * src/nact/nact-tree-model.h: New files. * src/plugin/nautilus-actions.c: Creates submenus if asked for. Adds 'About Nautilus Actions' item is asked for. 2009-08-25 Pierre Wieser * configure.ac: Add a comment about bug #589745. Add a comment about nautilus_menu_provider_emit_items_updated_signal(). * src/common/na-object.h: Fix typo. * src/common/na-iio-provider.c: Sort the actions in the same order as they are displayed. * src/nact/nact-assistant.c: * src/nact/nact-assistant.h: Implement a work-around for bug #589745 (apply message). Remove on_escape_key_pressed() virtual function. * nact/nact-assistant-export.c: * src/nact/nact-assistant-import.c: Can now do the operations in the on_assistant_apply() functions. * src/nact/nact-iactions-list.c: Returns selected actions in the same order as they are displayed. 2009-08-24 Pierre Wieser * Makefile.am: make distcheck uses now '--enable-iso-c' option. * configure.ac: Add '-pedantic' as '--enable-iso-c' default option. Add also '-Wno-overlength-strings' to handle long strings in src/common/xml-names.h. * m4/na-compiler-flags.m4: Fix '--enable-iso-c' macro to correctly handle provided values. * src/common/na-about.c: * src/common/na-action-profile.c: * src/common/na-action.c: * src/common/na-gconf.c: * src/common/na-iduplicable.c: * src/common/na-iio-provider.c: * src/common/na-iio-provider.h: * src/common/na-ipivot-consumer.c: * src/common/na-iprefs.c: * src/common/na-object.c: * src/common/na-pivot.c: * src/common/na-utils.c: * src/common/na-xml-writer.c: * src/nact/base-application.c: * src/nact/base-window.c: * src/nact/nact-application.c: * src/nact/nact-assistant-export.c: * src/nact/nact-assistant-import.c: * src/nact/nact-assistant.c: * src/nact/nact-iaction-tab.c: * src/nact/nact-iactions-list.c: * src/nact/nact-iadvanced-tab.c: * src/nact/nact-icommand-tab.c: * src/nact/nact-iconditions-tab.c: * src/nact/nact-imenubar.c: * src/nact/nact-iprefs.c: * src/nact/nact-main-window.c: * src/nact/nact-preferences-editor.c: * src/nact/nact-window.c: * src/nact/nact-xml-reader.c: * src/plugin/nautilus-actions.c: * src/plugin/nautilus-module.c: * src/test/test-parse-uris.c: * src/utils/nautilus-actions-new.c: * src/utils/nautilus-actions-schemas.c: Compile with -pedantic gcc option. * src/common/na-xml-names.h: Long names are rewritten on several lines for more readability. * src/nact/nact-assistant.c: * src/nact/nact-window.c: Remove superfluous calls to g_type_init(). * src/nact/nact-imenubar.c: Do not try to delete an object when the list is empty (as Delete accelerator is always active, even if the Delete menu item is not). 2009-08-23 Pierre Wieser Get rid of unwanted notifications. Use UI Manager. * src/common/na-ipivot-consumer.c: * src/common/na-ipivot-consumer.h (na_ipivot_consumer_delay_notify): New function. * src/common/na-object.c: Accept NULL origin. * src/nact/base-application.c: Fix #592781: use explicit format strings. Fix test of virtual functions which caused double calls. * src/nact/nact-application.c: Remove the UI_XML_FILENAME variable. * src/nact/nact-imenubar.c: Rewrite save function to allow saving all modified actions in one pass. Take advantage of na_ipivot_consumer_delay_notify(). Use UI Manager, thus removing all helper functions. Remove nact_imenubar_on_delete_key_pressed() function. * src/nact/nact-main-window.c: No more call nact_imenubar_on_delete_key_pressed() function. * src/nact/nautilus-actions-config-tool.actions: Add Preferences item in the Edit menu. 2009-08-21 Pierre Wieser Add About Nautilus Actions item in Nautilus context menu. * src/common/na-about.c: * src/common/na-about.h: New files. * po/POTFILES.in: * src/common/Makefile.am: Updated accordingly. * src/nact/nact-application.c: Call na_about_get_icon_name() to get application default icon. * src/nact/nact-imenubar.c: Call na_about_display() to display About dialog box. * src/plugin/nautilus-actions.c: Add About Nautilus Actions item in Nautilus context menu. 2009-08-20 Pierre Wieser Display actions as a submenu. * data/nautilus-actions.schemas.in: Add schemas for Preferences dialog and AsSubmenu option. * src/common/na-iprefs.c: * src/common/na-iprefs.h: New files. Manage preferences which are used by Nautilus-Actions plugin. * src/common/na-gconf.c: Fix typo. * src/common/Makefile.am: Updated accordingly. * src/nact/nact-application.c: Rename GLADEDIR to PKGDATADIR. Rename GLADE_FILENAME to UI_XML_FILENAME. * src/nact/nact-imenubar.c: Add an item in the menubar to run the Preferences dialog. Rename MenuBarVBox to MenubarVBox to be consistent with Statusbar. * src/nact/nact-iprefs.c: * src/nact/nact-iprefs.h: Fix typos. * src/nact/nact-preferences-editor.c: * src/nact/nact-preferences-editor.h: New files. Let the user edit its preferences. * src/nact/nautilus-actions-config-tool.ui: Creates the PreferencesDialog dialog. Enabled and ReadOnly checkboxes no longer expand to all dialog width to minimize focus errors. Rename MenuBarVBox to MenubarVBox to be consistent with Statusbar. * src/nact/Makefile.am: Updated accordingly. Rename GLADEDIR to PKGDATADIR. * src/plugin/nautilus-actions.c: Take into account the DisplayAsSubmenu preference. 2009-08-19 Pierre Wieser * src/nact/nact-statusbar.c: * src/nact/nact-statusbar.h: New files. * src/nact/nact-iaction-tab.c: * src/nact/nact-iaction-tab.h: * src/nact/nact-icommand-tab.c: * src/nact/nact-icommand-tab.h: * src/nact/nact-imenubar.c: * src/nact/nact-imenubar.h: * src/nact/nact-main-window.c: * src/nact/nact-main-window.h: Updated to take advantage of new nact_statusbar_display_status() and nact_statusbar_hide_status() functions. Removed get_status_bar() virtual functions from the interfaces. 2009-08-18 Pierre Wieser * src/nact/base-application-class.h: * src/nact/base-application.c: * src/nact/base-application.h: Rewrite BaseApplication base class, and document all public and virtual functions. Define exit codes when an error occurs. Define some standard error messages. * src/nact/nact-application.c: * src/nact/nact-application.h (appli_initialize_unique_app): Customize error message. (appli_initialize_application): Complete application initialization. * src/nact/nact-xml-reader.c: Add nact-main-window.h header. * src/nact/nact-iaction-tab.c: * src/nact/nact-iaction-tab.h: * src/nact/nact-iadvanced-tab.c: * src/nact/nact-iadvanced-tab.h: * src/nact/nact-icommand-tab.c: * src/nact/nact-icommand-tab.h: * src/nact/nact-iconditions-tab.c: * src/nact/nact-iconditions-tab.h: Remove nact_ixxxx_tab_reset_last_focus function. Remove focus-in-event and switch-page signal connections. * src/nact/nact-main-window.c: No more call nact_ixxxx_tab_reset_last_focus functions.