ChangeLog 112 KB
Newer Older
1 2
2010-08-09 Pierre Wieser <pwieser@trychlos.org>

3 4 5
	* src/nact/nact-iaction-tab.c (on_icon_browse):
	Fix incorrect setting of GConf preference.

6 7 8 9 10
	* src/nact/nact-gtk-utils.c:
	* src/nact/nact-gtk-utils.h
	(nact_gtk_utils_get_pixbuf, nact_gtk_utils_render):
	Size parameter is actually of GtkIconSize type.

11 12
2010-08-07 Pierre Wieser <pwieser@trychlos.org>

13 14
	* configure.ac: Bump version number after unstable release.

15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
	Implement auto-save feature.

	* src/core/na-ipivot-consumer.c:
	* src/core/na-ipivot-consumer.h (on_autosave_changed): New interface.

	* src/core/na-iprefs.c:
	* src/core/na-iprefs.h (na_iprefs_read_uint): New function.

	* src/nact/nact-iprefs.c:
	* src/nact/nact-iprefs.h (nact_iprefs_read_uint): Removed function.

	* src/core/na-pivot.c (on_preferences_change):
	Trigger NAIPivotConsumer interface when autosave is changed.

	* src/nact/nact-main-menubar-file.c:
	* src/nact/nact-main-menubar-file.h
	(nact_main_menubar_file_set_autosave): New function.

	* src/nact/nact-main-window.c (ipivot_consumer_on_autosave_changed):
	Implement the new on_autosave_changed() NAIPivotConsumer interface.

	* src/nact/nact-preferences-editor.c (on_base_runtime_init_dialog):
	Replace nact_iprefs_read_uint() with na_iprefs_read_uint().

39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
	Setup auto-save in preferences.

	* data/nautilus-actions-prefs.schemas.in:
	Describe new auto-save-on and auto-save-period preference keys.

	* src/nact/nact-iprefs.c:
	* src/nact/nact-iprefs.h
	(nact_iprefs_read_uint,	nact_iprefs_write_uint): New functions.
	IPREFS_AUTOSAVE_ON, IPREFS_AUTOSAVE_PERIOD: New preference keys.

	* src/nact/nact-preferences-editor.c:
	Update the new auto-save-on and auto-save-period preference keys.


	* src/nact/nact-preferences.ui:
	* src/nact/nautilus-actions-config-tool.ui: New preference frame.

56 57
2010-08-05 Pierre Wieser <pwieser@trychlos.org>

58 59 60 61 62 63 64 65 66
	* src/api/na-core-utils.h:
	* src/core/na-core-utils.c
	(na_core_utils_str_get_first_word): Removed function.
	(na_core_utils_str_split_first_word): New function.

	* src/io-desktop/nadp-reader.c
	(nadp_reader_ifactory_provider_read_done):
	Split the Exec content to get Path and Parameters data.

67 68 69 70 71
	* src/core/na-object-profile-factory.c:
	Review the description of the NAFO_DATA_PARAMETERS data.

	* src/core/na-tokens.h: Update the comment.

72 73 74 75 76 77 78 79 80 81 82 83 84
	* po/POTFILES.in: Add src/core/na-tokens.c file.

	* src/core/na-tokens.c:
	* src/core/na-tokens.h (na_tokens_new_for_example): New function.

	* src/core/na-tokens.c (parse_singular):
	Implement %m and %M parameters for mimetypes.

	* src/nact/nact-icommand-tab.c (parse_parameters):
	Use a fake NATokens object to print an example of the command.

	* src/nact/nautilus-actions-config-tool.ui: Fix some labels.

85 86 87 88 89
2010-08-04 Pierre Wieser <pwieser@trychlos.org>

	* src/core/na-tokens.c (is_singular_exec):
	Implement DES-EMA draft v 0.13 which defines irrelevant parameters.

90 91
2010-08-02 Pierre Wieser <pwieser@trychlos.org>

92 93 94 95
	* src/nact/nact-gtk-utils.c (nact_gtk_utils_get_pixbuf):
	* src/nact/nact-iaction-tab.c (on_icon_changed):
	Fix bad reinitialization of the icon item.

96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115
	* doc/nact/C/figures/nact-basenames-tab.png:
	* doc/nact/C/figures/nact-capabilities-tab.png:
	* doc/nact/C/figures/nact-command-tab.png:
	* doc/nact/C/figures/nact-environment-tab.png:
	* doc/nact/C/figures/nact-execution-tab.png:
	* doc/nact/C/figures/nact-folders-tab.png:
	* doc/nact/C/figures/nact-legend.png:
	* doc/nact/C/figures/nact-main-empty.png:
	* doc/nact/C/figures/nact-mimetypes-tab.png:
	* doc/nact/C/figures/nact-new-capability.png:
	* doc/nact/C/figures/nact-preferences-export.png:
	* doc/nact/C/figures/nact-preferences-import.png:
	* doc/nact/C/figures/nact-preferences-io-providers.png:
	* doc/nact/C/figures/nact-preferences-runtime.png:
	* doc/nact/C/figures/nact-preferences-schemes.png:
	* doc/nact/C/figures/nact-preferences-ui.png:
	* doc/nact/C/figures/nact-properties-tab.png:
	* doc/nact/C/figures/nact-schemes-tab.png:
	Update all screenshots to include window decoration.

116 117 118
	* doc/nact/nautilus-actions-config-tool.omf.in:
	Change categorie and type of the NACT user's manual.

119 120 121
	* src/nact/nact-main-menubar.c:
	Change help menu item from Gtk default to Gnome (apparent) standard.

Pierre Wieser's avatar
Pierre Wieser committed
122 123 124
	* src/nact/nact-main-menubar-help.c (nact_main_menubar_help_on_help):
	Connect to Yelp.

125 126
	* configure.ac: Update comments.

127 128 129 130 131
	* src/nact/nact-add-capability-dialog.c (try_for_send_ok):
	* src/nact/nact-add-scheme-dialog.c (try_for_send_ok):
	* src/nact/nact-main-tab.c (nact_main_tab_is_page_enabled):
	Check that Gtk+ is more recent that 2.18 for gtk_widget_get_sensitive().

132 133 134 135 136 137 138 139 140
	Split the NACT manual by chapter.

	* doc/nact/C/nact-usage.xml:
	* doc/nact/C/nact-prefs.xml:
	* doc/nact/C/nact-misc.xml: New files.

	* doc/nact/C/nautilus-actions-config-tool.xml:
	* doc/nact/Makefile.am: Updated accordingly.

Pierre Wieser's avatar
Pierre Wieser committed
141 142
2010-08-01 Pierre Wieser <pwieser@trychlos.org>

143 144 145
	* nact/nact-iactions-list-bis.c (nact_iactions_list_bis_insert_items):
	A new NAObjectItem must be inserted before the current NAObjectItem.

Pierre Wieser's avatar
Pierre Wieser committed
146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172
	* doc/README: Define a global documentation plan.

	* doc/api/Makefile.am:
	* doc/api/version.xml.in:
	Define a stub for future public API documentation, targeting
	Nautilus-Actions plugins developers.

	* doc/internals/Makefile.am:
	Define a stub for future internal documentation, targeting
	Nautilus-Actions core developers.

	* doc/product/Makefile.am:
	Define a stub for future global Nautilus-Actions documentation.

	* configure.ac:
	* doc/Makefile.am: Updated accordingly.

	* doc/nact/ChangeLog:
	* doc/nact/nautilus-actions-config-tool.omf.in: New files.

	* doc/nact/C/articleinfo.xml:
	* doc/nact/C/legalnotice.xml: Included as external entities rather
	than from xi:include because of db2omf complains.

	* doc/nact/C/appendix-feedback.xml:
	* doc/nact/C/appendix-gnu-fdl-1.3.xml: Add DOCTYPE declaration.

173 174
2010-07-31 Pierre Wieser <pwieser@trychlos.org>

Pierre Wieser's avatar
Pierre Wieser committed
175 176 177
	* src/nact/nautilus-actions-config-tool.ui:
	Review tooltips.

178 179 180 181 182 183
	* src/nact/nact-match-list.c (on_must_not_match_clicked):
	Fix incorrect column id.

	* src/nact/nact-match-list.c (sort_on_column):
	Display sort indicator.

184 185 186
	* src/nact/nact-match-list.c (on_must_match_toggled):
	Fix crash when defining a positive assertion.

187 188 189 190 191 192 193 194
	* src/core/na-icontext.c (is_candidate_for_capabilities):
	Implement the function.

	* src/core/na-selected-info.c:
	* src/core/na-selected-info.h (na_selected_info_is_executable,
	na_selected_info_is_owner, na_selected_info_is_readable,
	na_selected_info_is_writable): New function.

195 196 197 198 199 200 201
	* src/core/na-icontext.c (is_candidate_for_folders):
	Implement the function.

	* src/core/na-selected-info.c:
	* src/core/na-selected-info.h (na_selected_info_get_dirname):
	New function.

202 203 204
	* src/core/na-icontext.c (is_candidate_for_schemes):
	Implement the function.

205 206 207 208 209 210
	* src/core/na-icontext.c (is_candidate_for_selection_count):
	Implement the function.

	* src/io-desktop/nadp-reader.c
	(nadp_reader_ifactory_provider_read_start): Set minimal version number.

211 212
2010-07-30 Pierre Wieser <pwieser@trychlos.org>

213
	* src/core/na-icontext.c (is_candidate_for_basenames):
214 215 216
	Unref the GPatternSpec after use.

	* src/core/na-icontext.c (is_candidate_for_basenames):
217 218 219 220 221 222
	Implement the function.

	* src/core/na-selected-info.c:
	* src/core/na-selected-info.h (na_selected_info_get_basename):
	New function.

223 224 225 226 227
	* configure.ac:	Add a dependancy on libgtop.

	* src/core/na-icontext.c (is_candidate_for_show_if_running):
	Implement the function.

228 229
2010-07-29 Pierre Wieser <pwieser@trychlos.org>

230 231 232 233
	* src/io-desktop/nadp-formats.c:
	* src/io-desktop/nadp-formats.h: New files.
	These should have been added to 2.99.0, but where forgotten.

234 235 236 237 238
	* docs/nact/Makefile.am: New file.

	* configure.ac:
	* docs/Makefile.am: Updated accordingly.

239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264
	Create NACT user's manual skeleton.
	
	* docs/nact/C/appendix-feedback.xml:
	* docs/nact/C/appendix-gnu-fdl-1.3.xml:
	* docs/nact/C/articleinfo.xml:
	* docs/nact/C/figures/nact-basenames-tab.png:
	* docs/nact/C/figures/nact-capabilities-tab.png:
	* docs/nact/C/figures/nact-command-tab.png:
	* docs/nact/C/figures/nact-environment-tab.png:
	* docs/nact/C/figures/nact-execution-tab.png:
	* docs/nact/C/figures/nact-folders-tab.png:
	* docs/nact/C/figures/nact-legend.png:
	* docs/nact/C/figures/nact-main-empty.png:
	* docs/nact/C/figures/nact-mimetypes-tab.png:
	* docs/nact/C/figures/nact-preferences-export.png:
	* docs/nact/C/figures/nact-preferences-import.png:
	* docs/nact/C/figures/nact-preferences-io-providers.png:
	* docs/nact/C/figures/nact-preferences-runtime.png:
	* docs/nact/C/figures/nact-preferences-schemes.png:
	* docs/nact/C/figures/nact-preferences-ui.png:
	* docs/nact/C/figures/nact-properties-tab.png:
	* docs/nact/C/figures/nact-schemes-tab.png:
	* docs/nact/C/figures/nat-new-capability.png:
	* docs/nact/C/index.xml:
	* docs/nact/C/legalnotice.xml: New files.

265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283
	Do some cleanup in NAObjectAction and NAObjectProfile code.
	Implement execution of singular vs. plural command forms.

	* src/api/na-object-action.h:
	* src/core/na-object-action.c (na_object_action_is_candidate):
	Removed function.

	* src/api/na-object-profile.h:
	* src/core/na-object-profile.c (na_object_profile_parse_parameters):
	Removed function.

	* src/core/na-tokens.c:
	* src/core/na-tokens.h (na_tokens_execute_action): New function.

	* src/plugin-menu/nautilus-actions.c (execute_action):
	Move action execution to NATokens class.

	* src/utils/nautilus-actions-run.c: Now use NATokens class.

Pierre Wieser's avatar
Pierre Wieser committed
284 285 286 287 288
	* doc/: Renamed as docs/

	* configure.ac:
	* Makefile;am: Updated accordingly.

289 290
	* configure.ac: Bump the version number after release.

291 292
2010-07-28 Pierre Wieser <pwieser@trychlos.org>

293 294 295
	* NEWS: Update NEWS before unstable release.

	* configure.ac: Bump the version number before unstable release.
296

297 298 299
	* src/io-desktop/nadp-module.c (na_extension_startup):
	Remove the #if/#endif macros to let the .desktop provider be released.

Pierre Wieser's avatar
Pierre Wieser committed
300 301 302 303 304 305 306 307
	* src/io-desktop/nadp-desktop-file.c:
	* src/io-desktop/nadp-desktop-file.h
	(nadp_desktop_file_new, nadp_desktop_file_get_key_file):
	New functions.

	* src/io-desktop/nadp-writer.c
	(nadp_writer_iexporter_export_to_buffer): Implement the function.

308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349
	Import/export .desktop files.

	* doc/export-format-id: Declare the new export format.

	* po/POTFILES.in: Add a file.

	* src/api/na-core-utils.h:
	* src/core/na-core-utils.c
	(na_core_utils_slist_add_message, na_core_utils_file_load_from_uri):
	New functions.

	* src/api/na-iimporter.h:
	* src/core/na-iimporter.c (na_iimporter_manage_import_mode):
	New function.

	* src/io-desktop/nadp-formats.c:
	* src/io-desktop/nadp-formats.h: New files.

	* src/io-desktop/Makefile.am: Updated accordingly.

	* src/io-desktop/nadp-desktop-file.c:
	* src/io-desktop/nadp-desktop-file.h
	(nadp_desktop_file_new_from_uri): New function.
	(nadp_desktop_file_get_key_file_path): Renamed as nadp_desktop_file_get_key_file_uri().

	* src/io-desktop/nadp-desktop-provider.c:
	Declare NAIImporterInterface and NAIExporterInterface interfaces.

	* src/io-desktop/nadp-reader.c:
	* src/io-desktop/nadp-reader.h
	(nadp_reader_iimporter_import_from_uri): New function.

	* src/io-desktop/nadp-utils.c:
	* src/io-desktop/nadp-utils.h
	(nadp_utils_is_writable_file): Renamed as nadp_utils_uri_is_writable().
	(nadp_utils_uri_delete): New function.

	* src/io-desktop/nadp-writer.c:
	* src/io-desktop/nadp-writer.h
	(nadp_writer_iexporter_export_to_buffer, nadp_writer_iexporter_export_to_file):
	New functions.

350 351 352 353 354 355
	* src/nact/nact-add-scheme-dialog.c:
	Prevent a default scheme to be inserted twice.

	* src/nact/nact-ischemes-tab.c:
	Use the current list of rows instead of the current schemes list.

356 357 358
	* src/nact/nact-match-list.c:
	Prevent a standard filter to be inserted twice.

359 360 361 362 363 364 365 366 367 368
	* src/api/na-core-utils.h:
	* src/core/na-core-utils.c (na_core_utils_slist_dump):
	Add a prefix parameter to the function.

	* src/core/na-data-boxed.c (slist_dump):
	* src/core/na-io-provider.c (na_io_provider_get_providers_list):
	* src/io-desktop/nadp-writer.c (nadp_writer_ifactory_provider_write_done):
	* src/nact/nact-match-list.c (nact_match_list_on_selection_changed):
	* src/test/test-reader.c (main): Updated accordingly.

369 370
2010-07-26 Pierre Wieser <pwieser@trychlos.org>

371 372 373 374 375 376 377 378
	* src/api/na-core-utils.h:
	* src/core/na-core-utils.c (na_core_utils_slist_find):
	Moved to na_core_utils_slist_count.

	* src/core/na-icontext.c (is_candidate_for_show_in):
	* src/io-desktop/nadp-writer.c
	(nadp_writer_ifactory_provider_write_done): Updated accordingly.

379 380 381
	* src/nact/nact-match-list.c (on_filter_edited):
	Add g_return_if_fail checks on data and context.

382 383 384 385 386 387 388 389 390 391 392 393 394 395 396
	Prevent of inline edition of capabilities.

	* src/nact/nact-match-list.c:
	* src/nact/nact-match-list.h (nact_match_list_create_model):
	Add editable_filter input parameter.

	* src/nact/nact-match-list.c (nact_match_list_on_selection_changed):
	Only enable the column if filter and item are both editable.

	* src/nact/nact-ibasenames-tab.c:
	* src/nact/nact-icapabilities-tab.c:
	* src/nact/nact-ifolders-tab.c:
	* src/nact/nact-imimetypes-tab.c:
	* src/nact/nact-ischemes-tab.c: Updated accordingly.

397 398 399 400 401 402 403 404 405 406 407
	Prevent a capability to be inserted twice.

	* src/nact/nact-add-capability-dialog.c (on_button_press_event):
	On double-clic, check for OK sensitivity.

	* src/nact/nact-icapabilities-tab.c (on_add_clicked):
	Provide the dialog with our current content rather than current	capabilities.

	* src/nact/nact-match-list.c:
	* src/nact/nact-match-list.h (nact_match_list_get_rows): New function.

408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423
	Fix parameters conversion to v3.

	* src/core/na-object-action.c (icontext_is_candidate):
	Fix comment and minor typo.

	* src/core/na-object-profile.c:
	* src/io-gconf/nagp-reader.c (convert_pre_v3_parameters):
	Move pre-v3 parameters conversion from GConf provider to profile class.

	* src/io-desktop/nadp-reader.c
	(nadp_reader_ifactory_provider_read_start):
	* src/io-gconf/nagp-reader.c (nagp_reader_read_start):
	* src/io-gconf/nagp-gconf-provider.c (ifactory_provider_iface_init):
	* src/io-gconf/nagp-reader.h:
	Now attach profile to its parent in 'read_start' interface.

424 425 426 427 428
	* src/io-desktop/nadp-reader.c
	(nadp_reader_ifactory_provider_read_done):
	* src/io-gconf/nagp-reader.c (nagp_reader_read_done):
	Homogeneïze the read_done functions.

429 430 431 432 433 434 435 436 437
	Move the reading of the subitems key for the desktop I/O provider
	from 'read_done' to 'read_start'.

	* src/io-desktop/nadp-reader.c:
	* src/io-desktop/nadp-reader.h
	(nadp_reader_ifactory_provider_read_start): New function.

	* src/io-desktop/nadp-desktop-provider.c: Updated accordingly.

438 439 440 441 442 443 444 445 446
2010-07-19 Pierre Wieser <pwieser@trychlos.org>

	* src/api/na-object-item.h:
	* src/core/na-object-item.c (na_object_item_factory_write_start):
	Function is renamed as na_object_item_rebuild_children_slist().

	* src/core/na-object-action.c:
	* src/core/na-object-menu.c: Updated accordingly.

447 448 449 450 451
2010-07-05 Pierre Wieser <pwieser@trychlos.org>

	* src/nact/nact-icommand-tab.c (nact_icommand_tab_runtime_init_toplevel):
	Connect to delete-event signal to hide the GtkWindow.

452 453
2010-07-03 Pierre Wieser <pwieser@trychlos.org>

454 455 456
	* src/nact/nact-add-capability-dialog.c (on_base_runtime_init_dialog):
	Doucle-click validates the dialog.

457 458 459
	* src/nact/nact-add-scheme-dialog.c (on_base_runtime_init_dialog):
	Doucle-click validates the dialog.

460 461 462
	* src/nact/nact-schemes-list.c (nact_schemes_list_create_model):
	Scheme keyword and description are editable in user preferences.

463 464
2010-07-02 Pierre Wieser <pwieser@trychlos.org>

465 466 467 468 469 470 471 472
	* src/core/na-tokens.c (na_tokens_new_from_selection):
	Add a trace.

	* src/core/na-tokens.h: Fix minor typo.

	* src/plugin-menu/nautilus-actions.c:
	There should not be any need to keep a reference to our menu.

473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504
	* data/nautilus-actions-prefs.schemas.in:
	* src/core/na-iprefs.h:
	* src/core/na-importer-ask.c:
	* src/core/na-importer-ask.h:
	Define a new GConf preference 'keep last user choice'.

	* src/api/na-iimporter.h:
	* src/core/na-iimporter.c:
	from_uri() interface is renamed as import_from_uri().
	Only define na_iimporter_import_from_uri() public API.

	* src/core/na-importer.c:
	* src/core/na-importer.h:
	Define here na_importer_import_from_list() internal API.

	* src/io-xml/naxml-provider.c:
	* src/io-xml/naxml-reader.c:
	* src/io-xml/naxml-reader.h:
	* src/nact/nact-assistant-import.c:
	* src/nact/nact-tree-model-dnd.c:
	* src/test/test-reader.c: Updated accordingly.

	* src/core/na-object-id.c (na_object_id_set_new_id):
	Fix object type test.

	* src/core/na-object-item.c (object_id_new_id):
	Fix minor typo.

	* src/core/na-object-profile.c (object_id_new_id):
	Fix order of validity test.
	Only get a new profile name when a new parent is provided.

505 506
2010-06-29 Pierre Wieser <pwieser@trychlos.org>

507 508 509
	* src/nact/nact-tree-model-dnd.c (drop_uri_list):
	Make the code in adequation with the comment.

510 511 512
	* src/nact/nact-gtk-utils.c (nact_gtk_utils_get_pixbuf):
	Do not emit a warning when file is just not found.

513 514
2010-06-28 Pierre Wieser <pwieser@trychlos.org>

515 516 517 518
	* src/io-desktop/nadp-writer.c
	(nadp_writer_ifactory_provider_write_data):
	Concatenate path and parameters fields to the Exec key.

519 520 521
	* src/nact/nact-assistant-import.c (has_readable_files):
	Get ride of warning messages in some usual situations.

522 523 524
	* src/nact/nact-main-menubar-file.c (nact_main_menubar_file_save_items):
	Force sensitivities update when new tree store is empty.

525 526 527 528 529 530 531 532 533 534
	* src/core/na-iduplicable.c (na_iduplicable_check_status):
	* src/core/na-object.c (na_object_object_unref):
	Review debug messages.

	* src/core/na-pivot.c:
	* src/core/na-pivot.h (na_pivot_set_new_items): New function.

	* src/nact/nact-main-menubar-file.c (save_item):
	Duplicate all current tree store to a new pivot.

535 536
2010-06-23 Pierre Wieser <pwieser@trychlos.org>

537 538 539 540
	* src/nact/nact-ienvironment-tab.c (on_tab_updatable_selection_changed):
	* src/nact/nact-iexecution-tab.c (on_tab_updatable_selection_changed):
	Radio buttons are inconsistent if and only if there is no context.

541 542
	* src/nact/nact-tree-model.c (dump_store): Also dumps origin.

543 544 545 546 547 548 549
	* src/core/na-updater.c (na_updater_remove_item):
	Do not unref here removed item.
	Also remove item from non level zero parent.

	* src/nact/nact-main-window.c (actually_delete_item):
	Updated accordingly.

550 551 552
	* src/core/na-icontext.c (is_candidate_for_try_exec):
	Do not try to get info for non existing file.

553 554
2010-06-21 Pierre Wieser <pwieser@trychlos.org>

555 556 557 558
	* src/core/na-icontext.c (is_candidate_for_show_in):
	Implement the check of the environment (though not yet the desktop
	detection).

559 560 561 562 563 564 565 566 567 568 569 570 571
	* src/nact/nact-iaction-tab.c:
	* src/nact/nact-ibasenames-tab.c:
	* src/nact/nact-icommand-tab.c:
	* src/nact/nact-ienvironment-tab.c:
	* src/nact/nact-iexecution-tab.c:
	* src/nact/nact-iproperties-tab.c:
	* src/nact/nact-match-list.c:
	Reset all fields to an empty value when there is no selection.

	* src/nact/nact-main-tab.h:
	* src/nact/nautilus-actions-config-tool.ui:
	Move the Execution tab just besides the Command one.

572 573 574 575 576 577 578 579
2010-06-20 Pierre Wieser <pwieser@trychlos.org>

	* src/core/na-object.c (na_object_object_unref):
	Fix infinite unref of child items.

	* src/nact/nact-tree-model.c (nact_tree_model_display):
	Set debug messages.

580 581
2010-06-18 Pierre Wieser <pwieser@trychlos.org>

582 583 584
	* src/core/na-object.c (na_object_object_unref):
	Fix segfault when unfiltering invalid items.

585 586 587 588 589 590 591
	* src/core/na-object-item-factory.c:
	Numeric version is no more writable by default.

	* src/io-gconf/nagp-keys.h:
	* src/io-gconf/nagp-writer.c (nagp_writer_write_start):
	Explicitely write the numeric version to GConf.

592
	* src/core/na-object-item-factory.c:
593
	Provider data is no more duplicable by NAIFactoryObject.
594 595 596 597 598 599 600 601 602

	* src/core/na-object-item.c (object_copy):
	Explicitely triggers NAIOProvider::duplicate_data method.

	* src/io-desktop/nadp-desktop-provider.c (iio_provider_iface_init):
	* src/io-desktop/nadp-writer.c:
	* src/io-desktop/nadp-writer.h (nadp_iio_provider_duplicate_data):
	Implement NAIIOProvider::duplicate_data interface.

603 604 605
	* src/io-gconf/nagp-gconf-provider.c (iio_provider_iface_init):
	Initialize NAIIOProvider duplicate_data() virtual pointer.

606 607 608 609 610 611
	* src/api/na-iio-provider.h:
	* src/core/na-iio-provider.c (duplicate_data):
	* src/core/na-io-provider.c:
	* src/core/na-io-provider.h (na_io_provider_duplicate_data):
	Define new NAIIOProvider interface.

612 613
2010-06-17 Pierre Wieser <pwieser@trychlos.org>

614 615 616 617 618 619 620 621
	* src/api/na-iio-provider.h:
	* src/core/na-iio-provider.c (na_iio_provider_item_changed):
	Remove useless item id parameter.

	* src/core/na-ipivot-consumer.c (is_notify_allowed):
	Set a higher delay (1s to 2s) before notifying NAPivot
	because of the delay of file monitoring.

622 623 624 625 626 627 628
	* src/nact/nact-clipboard.c (export_objects):
	Remove unused dest_folder parameter.

	* src/nact/nact-tree-model-dnd.c
	(nact_tree_model_dnd_imulti_drag_source_drag_data_get):
	Get destination folder as an URI.

629 630 631
	* src/nact/nact-iaction-tab.c:
	Fix invalid cast of NAObjectMenu to NAObjectAction.

632 633 634 635 636 637 638
	* src/nact/nact-sort-buttons.c:
	* src/nact/nact-sort-buttons.h (nact_sort_buttons_enable_buttons):
	New function.

	* src/nact/nact-main-menubar.c (on_iactions_list_count_updated):
	Enable/disable sort buttons depending of items list count.

639 640 641 642 643
	* src/api/na-object-api.h
	(na_object_get_shortcut, na_object_set_shortcut): New macros.

	* src/nact/nact-iproperties-tab.c: Review NactIPropertiesTab page.

644 645 646 647 648 649 650 651 652 653 654 655
	* src/api/na-object-api.h
	(na_object_get_execution_mode,
	na_object_get_startup_notify, na_object_get_startup_class,
	na_object_get_execute_as, na_object_set_execution_mode,
	na_object_set_startup_notify, na_object_set_startup_class,
	na_object_set_execute_as): New macros.

	* src/core/na-object-profile-factory.c:
	Change type of execution mode from uint to string.

	* src/nact/nact-iexecution-tab.c: Implement NactIExecutionTab page.

656 657
	* src/nact/nact-ienvironment-tab.c: Implement NactIEnvironmentTab page.

Pierre Wieser's avatar
Pierre Wieser committed
658 659
2010-06-16 Pierre Wieser <pwieser@trychlos.org>

660 661 662 663 664 665
	* src/nact/nact-gtk-utils.c:
	* src/nact/nact-gtk-utils.h
	(nact_gtk_utils_select_file, nact_gtk_utils_select_dir): New functions.

	* src/nact/nact-icommand-tab.c: Updated accordingly.

Pierre Wieser's avatar
Pierre Wieser committed
666 667 668 669 670 671 672 673 674 675 676 677
	* src/api/na-core-utils.h:
	* src/core/na-core-utils.c (na_core_utils_slist_setup_element): New function.

	* src/api/na-icontext.h:
	* src/core/na-icontext.c (na_icontext_set_only_desktop,	na_icontext_set_not_desktop):
	New functions.

	* src/api/na-object-api.h (na_object_set_only_desktop, na_object_set_not_desktop):
	New macros.

	* src/nact/nact-ienvironment-tab.c: Implement desktop choice.

678 679 680
	* src/nact/nact-icapabilities-tab.c:
	* src/nact/nautilus-actions-config-tool.ui: Review NactICapabilitiesTab page.

681 682
	* src/nact/nact-ischemes-tab.c: Review NactISchemesTab page.

683 684
	* src/nact/nact-ifolders-tab.c: Review NactIFoldersTab page.

685 686 687 688 689 690
	* src/nact/nact-ibasenames-tab.c: Review NactIBasenamesTab page.

	* src/nact/nact-match-list.c:
	* src/nact/nact-match-list.h (nact_match_list_on_enable_tab):
	Removed function.

691 692 693
	* src/nact/nact-icommand-tab.c:
	* src/nact/nact-icommand-tab.h: Review NactICommandTab page.

Pierre Wieser's avatar
Pierre Wieser committed
694 695 696 697 698
	* src/core/na-object-action-factory.c: Fix comment.

	* src/nact/nact-iaction-tab.c:
	* src/nact/nact-iaction-tab.h: Homogeneïse the code.

699 700
2010-06-15 Pierre Wieser <pwieser@trychlos.org>

701 702 703 704
	* src/nact/nact-main-tab.c:
	* src/nact/nact-main-tab.h (nact_main_tab_get_context):
	New function.

705 706 707 708 709 710 711 712 713 714 715
	* src/nact/nact-iaction-tab.c:
	* src/nact/nact-ibasenames-tab.c:
	* src/nact/nact-icapabilities-tab.c:
	* src/nact/nact-ienvironment-tab.c:
	* src/nact/nact-ifolders-tab.c:
	* src/nact/nact-imimetypes-tab.c:
	* src/nact/nact-ischemes-tab.c:
	* src/nact/nact-main-tab.h:
	* src/nact/nact-main-window.c:
	Remove irrelevant TAB_UPDATABLE_SIGNAL_ENABLE_TAB signal.

716 717 718
	* src/nact/nact-match-list.c:
	Do not try to get filters when there is no current context.

719 720 721
	* src/nact/nact-main-window.c:
	Do not mark the application as modified when list is empty.

722 723 724 725 726 727 728 729 730 731 732 733 734 735
	* src/nact/nact-iaction-tab.c:
	* src/nact/nact-ibasenames-tab.c:
	* src/nact/nact-icapabilities-tab.c:
	* src/nact/nact-icommand-tab.c:
	* src/nact/nact-ienvironment-tab.c:
	* src/nact/nact-ifolders-tab.c:
	* src/nact/nact-iproperties-tab.c:
	* src/nact/nact-ischemes-tab.c:
	* src/nact/nact-main-menubar-edit.c:
	* src/nact/nact-main-menubar-file.c:
	* src/nact/nact-main-tab.h:
	* src/nact/nact-main-window.c:
	* src/nact/nact-match-list.c: Rename main properties.

736 737 738
	* src/nact/nact-main-tab.h:
	* src/nact/nact-main-window.c: Remove unused PROP_SELECTED_ROW property.

739 740 741 742
	* po/POTFILES.in: Add src/nact/nact-ienvironment-tab.c file.

	* src/nact/nact-ienvironment-tab.c: Connect signals.

Pierre Wieser's avatar
Pierre Wieser committed
743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764
2010-06-14 Pierre Wieser <pwieser@trychlos.org>

	* src/core/na-icontext-factory.c:
	Change default capabilities to empty list.

	* src/nact/nact-add-capability-dialog.c:
	* src/nact/nact-add-capability-dialog.h:
	* src/nact/nact-add-capability.ui: New files.

	* po/POTFILES.in:
	* src/nact/Makefile.am: Updated accordingly.

	* src/nact/nact-match-list.c:
	* src/nact/nact-match-list.h (nact_match_list_create_model):
	Add match_header parameter.

	* src/nact/nact-ibasenames-tab.c:
	* src/nact/nact-icapabilities-tab.c:
	* src/nact/nact-ifolders-tab.c:
	* src/nact/nact-imimetypes-tab.c:
	* src/nact/nact-ischemes-tab.c: Updated accordingly.

765 766
2010-06-13 Pierre Wieser <pwieser@trychlos.org>

767 768 769 770 771 772 773 774 775
	* src/nact/nact-match-list.c:
	* src/nact/nact-match-list.h (nact_match_list_create_model):
	Add on_add_clicked callback parameter.

	* src/nact/nact-ibasenames-tab.c:
	* src/nact/nact-ifolders-tab.c:
	* src/nact/nact-imimetypes-tab.c:
	* src/nact/nact-ischemes-tab.c: Updated accordingly.

776 777 778
	* src/nact/nact-iaction-tab.c:
	Use gtk_bin_get_child() function instead of GTK_BIN()->child.

779 780 781 782 783 784 785 786 787 788
	* po/POTFILES.in:
	Add src/nact/nact-icapabilities-tab.c, src/nact/nact-ischemes-tab.c.
	Remove src/nact/nact-iconditions-tab.c.

	* src/api/na-core-utils.h:
	* src/core/na-core-utils.c (na_core_utils_selcount_get_ope_int):
	New function.

	* src/nact/nact-icapabilities-tab.c: Implement selection count.

789 790 791 792 793 794 795 796 797 798 799 800 801
2010-06-11 Pierre Wieser <pwieser@trychlos.org>

	* src/api/na-icontext.h:
	* src/core/na-icontext.c (na_icontext_is_all_mimetypes): New function.

	* src/api/na-object-api.h: Define new getters/setters.

	* src/core/na-icontext-factory.c:
	* src/core/na-object-item-factory.c: Fix comments.

	* src/io-gconf/nagp-reader.c:
	Convert pre-v3 is_multiple, is_file and is_dir parameters.

Pierre Wieser's avatar
Pierre Wieser committed
802 803
2010-06-10 Pierre Wieser <pwieser@trychlos.org>

804 805
	* configure.ac: Bump post-release version number.

806 807
	* Changelog: Update NEWS before release.

808 809
	* configure.ac: Bump pre-release version number.

Pierre Wieser's avatar
Pierre Wieser committed
810 811
	* src/core/na-iabout.c: Update copyright notice.

812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838
2010-06-09 Pierre Wieser <pwieser@trychlos.org>

	* src/api/na-core-utils.h:
	* src/api/na-core-utils.c (na_core_utils_slist_find_negated):
	New function.

	* src/nact/nact-add-scheme-dialog.c:
	* src/nact/nact-add-scheme-dialog.h: New files.

	* src/nact/Makefile.am: Updated accordingly.

	* src/nact/nact-main-menubar.c: Update test for Gtk+ version.

	* src/nact/nact-match-list.c:
	* src/nact/nact-match-list.h: Remove on_add callback.

	* src/nact/nact-ibasenames-tab.c:
	* src/nact/nact-ifolders-tab.c:
	* src/nact/nact-imimetypes-tab.c:
	* src/nact/nact-ischemes-tab.c:
	* src/nact/nact-preferences-editor.c: Updated accordingly.

	* src/nact/nact-schemes-list.c:
	* src/nact/nact-schemes-list.h
	(nact_schemes_list_show_all, nact_schemes_list_get_current_scheme):
	New functions.

839 840 841 842 843 844 845
2010-06-07 Pierre Wieser <pwieser@trychlos.org>

	* src/nact/nact-add-scheme.ui: New file.

	* po/POTFILES.in:
	* src/nact/Makefile.am: Updated accordingly.

846 847
2010-06-04 Pierre Wieser <pwieser@trychlos.org>

848 849 850 851 852 853 854 855 856 857
	* src/api/na-object-api.h: Reorganization.

	* src/core/na-icontext-factory.c: Set schemes default to '*'.

	* src/nact/nact-icommand-tab.c: Get schemes from current object.

	* src/nact/nact-ischemes-tab.c:
	* src/nact/nact-ischemes-tab.h:
	Take advantage of new nact_match_list_xxx functions.

858 859 860 861 862 863 864 865 866 867
	* src/api/na-object-api.h:
	* src/api/na-ifactory-object-data.h:
	* src/core/na-object-profile-factory.c: Add NAFO_DATA_WORKING_DIR data.

	* src/core/na-factory-object.c:
	* src/core/na-factory-object.h (na_factory_object_get_default):
	New	function.

	* src/nact/nact-icommand-tab.c: Implement working directory.

868 869 870
	* src/nact/nact-imimetypes-tab.c: 
	Take advantage of new nact_match_list_xxx functions.

871 872 873 874 875 876 877 878 879 880 881 882
	* src/nact/nact-match-list.c:
	* src/nact/nact-match-list.h: New files.

	* src/nact/Makefile.am: Updated accordingly.

	* src/nact/base-window.c:
	* src/nact/base-window.h (base_window_signal_connect_with_data):
	New function.

	* src/nact/nact-ibasenames-tab.c: 
	Take advantage of new nact_match_list_xxx functions.

883 884 885 886
2010-06-03 Pierre Wieser <pwieser@trychlos.org>

	* src/nact/nact-ibasenames-tab.c: Implement NactIBasenamesInterface interface.

887 888
2010-06-02 Pierre Wieser <pwieser@trychlos.org>

889 890 891
	* src/nact/nautilus-actions-config-tool.ui:
	* src/nact/nact-ibasenames-tab.c: Define basename new conditions skeleton.

892 893 894 895 896 897 898
	* src/nact/nact-icapabilities-tab.c:
	* src/nact/nact-icapabilities-tab.h: Define NactICapabilitiesInterface interface.

	* src/nact/Makefile.am:
	* src/nact/nact-main-tab.h:
	* src/nact/nact-main-window.c: Updated accordingly.

899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927
2010-05-30 Pierre Wieser <pwieser@trychlos.org>

	* src/nact/nact-ibasenames-tab.c:
	* src/nact/nact-ibasenames-tab.h: Define NactIBasenamesTabInterface interface.

	* src/nact/nact-icommand-tab.c:
	No more include removed	nact-iconditions-tab.h file.

	* src/nact/nact-ienvironment-tab.c:
	* src/nact/nact-ienvironment-tab.h: Define NactIEnvironmentTabInterface interface.

	* src/nact/nact-iexecution-tab.c:
	* src/nact/nact-iexecution-tab.h: Define NactIExecutionTabInterface interface.

	* src/nact/nact-ifolders-tab.c (on_tab_updatable_selection_changed):
	* src/nact/nact-ischemes-tab.c (on_tab_updatable_selection_changed):
	tab_set_sensitive() returned value is not used here.

	* src/nact/nact-imimetypes-tab.c:
	* src/nact/nact-imimetypes-tab.h: Define NactIMimetypesTabInterface interface.

	* src/nact/nact-iproperties-tab.c (on_tab_updatable_selection_changed):
	Set a mnemonic in the tab label.

	* src/nact/nact-main-tab.h:
	* src/nact/nact-main-window.c: Add the four new tabs, remove the old one.

	* src/nact/nautilus-actions-config-tool.ui: Fix some size groups.

928 929 930 931
2010-05-29 Pierre Wieser <pwieser@trychlos.org>

	* configure.ac: Define GSEAL_ENABLED.

932 933 934
	* src/nact/nautilus-actions-config-tool.ui:
	Implement all new fields.

935 936 937 938 939 940 941 942 943 944 945 946 947 948
2010-05-26 Pierre Wieser <pwieser@trychlos.org>

	* src/api/na-core-utils.h:
	* src/core/na-core-utils.c (na_core_utils_dir_split_ext):
	New function.

	* src/core/na-tokens.h:
	* src/core/na-tokens.c: New files.

	* src/core/Makefile.am: Udated accordingly.

	* src/plugin-menu/nautilus-actions.c:
	Expand tokens which may embed parameters.

949 950
2010-05-20 Pierre Wieser <pwieser@trychlos.org>

951 952 953
	* src/io-gconf/nagp-reader.c (read_done_profile_attach_profile):
	Migrate old v2 parameters to v3.

954 955 956
	* src/core/na-object-action.c (deals_with_version):
	Setup a version number if not already set.

957 958 959
	* src/core/na-object-action.c (convert_pre_v2_action):
	Renamed as convert_v1_to_v2.

960 961 962 963 964 965 966 967 968 969 970 971 972 973
	* src/api/na-data-def.h: Add write_if_default.

	* src/core/na-icontext-factory.c:
	* src/core/na-object-action-factory.c:
	* src/core/na-object-id-factory.c:
	* src/core/na-object-item-factory.c:
	* src/core/na-object-profile-factory.c: Update all data structures.

	* src/io-desktop/nadp-writer.c
	(nadp_writer_ifactory_provider_write_data):
	* src/io-gconf/nagp-writer.c (nagp_writer_write_data):
	* src/io-xml/naxml-writer.c (naxml_writer_write_data):
	Updated accordingly.

974 975 976
	* src/io-desktop/nadp-reader.c
	(nadp_reader_ifactory_provider_read_start): Removed function.

977 978
2010-05-17 Pierre Wieser <pwieser@trychlos.org>

Pierre Wieser's avatar
Pierre Wieser committed
979 980
	* configure.ac: Fix typo.

981 982 983 984 985 986 987 988 989
	* src/core/na-core-utils.c (na_core_utils_slist_from_array):
	Strip the strings extracted from the array.

	* src/core/na-factory-object.c (na_factory_object_are_equal):
	Dump the data when different.

	* src/nact/nact-main-menubar-file.c
	(nact_main_menubar_file_save_items): Add a debug message.

990 991 992 993 994 995 996 997
	* src/api/na-object-api.h (na_object_set_last_version):
	* src/api/na-object-action.h:
	* src/core/na-object-action.c (na_object_action_set_last_version):
	New functions.

	* src/core/na-object-action.c (convert_pre_v2_action):
	Reset action to last version number after conversion from pre-v2.

998 999 1000
	* src/core/na-object-profile.c (na_object_profile_parse_parameters):
	Do not add extraneous blanks when parsing parameters.

1001 1002
	* configure.ac: Post release bump version number.

1003 1004 1005 1006
	* src/io-desktop/nadp-reader.c (read_done_load_profiles):
	Do not reload already loaded profiles.
	Just ignore non-referenced profiles.

1007 1008 1009
	* src/io-gconf/nagp-reader.c
	(read_done_action_load_profiles_from_list): Do not reload already loaded profiles.

1010 1011 1012
	* src/utils/nautilus-actions-new.c:
	Factorize error message to make translation easier.

1013 1014 1015
	* src/utils/nautilus-actions-run.c:
	Mark two new strings for translation.

1016 1017 1018 1019 1020 1021
	* src/core/na-object-action-factory.c:
	No more set a string version.

	* src/io-gconf/nagp-reader.c (read_done_profile_attach_profile):
	Test both string and integer versions.

1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045
2010-05-12 Pierre Wieser <pwieser@trychlos.org>

	* src/api/na-icontext.h:
	* src/core/na-icontext.c
	(na_icontext_have_all_mimetypes): Removed function.
	(na_icontext_read_done): New function.

	* src/core/na-object-action.c:
	* src/core/na-object-menu.c:
	* src/core/na-object-profile.c: Updated accordingly.

	* src/api/na-object-api.h
	(na_object_get_iversion, na_object_set_iversion): New functions.

	* src/core/na-icontext-factory.c:
	* src/core/na-object-item-factory.c:
	Adjustments on default values.

	* src/io-gconf/nagp-reader.c (read_done_profile_attach_profile):
	Convert pre-v3 parameters.

	* src/plugin-menu/nautilus-actions.c:
	Adjust NautilusMenuProvider interface.

1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063
2010-05-10 Pierre Wieser <pwieser@trychlos.org>

	Monitor .desktop files and directories.

	* src/io-desktop/nadp-monitor.c:
	* src/io-desktop/nadp-monitor.h: New files.

	* src/io-desktop/Makefile.am: Updated accordingly.

	* src/io-desktop/nadp-desktop-provider.c:
	* src/io-desktop/nadp-desktop-provider.h
	(nadp_desktop_provider_add_monitor,
	nadp_desktop_provider_on_monitor_event,
	nadp_desktop_provider_release_monitors): New functions.

	* src/io-desktop/nadp-reader.c (get_list_of_desktop_paths):
	Installs a monitor for each candidate directory.

Pierre Wieser's avatar
Pierre Wieser committed
1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082
2010-05-03 Pierre Wieser <pwieser@trychlos.org>

	* src/api/na-icontext.h:
	* src/api/na-ifactory-object-data.h:
	* src/api/na-object-api.h:
	* src/core/na-icontext-factory.c:
	* src/core/na-icontext.c:
	Define new NAFO_DATA_ALL_MIMETYPES data, set to TRUE when the context
	is to be selected for all mimetypes.

	* src/core/na-object-action.c:
	* src/core/na-object-menu.c:
	* src/core/na-object-profile.c:
	* src/plugin-menu/nautilus-actions.c:
	All objects implement NAIContextInterface.

	* src/nact/nact-iconditions-tab.c (na_object_is_matchcase):
	Renamed as na_object_get_matchcase().

1083 1084 1085
	* src/core/na-object-profile.c (na_object_profile_parse_parameters):
	Do not add extraneous blanks when parsing parameters.

1086 1087
2010-04-19 Pierre Wieser <pwieser@trychlos.org>

1088 1089 1090 1091 1092 1093 1094 1095 1096 1097
	* src/api/na-ifactory-object-data.h:
	* src/api/na-object-profile.h:
	* src/core/na-icontext-factory.c:
	* src/core/na-object-action-factory.c:
	* src/core/na-object-item-factory.c:
	* src/core/na-object-menu-factory.c:
	* src/core/na-object-profile-factory.c:
	Define all new data, new parameters, and include context informations
	to actions and menus.

1098 1099 1100 1101
	* src/api/na-core-utils.h:
	* src/core/na-core-utils.c (na_core_utils_slist_from_array):
	Fix leading and trailing spaces management.

1102 1103 1104 1105 1106 1107
2010-04-18 Pierre Wieser <pwieser@trychlos.org>

	* src/api/na-ifactory-object-data.h:
	* src/core/na-object-item-factory.c:
	Define new NAFO_DATA_SHORTCUT data.

1108 1109
2010-04-15 Pierre Wieser <pwieser@trychlos.org>

1110 1111 1112
	* src/nact/nact-schemes-list.c (insert_new_row):
	Rewrite row insertion; do not insert a - non-editable - description.

Pierre Wieser's avatar
Pierre Wieser committed
1113 1114
	* src/nact/nact-preferences.ui: Fix typo.

Pierre Wieser's avatar
Pierre Wieser committed
1115 1116 1117
	* src/io-gconf/nagp-keys.h:
	Remove unused GConf entry keys.

1118 1119 1120
	* src/io-gconf/nagp-writer.c (nagp_iio_provider_is_willing_to_write):
	Force GConf sync to get ride of 'foo' entry.

Pierre Wieser's avatar
Pierre Wieser committed
1121
2010-04-14 Pierre Wieser <pwieser@trychlos.org>
1122

1123 1124 1125 1126
	* NEWS: Update before release.

	* configure.ac: Bump version number before release.

1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137
	* src/core/na-selected-info.h:
	* src/core/na-selected-info.c (na_selected_info_get_name):
	Renamed as na_selected_info_get_path.

	* src/core/na-icontext.c
	(is_current_folder_inside, is_target_selection_candidate):
	Updated accordingly.

	* src/core/na-object-profile.c (na_object_profile_parse_parameters):
	Do not try to deal with null values.

1138 1139 1140
	* src/plugin-menu/nautilus-actions.c (create_item_from_profile):
	Duplicate the candidate profile, set the parent to null.

1141 1142 1143
	* src/core/na-selected-info.c (na_selected_info_get_location):
	Increment the reference count of the returned location.

1144 1145 1146
	* src/core/na-gconf-utils.c (dump_entry):
	Do not try to dump a null value.

1147 1148 1149 1150 1151 1152 1153
	* src/core/na-selected-info.c
	(dump): New function.
	(na_selected_info_create_for_uri): Accepts a mimetype.

	* src/plugin-tracker/na-tracker-dbus.c
	(na_tracker_dbus_get_selected_paths): Also sends the mimetype.

Pierre Wieser's avatar
Pierre Wieser committed
1154
2010-04-13 Pierre Wieser <pwieser@trychlos.org>
1155

1156 1157 1158 1159 1160 1161 1162 1163 1164 1165
	* po/POTFILES.in: Adding src/nact/nact-iconditions-tab.c file.

	* src/api/na-ifactory-object-data.h:
	* src/core/na-icontext-factory.c:
	Adding NAFO_DATA_SELECTION_COUNT data, obsoleting NAFO_DATA_MULTIPLE.

	* src/nact/nact-iconditions-tab.c:
	* src/nact/nautilus-actions-config-tool.ui:
	Adding required entries for SelectionCount data.

Pierre Wieser's avatar
Pierre Wieser committed
1166
2010-04-12 Pierre Wieser <pwieser@trychlos.org>
1167

1168 1169 1170
	* src/plugin-menu/Makefile.am:
	* src/plugin-tracker/Makefile.am: Fix incorrect log domains.

1171 1172
	* po/POTFILES.in: Add src/nact/nact-iproperties-tab.c file.

Pierre Wieser's avatar
Pierre Wieser committed
1173 1174
	* src/nact/nautilus-actions-config-tool.ui: Adjust vertical paddings.

1175 1176 1177 1178 1179 1180 1181 1182 1183 1184
	"Advanced conditions" tab is renamed as "Schemes".

	* src/nact/nact-iadvanced-tab.c: Renamed as src/nact/nact-ischemes-tab.c.
	* src/nact/nact-iadvanced-tab.h: Renamed as src/nact/nact-ischemes-tab.h.

	* src/nact/Makefile.am:
	* src/nact/nact-icommand-tab.c:
	* src/nact/nact-main-tab.h:
	* src/nact/nact-main-window.c: Updated accordingly.

1185 1186 1187 1188 1189 1190 1191 1192 1193 1194
	Move item properties to their own tab.

	* src/nact/nact-iproperties-tab.c:
	* src/nact/nact-iproperties-tab.h: New files.

	* src/nact/Makefile.am:
	* src/nact/nact-iaction-tab.c:
	* src/nact/nact-main-tab.h:
	* src/nact/nact-main-window.c:
	* src/nact/nautilus-actions-config-tool.ui: Updated accordingly.
1195

Pierre Wieser's avatar
Pierre Wieser committed
1196
2010-04-09 Pierre Wieser <pwieser@trychlos.org>
1197

Pierre Wieser's avatar
Pierre Wieser committed
1198 1199
	* NEWS: Updated.

1200 1201 1202
	* src/nact/nact-sort-buttons.c (set_new_sort_order):
	Do not rewrite in GConf a just-readen sort order.

1203 1204 1205
	* src/io-gconf/nagp-writer.c (nagp_iio_provider_delete_item):
	Also delete the schema names which may be embedded in GConfEntry.

1206 1207 1208 1209 1210 1211 1212
	* src/api/na-gconf-utils.h:
	* src/core/na-gconf-utils.c (na_gconf_utils_dump_entries):
	New function.

	* src/io-gconf/nagp-reader.c (read_item):
	Dump content of readen entries.

1213 1214 1215
	* src/io-gconf/nagp-gconf-provider.c (install_monitors):
	Also monitors schemas to be triggered when importing a schema.

1216 1217
	* configure.ac: Bump version number for release.

1218 1219 1220
	* src/nact/nact-iaction-tab.c (on_icon_browse):
	Save current position and folder of icon chooser.

Pierre Wieser's avatar
Pierre Wieser committed
1221
2010-04-08 Pierre Wieser <pwieser@trychlos.org>
1222

1223 1224 1225
	* src/core/na-object-profile.c (is_valid_path_parameters):
	Only check for non-empty path+parameters (fix #614596).

1226 1227 1228 1229
	* src/nact/nact-sort-buttons.c (on_sort_down_button_toggled,
	on_sort_manual_button_toggled, on_sort_up_button_toggled):
	Do not let the user click twice on a sort button.

1230 1231 1232
	* src/nact/nact-main-window.c (setup_dialog_title):
	Review/normalize debug entry message.

1233 1234 1235
	* src/nact/nact-ifolders-tab.c (on_add_folder_clicked):
	Folders list is definitively a list of paths (not URI).

1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257
	* src/api/na-core-utils.h:
	* src/core/na-core-utils.c (na_core_utils_str_collate): New function.

	* src/core/na-data-boxed.c (locale_are_equal):
	* src/core/na-object-action.c (deals_with_toolbar_label):
	* src/core/na-object-id.c (na_object_id_sort_alpha_asc):
	* src/io-desktop/nadp-utils.c (nadp_utils_gslist_remove_from):
	* src/nact/base-builder.c (already_loaded): Updated accordingly.

	* src/api/na-gconf-utils.h:
	* src/core/na-gconf-utils.c (na_gconf_utils_has_entry):
	Check for an entry in the previously loaded list.

	* src/io-gconf/nagp-reader.c
	(read_item): First check for Type default value.
	(read_item, read_done_item_is_writable,
	read_done_action_load_profile): Load entries.

	* src/nact/nact-iaction-tab.c (on_tab_updatable_selection_changed):
	* src/nact/nact-icommand-tab.c (on_tab_updatable_selection_changed):
	Protect gtk_ functions against null values.

1258 1259 1260
	* src/plugin-menu/Makefile.am:
	Rename plugin to libnautilus-actions-menu.

1261 1262 1263
	* src/io-desktop/nadp-reader.c (item_from_desktop_path):
	First check Type for default value.

Pierre Wieser's avatar
Pierre Wieser committed
1264
2010-04-07 Pierre Wieser <pwieser@trychlos.org>
1265 1266 1267 1268 1269 1270 1271 1272 1273 1274

	* src/nact/nact-gtk-utils.c:
	* src/nact/nact-gtk-utils.h
	(nact_gtk_utils_get_pixbuf): Render an icon for a given widget.
	(nact_utils_render): New function.

	* src/nact/nact-iaction-tab.c (on_icon_changed):
	* src/nact/nact-main-statusbar.c (nact_main_statusbar_set_locked):
	* src/nact/nact-tree-model.c (display_item): Updated accordingly.

Pierre Wieser's avatar
Pierre Wieser committed
1275
2010-04-02 Pierre Wieser <pwieser@trychlos.org>
Pierre Wieser's avatar
Pierre Wieser committed
1276

1277 1278 1279 1280
	* configure.ac:
	* src/nact/nact-main-tab.c (nact_main_tab_is_page_enabled):
	GTK_WIDGET_IS_SENSITIVE is deprecated starting from gtk 2.20.

Pierre Wieser's avatar
Pierre Wieser committed
1281 1282 1283 1284
	* src/core/na-core-utils.c (na_core_utils_file_exists):
	* src/io-xml/naxml-writer.c (output_xml_to_file):
	Takes an URI as the filename.

Pierre Wieser's avatar
Pierre Wieser committed
1285
2010-04-01 Pierre Wieser <pwieser@trychlos.org>
1286

1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301
	* src/api/na-icontextual.h: Renamed as src/api/na-icontext.h.
	* src/core/na-icontextual.c: Renamed as src/core/na-icontext.c.
	* src/core/na-icontextual-factory.c: Renamed as	src/core/na-icontext-factory.c.

	* po/POTFILES.in:
	* src/api/Makefile.am:
	* src/api/na-icontext.h:
	* src/api/na-object-api.h:
	* src/core/Makefile.am:
	* src/core/na-icontext.c:
	* src/core/na-object-action.c:
	* src/core/na-object-profile.c:
	* src/plugin-menu/nautilus-actions.c:
	* src/utils/nautilus-actions-run.c: Updated accordingly.

1302 1303 1304 1305
	* src/api/na-object-api.h (na_object_prepare_for_paste):
	* src/core/na-object-id.c (na_object_id_prepare_for_paste):
	Parent is not always an action, may be a menu.

1306 1307 1308 1309
	* src/io-desktop/nadp-desktop-file.c
	(nadp_desktop_file_get_file_type):
	Do not emit a warning if Type is not found in the .desktop file.

1310 1311 1312
	* src/core/na-core-utils.c (na_core_utils_slist_to_array):
	Fix built of array.

1313 1314 1315
	* src/io-desktop/nadp-keys.h:
	Set back action (resp. menu) Type to Action (resp. Menu).

1316 1317 1318
	* src/nact/nautilus-actions-config-tool.ui:
	Insert a scrolled window as text view parent.

1319 1320 1321
	* src/io-desktop/nadp-desktop-file.c (check_key_file):
	Only write a debug message if file is hidden.

Pierre Wieser's avatar
Pierre Wieser committed
1322
2010-03-29 Pierre Wieser <pwieser@trychlos.org>
1323

Pierre Wieser's avatar
Pierre Wieser committed
1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339
	* src/nact/nact-gtk-utils.c (nact_gtk_utils_set_editable):
	Take into account new GtktextView widget.

	* src/io-desktop/nadp-writer.c (nadp_iio_provider_write_item):
	Remove groups which no longer exist.

	* src/io-desktop/nadp-reader.c (read_done_load_profiles):
	Free string lists.

	* src/io-desktop/nadp-desktop-file.c:
	* src/io-desktop/nadp-desktop-file.h (nadp_desktop_file_remove_profile):
	New function.

	* src/io-desktop/nadp-desktop-file.c (nadp_desktop_file_get_profiles):
	Fix allocation of profile id.

1340 1341 1342 1343 1344 1345 1346
	* src/io-desktop/nadp-desktop-file.c:
	* src/io-desktop/nadp-desktop-file.h (nadp_desktop_file_remove_key):
	New function.

	* src/io-desktop/nadp-writer.c (nadp_iio_provider_write_item):
	Remove key when it is no more set.

Pierre Wieser's avatar
Pierre Wieser committed
1347 1348 1349 1350 1351 1352
	* src/api/na-object-api.h
	(na_object_get_description, na_object_set_description): New macros.

	* src/nact/nact-iaction-tab.c:
	* src/nact/nautilus-actions-config-tool.ui: Add description entry.

Pierre Wieser's avatar
Pierre Wieser committed
1353 1354
	* src/io-desktop/nadp-keys.h: Remove unused keys.

1355 1356 1357
	* src/io-desktop/nadp-reader.c (nadp_reader_ifactory_provider_read_done):
	Explicitly read subitems string list.

1358 1359 1360 1361 1362
	* src/io-desktop/nadp-desktop-provider.c (ifactory_provider_iface_init):
	* src/io-desktop/nadp-writer.c:
	* src/io-desktop/nadp-writer.h (nadp_writer_ifactory_provider_write_done):
	New function: explicitly write subitems string list for actions and menus.

Pierre Wieser's avatar
Pierre Wieser committed
1363
2010-03-28 Pierre Wieser <pwieser@trychlos.org>
1364

1365 1366 1367
	* src/api/na-data-boxed.h:
	* src/core/na-data-boxed.c (na_data_boxed_set_default): Removed function.

1368 1369 1370
	* src/core/na-factory-object.c (set_defaults_iter):
	Only set a default value when the box has not been yet allocated.

1371 1372 1373 1374 1375 1376 1377 1378 1379
	* src/api/na-ifactory-object.h:
	* src/core/na-ifactory-object.c (na_ifactory_object_get_data_groups):
	New function.

	* src/core/na-object-item-factory.c:
	* src/core/na-object-action.c (instance_init):
	* src/core/na-object-menu.c (instance_init):
	No more instantiate 'type' data box.

1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397
	* src/core/na-object-item-factory.c:
	NAFO_DATA_TYPE is no more automatically readen nor written.

	* src/io-desktop/nadp-desktop-provider.c (ifactory_provider_iface_init):
	Implement data writing.

	* src/io-desktop/nadp-keys.c:
	* src/io-desktop/nadp-keys.h (nadp_keys_get_group_and_key):
	Removed function.

	* src/io-desktop/nadp-reader.c
	(item_from_desktop_path): Test default value first.
	(nadp_reader_ifactory_provider_read_data): Use new desktop_entry field.

	* src/io-desktop/nadp-writer.c:
	* src/io-desktop/nadp-writer.h (nadp_writer_ifactory_provider_write_start,
	nadp_writer_ifactory_provider_write_data): New functions.

1398 1399 1400 1401 1402 1403 1404 1405 1406
	* src/io-gconf/nagp-writer.c (nagp_writer_write_start):
	Explicitely write item type.

	* src/io-desktop/nadp-desktop-file.c:
	* src/io-desktop/nadp-desktop-file.h
	(nadp_desktop_file_set_boolean, nadp_desktop_file_set_locale_string,
	nadp_desktop_file_set_string, nadp_desktop_file_set_string_list,
	nadp_desktop_file_set_uint): New functions.

1407 1408 1409 1410
	* src/api/na-core-utils.h:
	* src/core/na-core-utils.c (na_core_utils_slist_to_array):
	New function.

Pierre Wieser's avatar
Pierre Wieser committed
1411
2010-03-26 Pierre Wieser <pwieser@trychlos.org>
1412

1413 1414 1415 1416 1417 1418 1419 1420
	* src/api/na-data-def.h:
	* src/core/na-icontextual-factory.c:
	* src/core/na-object-id-factory.c:
	* src/core/na-object-item-factory.c:
	* src/core/na-object-action-factory.c:
	* src/core/na-object-profile-factory.c:
	Define the key for .desktop file.

1421 1422 1423
	* src/io-gconf/nagp-writer.c (nagp_writer_write_data):
	Remove blank line.

1424 1425 1426 1427 1428
	* src/io-desktop/nadp-desktop-provider.c:
	* src/io-desktop/nadp-reader.c:
	* src/io-desktop/nadp-reader.h
	(nadp_reader_ifactory_provider_read_start): Removed unused function.

1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444
	* src/io-desktop/nadp-desktop-file.c:
	* src/io-desktop/nadp-desktop-file.h
	(check_key_file): Check that we don't have a 'Hidden=true' key.
	(nadp_desktop_file_get_profiles): New function.

	* src/io-desktop/nadp-desktop-provider.c:
	* src/io-desktop/nadp-desktop-provider.h:
	Move reader functions and structure to nadp-reader.c.

	* src/io-desktop/nadp-keys.h:
	Relabel type of items in .desktop file (cf. draft 0.9).

	* src/io-desktop/nadp-reader.c:
	* src/io-desktop/nadp-reader.h:
	Read profiles present in the .desktop file.

Pierre Wieser's avatar
Pierre Wieser committed
1445
2010-03-26 Pierre Wieser <pwieser@trychlos.org>
1446

1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462
	* src/io-desktop/nadp-desktop-file.c:
	* src/io-desktop/nadp-desktop-file.h
	(check_key_file): Check that we don't have a 'Hidden=true' key.
	(nadp_desktop_file_get_profiles): New function.

	* src/io-desktop/nadp-desktop-provider.c:
	* src/io-desktop/nadp-desktop-provider.h:
	Move reader functions and structure to nadp-reader.c.

	* src/io-desktop/nadp-keys.h:
	Relabel type of items in .desktop file (cf. draft 0.9).

	* src/io-desktop/nadp-reader.c:
	* src/io-desktop/nadp-reader.h:
	Read profiles present in the .desktop file.

Pierre Wieser's avatar
Pierre Wieser committed
1463
2010-03-26 Pierre Wieser <pwieser@trychlos.org>
1464

1465 1466
	* configure.ac: Bump version number for data branch.

Pierre Wieser's avatar
Pierre Wieser committed
1467
2010-03-26 Pierre Wieser <pwieser@trychlos.org>
1468

1469 1470
	Releasing 2.30.0.

Pierre Wieser's avatar
Pierre Wieser committed
1471
2010-03-25 Pierre Wieser <pwieser@trychlos.org>
1472

1473 1474 1475 1476 1477 1478 1479 1480 1481 1482
	* src/nact/nact-main-menubar-edit.c:
	* src/nact/nact-main-menubar-edit.h:
	* src/nact/nact-main-menubar-file.c:
	* src/nact/nact-main-menubar-file.h:
	* src/nact/nact-main-menubar-view.c:
	* src/nact/nact-main-menubar-view.h: New files.

	* po/POTFILES.in:
	* src/nact/Makefile.am: Updated accordingly.

1483 1484 1485 1486 1487 1488 1489 1490 1491 1492
	* src/nact/nact-main-window.c
	(ipivot_consumer_on_mandatory_prefs_changed):
	Implement NAIPivotConsumer notification.

	* src/nact/nact-sort-buttons.c:
	* src/nact/nact-sort-buttons.h
	(nact_sort_buttons_level_zero_writability_change):
	Enable/disable the buttons depending of the level zero writability
	status.

Pierre Wieser's avatar
Pierre Wieser committed
1493
2010-03-24 Pierre Wieser <pwieser@trychlos.org>
1494

1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505
	* src/core/na-ipivot-consumer.c
	(na_ipivot_consumer_notify_of_mandatory_prefs_changed) : New function.
	(on_mandatory_prefs_changed): New interface API.

	* src/core/na-pivot.c (monitor_runtime_preferences):
	Monitor the mandatory preferences set by the admin.

	* src/nact/nact-main-window.c (ipivot_consumer_iface_init):
	* src/plugin-menu/nautilus-actions.c (ipivot_consumer_iface_init):
	For now, only declare NULL implementations.

1506 1507 1508 1509
	* src/nact/nact-preferences-editor.c (on_base_runtime_init_dialog):
	* src/nact/nact-sort-buttons.c (nact_sort_buttons_runtime_init):
	Forbid the modification of order mode is level zero is not writable.

1510 1511 1512
	* src/core/na-pivot.c (na_pivot_is_level_zero_writable):
	Writable if not all not GConf are locked by admin.

1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533
	* src/nact/nact-iaction-tab.c (nact_iaction_tab_runtime_init_toplevel):
	* src/nact/nact-iadvanced-tab.c (runtime_init_connect_signals):
	* src/nact/nact-icommand-tab.c (nact_icommand_tab_runtime_init_toplevel):
	* src/nact/nact-iconditions-tab.c (nact_iconditions_tab_runtime_init_toplevel):
	* src/nact/nact-ifolders-tab.c (nact_ifolders_tab_runtime_init_toplevel):
	* src/nact/nact-main-tab.h:
	Signal TAB_UPDATABLE_SIGNAL_SELECTION_CHANGED is renamed as
	MAIN_WINDOW_SIGNAL_SELECTION_CHANGED.

	* src/nact/nact-main-menubar.c:
	* src/nact/nact-main-menubar.h
	(nact_main_menubar_is_level_zero_order_changed): New function.

	* src/nact/nact-iactions-list.h:
	* src/nact/nact-iactions-list-bis.c (nact_iactions_list_bis_delete):
	Add an argument to select the row at end of the function.

	* src/nact/nact-main-window.c:
	Connect to MAIN_WINDOW_SIGNAL_LEVEL_ZERO_ORDER_CHANGED to update
	dialog title.

1534 1535 1536 1537 1538
	* src/nact/nact-iactions-list.c:
	* src/nact/nact-iactions-list.h
	(selection_changed): Remove the not used API.
	Remove the connection to the signal and the call to the interface.

1539 1540 1541 1542
	* src/nact/nact-assistant-export.c (iactions_list_iface_init):
	Use the IACTIONS_LIST_SIGNAL_SELECTION_CHANGED instead of the
	interface API.

1543 1544 1545 1546 1547 1548 1549 1550
	* src/nact/nact-main-window.c
	(ipivot_consumer_on_display_order_changed):
	Relay NAIPivotConsumer notification to nact_sort_buttons.

	* src/nact/nact-sort-buttons.c:
	* src/nact/nact-sort-buttons.h
	(nact_sort_buttons_display_order_change): New function.

1551 1552 1553
	* src/nact/nact-main-menubar.c (save_item):
	Not only unref old origin, but also remove it from tree.

Pierre Wieser's avatar
Pierre Wieser committed
1554
2010-03-23 Pierre Wieser <pwieser@trychlos.org>
1555

1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566
	Add buttons to sort the list.

	* src/nact/nact-sort-buttons.c:
	* src/nact/nact-sort-buttons.h: New files.

	* src/nact/Makefile.am:
	* src/nact/nact-main-window.c: Updated accordingly.

	* src/nact/nautilus-actions-config-tool.ui:
	Define three new buttons to help to sort the list of items.

1567 1568
	* src/core/Makefile.am:
	No more give a version number to the core library.
1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601

	Restore the target-location indicator.

	* src/api/na-ifactory-object-data.h:
	* src/core/na-object-action-factory.c:
	Renamed NAFO_DATA_TARGET_BACKGROUND as NAFO_DATA_TARGET_LOCATION.

	* src/api/na-object-api.h
	(na_object_is_target_location, na_object_set_target_location):
	New macros.

	* src/api/na-object-item.h:
	* src/plugin-menu/nautilus-actions.c (menu_provider_get_background_items):
	Renamed ITEM_TARGET_BACKGROUND as ITEM_TARGET_LOCATION.

	* src/core/na-icontextual-factory.c:
	* src/core/na-object-action-factory.c:
	* src/core/na-object-item-factory.c:
	Update data descriptions.

	* src/core/na-icontextual.c (is_target_background_candidate):
	Renamed as is_target_location_candidate().

	* src/core/na-object-action.c (na_object_action_is_candidate):
	Only selects the action if it is candidate for this target.

	* src/nact/nact-iaction-tab.c (on_tab_updatable_selection_changed):
	* src/nact/nautilus-actions-config-tool.ui:
	Display the target-location checkbox.

	* src/utils/nautilus-actions-new.c:
	Let the user select the target-location boolean indicator.

Pierre Wieser's avatar
Pierre Wieser committed
1602
2010-03-22 Pierre Wieser <pwieser@trychlos.org>
Pierre Wieser's avatar
Pierre Wieser committed
1603

1604 1605 1606 1607
	* src/core/na-icontextual.c
	(is_current_folder_inside): Compare path rather that URI.
	(is_target_selection_candidate): Fix NASelectedInfo addressing.

1608 1609 1610 1611
	* src/plugin-menu/nautilus-actions.c
	(get_file_or_background_items): New function.
	(build_nautilus_menus, get_candidate_profile): Add debug messages.

1612 1613 1614
	* src/core/na-selected-info.c (query_file_attributes):
	Fix file_info_get_attribute.

1615 1616 1617
	* src/core/na-object-action.c (na_object_action_is_candidate):
	Considere background menu just as a special case of selection menu.

Pierre Wieser's avatar
Pierre Wieser committed
1618 1619
	* data/.gitignore: Update .gitignore.

Pierre Wieser's avatar
Pierre Wieser committed
1620
2010-03-17 Pierre Wieser <pwieser@trychlos.org>
1621

1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638
	* data/Makefile.am: Automatically generate configurations schemas.

	* data/nautilus-actions.schemas.in:
	Renamed as data/nautilus-actions-prefs.schemas.in.
	Remove configurations schemas (now dynamically generated).

	* po/POTFILES.in: Updated accordingly.

	* src/core/na-icontextual-factory.c:
	* src/core/na-object-action-factory.c: Fix typo.

	* src/utils/nautilus-actions-schemas.c:
	Output configurations schemas to stdout.

	* po/POTFILES.skip:
	New file: do not try to translate dynamically generated schema.

Pierre Wieser's avatar
Pierre Wieser committed
1639 1640 1641
	* Makefile.am:
	Build data/ after src/ to bo take advantage of dynamic generation of schemas.

1642 1643 1644
	* src/core/na-icontextual-factory.c:
	String lists are now initialized in GConf-style.

1645 1646 1647 1648
	* src/io-gconf/nagp-writer.c (nagp_writer_write_data):
	* src/io-xml/naxml-writer.c (write_data_schema_v2, write_data_dump):
	Do not output empty values.

1649 1650 1651
	* src/api/na-data-boxed.h:
	* src/core/na-data-boxed.c (na_data_boxed_is_set): New function.

1652 1653 1654
	* data/nautilus-actions.schemas.in:
	Fix typo.
	Add io-providers/read-at-startup and io-providers/writable keys.
Pierre Wieser's avatar
Pierre Wieser committed
1655

Pierre Wieser's avatar
Pierre Wieser committed
1656 1657
	* src/nact/nact.desktop.in: Add StartupNotify=true.

1658 1659 1660
	* src/nact/nact-main-window.c (reload):
	Free the deleted list before filling the tree.

1661 1662 1663 1664
	* src/nact/nact-main-menubar.c
	(on_cut_activated): Do not cut not deletable items.
	(get_deletables): Add a ref on items to delete.

1665 1666 1667
	* src/test/init-dispose-diff.sh:
	Do not take into account some debug messages.

Pierre Wieser's avatar
Pierre Wieser committed
1668
2010-03-16 Pierre Wieser <pwieser@trychlos.org>
1669

1670 1671 1672
	* src/utils/nautilus-actions-new.c
	(output_to_dir): Output the new action to a file.

1673 1674 1675
	* src/core/na-core-utils.c (info_dir_is_writable):
	Do not emit a warning on 'no such file or directory' error.

1676 1677 1678
	* src/utils/nautilus-actions-new.c
	(output_to_stdout): Output the new action to stdout.
	(output_to_gconf): Output the new action to GConf.
1679

1680 1681 1682
	* src/io-xml/naxml-writer.c (naxml_writer_write_start):
	Add attribute to list node, thus fixing writing of action.

Pierre Wieser's avatar
Pierre Wieser committed
1683
2010-03-15 Pierre Wieser <pwieser@trychlos.org>
1684

1685 1686 1687
	* src/io-xml/naxml-writer.c (naxml_writer_write_start):
	No need to explicitely write item type as the data is marked writable.

Pierre Wieser's avatar
Pierre Wieser committed
1688 1689 1690 1691
	* src/utils/nautilus-actions-new.c:
	Cleanup old command-line code.
	Check for incompatibility between boolean arguments.

1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704
	* src/api/na-data-def.h (na_data_def_get_data_def): New function.

	* src/core/na-data-def.c: New file.

	* src/core/Makefile.am: Updated accordingly.

	* src/core/na-icontextual-factory.c:
	* src/core/na-object-profile-factory.c:
	Update command-line options to not have duplicates.

	* src/utils/nautilus-actions-new.c:
	Use new ArgFromDataDef structure and display suitable help.

1705 1706 1707 1708 1709 1710 1711
	* src/core/na-icontextual-factory.c:
	* src/core/na-object-action-factory.c:
	* src/core/na-object-item-factory.c:
	* src/core/na-object-profile-factory.c:
	* src/utils/nautilus-actions-new.c:
	Update data definitions to handle command-line arguments.

Pierre Wieser's avatar
Pierre Wieser committed
1712
2010-03-10 Pierre Wieser <pwieser@trychlos.org>
1713

1714 1715 1716
	* src/utils/nautilus-actions-new.c:
	Define a structure to host NADataDef argument definitions.

1717 1718 1719 1720 1721 1722 1723 1724 1725
	* src/api/na-data-def.h:
	Add parameters to be able to manage command-line arguments.

	* src/core/na-icontextual-factory.c:
	* src/core/na-object-action-factory.c:
	* src/core/na-object-id-factory.c:
	* src/core/na-object-item-factory.c:
	* src/core/na-object-profile-factory.c: Updated accordingly.

1726 1727 1728 1729 1730 1731 1732 1733
	* src/core/na-io-provider.c (build_hierarchy):
	Attach the child item to its parent.

	* src/core/na-object-id.c (instance_dispose):
	* src/core/na-object-item.c (instance_dispose):
	* src/core/na-object.c (instance_dispose):
	Add debug messages.

1734 1735 1736 1737 1738 1739 1740 1741 1742 1743
	* src/core/na-dbus-tracker.h: Remove no more used file.

	* src/core/Makefile.am: Updated accordingly.

	* src/core/na-icontextual.c:
	* src/core/na-object-profile.c:
	* src/plugin-tracker/na-tracker-dbus.c:
	* src/utils/nautilus-actions-run.c:
	Remove all references to NATrackedItem obsolete class.

1744 1745 1746 1747 1748 1749
	* src/api/na-ifactory-object-data.h:
	Rename v1 action data group to NA_FACTORY_ACTION_V1_GROUP.

	* src/core/na-object-action-factory.c:
	No more try to read obsolete NAFO_DATA_TARGET_BACKGROUND data.

1750 1751 1752 1753
	* src/plugin-tracker/na-tracker.c
	(menu_provider_get_background_items):
	Implement Nautilus get_background_items() interface.

1754 1755 1756
	* data/nautilus-actions.schemas.in:
	Remove 'target-background' entry description.

1757 1758 1759 1760 1761 1762 1763
	* src/api/na-object-api.h
	(na_object_is_target_background): Removed macro.

	* src/api/na-object-profile.h
	* src/core/na-object-profile.c
	(na_object_profile_is_target_background): Removed function.

Pierre Wieser's avatar
Pierre Wieser committed
1764
2010-03-09 Pierre Wieser <pwieser@trychlos.org>
Pierre Wieser's avatar
Pierre Wieser committed
1765

1766 1767 1768
	* src/io-gconf/nagp-writer.c (nagp_writer_write_data):
	Replace gconf_concat_dir_and_key by g_strdup_printf.

Pierre Wieser's avatar
Pierre Wieser committed
1769 1770 1771
	* src/core/na-ifactory-provider.c (na_ifactory_provider_write_item):
	Add a debug trace when entering in the function.

1772 1773 1774 1775
	* src/api/na-icontext-conditions.h: Renamed as na-icontextual.h.
	* src/core/na-icontext-conditions.c: Renamed as na-icontextual.c.
	* src/core/na-icontext-conditions-factory.c:
	Renamed as na-icontextual-factory.c.
1776

1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787
	* po/POTFILES.in:
	* src/api/Makefile.am:
	* src/api/na-icontextual.h:
	* src/api/na-object-api.h:
	* src/core/Makefile.am:
	* src/core/na-icontextual.c:
	* src/core/na-object-action.c:
	* src/core/na-object-profile.c:
	* src/plugin-menu/nautilus-actions.c:
	* src/utils/nautilus-actions-run.c: Updated accordingly.

Pierre Wieser's avatar
Pierre Wieser committed
1788
2010-03-09 Pierre Wieser <pwieser@trychlos.org>
1789

1790 1791 1792 1793 1794 1795 1796 1797 1798
	Refactor NactIBackgroundTab class as NactIFoldersTab.

	* src/nact/nact-ibackground-tab.c:
	* src/nact/nact-ibackground-tab.h: Renamed as nact-ifolders-tab.{c,h}.

	* src/nact/Makefile.am:
	* src/nact/nact-main-tab.h:
	* src/nact/nact-main-window.c: Updated accordingly.

1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813
	Remove the 'target background' indicator which was introduced in 2.29.1.

	* src/core/na-object-action-factory.c:
	Update properties for NAFO_DATA_TARGET_BACKGROUND.

	* src/nact/nact-iaction-tab.c
	(nact_iaction_tab_runtime_init_toplevel): Remove the signal connection.
	(on_tab_updatable_selection_changed): Remove fields initialization.
	(on_target_background_toggled): Remove the function.

	* src/nact/nact-ibackground-tab.c (tab_set_sensitive):
	Always sensitive for profiles.

	* src/nact/nautilus-actions-config-tool.ui: Remove the fields.

1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828
	* src/core/na-object-action-factory.c:
	data_def_action_v1 is now available from outside.

	* src/core/na-object-action.c
	(ifactory_object_read_done, ifactory_object_write_done):
	Rewrite input/output functions.

	* src/io-gconf/nagp-reader.c
	(nagp_reader_read_data): Simplify the code.

	* src/io-gconf/nagp-writer.c
	(nagp_writer_write_start): No more write type as this is a normal data.
	(nagp_writer_write_data): Rewrite profile writing.
	(nagp_writer_write_done): Profile writing is now driven by NAObjectAction.

Pierre Wieser's avatar
Pierre Wieser committed
1829 1830
	* src/nact/nact-tree-model-dnd.c: Cleanup the code.

Pierre Wieser's avatar
Pierre Wieser committed
1831
2010-03-05 Pierre Wieser <pwieser@trychlos.org>
1832

1833 1834 1835 1836 1837
	* nact/nact-tree-model-dnd.c (drop_inside):
	Split to three functions to better readibility.
	Fix drop inside an empty menu.
	Fix drop into a non writable parent.

1838 1839 1840 1841 1842 1843 1844 1845 1846
	* src/api/na-iio-provider.h: Add a comment.

	* src/core/na-io-provider.c:
	* src/core/na-io-provider.h (na_io_provider_get_return_code_label):
	New function.

	* src/nact/nact-window.c (nact_window_save_item):
	Better error message.

1847 1848 1849
	* src/nact/nact-export-ask.c (on_base_runtime_init_dialog):
	Set more clear label, whether the item be a label or an action.

1850 1851 1852
	* src/nact/nact-tree-model-dnd.c (get_xds_atom_value):
	Remove debug traces after validation both on 32 and 64 bits systems.

1853 1854 1855 1856 1857 1858 1859 1860 1861
	* src/api/na-core-utils.h:
	* src/core/na-core-utils.c
	(na_core_utils_slist_join_at_end): New function.

	* src/api/na-iio-provider.h: Fix typo in comment.

	* src/nact/nact-main-menubar.c (on_delete_activated):
	Do not delete a tree if at least one item is not writable.

1862 1863 1864
	* src/nact/nact-tree-model-dnd.c (get_xds_atom_value):
	Fix 64 bits value.

1865 1866 1867
	* src/plugin-menu/nautilus-actions.c
	(create_item_from_menu): Add a trace on weak notify.

Pierre Wieser's avatar
Pierre Wieser committed
1868
2010-03-04 Pierre Wieser <pwieser@trychlos.org>
1869 1870 1871 1872 1873

	* src/core/na-object-action.c (instance_init):
	* src/core/na-object-menu.c (instance_init):
	Rather create the 'Type' box here than in read_start().

Pierre Wieser's avatar
Pierre Wieser committed
1874
2010-03-03 Pierre Wieser <pwieser@trychlos.org>
1875

Pierre Wieser's avatar
Pierre Wieser committed
1876 1877 1878
	* src/core/Makefile.am:
	* src/nact/Makefile.am: Fix make distcheck.

Pierre Wieser's avatar
Pierre Wieser committed
1879 1880
	* po/POTFILES.in: Updated.

1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899
	Rename the NAIConditions interface to NAIContextConditions
	(hopefully, there will be a NAIContextParameters some day :)).

	* src/core/na-iconditions-factory.c:
	Renamed as src/core/na-icontext-conditions-factory.c.

	* src/core/na-iconditions.c:
	Renamed as src/core/na-icontext-conditions.c.

	* src/api/na-iconditions.h:
	Renamed as src/core/na-icontext-conditions.h.

	* src/api/Makefile.am:
	* src/core/Makefile.am: Updated accordingly.

	* src/core/na-object-profile.c:
	* src/plugin-menu/nautilus-actions.c:
	Use new na_icontext_conditions_is_candidate() function.

1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918
	Define the NAIConditions interface, to be implemented by actions,
	profiles and menus (for now, only profiles).

	* src/api/na-iconditions.h:
	* src/core/na-iconditions.c:
	* src/core/na-iconditions-factory.c: New files.

	* src/api/Makefile.am:
	* src/core/Makefile.am: Updated accordingly.

	* src/api/na-ifactory-object-data.h:
	Define the NA_FACTORY_CONDITIONS_GROUP data group.

	* src/core/na-object-profile-factory.c:
	Use new data_def_conditions.

	* src/core/na-object-profile.c (register_type):
	Implement the new NAIConditions interface.

1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930
	Review the rationales, replacing serializable+obsoleted by
	readable+writable flags in NADataDef structure.

	* src/api/na-data-def.h:
	* src/core/na-factory-object.c:
	* src/core/na-object-action-factory.c:
	* src/core/na-object-action.c:
	* src/core/na-object-id-factory.c:
	* src/core/na-object-item-factory.c:
	* src/core/na-object-profile-factory.c:
	* src/io-desktop/nadp-desktop-provider.c: Updated accordingly.

1931 1932 1933 1934
	* src/plugin-tracker/na-tracker-dbus.c (instance_dispose):
	Release selected items in instance_dispose() rather than in
	instance_finalize() which caused a FPE in Nautilus terminaison.

Pierre Wieser's avatar
Pierre Wieser committed
1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945
	* src/api/na-ifactory-object.h:
	* src/core/na-ifactory-object.c:
	* src/core/na-iio-provider.c:
	* src/io-desktop/nadp-desktop-file.c:
	* src/io-desktop/nadp-desktop-file.h:
	* src/io-xml/naxml-writer.c:
	* src/io-xml/naxml-writer.h:
	* src/nact/nact-iadvanced-tab.c:
	* src/nact/nact-main-menubar.c:
	* src/utils/nautilus-actions-new.c: Cleanup the code.

1946 1947 1948
	* src/nact/nact-assistant-export.c (assist_prepare_confirm):
	Optimize the build of the displayed text.

1949 1950 1951
	* src/nact/nact-assistant-export.c (on_all_widgets_showed):
	Select and expand the first row of the list.

1952 1953 1954 1955 1956 1957 1958
	* src/core/na-module.c (add_module_type):
	* src/io-desktop/nadp-reader.c (na_ifactory_provider_read_item):
	* src/io-desktop/nadp-writer.c (nadp_iio_provider_write_item):
	* src/nact/nact-export-format.c (draw_in_vbox):
	Add a weak_notify() local function in order to be able to trace
	the dispose of attached objects.

1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992
	* src/api/na-core-utils.h:
	* src/core/na-core-utils.c
	(na_core_utils_str_remove_char): New function.

	* src/api/na-iexporter.h:
	Onlu reference one short label in NAIExporterFormat structure.

	* src/core/na-export-format.c:
	* src/core/na-export-format.h:
	* src/io-xml/naxml-formats.c: Updated accordingly.

	* src/nact/base-window.c (setup_builder):
	Display a dialog error when unable to load a XML definition.

	* src/nact/nact-assistant-export.c:
	* src/nact/nact-assistant-export.ui:
	* src/nact/nact-assistant-import.c:
	Adjust the display to be more funny.

	* src/nact/nact-clipboard.c:
	Add na-export-format.h include file.

	* src/nact/nact-export-ask.c:
	* src/nact/nact-export-format.c:
	* src/nact/nact-export-format.h:
	Reference the NAExportFormat object instead of each and every label.

	* src/nact/nact-iprefs.h:
	Remove IPREFS_EXPORT_FORMAT_ASK definition.

	* src/nact/nact-preferences-editor.c:
	* src/nact/nautilus-actions-config-tool.ui:
	Use (renamed) nact_export_format_init_display() function.

1993 1994 1995 1996 1997 1998
	* src/api/na-core-utils.h:
	* src/core/na-core-utils.c (na_core_utils_file_exists):
	New function.

	* src/io-xml/naxml-writer.c: Export to file.

1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055
	* po/POTFILES.in: Updated.

	* src/api/na-data-types.h
	(na_data_types_get_gconf_dump_key): New function.

	* src/core/na-data-types.c: New file.

	* src/core/Makefile.am: Updated accordingly.

	* src/api/na-ifactory-object-data.h:
	* src/core/na-object-item-factory.c:
	(NAFO_DATA_TYPE): New elementary data.

	* src/core/na-ifactory-object.c:
	* src/api/na-ifactory-object.h
	(na_ifactory_object_get_data_boxed): New function.

	* src/core/na-core-utils.c (na_core_utils_dir_is_writable_uri):
	Give a better name to the parameter.

	* src/core/na-exporter.c:
	* src/core/na-exporter.h (na_exporter_to_buffer, na_exporter_to_file):
	Reorder of functions in the files.

	* src/core/na-factory-object.c:
	* src/core/na-factory-object.h:
	Now use the new na_ifactory_object_get_data_boxed() function.

	* src/core/na-object-action-factory.c:
	* src/core/na-object-profile-factory.c:
	* src/io-xml/naxml-keys.h:
	Move the schema descriptions to data factory.

	* src/core/na-object-action.c:
	* src/core/na-object-menu.c:
	(ifactory_object_read_start): Allocate the 'type' data boxed.

	* src/io-gconf/nagp-keys.h: Fix the path of the schemas.

	* src/io-xml/naxml-formats.c:
	* src/io-xml/naxml-formats.h: New files.

	* src/io-xml/Makefile.am: Updated accordingly.

	* src/io-xml/naxml-provider.c: Implement NAXMLWriter calls.

	* src/io-xml/naxml-writer.c:
	* src/io-xml/naxml-writer.h: Export to buffer.

	* src/nact/nact-clipboard.c
	(nact_clipboard_dnd_drag_end): Fix gtk_selection_data_free() call.
	(export_row_object): Also exports menus.

	* src/nact/nact-tree-model-dnd.c
	(nact_tree_model_dnd_imulti_drag_source_drag_data_get):
	Fix and parse the returned URI to get the path of the target folder.

Pierre Wieser's avatar
Pierre Wieser committed
2056
2010-03-01 Pierre Wieser <pwieser@trychlos.org>
pierre's avatar
pierre committed
2057

2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073
	* po/POTFILES.in: Add src/core/na-exporter.c file.

	* src/api/na-iexporter.h: Refactor NAIExporter interface.

	* src/core/na-export-format.c:
	* src/core/na-export-format.h
	(na_export_format_get_exporter): New function.

	* src/core/na-exporter.c:
	* src/core/na-exporter.h:
	* src/core/na-iexporter.c:
	* src/core/na-importer.c:
	* src/io-xml/naxml-provider.c:
	* src/nact/nact-assistant-export.c:
	* src/nact/nact-clipboard.c: Updated accordingly.

2074 2075 2076 2077 2078 2079 2080 2081 2082
	* src/api/na-iexporter.h:
	* src/core/na-export-format.c:
	* src/core/na-export-format.h:
	* src/core/na-exporter.c:
	* src/core/na-iexporter.c:
	* src/io-xml/naxml-provider.c:
	* src/nact/nact-export-format.c:
	NAExporterStr structure is renamed as NAIExporterFormat.

2083 2084 2085 2086 2087 2088
	* src/api/na-iimporter.h (from_uri):
	Rename the API function to be consistant with NAIExporter interface.

	* src/core/na-iimporter.c:
	* src/io-xml/naxml-provider.c: Updated accordingly.

2089 2090 2091 2092
	* src/nact/nact-tree-model-dnd.c
	(nact_tree_model_dnd_imulti_drag_source_drag_data_get):
	Target folder is an URI.

2093 2094 2095
	* src/nact/nact-main-menubar-tools.c:
	* src/nact/nact-main-menubar-tools.h: New files.

2096 2097 2098
	* src/nact/nact-main-menubar-maintainer.c:
	* src/nact/nact-main-menubar-maintainer.h: New files.

2099 2100 2101
	* src/nact/nact-main-menubar.c (on_update_sensitivities):
	Only paste a NAObjectItem into a menu.

2102 2103 2104 2105 2106 2107 2108
	* src/nact/nact-main-menubar-help.c:
	* src/nact/nact-main-menubar-help.h: New files.

	* src/nact/Makefile.am:
	* src/nact/nact-main-menubar.c:
	* src/nact/nact-main-menubar.h: Updated accordingly.

2109 2110 2111 2112 2113
	* src/core/na-updater.c:
	* src/core/na-updater.h (na_updater_append_item): New function.

	* src/nact/nact-main-menubar.c (save_item): Fix save machinery.

2114 2115 2116 2117 2118 2119 2120 2121
	* src/nact/nact-assistant-import.c
	(check_for_existance): Directly use the main window.

	* src/nact/nact-tree-model-dnd.c (drop_uri_list):
	Adapt to use na_importer_import_from_list() function.
	Display messages in a dialog box.
	Split the selection data on a '\r\n' separator.

2122 2123 2124 2125 2126
	* src/api/na-iimporter.h (NAIImporterListParms): New structure.

	* src/core/na-importer.c:
	* src/core/na-importer.h (na_importer_import_from_list): New function.

2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140
	* src/api/na-iimporter.h:
	* src/core/na-iimporter.c:
	* src/core/na-importer-ask.c:
	* src/core/na-importer-ask.h:
	* src/core/na-importer.c:
	* src/core/na-importer.h:
	* src/io-xml/naxml-reader.c:
	* src/io-xml/naxml-reader.h:
	* src/nact/nact-assistant-import.c:
	* src/nact/nact-tree-model-dnd.c:
	* src/test/test-reader.c:
	NAIImporterParms structure is renamed as NAIImporterUriParms.
	'item' member of this same structure is renamed as imported.

pierre's avatar
pierre committed
2141 2142 2143 2144
	* src/io-gconf/nagp-reader.c:
	* src/io-gconf/nagp-writer.c:
	* src/io-gconf/nagp-writer.h: Cleanup the code.

2145 2146 2147 2148 2149 2150 2151 2152 2153 2154
	* src/nact/nact-iaction-tab.c (setup_toolbar_label):
	Immediately update the toolbar label when it is the same that those
	of the action.

	* src/nact/nact-icommand-tab.c (parse_parameters):
	Fix display of a single '%' char.

	* src/nact/nautilus-actions-config-tool.ui:
	ActionIconLabelLabel field renamed as ActionToolbarLabelLabel.

2155 2156 2157 2158 2159 2160
	* src/io-gconf/nagp-reader.c (read_done_item):
	Only action needs to setup the parent pointer.

	* src/io-gconf/nagp-writer.c (nagp_writer_write_data):
	Only writes non-empty values.

2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171
	* src/core/na-object.c (na_object_object_reset_origin):
	No more check for the value of object origin before resetting it.

	* src/core/na-object-item.c
	(na_object_item_remove_item): Improve debug message.
	(copy_children): Refuse to copy when target already has	children.

	* src/nact/nact-main-menubar.c
	(nact_main_menubar_save_items): Do not re-dump all the items hierarchy.
	(save_item): Remove old children after having created the new ones.

2172 2173 2174
	* src/core/na-object-action.c (ifactory_object_read_done):
	Force toolbar label to be the same that action one if flag is set to true.

pierre's avatar
pierre committed
2175 2176
	* src/api/na-object-api.h: Fix minor typo.

Pierre Wieser's avatar
Pierre Wieser committed
2177
2010-02-28 Pierre Wieser <pwieser@trychlos.org>
Pierre Wieser's avatar
Pierre Wieser committed
2178

2179 2180 2181 2182
	* src/io-desktop/nadp-desktop-file.c
	(nadp_desktop_file_get_key_file_path):
	No more invalidate the function.

Pierre Wieser's avatar
Pierre Wieser committed
2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240
	* src/api/na-ifactory-object.h:
	* src/core/na-object-item-factory.c:
	* src/nact/nact-iactions-list-bis.c:
	* src/nact/nact-iactions-list.h:
	Fix minor typo.

	* src/api/na-object-api.h:
	New na_object_copy macro (evaluates as na_object_object_copy).

	* src/api/na-object-item.h (na_object_item_copy): Removed function.

	* src/api/na-object.h:
	* src/core/na-object.c:.
	(copy): Add 'recursive' flag.
	(iduplicable_copy): Use na_object_copy() macro.
	(na_object_object_copy): New function.

	* src/core/na-factory-object.c (na_factory_object_copy):
	No more delete all NADataBoxed, but update those who already exist.
	(write_data_iter): Fix return code.

	* src/core/na-iduplicable.c (na_iduplicable_duplicate):
	Review the rationale, and ensure that the function is recursive.

	* src/core/na-object-action.c
	* src/core/na-object-item.c:
	* src/core/na-object-menu.c:
	* src/core/na-object-profile.c:
	(instance_constructed): Removed function.
	(ifactory_object_copy): Removed function.
	(object_copy): New function, implementation of NAObject::copy.

	* src/core/na-pivot.c (instance_dispose): Add debug message.

	* src/core/na-updater.c (na_updater_remove_item):
	Only update tree if object has no parent.

	* src/io-gconf/nagp-gconf-provider.c
	(ifactory_provider_iface_init): Address nagp_writer_write_start().

	* src/io-gconf/nagp-reader.c (nagp_reader_read_data): Comment debug message.

	* src/io-gconf/nagp-writer.c:
	* src/io-gconf/nagp-writer.h (nagp_writer_write_start): New function.
	Write the type of the NAObjectItem.

	* src/nact/nact-iaction-tab.c (on_tab_updatable_selection_changed):
	* src/nact/nact-icommand-tab.c (on_tab_updatable_selection_changed):
	* src/nact/nact-iconditions-tab.c (on_tab_updatable_selection_changed):
	As objects have defaults, no more test for null string.

	* src/nact/nact-main-menubar.c
	(nact_main_menubar_save_items): Dump after check status.
	(save_item): Use new na_object_copy() macro.

	* src/nact/nact-window.c (nact_window_save_item):
	Remove superfluous dumps.

Pierre Wieser's avatar
Pierre Wieser committed
2241
2010-02-27 Pierre Wieser <pwieser@trychlos.org>
2242

2243 2244 2245
	* src/core/na-iduplicable.c (na_iduplicable_check_status):
	An object without any origin is considered modified.

2246 2247 2248 2249 2250 2251 2252
	* src/core/na-iduplicable.c (get_duplicable_str):
	NAIDuplicable object defaults to not modified.

	* src/core/na-object-item-factory.c:
	Pointers to list of subitems are not comparable.

	Rewrite the update of the pivot tree where there is a non null origin.
2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264
	* src/core/na-updater.c:
	* src/core/na-updater.h
	(na_updater_add_item): Removed function.
	(na_updater_insert_item): New function.

	* src/io-gconf/nagp-writer.c (nagp_writer_write_data):
	Fix the path of written data.

	* src/nact/nact-main-menubar.c (on_new_profile_activated): 
	Do not attach the profile as this is done by the tree model.
	(save_item): Copy the tree item to the pivot one if it exists.

2265 2266 2267 2268 2269 2270
	* src/core/na-object-item.c (instance_dispose):
	Set the subitems pointer to NULL before unreffing the children.

	* src/core/na-object.c (instance_finalize):
	Add a protection when finalizing NADataBoxed.

2271 2272 2273 2274 2275
	* src/core/na-object-action.c (instance_constructed):
	* src/core/na-object-profile.c (instance_constructed):
	* src/core/na-object-menu.c (instance_constructed):
	Initialize NAIFactoryObject defaults here, rather than in object_new.

2276 2277 2278 2279 2280 2281 2282 2283
	* src/api/na-data-def.h: Remove fn_free() function pointer.

	* src/core/na-data-boxed.c:
	* src/core/na-object-action-factory.c:
	* src/core/na-object-id-factory.c:
	* src/core/na-object-profile-factory.c
	* src/core/na-object-item-factory.c: Updated accordingly.

2284 2285 2286 2287 2288 2289
	* src/core/na-iduplicable.c (get_duplicable_str):
	Initialize modification status to TRUE if origin is NULL.

	* src/nact/nact-tree-model.c (nact_tree_model_fill):
	Recheck modification and validity status of newly duplicated object.

Pierre Wieser's avatar
Pierre Wieser committed
2290
2010-02-26 Pierre Wieser <pwieser@trychlos.org>
2291

2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321
	Fix references count mistakes in NACT.

	* src/api/na-object-api.h (na_object_unref_selected_items):
	New macro, more specifically targeting the tree selections.

	* src/core/na-factory-object.c:
	* src/core/na-factory-object.h (na_factory_object_finalize_instance):
	Renamed as na_factory_object_finalize().

	* src/core/na-object-action.c (instance_finalize):
	* src/core/na-object-item.c (instance_finalize):
	* src/core/na-object-menu.c (instance_finalize):
	* src/core/na-object-profile.c (instance_finalize):
	* src/core/na-object.c (instance_finalize):
	Move na_object_unref_selected_items() to 
	na_object:na_factory_object_finalize.

	* src/core/na-pivot.c (instance_dispose, reload_items):
	Use non-recursive na_object_unref_items() macro.

	* src/nact/nact-assistant-export.c (assist_prepare_confirm):
	* src/nact/nact-iactions-list.c (free_items_callback):
	* src/nact/nact-main-menubar.c (on_update_sensitivities):
	Use recursive na_object_unref_selected_items() macro.

	* src/nact/nact-iactions-list.c (filter_selection):
	Unref the got object immediately (which was the actual bug).

	* src/test/init-dispose-diff.sh: Fix and optimize.

2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355
	Fix display of modification status in NACT.

	* src/api/na-iduplicable.h:
	* src/core/na-iduplicable.c (na_iduplicable_set_modified):
	New function.

	* src/api/na-object-api.h:
	* src/api/na-object-item.h:
	* src/core/na-object-item.c (na_object_item_unref_items_rec):
	New function.

	* src/core/na-data-boxed.c (string_are_equal):
	* src/core/na-factory-object.c (na_factory_object_are_equal):
	* src/core/na-object.c (na_object_object_check_status_up):
	Rewrite equality tests.

	* src/core/na-object-action-factory.c:
	* src/core/na-object-item-factory.c:
	* src/core/na-object-profile-factory.c:
	* src/core/na-object-action.c:
	* src/core/na-object-menu.c:
	* src/core/na-object-profile.c:
	Review one more time default values and initial allocations.