1 2010-12-06 Pierre Wieser <pwieser@trychlos.org>
3 * docs/reference/na-compiling.xml:
4 * docs/reference/na-dist-content.xml:
5 * docs/reference/na-getting.xml:
6 * docs/reference/na-plugin.xml:
7 * docs/reference/na-what-is-it.xml:
8 * docs/reference/version_dir.xml: New files.
10 * data/actions/my-first-na-action.desktop:
11 * data/actions/my-first-na-menu.desktop:
12 * data/actions/open-terminal-here.desktop:
13 * data/actions/show-na-parameters.desktop:
14 - Actually disabled actions and menus as stated in the doc and the README.
15 - Remove character encodings from localizable strings.
17 2010-12-03 Pierre Wieser <pwieser@trychlos.org>
19 * docs/nact/Makefile.am:
20 Automatically build DOC_ENTITIES and DOC_FIGURES lists.
22 Rename doc/ subdirectory to docs/.
26 * docs/nact/Makefile.am: Updated accordingly.
28 * configure.ac: Post release version bump.
33 * README: Update before release.
35 2010-12-02 Pierre Wieser <pwieser@trychlos.org>
37 * src/nact/nautilus-actions-config-tool.ui:
38 Do not allow actions list to fully disappeared.
40 * src/nact/nact-gtk-utils.c:
41 * src/nact/nact-gtk-utils.h (nact_gtk_utils_select_file_with_preview):
44 * src/nact/nact-iaction-tab.c (on_icon_browse):
45 Add a preview when selecting an icon.
47 Factorize help description.
49 * po/POTFILES.in: add src/utils/console-utils.c file.
51 * src/utils/console-utils.c:
52 * src/utils/console-utils.h (console_cmdline_get_description):
55 * src/utils/nautilus-actions-new.c (init_options):
56 * src/utils/nautilus-actions-run.c (init_options):
57 * src/utils/nautilus-actions-schemas.c (init_options):
58 Updated to take advantage of new function.
60 * configure.ac: Display a summary of configuration options.
62 * m4/na-enable-manuals.m4:
63 * m4/na-maintainer-mode.m4:
64 * m4/na-nautilus-extdir.m4: Define displayable variables.
66 2010-12-01 Pierre Wieser <pwieser@trychlos.org>
68 * src/nact/nact-assistant-export.c
69 (assist_runtime_init_target_folder, on_folder_selection_changed):
70 Set/get current folder URI. Fix #616532.
72 * src/nact/nact-ifolders-tab.c (on_browse_folder_clicked):
73 Set/get current folder. Fix #616532.
75 * src/api/na-object-item.h: Define new ITEM_TARGET_ANY target.
77 * src/core/na-icontext.c (is_candidate_for_target):
78 Unconditionnally accepts any target.
80 * src/utils/nautilus-actions-run.c (main, get_profile_for_targets):
81 Ask there is no selection on the target. Fix #634056.
83 * configure.ac: call new NA_SET_DEFAULT_IO_PROVIDER macro.
85 * m4/na-default-io-provider.m4: New file.
87 * src/core/na-io-provider.c (na_io_provider_get_providers_list):
88 Used the configured default I/O provider when no preference has been
92 - Pre-release bump version number.
93 - Define NAUTILUS_ACTIONS_DEBUG variable.
95 * src/nact/nact-main.c (log_handler),
96 * src/plugin-menu/nautilus-module.c (log_handler),
97 * src/plugin-tracker/na-tracker-plugin.c (log_handler),
98 * src/utils/console-utils.c (log_handler):
99 Display debug informations when NAUTILUS_ACTIONS_DEBUG variable is set.
101 * doc/nact/Makefile.am:
102 Distribute admon-* icons with html docs (workaround for #636175).
104 2010-11-30 Pierre Wieser <pwieser@trychlos.org>
106 * doc/nact/Makefile.am: Only rebuild manuals when needed.
108 * src/plugin-menu/nautilus-actions.c (create_menu_item):
109 Set a unique name per target menu so that icons are displayed even
110 when both toolbar and location context menu are targeted.
112 2010-11-25 Pierre Wieser <pwieser@trychlos.org>
114 Add %o/%O no-op parameters.
116 * doc/nact/C/figures/nact-legend.png: Update legend screenshot.
117 * doc/nact/C/nact-execution.xml: Update parameters description.
119 * src/core/na-object-profile-factory.c:
120 * src/core/na-tokens.h: Update comments.
122 * src/core/na-tokens.c
123 (is_singular_exec, parse_singular): Update with new parameters.
125 * src/nact/nautilus-actions-config-tool.ui:
126 Update legend dialog.
128 2010-11-24 Pierre Wieser <pwieser@trychlos.org>
130 * doc/des-ema/des-ema-0.12:
131 * doc/des-ema/des-ema-0.13:
132 * doc/des-ema/des-ema-0.14:
133 * doc/des-ema/des-ema-0.15: New files.
135 * doc/nact/Makefile.am:
136 Do not distribute non translated figures in xx/ subdirectories.
138 2010-11-23 Pierre Wieser <pwieser@trychlos.org>
140 * doc/nact/C/nact-starting.xml:
141 Work-around in order to be able to build sl pdf.
143 * doc/nact/Makefile.am:
144 Include non-translated figures in translated pdf.
146 2010-11-22 Pierre Wieser <pwieser@trychlos.org>
148 * doc/nact/Makefile.am:
149 Be tolerant about not buildable pdf.
152 Fix #635521: translatable sentences of the *.ui files don't appear in .po file.
155 Clean up aborted make distcheck before running autogen.
157 * doc/nact/C/nact-execution.xml:
158 Fix typo in NACT user's manual.
160 * src/core/na-icontext-factory.c:
161 Fix #632992: add comment about default value translation.
163 2010-09-23 Pierre Wieser <pwieser@trychlos.org>
165 * configure.ac: Pre-release version bump.
167 * doc/api/Makefile.am: Fix the warning when overriding GTKDOC_RUN.
169 * m4/na-enable-manuals.m4:
171 Update --enable-html-manuals and --enable-pdf-manuals options.
173 * doc/nact/Makefile.am:
174 Do not rebuild pdf files each time make is run.
175 Have figures available when pdf are built.
176 Install figures with html documents.
178 2010-09-04 Pierre Wieser <pwieser@trychlos.org>
180 * doc/nact/Makefile.am: Fix make distcheck.
182 2010-09-03 Pierre Wieser <pwieser@trychlos.org>
184 Declare --with-db2html and --with-gdt options.
187 Defaut distribution includes PDF and gnome-doc-tool HTML manuals.
189 * doc/nact/Makefile.am:
190 * m4/na-enable-manuals.m4:
191 Define --with-db2html and --with-gdt options.
193 * doc/nact/Makefile.am:
194 HTML and PDF installations honor --htmldir= and --pdfdir= options.
196 * doc/nact/Makefile.am:
197 Fix make distcheck when distributing tranlations of NACT user's manual.
200 Revert inversion of AC_CANONICAL_TARGET and AM_INIT_AUTOMAKE.
202 * src/io-desktop/nadp-writer.c (write_done_write_subitems_list):
203 Improve debug messages.
205 * src/nact/nact-icommand-tab.c
206 (on_tab_updatable_selection_changed): Update example label.
207 (parse_parameters): Cleanup code.
209 2010-09-02 Pierre Wieser <pwieser@trychlos.org>
211 * src/io-desktop/nadp-reader.c (nadp_reader_iimporter_import_from_uri):
212 Do not keep the imported desktop file.
214 * src/io-desktop/nadp-desktop-file.c (nadp_desktop_file_write):
215 Do not return TRUE if file has not been written due to dispose state.
217 * configure.ac: Setup the package URL.
219 2010-08-30 Pierre Wieser <pwieser@trychlos.org>
221 * doc/nact/C/nact-starting.xml: Update manual.
223 * doc/nact/C/figures/read-only.png: New file.
225 * doc/nact/Makefile.am: Remove '$(NULL)' expressions.
227 * configure.ac: Bump version number after unstable release.
229 2010-08-23 Pierre Wieser <pwieser@trychlos.org>
231 * NEWS: Update NEWS before unstable release.
233 * src/core/na-selected-info.c
234 (na_selected_info_get_list_from_item, na_selected_info_get_list_from_list):
235 Returns a null list when NASelectedInfo object is null.
237 * src/plugin-menu/nautilus-actions.c
238 (menu_provider_get_background_items, menu_provider_get_file_items,
239 menu_provider_get_toolbar_items):
240 Do not try to build a menu for Nautilus when NASelectedInfo list is empty.
242 * configure.ac: Bump version number after unstable release.
244 * NEWS: Update NEWS before unstable release.
246 * po/POTFILES.in: Add src/core/na-selected-info.c file.
248 * src/core/na-selected-info.c (query_file_attributes):
249 Make the error message translatable.
252 * src/core/na-tokens.c
253 (na_tokens_new_from_selection): Do not get dirname of a null filename.
254 (parse_singular): Take care of possibly null data or over-indexing.
256 * src/core/na-selected-info.c:
257 * src/core/na-selected-info.h (na_selected_info_create_for_uri):
258 Add errmsg parameter to check for incorrect URIs.
260 * src/utils/nautilus-actions-run.c (get_selection_from_strv):
261 Do not try to deal with malformed URIs.
263 * src/utils/nautilus-actions-schemas.c: Include glib-object.h.
265 * src/api/na-data-boxed.h: Revert to glib-object.h.
267 2010-08-22 Pierre Wieser <pwieser@trychlos.org>
269 * src/core/na-icontext.c (is_candidate_for_mimetypes):
270 * src/core/na-selected-info.c (na_selected_info_get_mime_type):
271 Take care of possibly NULL mimetype.
273 2010-08-21 Pierre Wieser <pwieser@trychlos.org>
276 * src/api/na-ifactory-provider-provider.h
277 * src/core/na-importer-ask.h
278 * src/io-desktop/nadp-formats.h
279 * src/io-desktop/nadp-reader.h
280 * src/io-desktop/nadp-utils.h
281 * src/io-desktop/nadp-writer.h
282 * src/io-gconf/nagp-reader.h
283 * src/io-gconf/nagp-writer.h
284 * src/io-xml/naxml-formats.h
285 * src/io-xml/naxml-reader.h
286 * src/io-xml/naxml-writer.h
287 * src/nact/nact-tree-model-priv.h: Fix single inclusion.
289 * src/core/na-icontext.c
290 (is_candidate_for_schemes, is_candidate_for_folders):
291 Address each ocurrence of file instead of just the first one.
293 * doc/nact/Makefile.am: Fix PDF distribution.
295 2010-08-19 Pierre Wieser <pwieser@trychlos.org>
297 * src/nact/nautilus-actions-config-tool.ui:
298 Do not overexpand the example label.
300 * src/core/na-object-profile.c (convert_pre_v3_parameters_str):
301 Fix conversion of '%d/%f' to '%f' when there are other parameters.
303 * src/core/na-icontext.c
304 (is_candidate_for_mimetypes): Improve debug messages.
305 (is_candidate_for_basenames): Take care of matchcase.
307 * src/core/na-icontext.c
308 (is_mimetype_of): Take care of wildcard expressions.
309 (is_candidate_for_folders): Only try to g_pattern_match() if has pattern.
311 * src/plugin-menu/nautilus-actions.c
312 (build_nautilus_menus): Add debug messages.
314 * data/actions/open-terminal-here.desktop:
315 * data/actions/show-na-parameters.desktop: Fix typo.
317 * src/api/na-object-item.h:
318 * src/core/na-object-item.c
319 (na_object_item_deals_with_version): New function.
321 * src/api/na-object-profile.h:
322 * src/core/na-object-profile.c
323 (na_object_profile_convert_v2_to_last): New function.
325 * src/core/na-object-action.c:
326 * src/core/na-object-menu.c
327 (ifactory_object_read_start): Removed (unused) function.
329 * src/io-xml/naxml-reader.c (naxml_reader_read_done): Cleanup code.
331 * src/nact/nact-ibasenames-tab.c (on_tab_updatable_selection_changed):
332 Display matchcase status for the current context.
334 2010-08-18 Pierre Wieser <pwieser@trychlos.org>
336 * src/core/na-object-profile.c (convert_pre_v3_parameters_str):
337 As a special optimization, converts '%d/%f' to '%f'.
339 * src/io-xml/naxml-reader.c (naxml_reader_read_data):
340 Let a node available for a second reading in case of a multiple-defined
341 data (e.g. icon which exists in localized and unlocalized forms).
343 * src/io-desktop/nadp-desktop-file.c (nadp_desktop_file_new_from_uri):
344 Do not warn about malformed .desktop file when importing an URI.
346 Path+parameters are splitted whatever be the I/O importer.
348 * src/io-desktop/nadp-reader.c (read_done_profile_split_exec): Removed function.
350 * src/core/na-object-profile.c (split_path_parameters): New function.
352 * src/core/na-data-boxed.c (uint_set_from_string):
353 Fix default uint value when reading null string.
355 * src/nact/nact-assistant-import.c (assistant_apply): Cleanup code.
357 2010-08-17 Pierre Wieser <pwieser@trychlos.org>
359 * Replace GtkLable with GtkTextView in import and export assistants.
361 * src/nact/nact-assistant-export.c (assist_prepare_exportdone):
362 * src/nact/nact-assistant-import.c (prepare_importdone):
363 * src/nact/nact-assistant-export.ui:
364 * src/nact/nautilus-actions-config-tool.ui: Updated accordingly.
366 * src/core/na-core-utils.c (na_core_utils_str_split_first_word):
367 Accepts null or empty input string or output pointers.
369 * src/io-desktop/nadp-reader.c (read_done_profile_split_exec):
370 Only try to split a non-null command.
372 2010-08-16 Pierre Wieser <pwieser@trychlos.org>
374 * doc/nact/Makefile.am: Fix PDF build.
376 * configure.ac: Bump version number after unstable release.
378 * doc/nact/Makefile.am: Fix manuals cleanup.
380 * src/core/na-icontext.c (is_candidate_for_schemes):
381 Remove wrong variable override.
383 * configure.ac: Bump version number after unstable release.
385 2010-08-15 Pierre Wieser <pwieser@trychlos.org>
387 * data/actions/Makefile.am:
388 * data/actions/my-first-na-action.desktop:
389 * data/actions/my-first-na-menu.desktop:
390 * data/actions/open-terminal-here.desktop:
391 * data/actions/show-na-parameters.desktop: New files.
393 * data/gconf-schemas/Makefile.am:
394 Install GConf schemas in PKGDATADIR/gconf-schemas.
396 * NEWS: Update NEWS before unstable release.
398 Create a new data/actions subdirectory.
401 * data/Makefile.am: Updated accordingly.
403 * data/actions/Makefile.am:
404 * data/actions/README: New files.
406 Move schemas into a new subdirectory data/gconf-schemas.
409 * data/Makefile.am: Updated accordingly.
411 Move exports/ subdirectory into data/ tree.
414 * data/Makefile.am: Updated accordingly.
416 * data/exports/Makefile.am:
417 * data/exports/README: New files.
419 * doc/nact/Makefile.am: Fix PDF installation.
421 * src/core/na-object-profile.c (convert_pre_v3_parameters_str):
422 %f used to be the name of the file (a basename), converts it to %b.
424 2010-08-13 Pierre Wieser <pwieser@trychlos.org>
426 * doc/api/nautilus-actions-sections.txt:
427 * doc/api/nautilus-actions-docs.xml: New files.
429 * src/io-desktop/nadp-desktop-file.c (nadp_desktop_file_set_locale_string):
430 Write all available locales to have a chance another locale can get it.
433 Build doc after src so that libraries are available when documenting them.
436 * configure.ac: Implement gtk-doc and manuals generation.
438 * doc/api/Makefile.am: Build gtk-doc for public API.
440 * doc/nact/C/nact-conditions.xml:
441 * doc/nact/C/nact-execution.xml:
442 * doc/nact/C/nact-menus.xml:
443 * doc/nact/C/nact-profiles.xml:
444 * doc/nact/C/nact-sorting.xml:
445 * doc/nact/C/nact-starting.xml:
446 * doc/nact/C/nact-where.xml:
447 * doc/nact/C/nautilus-actions-config-tool.xml:
448 Update NACT user's manual.
450 * doc/nact/Makefile.am: Implement manuals generation.
452 * src/api/na-core-utils.h:
453 * src/api/na-data-boxed.h:
454 * src/api/na-data-types.h:
455 * src/api/na-gconf-utils.h:
456 * src/api/na-icontext.h:
457 * src/api/na-iduplicable.h:
458 * src/api/na-iimporter.h:
459 * src/api/na-object-api.h:
460 * src/api/na-object-id.h:
461 * src/api/na-object-item.h:
462 * src/core/na-core-utils.c:
463 * src/core/na-data-boxed.c:
464 * src/core/na-export-format.c:
465 * src/core/na-export-format.h:
466 * src/core/na-exporter.c:
467 * src/core/na-exporter.h:
468 * src/core/na-factory-object.c:
469 * src/core/na-factory-object.h:
470 * src/core/na-gconf-monitor.c:
471 * src/core/na-gconf-utils.c:
472 * src/core/na-iabout.h:
473 * src/core/na-icontext.c:
474 * src/core/na-ifactory-provider.c:
475 * src/core/na-importer-ask.c:
476 * src/core/na-io-provider.c:
477 * src/core/na-iprefs.c:
478 * src/core/na-object-id.c:
479 * src/core/na-object-item.c:
480 * src/core/na-object.c:
481 * src/core/na-selected-info.c:
482 * src/core/na-selected-info.h:
483 Update comments to suits gtk-doc requirements.
486 * doc/nact/C/figures/nact-desktop-environment-frame.png:
487 * doc/nact/C/figures/nact-exec-mode-frame.png:
488 * doc/nact/C/figures/nact-execute-as-frame.png:
489 * doc/nact/C/figures/nact-execution-environment-frame.png:
490 * doc/nact/C/figures/nact-selection-count-frame.png:
491 * doc/nact/C/figures/nact-startup-mode-frame.png:
492 * doc/nact/C/figures/nact-target-location.png:
493 * doc/nact/C/figures/nact-working-directory-frame.png:
494 * doc/nact/C/figures/sort-asc.png doc/nact/C/figures/sort-desc.png:
495 * doc/nact/C/figures/sort-manual.png:
496 * m4/na-enable-manuals.m4: New files.
498 2010-08-10 Pierre Wieser <pwieser@trychlos.org>
500 * src/nact/nact-icommand-tab.c: No more check for a non-empty profile name.
502 Allow writing of empty data.
504 * src/api/na-data-boxed.h:
505 * src/core/na-data-boxed.c
506 (na_data_boxed_is_set): Removed function.
507 (na_data_boxed_is_default): New function.
509 * src/io-desktop/nadp-writer.c (nadp_writer_ifactory_provider_write_data):
510 * src/io-gconf/nagp-writer.c (nagp_writer_write_data):
511 * src/io-xml/naxml-writer.c (naxml_writer_write_data):
514 * src/core/na-object-item-factory.c:
515 * src/core/na-object-profile-factory.c:
516 Remove useless log description for a fake data.
518 * src/io-desktop/nadp-reader.c
519 (nadp_reader_ifactory_provider_read_data):
520 * src/io-xml/naxml-reader.c (read_data_boxed_from_node):
521 Set NADataBoxed as soon as a value is found.
523 Review pre- and post- write operations in I/O providers.
525 * src/core/na-object-action.c: Cleanup the code.
527 * src/core/na-object-item-factory.c:
528 NAFO_DATA_IVERSION becomes unwritable.
530 * src/io-desktop/nadp-writer.c:
531 * src/io-gconf/nagp-writer.c:
532 * src/io-xml/naxml-writer.c: Cleanup the code.
534 Immediately reacts to a status change in I/O providers.
536 * src/core/na-ipivot-consumer.c:
537 * src/core/na-ipivot-consumer.h
538 (na_ipivot_consumer_notify_of_io_provider_prefs_changed): New function.
539 (on_io_provider_prefs_changed): New interface API.
541 * src/core/na-pivot.c (monitor_runtime_preferences):
542 Add a monitor on io-providers GConf branch.
544 * src/nact/nact-main-window.c
545 (ipivot_consumer_on_io_provider_prefs_changed): New function.
547 Controls are not modifiable for a read-only item.
549 * src/nact/nact-gtk-utils.c:
550 * src/nact/nact-gtk-utils.h
551 (nact_gtk_utils_set_initial_state, nact_gtk_utils_reset_initial_state):
554 * src/nact/nact-icommand-tab.c (on_tab_updatable_selection_changed):
555 Manage working directory browse button.
557 * src/nact/nact-ienvironment-tab.c (on_tab_updatable_selection_changed):
558 Manage try exec and show if running browse buttons.
559 Manage desktop environment radio buttons.
561 * src/nact/nact-iexecution-tab.c (on_tab_updatable_selection_changed):
562 Manage execution mode radio buttons.
564 * src/nact/nact-iproperties-tab.c (on_tab_updatable_selection_changed):
565 Manage description text view.
567 * src/nact/nact-match-list.c
568 (on_key_pressed_event): Only insert/delete rows if item is editable.
569 (on_must_match_toggled, on_must_not_match_toggled): Manage radio buttons.
571 2010-08-09 Pierre Wieser <pwieser@trychlos.org>
573 Review notification bufferization.
575 * src/core/na-ipivot-consumer.c:
576 * src/core/na-ipivot-consumer.h
577 (na_ipivot_consumer_delay_notify): Removed function.
578 (na_ipivot_consumer_allow_notify): New function.
580 * src/nact/nact-main-menubar-file.c (nact_main_menubar_file_save_items):
581 * src/nact/nact-main-window.c (instance_init):
582 * src/plugin-menu/nautilus-actions.c (instance_init):
585 * src/core/na-pivot.c (on_item_changed_timeout):
586 * src/io-desktop/nadp-desktop-provider.c (on_monitor_timeout):
587 * src/io-gconf/nagp-gconf-provider.c (config_path_changed_trigger_interface):
590 Fix XML import of localized vs. unlocalized profile label.
592 * src/api/na-ifactory-object-data.h:
593 * src/core/na-object-profile-factory.c:
594 Define new NAFO_DATA_DESCNAME_NOLOC unlocalized profile label.
596 * src/api/na-object-api.h (na_object_get_label_noloc): New macro.
598 * src/io-xml/naxml-reader.c (naxml_reader_read_done):
599 Deals with localized vs. unlocalized profile description name.
601 Fix XML import of localized vs. unlocalized icons.
603 * src/api/na-ifactory-object-data.h:
604 * src/core/na-object-item-factory.c:
605 Define new NAFO_DATA_ICON_NOLOC unlocalized icon name.
607 * src/api/na-object-api.h (na_object_get_icon_noloc): New macro.
609 * src/io-xml/naxml-reader.c
610 (read_data_boxed_from_node): Only allocate a NADataBoxed for a non null value.
611 (naxml_reader_read_done): Deals with localized/unlocalized icon name.
613 * src/io-xml/naxml-reader.c (naxml_reader_read_start):
614 Attach the profile to the action before trying to read it.
616 * src/nact/nact-iexecution-tab.c (execution_mode_toggle):
617 Fix sensitivity of startup fields vs. execution mode.
619 * src/core/na-icontext.c (is_candidate_for_capabilities):
620 Fix incorrect handling of capability conditions.
622 * src/core/na-icontext.c (is_candidate_for_folders):
623 Fix incorrect and optimize handling of folder conditions.
625 * src/core/na-icontext.c (is_candidate_for_schemes):
626 Fix incorrect and optimize handling of scheme conditions.
628 * src/core/na-icontext.c (is_candidate_for_basenames):
629 Fix incorrect handling of basename conditions.
631 * src/core/na-icontext.c (is_candidate_for_mimetypes):
632 Fix incorrect handling of mimetype conditions.
634 * src/nact/nact-iaction-tab.c (on_icon_browse):
635 Fix incorrect setting of GConf preference.
637 * src/nact/nact-gtk-utils.c:
638 * src/nact/nact-gtk-utils.h
639 (nact_gtk_utils_get_pixbuf, nact_gtk_utils_render):
640 Size parameter is actually of GtkIconSize type.
642 2010-08-07 Pierre Wieser <pwieser@trychlos.org>
644 * configure.ac: Bump version number after unstable release.
646 Implement auto-save feature.
648 * src/core/na-ipivot-consumer.c:
649 * src/core/na-ipivot-consumer.h (on_autosave_changed): New interface.
651 * src/core/na-iprefs.c:
652 * src/core/na-iprefs.h (na_iprefs_read_uint): New function.
654 * src/nact/nact-iprefs.c:
655 * src/nact/nact-iprefs.h (nact_iprefs_read_uint): Removed function.
657 * src/core/na-pivot.c (on_preferences_change):
658 Trigger NAIPivotConsumer interface when autosave is changed.
660 * src/nact/nact-main-menubar-file.c:
661 * src/nact/nact-main-menubar-file.h
662 (nact_main_menubar_file_set_autosave): New function.
664 * src/nact/nact-main-window.c (ipivot_consumer_on_autosave_changed):
665 Implement the new on_autosave_changed() NAIPivotConsumer interface.
667 * src/nact/nact-preferences-editor.c (on_base_runtime_init_dialog):
668 Replace nact_iprefs_read_uint() with na_iprefs_read_uint().
670 Setup auto-save in preferences.
672 * data/nautilus-actions-prefs.schemas.in:
673 Describe new auto-save-on and auto-save-period preference keys.
675 * src/nact/nact-iprefs.c:
676 * src/nact/nact-iprefs.h
677 (nact_iprefs_read_uint, nact_iprefs_write_uint): New functions.
678 IPREFS_AUTOSAVE_ON, IPREFS_AUTOSAVE_PERIOD: New preference keys.
680 * src/nact/nact-preferences-editor.c:
681 Update the new auto-save-on and auto-save-period preference keys.
684 * src/nact/nact-preferences.ui:
685 * src/nact/nautilus-actions-config-tool.ui: New preference frame.
687 2010-08-05 Pierre Wieser <pwieser@trychlos.org>
689 * src/api/na-core-utils.h:
690 * src/core/na-core-utils.c
691 (na_core_utils_str_get_first_word): Removed function.
692 (na_core_utils_str_split_first_word): New function.
694 * src/io-desktop/nadp-reader.c
695 (nadp_reader_ifactory_provider_read_done):
696 Split the Exec content to get Path and Parameters data.
698 * src/core/na-object-profile-factory.c:
699 Review the description of the NAFO_DATA_PARAMETERS data.
701 * src/core/na-tokens.h: Update the comment.
703 * po/POTFILES.in: Add src/core/na-tokens.c file.
705 * src/core/na-tokens.c:
706 * src/core/na-tokens.h (na_tokens_new_for_example): New function.
708 * src/core/na-tokens.c (parse_singular):
709 Implement %m and %M parameters for mimetypes.
711 * src/nact/nact-icommand-tab.c (parse_parameters):
712 Use a fake NATokens object to print an example of the command.
714 * src/nact/nautilus-actions-config-tool.ui: Fix some labels.
716 2010-08-04 Pierre Wieser <pwieser@trychlos.org>
718 * src/core/na-tokens.c (is_singular_exec):
719 Implement DES-EMA draft v 0.13 which defines irrelevant parameters.
721 2010-08-02 Pierre Wieser <pwieser@trychlos.org>
723 * src/nact/nact-gtk-utils.c (nact_gtk_utils_get_pixbuf):
724 * src/nact/nact-iaction-tab.c (on_icon_changed):
725 Fix bad reinitialization of the icon item.
727 * doc/nact/C/figures/nact-basenames-tab.png:
728 * doc/nact/C/figures/nact-capabilities-tab.png:
729 * doc/nact/C/figures/nact-command-tab.png:
730 * doc/nact/C/figures/nact-environment-tab.png:
731 * doc/nact/C/figures/nact-execution-tab.png:
732 * doc/nact/C/figures/nact-folders-tab.png:
733 * doc/nact/C/figures/nact-legend.png:
734 * doc/nact/C/figures/nact-main-empty.png:
735 * doc/nact/C/figures/nact-mimetypes-tab.png:
736 * doc/nact/C/figures/nact-new-capability.png:
737 * doc/nact/C/figures/nact-preferences-export.png:
738 * doc/nact/C/figures/nact-preferences-import.png:
739 * doc/nact/C/figures/nact-preferences-io-providers.png:
740 * doc/nact/C/figures/nact-preferences-runtime.png:
741 * doc/nact/C/figures/nact-preferences-schemes.png:
742 * doc/nact/C/figures/nact-preferences-ui.png:
743 * doc/nact/C/figures/nact-properties-tab.png:
744 * doc/nact/C/figures/nact-schemes-tab.png:
745 Update all screenshots to include window decoration.
747 * doc/nact/nautilus-actions-config-tool.omf.in:
748 Change categorie and type of the NACT user's manual.
750 * src/nact/nact-main-menubar.c:
751 Change help menu item from Gtk default to Gnome (apparent) standard.
753 * src/nact/nact-main-menubar-help.c (nact_main_menubar_help_on_help):
756 * configure.ac: Update comments.
758 * src/nact/nact-add-capability-dialog.c (try_for_send_ok):
759 * src/nact/nact-add-scheme-dialog.c (try_for_send_ok):
760 * src/nact/nact-main-tab.c (nact_main_tab_is_page_enabled):
761 Check that Gtk+ is more recent that 2.18 for gtk_widget_get_sensitive().
763 Split the NACT manual by chapter.
765 * doc/nact/C/nact-usage.xml:
766 * doc/nact/C/nact-prefs.xml:
767 * doc/nact/C/nact-misc.xml: New files.
769 * doc/nact/C/nautilus-actions-config-tool.xml:
770 * doc/nact/Makefile.am: Updated accordingly.
772 2010-08-01 Pierre Wieser <pwieser@trychlos.org>
774 * nact/nact-iactions-list-bis.c (nact_iactions_list_bis_insert_items):
775 A new NAObjectItem must be inserted before the current NAObjectItem.
777 * doc/README: Define a global documentation plan.
779 * doc/api/Makefile.am:
780 * doc/api/version.xml.in:
781 Define a stub for future public API documentation, targeting
782 Nautilus-Actions plugins developers.
784 * doc/internals/Makefile.am:
785 Define a stub for future internal documentation, targeting
786 Nautilus-Actions core developers.
788 * doc/product/Makefile.am:
789 Define a stub for future global Nautilus-Actions documentation.
792 * doc/Makefile.am: Updated accordingly.
794 * doc/nact/ChangeLog:
795 * doc/nact/nautilus-actions-config-tool.omf.in: New files.
797 * doc/nact/C/articleinfo.xml:
798 * doc/nact/C/legalnotice.xml: Included as external entities rather
799 than from xi:include because of db2omf complains.
801 * doc/nact/C/appendix-feedback.xml:
802 * doc/nact/C/appendix-gnu-fdl-1.3.xml: Add DOCTYPE declaration.
804 2010-07-31 Pierre Wieser <pwieser@trychlos.org>
806 * src/nact/nautilus-actions-config-tool.ui:
809 * src/nact/nact-match-list.c (on_must_not_match_clicked):
810 Fix incorrect column id.
812 * src/nact/nact-match-list.c (sort_on_column):
813 Display sort indicator.
815 * src/nact/nact-match-list.c (on_must_match_toggled):
816 Fix crash when defining a positive assertion.
818 * src/core/na-icontext.c (is_candidate_for_capabilities):
819 Implement the function.
821 * src/core/na-selected-info.c:
822 * src/core/na-selected-info.h (na_selected_info_is_executable,
823 na_selected_info_is_owner, na_selected_info_is_readable,
824 na_selected_info_is_writable): New function.
826 * src/core/na-icontext.c (is_candidate_for_folders):
827 Implement the function.
829 * src/core/na-selected-info.c:
830 * src/core/na-selected-info.h (na_selected_info_get_dirname):
833 * src/core/na-icontext.c (is_candidate_for_schemes):
834 Implement the function.
836 * src/core/na-icontext.c (is_candidate_for_selection_count):
837 Implement the function.
839 * src/io-desktop/nadp-reader.c
840 (nadp_reader_ifactory_provider_read_start): Set minimal version number.
842 2010-07-30 Pierre Wieser <pwieser@trychlos.org>
844 * src/core/na-icontext.c (is_candidate_for_basenames):
845 Unref the GPatternSpec after use.
847 * src/core/na-icontext.c (is_candidate_for_basenames):
848 Implement the function.
850 * src/core/na-selected-info.c:
851 * src/core/na-selected-info.h (na_selected_info_get_basename):
854 * configure.ac: Add a dependancy on libgtop.
856 * src/core/na-icontext.c (is_candidate_for_show_if_running):
857 Implement the function.
859 2010-07-29 Pierre Wieser <pwieser@trychlos.org>
861 * src/io-desktop/nadp-formats.c:
862 * src/io-desktop/nadp-formats.h: New files.
863 These should have been added to 2.99.0, but where forgotten.
865 * docs/nact/Makefile.am: New file.
868 * docs/Makefile.am: Updated accordingly.
870 Create NACT user's manual skeleton.
872 * docs/nact/C/appendix-feedback.xml:
873 * docs/nact/C/appendix-gnu-fdl-1.3.xml:
874 * docs/nact/C/articleinfo.xml:
875 * docs/nact/C/figures/nact-basenames-tab.png:
876 * docs/nact/C/figures/nact-capabilities-tab.png:
877 * docs/nact/C/figures/nact-command-tab.png:
878 * docs/nact/C/figures/nact-environment-tab.png:
879 * docs/nact/C/figures/nact-execution-tab.png:
880 * docs/nact/C/figures/nact-folders-tab.png:
881 * docs/nact/C/figures/nact-legend.png:
882 * docs/nact/C/figures/nact-main-empty.png:
883 * docs/nact/C/figures/nact-mimetypes-tab.png:
884 * docs/nact/C/figures/nact-preferences-export.png:
885 * docs/nact/C/figures/nact-preferences-import.png:
886 * docs/nact/C/figures/nact-preferences-io-providers.png:
887 * docs/nact/C/figures/nact-preferences-runtime.png:
888 * docs/nact/C/figures/nact-preferences-schemes.png:
889 * docs/nact/C/figures/nact-preferences-ui.png:
890 * docs/nact/C/figures/nact-properties-tab.png:
891 * docs/nact/C/figures/nact-schemes-tab.png:
892 * docs/nact/C/figures/nat-new-capability.png:
893 * docs/nact/C/index.xml:
894 * docs/nact/C/legalnotice.xml: New files.
896 Do some cleanup in NAObjectAction and NAObjectProfile code.
897 Implement execution of singular vs. plural command forms.
899 * src/api/na-object-action.h:
900 * src/core/na-object-action.c (na_object_action_is_candidate):
903 * src/api/na-object-profile.h:
904 * src/core/na-object-profile.c (na_object_profile_parse_parameters):
907 * src/core/na-tokens.c:
908 * src/core/na-tokens.h (na_tokens_execute_action): New function.
910 * src/plugin-menu/nautilus-actions.c (execute_action):
911 Move action execution to NATokens class.
913 * src/utils/nautilus-actions-run.c: Now use NATokens class.
915 * doc/: Renamed as docs/
918 * Makefile;am: Updated accordingly.
920 * configure.ac: Bump the version number after release.
922 2010-07-28 Pierre Wieser <pwieser@trychlos.org>
924 * NEWS: Update NEWS before unstable release.
926 * configure.ac: Bump the version number before unstable release.
928 * src/io-desktop/nadp-module.c (na_extension_startup):
929 Remove the #if/#endif macros to let the .desktop provider be released.
931 * src/io-desktop/nadp-desktop-file.c:
932 * src/io-desktop/nadp-desktop-file.h
933 (nadp_desktop_file_new, nadp_desktop_file_get_key_file):
936 * src/io-desktop/nadp-writer.c
937 (nadp_writer_iexporter_export_to_buffer): Implement the function.
939 Import/export .desktop files.
941 * doc/export-format-id: Declare the new export format.
943 * po/POTFILES.in: Add a file.
945 * src/api/na-core-utils.h:
946 * src/core/na-core-utils.c
947 (na_core_utils_slist_add_message, na_core_utils_file_load_from_uri):
950 * src/api/na-iimporter.h:
951 * src/core/na-iimporter.c (na_iimporter_manage_import_mode):
954 * src/io-desktop/nadp-formats.c:
955 * src/io-desktop/nadp-formats.h: New files.
957 * src/io-desktop/Makefile.am: Updated accordingly.
959 * src/io-desktop/nadp-desktop-file.c:
960 * src/io-desktop/nadp-desktop-file.h
961 (nadp_desktop_file_new_from_uri): New function.
962 (nadp_desktop_file_get_key_file_path): Renamed as nadp_desktop_file_get_key_file_uri().
964 * src/io-desktop/nadp-desktop-provider.c:
965 Declare NAIImporterInterface and NAIExporterInterface interfaces.
967 * src/io-desktop/nadp-reader.c:
968 * src/io-desktop/nadp-reader.h
969 (nadp_reader_iimporter_import_from_uri): New function.
971 * src/io-desktop/nadp-utils.c:
972 * src/io-desktop/nadp-utils.h
973 (nadp_utils_is_writable_file): Renamed as nadp_utils_uri_is_writable().
974 (nadp_utils_uri_delete): New function.
976 * src/io-desktop/nadp-writer.c:
977 * src/io-desktop/nadp-writer.h
978 (nadp_writer_iexporter_export_to_buffer, nadp_writer_iexporter_export_to_file):
981 * src/nact/nact-add-scheme-dialog.c:
982 Prevent a default scheme to be inserted twice.
984 * src/nact/nact-ischemes-tab.c:
985 Use the current list of rows instead of the current schemes list.
987 * src/nact/nact-match-list.c:
988 Prevent a standard filter to be inserted twice.
990 * src/api/na-core-utils.h:
991 * src/core/na-core-utils.c (na_core_utils_slist_dump):
992 Add a prefix parameter to the function.
994 * src/core/na-data-boxed.c (slist_dump):
995 * src/core/na-io-provider.c (na_io_provider_get_providers_list):
996 * src/io-desktop/nadp-writer.c (nadp_writer_ifactory_provider_write_done):
997 * src/nact/nact-match-list.c (nact_match_list_on_selection_changed):
998 * src/test/test-reader.c (main): Updated accordingly.
1000 2010-07-26 Pierre Wieser <pwieser@trychlos.org>
1002 * src/api/na-core-utils.h:
1003 * src/core/na-core-utils.c (na_core_utils_slist_find):
1004 Moved to na_core_utils_slist_count.
1006 * src/core/na-icontext.c (is_candidate_for_show_in):
1007 * src/io-desktop/nadp-writer.c
1008 (nadp_writer_ifactory_provider_write_done): Updated accordingly.
1010 * src/nact/nact-match-list.c (on_filter_edited):
1011 Add g_return_if_fail checks on data and context.
1013 Prevent of inline edition of capabilities.
1015 * src/nact/nact-match-list.c:
1016 * src/nact/nact-match-list.h (nact_match_list_create_model):
1017 Add editable_filter input parameter.
1019 * src/nact/nact-match-list.c (nact_match_list_on_selection_changed):
1020 Only enable the column if filter and item are both editable.
1022 * src/nact/nact-ibasenames-tab.c:
1023 * src/nact/nact-icapabilities-tab.c:
1024 * src/nact/nact-ifolders-tab.c:
1025 * src/nact/nact-imimetypes-tab.c:
1026 * src/nact/nact-ischemes-tab.c: Updated accordingly.
1028 Prevent a capability to be inserted twice.
1030 * src/nact/nact-add-capability-dialog.c (on_button_press_event):
1031 On double-clic, check for OK sensitivity.
1033 * src/nact/nact-icapabilities-tab.c (on_add_clicked):
1034 Provide the dialog with our current content rather than current capabilities.
1036 * src/nact/nact-match-list.c:
1037 * src/nact/nact-match-list.h (nact_match_list_get_rows): New function.
1039 Fix parameters conversion to v3.
1041 * src/core/na-object-action.c (icontext_is_candidate):
1042 Fix comment and minor typo.
1044 * src/core/na-object-profile.c:
1045 * src/io-gconf/nagp-reader.c (convert_pre_v3_parameters):
1046 Move pre-v3 parameters conversion from GConf provider to profile class.
1048 * src/io-desktop/nadp-reader.c
1049 (nadp_reader_ifactory_provider_read_start):
1050 * src/io-gconf/nagp-reader.c (nagp_reader_read_start):
1051 * src/io-gconf/nagp-gconf-provider.c (ifactory_provider_iface_init):
1052 * src/io-gconf/nagp-reader.h:
1053 Now attach profile to its parent in 'read_start' interface.
1055 * src/io-desktop/nadp-reader.c
1056 (nadp_reader_ifactory_provider_read_done):
1057 * src/io-gconf/nagp-reader.c (nagp_reader_read_done):
1058 Homogeneïze the read_done functions.
1060 Move the reading of the subitems key for the desktop I/O provider
1061 from 'read_done' to 'read_start'.
1063 * src/io-desktop/nadp-reader.c:
1064 * src/io-desktop/nadp-reader.h
1065 (nadp_reader_ifactory_provider_read_start): New function.
1067 * src/io-desktop/nadp-desktop-provider.c: Updated accordingly.
1069 2010-07-19 Pierre Wieser <pwieser@trychlos.org>
1071 * src/api/na-object-item.h:
1072 * src/core/na-object-item.c (na_object_item_factory_write_start):
1073 Function is renamed as na_object_item_rebuild_children_slist().
1075 * src/core/na-object-action.c:
1076 * src/core/na-object-menu.c: Updated accordingly.
1078 2010-07-05 Pierre Wieser <pwieser@trychlos.org>
1080 * src/nact/nact-icommand-tab.c (nact_icommand_tab_runtime_init_toplevel):
1081 Connect to delete-event signal to hide the GtkWindow.
1083 2010-07-03 Pierre Wieser <pwieser@trychlos.org>
1085 * src/nact/nact-add-capability-dialog.c (on_base_runtime_init_dialog):
1086 Doucle-click validates the dialog.
1088 * src/nact/nact-add-scheme-dialog.c (on_base_runtime_init_dialog):
1089 Doucle-click validates the dialog.
1091 * src/nact/nact-schemes-list.c (nact_schemes_list_create_model):
1092 Scheme keyword and description are editable in user preferences.
1094 2010-07-02 Pierre Wieser <pwieser@trychlos.org>
1096 * src/core/na-tokens.c (na_tokens_new_from_selection):
1099 * src/core/na-tokens.h: Fix minor typo.
1101 * src/plugin-menu/nautilus-actions.c:
1102 There should not be any need to keep a reference to our menu.
1104 * data/nautilus-actions-prefs.schemas.in:
1105 * src/core/na-iprefs.h:
1106 * src/core/na-importer-ask.c:
1107 * src/core/na-importer-ask.h:
1108 Define a new GConf preference 'keep last user choice'.
1110 * src/api/na-iimporter.h:
1111 * src/core/na-iimporter.c:
1112 from_uri() interface is renamed as import_from_uri().
1113 Only define na_iimporter_import_from_uri() public API.
1115 * src/core/na-importer.c:
1116 * src/core/na-importer.h:
1117 Define here na_importer_import_from_list() internal API.
1119 * src/io-xml/naxml-provider.c:
1120 * src/io-xml/naxml-reader.c:
1121 * src/io-xml/naxml-reader.h:
1122 * src/nact/nact-assistant-import.c:
1123 * src/nact/nact-tree-model-dnd.c:
1124 * src/test/test-reader.c: Updated accordingly.
1126 * src/core/na-object-id.c (na_object_id_set_new_id):
1127 Fix object type test.
1129 * src/core/na-object-item.c (object_id_new_id):
1132 * src/core/na-object-profile.c (object_id_new_id):
1133 Fix order of validity test.
1134 Only get a new profile name when a new parent is provided.
1136 2010-06-29 Pierre Wieser <pwieser@trychlos.org>
1138 * src/nact/nact-tree-model-dnd.c (drop_uri_list):
1139 Make the code in adequation with the comment.
1141 * src/nact/nact-gtk-utils.c (nact_gtk_utils_get_pixbuf):
1142 Do not emit a warning when file is just not found.
1144 2010-06-28 Pierre Wieser <pwieser@trychlos.org>
1146 * src/io-desktop/nadp-writer.c
1147 (nadp_writer_ifactory_provider_write_data):
1148 Concatenate path and parameters fields to the Exec key.
1150 * src/nact/nact-assistant-import.c (has_readable_files):
1151 Get ride of warning messages in some usual situations.
1153 * src/nact/nact-main-menubar-file.c (nact_main_menubar_file_save_items):
1154 Force sensitivities update when new tree store is empty.
1156 * src/core/na-iduplicable.c (na_iduplicable_check_status):
1157 * src/core/na-object.c (na_object_object_unref):
1158 Review debug messages.
1160 * src/core/na-pivot.c:
1161 * src/core/na-pivot.h (na_pivot_set_new_items): New function.
1163 * src/nact/nact-main-menubar-file.c (save_item):
1164 Duplicate all current tree store to a new pivot.
1166 2010-06-23 Pierre Wieser <pwieser@trychlos.org>
1168 * src/nact/nact-ienvironment-tab.c (on_tab_updatable_selection_changed):
1169 * src/nact/nact-iexecution-tab.c (on_tab_updatable_selection_changed):
1170 Radio buttons are inconsistent if and only if there is no context.
1172 * src/nact/nact-tree-model.c (dump_store): Also dumps origin.
1174 * src/core/na-updater.c (na_updater_remove_item):
1175 Do not unref here removed item.
1176 Also remove item from non level zero parent.
1178 * src/nact/nact-main-window.c (actually_delete_item):
1179 Updated accordingly.
1181 * src/core/na-icontext.c (is_candidate_for_try_exec):
1182 Do not try to get info for non existing file.
1184 2010-06-21 Pierre Wieser <pwieser@trychlos.org>
1186 * src/core/na-icontext.c (is_candidate_for_show_in):
1187 Implement the check of the environment (though not yet the desktop
1190 * src/nact/nact-iaction-tab.c:
1191 * src/nact/nact-ibasenames-tab.c:
1192 * src/nact/nact-icommand-tab.c:
1193 * src/nact/nact-ienvironment-tab.c:
1194 * src/nact/nact-iexecution-tab.c:
1195 * src/nact/nact-iproperties-tab.c:
1196 * src/nact/nact-match-list.c:
1197 Reset all fields to an empty value when there is no selection.
1199 * src/nact/nact-main-tab.h:
1200 * src/nact/nautilus-actions-config-tool.ui:
1201 Move the Execution tab just besides the Command one.
1203 2010-06-20 Pierre Wieser <pwieser@trychlos.org>
1205 * src/core/na-object.c (na_object_object_unref):
1206 Fix infinite unref of child items.
1208 * src/nact/nact-tree-model.c (nact_tree_model_display):
1211 2010-06-18 Pierre Wieser <pwieser@trychlos.org>
1213 * src/core/na-object.c (na_object_object_unref):
1214 Fix segfault when unfiltering invalid items.
1216 * src/core/na-object-item-factory.c:
1217 Numeric version is no more writable by default.
1219 * src/io-gconf/nagp-keys.h:
1220 * src/io-gconf/nagp-writer.c (nagp_writer_write_start):
1221 Explicitely write the numeric version to GConf.
1223 * src/core/na-object-item-factory.c:
1224 Provider data is no more duplicable by NAIFactoryObject.
1226 * src/core/na-object-item.c (object_copy):
1227 Explicitely triggers NAIOProvider::duplicate_data method.
1229 * src/io-desktop/nadp-desktop-provider.c (iio_provider_iface_init):
1230 * src/io-desktop/nadp-writer.c:
1231 * src/io-desktop/nadp-writer.h (nadp_iio_provider_duplicate_data):
1232 Implement NAIIOProvider::duplicate_data interface.
1234 * src/io-gconf/nagp-gconf-provider.c (iio_provider_iface_init):
1235 Initialize NAIIOProvider duplicate_data() virtual pointer.
1237 * src/api/na-iio-provider.h:
1238 * src/core/na-iio-provider.c (duplicate_data):
1239 * src/core/na-io-provider.c:
1240 * src/core/na-io-provider.h (na_io_provider_duplicate_data):
1241 Define new NAIIOProvider interface.
1243 2010-06-17 Pierre Wieser <pwieser@trychlos.org>
1245 * src/api/na-iio-provider.h:
1246 * src/core/na-iio-provider.c (na_iio_provider_item_changed):
1247 Remove useless item id parameter.
1249 * src/core/na-ipivot-consumer.c (is_notify_allowed):
1250 Set a higher delay (1s to 2s) before notifying NAPivot
1251 because of the delay of file monitoring.
1253 * src/nact/nact-clipboard.c (export_objects):
1254 Remove unused dest_folder parameter.
1256 * src/nact/nact-tree-model-dnd.c
1257 (nact_tree_model_dnd_imulti_drag_source_drag_data_get):
1258 Get destination folder as an URI.
1260 * src/nact/nact-iaction-tab.c:
1261 Fix invalid cast of NAObjectMenu to NAObjectAction.
1263 * src/nact/nact-sort-buttons.c:
1264 * src/nact/nact-sort-buttons.h (nact_sort_buttons_enable_buttons):
1267 * src/nact/nact-main-menubar.c (on_iactions_list_count_updated):
1268 Enable/disable sort buttons depending of items list count.
1270 * src/api/na-object-api.h
1271 (na_object_get_shortcut, na_object_set_shortcut): New macros.
1273 * src/nact/nact-iproperties-tab.c: Review NactIPropertiesTab page.
1275 * src/api/na-object-api.h
1276 (na_object_get_execution_mode,
1277 na_object_get_startup_notify, na_object_get_startup_class,
1278 na_object_get_execute_as, na_object_set_execution_mode,
1279 na_object_set_startup_notify, na_object_set_startup_class,
1280 na_object_set_execute_as): New macros.
1282 * src/core/na-object-profile-factory.c:
1283 Change type of execution mode from uint to string.
1285 * src/nact/nact-iexecution-tab.c: Implement NactIExecutionTab page.
1287 * src/nact/nact-ienvironment-tab.c: Implement NactIEnvironmentTab page.
1289 2010-06-16 Pierre Wieser <pwieser@trychlos.org>
1291 * src/nact/nact-gtk-utils.c:
1292 * src/nact/nact-gtk-utils.h
1293 (nact_gtk_utils_select_file, nact_gtk_utils_select_dir): New functions.
1295 * src/nact/nact-icommand-tab.c: Updated accordingly.
1297 * src/api/na-core-utils.h:
1298 * src/core/na-core-utils.c (na_core_utils_slist_setup_element): New function.
1300 * src/api/na-icontext.h:
1301 * src/core/na-icontext.c (na_icontext_set_only_desktop, na_icontext_set_not_desktop):
1304 * src/api/na-object-api.h (na_object_set_only_desktop, na_object_set_not_desktop):
1307 * src/nact/nact-ienvironment-tab.c: Implement desktop choice.
1309 * src/nact/nact-icapabilities-tab.c:
1310 * src/nact/nautilus-actions-config-tool.ui: Review NactICapabilitiesTab page.
1312 * src/nact/nact-ischemes-tab.c: Review NactISchemesTab page.
1314 * src/nact/nact-ifolders-tab.c: Review NactIFoldersTab page.
1316 * src/nact/nact-ibasenames-tab.c: Review NactIBasenamesTab page.
1318 * src/nact/nact-match-list.c:
1319 * src/nact/nact-match-list.h (nact_match_list_on_enable_tab):
1322 * src/nact/nact-icommand-tab.c:
1323 * src/nact/nact-icommand-tab.h: Review NactICommandTab page.
1325 * src/core/na-object-action-factory.c: Fix comment.
1327 * src/nact/nact-iaction-tab.c:
1328 * src/nact/nact-iaction-tab.h: Homogeneïse the code.
1330 2010-06-15 Pierre Wieser <pwieser@trychlos.org>
1332 * src/nact/nact-main-tab.c:
1333 * src/nact/nact-main-tab.h (nact_main_tab_get_context):
1336 * src/nact/nact-iaction-tab.c:
1337 * src/nact/nact-ibasenames-tab.c:
1338 * src/nact/nact-icapabilities-tab.c:
1339 * src/nact/nact-ienvironment-tab.c:
1340 * src/nact/nact-ifolders-tab.c:
1341 * src/nact/nact-imimetypes-tab.c:
1342 * src/nact/nact-ischemes-tab.c:
1343 * src/nact/nact-main-tab.h:
1344 * src/nact/nact-main-window.c:
1345 Remove irrelevant TAB_UPDATABLE_SIGNAL_ENABLE_TAB signal.
1347 * src/nact/nact-match-list.c:
1348 Do not try to get filters when there is no current context.
1350 * src/nact/nact-main-window.c:
1351 Do not mark the application as modified when list is empty.
1353 * src/nact/nact-iaction-tab.c:
1354 * src/nact/nact-ibasenames-tab.c:
1355 * src/nact/nact-icapabilities-tab.c:
1356 * src/nact/nact-icommand-tab.c:
1357 * src/nact/nact-ienvironment-tab.c:
1358 * src/nact/nact-ifolders-tab.c:
1359 * src/nact/nact-iproperties-tab.c:
1360 * src/nact/nact-ischemes-tab.c:
1361 * src/nact/nact-main-menubar-edit.c:
1362 * src/nact/nact-main-menubar-file.c:
1363 * src/nact/nact-main-tab.h:
1364 * src/nact/nact-main-window.c:
1365 * src/nact/nact-match-list.c: Rename main properties.
1367 * src/nact/nact-main-tab.h:
1368 * src/nact/nact-main-window.c: Remove unused PROP_SELECTED_ROW property.
1370 * po/POTFILES.in: Add src/nact/nact-ienvironment-tab.c file.
1372 * src/nact/nact-ienvironment-tab.c: Connect signals.
1374 2010-06-14 Pierre Wieser <pwieser@trychlos.org>
1376 * src/core/na-icontext-factory.c:
1377 Change default capabilities to empty list.
1379 * src/nact/nact-add-capability-dialog.c:
1380 * src/nact/nact-add-capability-dialog.h:
1381 * src/nact/nact-add-capability.ui: New files.
1384 * src/nact/Makefile.am: Updated accordingly.
1386 * src/nact/nact-match-list.c:
1387 * src/nact/nact-match-list.h (nact_match_list_create_model):
1388 Add match_header parameter.
1390 * src/nact/nact-ibasenames-tab.c:
1391 * src/nact/nact-icapabilities-tab.c:
1392 * src/nact/nact-ifolders-tab.c:
1393 * src/nact/nact-imimetypes-tab.c:
1394 * src/nact/nact-ischemes-tab.c: Updated accordingly.
1396 2010-06-13 Pierre Wieser <pwieser@trychlos.org>
1398 * src/nact/nact-match-list.c:
1399 * src/nact/nact-match-list.h (nact_match_list_create_model):
1400 Add on_add_clicked callback parameter.
1402 * src/nact/nact-ibasenames-tab.c:
1403 * src/nact/nact-ifolders-tab.c:
1404 * src/nact/nact-imimetypes-tab.c:
1405 * src/nact/nact-ischemes-tab.c: Updated accordingly.
1407 * src/nact/nact-iaction-tab.c:
1408 Use gtk_bin_get_child() function instead of GTK_BIN()->child.
1411 Add src/nact/nact-icapabilities-tab.c, src/nact/nact-ischemes-tab.c.
1412 Remove src/nact/nact-iconditions-tab.c.
1414 * src/api/na-core-utils.h:
1415 * src/core/na-core-utils.c (na_core_utils_selcount_get_ope_int):
1418 * src/nact/nact-icapabilities-tab.c: Implement selection count.
1420 2010-06-11 Pierre Wieser <pwieser@trychlos.org>
1422 * src/api/na-icontext.h:
1423 * src/core/na-icontext.c (na_icontext_is_all_mimetypes): New function.
1425 * src/api/na-object-api.h: Define new getters/setters.
1427 * src/core/na-icontext-factory.c:
1428 * src/core/na-object-item-factory.c: Fix comments.
1430 * src/io-gconf/nagp-reader.c:
1431 Convert pre-v3 is_multiple, is_file and is_dir parameters.
1433 2010-06-10 Pierre Wieser <pwieser@trychlos.org>
1435 * configure.ac: Bump post-release version number.
1437 * Changelog: Update NEWS before release.
1439 * configure.ac: Bump pre-release version number.
1441 * src/core/na-iabout.c: Update copyright notice.
1443 2010-06-09 Pierre Wieser <pwieser@trychlos.org>
1445 * src/api/na-core-utils.h:
1446 * src/api/na-core-utils.c (na_core_utils_slist_find_negated):
1449 * src/nact/nact-add-scheme-dialog.c:
1450 * src/nact/nact-add-scheme-dialog.h: New files.
1452 * src/nact/Makefile.am: Updated accordingly.
1454 * src/nact/nact-main-menubar.c: Update test for Gtk+ version.
1456 * src/nact/nact-match-list.c:
1457 * src/nact/nact-match-list.h: Remove on_add callback.
1459 * src/nact/nact-ibasenames-tab.c:
1460 * src/nact/nact-ifolders-tab.c:
1461 * src/nact/nact-imimetypes-tab.c:
1462 * src/nact/nact-ischemes-tab.c:
1463 * src/nact/nact-preferences-editor.c: Updated accordingly.
1465 * src/nact/nact-schemes-list.c:
1466 * src/nact/nact-schemes-list.h
1467 (nact_schemes_list_show_all, nact_schemes_list_get_current_scheme):
1470 2010-06-07 Pierre Wieser <pwieser@trychlos.org>
1472 * src/nact/nact-add-scheme.ui: New file.
1475 * src/nact/Makefile.am: Updated accordingly.
1477 2010-06-04 Pierre Wieser <pwieser@trychlos.org>
1479 * src/api/na-object-api.h: Reorganization.
1481 * src/core/na-icontext-factory.c: Set schemes default to '*'.
1483 * src/nact/nact-icommand-tab.c: Get schemes from current object.
1485 * src/nact/nact-ischemes-tab.c:
1486 * src/nact/nact-ischemes-tab.h:
1487 Take advantage of new nact_match_list_xxx functions.
1489 * src/api/na-object-api.h:
1490 * src/api/na-ifactory-object-data.h:
1491 * src/core/na-object-profile-factory.c: Add NAFO_DATA_WORKING_DIR data.
1493 * src/core/na-factory-object.c:
1494 * src/core/na-factory-object.h (na_factory_object_get_default):
1497 * src/nact/nact-icommand-tab.c: Implement working directory.
1499 * src/nact/nact-imimetypes-tab.c:
1500 Take advantage of new nact_match_list_xxx functions.
1502 * src/nact/nact-match-list.c:
1503 * src/nact/nact-match-list.h: New files.
1505 * src/nact/Makefile.am: Updated accordingly.
1507 * src/nact/base-window.c:
1508 * src/nact/base-window.h (base_window_signal_connect_with_data):
1511 * src/nact/nact-ibasenames-tab.c:
1512 Take advantage of new nact_match_list_xxx functions.
1514 2010-06-03 Pierre Wieser <pwieser@trychlos.org>
1516 * src/nact/nact-ibasenames-tab.c: Implement NactIBasenamesInterface interface.
1518 2010-06-02 Pierre Wieser <pwieser@trychlos.org>
1520 * src/nact/nautilus-actions-config-tool.ui:
1521 * src/nact/nact-ibasenames-tab.c: Define basename new conditions skeleton.
1523 * src/nact/nact-icapabilities-tab.c:
1524 * src/nact/nact-icapabilities-tab.h: Define NactICapabilitiesInterface interface.
1526 * src/nact/Makefile.am:
1527 * src/nact/nact-main-tab.h:
1528 * src/nact/nact-main-window.c: Updated accordingly.
1530 2010-05-30 Pierre Wieser <pwieser@trychlos.org>
1532 * src/nact/nact-ibasenames-tab.c:
1533 * src/nact/nact-ibasenames-tab.h: Define NactIBasenamesTabInterface interface.
1535 * src/nact/nact-icommand-tab.c:
1536 No more include removed nact-iconditions-tab.h file.
1538 * src/nact/nact-ienvironment-tab.c:
1539 * src/nact/nact-ienvironment-tab.h: Define NactIEnvironmentTabInterface interface.
1541 * src/nact/nact-iexecution-tab.c:
1542 * src/nact/nact-iexecution-tab.h: Define NactIExecutionTabInterface interface.
1544 * src/nact/nact-ifolders-tab.c (on_tab_updatable_selection_changed):
1545 * src/nact/nact-ischemes-tab.c (on_tab_updatable_selection_changed):
1546 tab_set_sensitive() returned value is not used here.
1548 * src/nact/nact-imimetypes-tab.c:
1549 * src/nact/nact-imimetypes-tab.h: Define NactIMimetypesTabInterface interface.
1551 * src/nact/nact-iproperties-tab.c (on_tab_updatable_selection_changed):
1552 Set a mnemonic in the tab label.
1554 * src/nact/nact-main-tab.h:
1555 * src/nact/nact-main-window.c: Add the four new tabs, remove the old one.
1557 * src/nact/nautilus-actions-config-tool.ui: Fix some size groups.
1559 2010-05-29 Pierre Wieser <pwieser@trychlos.org>
1561 * configure.ac: Define GSEAL_ENABLED.
1563 * src/nact/nautilus-actions-config-tool.ui:
1564 Implement all new fields.
1566 2010-05-26 Pierre Wieser <pwieser@trychlos.org>
1568 * src/api/na-core-utils.h:
1569 * src/core/na-core-utils.c (na_core_utils_dir_split_ext):
1572 * src/core/na-tokens.h:
1573 * src/core/na-tokens.c: New files.
1575 * src/core/Makefile.am: Udated accordingly.
1577 * src/plugin-menu/nautilus-actions.c:
1578 Expand tokens which may embed parameters.
1580 2010-05-20 Pierre Wieser <pwieser@trychlos.org>
1582 * src/io-gconf/nagp-reader.c (read_done_profile_attach_profile):
1583 Migrate old v2 parameters to v3.
1585 * src/core/na-object-action.c (deals_with_version):
1586 Setup a version number if not already set.
1588 * src/core/na-object-action.c (convert_pre_v2_action):
1589 Renamed as convert_v1_to_v2.
1591 * src/api/na-data-def.h: Add write_if_default.
1593 * src/core/na-icontext-factory.c:
1594 * src/core/na-object-action-factory.c:
1595 * src/core/na-object-id-factory.c:
1596 * src/core/na-object-item-factory.c:
1597 * src/core/na-object-profile-factory.c: Update all data structures.
1599 * src/io-desktop/nadp-writer.c
1600 (nadp_writer_ifactory_provider_write_data):
1601 * src/io-gconf/nagp-writer.c (nagp_writer_write_data):
1602 * src/io-xml/naxml-writer.c (naxml_writer_write_data):
1603 Updated accordingly.
1605 * src/io-desktop/nadp-reader.c
1606 (nadp_reader_ifactory_provider_read_start): Removed function.
1608 2010-05-17 Pierre Wieser <pwieser@trychlos.org>
1610 * configure.ac: Fix typo.
1612 * src/core/na-core-utils.c (na_core_utils_slist_from_array):
1613 Strip the strings extracted from the array.
1615 * src/core/na-factory-object.c (na_factory_object_are_equal):
1616 Dump the data when different.
1618 * src/nact/nact-main-menubar-file.c
1619 (nact_main_menubar_file_save_items): Add a debug message.
1621 * src/api/na-object-api.h (na_object_set_last_version):
1622 * src/api/na-object-action.h:
1623 * src/core/na-object-action.c (na_object_action_set_last_version):
1626 * src/core/na-object-action.c (convert_pre_v2_action):
1627 Reset action to last version number after conversion from pre-v2.
1629 * src/core/na-object-profile.c (na_object_profile_parse_parameters):
1630 Do not add extraneous blanks when parsing parameters.
1632 * configure.ac: Post release bump version number.
1634 * src/io-desktop/nadp-reader.c (read_done_load_profiles):
1635 Do not reload already loaded profiles.
1636 Just ignore non-referenced profiles.
1638 * src/io-gconf/nagp-reader.c
1639 (read_done_action_load_profiles_from_list): Do not reload already loaded profiles.
1641 * src/utils/nautilus-actions-new.c:
1642 Factorize error message to make translation easier.
1644 * src/utils/nautilus-actions-run.c:
1645 Mark two new strings for translation.
1647 * src/core/na-object-action-factory.c:
1648 No more set a string version.
1650 * src/io-gconf/nagp-reader.c (read_done_profile_attach_profile):
1651 Test both string and integer versions.
1653 2010-05-12 Pierre Wieser <pwieser@trychlos.org>
1655 * src/api/na-icontext.h:
1656 * src/core/na-icontext.c
1657 (na_icontext_have_all_mimetypes): Removed function.
1658 (na_icontext_read_done): New function.
1660 * src/core/na-object-action.c:
1661 * src/core/na-object-menu.c:
1662 * src/core/na-object-profile.c: Updated accordingly.
1664 * src/api/na-object-api.h
1665 (na_object_get_iversion, na_object_set_iversion): New functions.
1667 * src/core/na-icontext-factory.c:
1668 * src/core/na-object-item-factory.c:
1669 Adjustments on default values.
1671 * src/io-gconf/nagp-reader.c (read_done_profile_attach_profile):
1672 Convert pre-v3 parameters.
1674 * src/plugin-menu/nautilus-actions.c:
1675 Adjust NautilusMenuProvider interface.
1677 2010-05-10 Pierre Wieser <pwieser@trychlos.org>
1679 Monitor .desktop files and directories.
1681 * src/io-desktop/nadp-monitor.c:
1682 * src/io-desktop/nadp-monitor.h: New files.
1684 * src/io-desktop/Makefile.am: Updated accordingly.
1686 * src/io-desktop/nadp-desktop-provider.c:
1687 * src/io-desktop/nadp-desktop-provider.h
1688 (nadp_desktop_provider_add_monitor,
1689 nadp_desktop_provider_on_monitor_event,
1690 nadp_desktop_provider_release_monitors): New functions.
1692 * src/io-desktop/nadp-reader.c (get_list_of_desktop_paths):
1693 Installs a monitor for each candidate directory.
1695 2010-05-03 Pierre Wieser <pwieser@trychlos.org>
1697 * src/api/na-icontext.h:
1698 * src/api/na-ifactory-object-data.h:
1699 * src/api/na-object-api.h:
1700 * src/core/na-icontext-factory.c:
1701 * src/core/na-icontext.c:
1702 Define new NAFO_DATA_ALL_MIMETYPES data, set to TRUE when the context
1703 is to be selected for all mimetypes.
1705 * src/core/na-object-action.c:
1706 * src/core/na-object-menu.c:
1707 * src/core/na-object-profile.c:
1708 * src/plugin-menu/nautilus-actions.c:
1709 All objects implement NAIContextInterface.
1711 * src/nact/nact-iconditions-tab.c (na_object_is_matchcase):
1712 Renamed as na_object_get_matchcase().
1714 * src/core/na-object-profile.c (na_object_profile_parse_parameters):
1715 Do not add extraneous blanks when parsing parameters.
1717 2010-04-19 Pierre Wieser <pwieser@trychlos.org>
1719 * src/api/na-ifactory-object-data.h:
1720 * src/api/na-object-profile.h:
1721 * src/core/na-icontext-factory.c:
1722 * src/core/na-object-action-factory.c:
1723 * src/core/na-object-item-factory.c:
1724 * src/core/na-object-menu-factory.c:
1725 * src/core/na-object-profile-factory.c:
1726 Define all new data, new parameters, and include context informations
1727 to actions and menus.
1729 * src/api/na-core-utils.h:
1730 * src/core/na-core-utils.c (na_core_utils_slist_from_array):
1731 Fix leading and trailing spaces management.
1733 2010-04-18 Pierre Wieser <pwieser@trychlos.org>
1735 * src/api/na-ifactory-object-data.h:
1736 * src/core/na-object-item-factory.c:
1737 Define new NAFO_DATA_SHORTCUT data.
1739 2010-04-15 Pierre Wieser <pwieser@trychlos.org>
1741 * src/nact/nact-schemes-list.c (insert_new_row):
1742 Rewrite row insertion; do not insert a - non-editable - description.
1744 * src/nact/nact-preferences.ui: Fix typo.
1746 * src/io-gconf/nagp-keys.h:
1747 Remove unused GConf entry keys.
1749 * src/io-gconf/nagp-writer.c (nagp_iio_provider_is_willing_to_write):
1750 Force GConf sync to get ride of 'foo' entry.
1752 2010-04-14 Pierre Wieser <pwieser@trychlos.org>
1754 * NEWS: Update before release.
1756 * configure.ac: Bump version number before release.
1758 * src/core/na-selected-info.h:
1759 * src/core/na-selected-info.c (na_selected_info_get_name):
1760 Renamed as na_selected_info_get_path.
1762 * src/core/na-icontext.c
1763 (is_current_folder_inside, is_target_selection_candidate):
1764 Updated accordingly.
1766 * src/core/na-object-profile.c (na_object_profile_parse_parameters):
1767 Do not try to deal with null values.
1769 * src/plugin-menu/nautilus-actions.c (create_item_from_profile):
1770 Duplicate the candidate profile, set the parent to null.
1772 * src/core/na-selected-info.c (na_selected_info_get_location):
1773 Increment the reference count of the returned location.
1775 * src/core/na-gconf-utils.c (dump_entry):
1776 Do not try to dump a null value.
1778 * src/core/na-selected-info.c
1779 (dump): New function.
1780 (na_selected_info_create_for_uri): Accepts a mimetype.
1782 * src/plugin-tracker/na-tracker-dbus.c
1783 (na_tracker_dbus_get_selected_paths): Also sends the mimetype.
1785 2010-04-13 Pierre Wieser <pwieser@trychlos.org>
1787 * po/POTFILES.in: Adding src/nact/nact-iconditions-tab.c file.
1789 * src/api/na-ifactory-object-data.h:
1790 * src/core/na-icontext-factory.c:
1791 Adding NAFO_DATA_SELECTION_COUNT data, obsoleting NAFO_DATA_MULTIPLE.
1793 * src/nact/nact-iconditions-tab.c:
1794 * src/nact/nautilus-actions-config-tool.ui:
1795 Adding required entries for SelectionCount data.
1797 2010-04-12 Pierre Wieser <pwieser@trychlos.org>
1799 * src/plugin-menu/Makefile.am:
1800 * src/plugin-tracker/Makefile.am: Fix incorrect log domains.
1802 * po/POTFILES.in: Add src/nact/nact-iproperties-tab.c file.
1804 * src/nact/nautilus-actions-config-tool.ui: Adjust vertical paddings.
1806 "Advanced conditions" tab is renamed as "Schemes".
1808 * src/nact/nact-iadvanced-tab.c: Renamed as src/nact/nact-ischemes-tab.c.
1809 * src/nact/nact-iadvanced-tab.h: Renamed as src/nact/nact-ischemes-tab.h.
1811 * src/nact/Makefile.am:
1812 * src/nact/nact-icommand-tab.c:
1813 * src/nact/nact-main-tab.h:
1814 * src/nact/nact-main-window.c: Updated accordingly.
1816 Move item properties to their own tab.
1818 * src/nact/nact-iproperties-tab.c:
1819 * src/nact/nact-iproperties-tab.h: New files.
1821 * src/nact/Makefile.am:
1822 * src/nact/nact-iaction-tab.c:
1823 * src/nact/nact-main-tab.h:
1824 * src/nact/nact-main-window.c:
1825 * src/nact/nautilus-actions-config-tool.ui: Updated accordingly.
1827 2010-04-09 Pierre Wieser <pwieser@trychlos.org>
1831 * src/nact/nact-sort-buttons.c (set_new_sort_order):
1832 Do not rewrite in GConf a just-readen sort order.
1834 * src/io-gconf/nagp-writer.c (nagp_iio_provider_delete_item):
1835 Also delete the schema names which may be embedded in GConfEntry.
1837 * src/api/na-gconf-utils.h:
1838 * src/core/na-gconf-utils.c (na_gconf_utils_dump_entries):
1841 * src/io-gconf/nagp-reader.c (read_item):
1842 Dump content of readen entries.
1844 * src/io-gconf/nagp-gconf-provider.c (install_monitors):
1845 Also monitors schemas to be triggered when importing a schema.
1847 * configure.ac: Bump version number for release.
1849 * src/nact/nact-iaction-tab.c (on_icon_browse):
1850 Save current position and folder of icon chooser.
1852 2010-04-08 Pierre Wieser <pwieser@trychlos.org>
1854 * src/core/na-object-profile.c (is_valid_path_parameters):
1855 Only check for non-empty path+parameters (fix #614596).
1857 * src/nact/nact-sort-buttons.c (on_sort_down_button_toggled,
1858 on_sort_manual_button_toggled, on_sort_up_button_toggled):
1859 Do not let the user click twice on a sort button.
1861 * src/nact/nact-main-window.c (setup_dialog_title):
1862 Review/normalize debug entry message.
1864 * src/nact/nact-ifolders-tab.c (on_add_folder_clicked):
1865 Folders list is definitively a list of paths (not URI).
1867 * src/api/na-core-utils.h:
1868 * src/core/na-core-utils.c (na_core_utils_str_collate): New function.
1870 * src/core/na-data-boxed.c (locale_are_equal):
1871 * src/core/na-object-action.c (deals_with_toolbar_label):
1872 * src/core/na-object-id.c (na_object_id_sort_alpha_asc):
1873 * src/io-desktop/nadp-utils.c (nadp_utils_gslist_remove_from):
1874 * src/nact/base-builder.c (already_loaded): Updated accordingly.
1876 * src/api/na-gconf-utils.h:
1877 * src/core/na-gconf-utils.c (na_gconf_utils_has_entry):
1878 Check for an entry in the previously loaded list.
1880 * src/io-gconf/nagp-reader.c
1881 (read_item): First check for Type default value.
1882 (read_item, read_done_item_is_writable,
1883 read_done_action_load_profile): Load entries.
1885 * src/nact/nact-iaction-tab.c (on_tab_updatable_selection_changed):
1886 * src/nact/nact-icommand-tab.c (on_tab_updatable_selection_changed):
1887 Protect gtk_ functions against null values.
1889 * src/plugin-menu/Makefile.am:
1890 Rename plugin to libnautilus-actions-menu.
1892 * src/io-desktop/nadp-reader.c (item_from_desktop_path):
1893 First check Type for default value.
1895 2010-04-07 Pierre Wieser <pwieser@trychlos.org>
1897 * src/nact/nact-gtk-utils.c:
1898 * src/nact/nact-gtk-utils.h
1899 (nact_gtk_utils_get_pixbuf): Render an icon for a given widget.
1900 (nact_utils_render): New function.
1902 * src/nact/nact-iaction-tab.c (on_icon_changed):
1903 * src/nact/nact-main-statusbar.c (nact_main_statusbar_set_locked):
1904 * src/nact/nact-tree-model.c (display_item): Updated accordingly.
1906 2010-04-02 Pierre Wieser <pwieser@trychlos.org>
1909 * src/nact/nact-main-tab.c (nact_main_tab_is_page_enabled):
1910 GTK_WIDGET_IS_SENSITIVE is deprecated starting from gtk 2.20.
1912 * src/core/na-core-utils.c (na_core_utils_file_exists):
1913 * src/io-xml/naxml-writer.c (output_xml_to_file):
1914 Takes an URI as the filename.
1916 2010-04-01 Pierre Wieser <pwieser@trychlos.org>
1918 * src/api/na-icontextual.h: Renamed as src/api/na-icontext.h.
1919 * src/core/na-icontextual.c: Renamed as src/core/na-icontext.c.
1920 * src/core/na-icontextual-factory.c: Renamed as src/core/na-icontext-factory.c.
1923 * src/api/Makefile.am:
1924 * src/api/na-icontext.h:
1925 * src/api/na-object-api.h:
1926 * src/core/Makefile.am:
1927 * src/core/na-icontext.c:
1928 * src/core/na-object-action.c:
1929 * src/core/na-object-profile.c:
1930 * src/plugin-menu/nautilus-actions.c:
1931 * src/utils/nautilus-actions-run.c: Updated accordingly.
1933 * src/api/na-object-api.h (na_object_prepare_for_paste):
1934 * src/core/na-object-id.c (na_object_id_prepare_for_paste):
1935 Parent is not always an action, may be a menu.
1937 * src/io-desktop/nadp-desktop-file.c
1938 (nadp_desktop_file_get_file_type):
1939 Do not emit a warning if Type is not found in the .desktop file.
1941 * src/core/na-core-utils.c (na_core_utils_slist_to_array):
1944 * src/io-desktop/nadp-keys.h:
1945 Set back action (resp. menu) Type to Action (resp. Menu).
1947 * src/nact/nautilus-actions-config-tool.ui:
1948 Insert a scrolled window as text view parent.
1950 * src/io-desktop/nadp-desktop-file.c (check_key_file):
1951 Only write a debug message if file is hidden.
1953 2010-03-29 Pierre Wieser <pwieser@trychlos.org>
1955 * src/nact/nact-gtk-utils.c (nact_gtk_utils_set_editable):
1956 Take into account new GtktextView widget.
1958 * src/io-desktop/nadp-writer.c (nadp_iio_provider_write_item):
1959 Remove groups which no longer exist.
1961 * src/io-desktop/nadp-reader.c (read_done_load_profiles):
1964 * src/io-desktop/nadp-desktop-file.c:
1965 * src/io-desktop/nadp-desktop-file.h (nadp_desktop_file_remove_profile):
1968 * src/io-desktop/nadp-desktop-file.c (nadp_desktop_file_get_profiles):
1969 Fix allocation of profile id.
1971 * src/io-desktop/nadp-desktop-file.c:
1972 * src/io-desktop/nadp-desktop-file.h (nadp_desktop_file_remove_key):
1975 * src/io-desktop/nadp-writer.c (nadp_iio_provider_write_item):
1976 Remove key when it is no more set.
1978 * src/api/na-object-api.h
1979 (na_object_get_description, na_object_set_description): New macros.
1981 * src/nact/nact-iaction-tab.c:
1982 * src/nact/nautilus-actions-config-tool.ui: Add description entry.
1984 * src/io-desktop/nadp-keys.h: Remove unused keys.
1986 * src/io-desktop/nadp-reader.c (nadp_reader_ifactory_provider_read_done):
1987 Explicitly read subitems string list.
1989 * src/io-desktop/nadp-desktop-provider.c (ifactory_provider_iface_init):
1990 * src/io-desktop/nadp-writer.c:
1991 * src/io-desktop/nadp-writer.h (nadp_writer_ifactory_provider_write_done):
1992 New function: explicitly write subitems string list for actions and menus.
1994 2010-03-28 Pierre Wieser <pwieser@trychlos.org>
1996 * src/api/na-data-boxed.h:
1997 * src/core/na-data-boxed.c (na_data_boxed_set_default): Removed function.
1999 * src/core/na-factory-object.c (set_defaults_iter):
2000 Only set a default value when the box has not been yet allocated.
2002 * src/api/na-ifactory-object.h:
2003 * src/core/na-ifactory-object.c (na_ifactory_object_get_data_groups):
2006 * src/core/na-object-item-factory.c:
2007 * src/core/na-object-action.c (instance_init):
2008 * src/core/na-object-menu.c (instance_init):
2009 No more instantiate 'type' data box.
2011 * src/core/na-object-item-factory.c:
2012 NAFO_DATA_TYPE is no more automatically readen nor written.
2014 * src/io-desktop/nadp-desktop-provider.c (ifactory_provider_iface_init):
2015 Implement data writing.
2017 * src/io-desktop/nadp-keys.c:
2018 * src/io-desktop/nadp-keys.h (nadp_keys_get_group_and_key):
2021 * src/io-desktop/nadp-reader.c
2022 (item_from_desktop_path): Test default value first.
2023 (nadp_reader_ifactory_provider_read_data): Use new desktop_entry field.
2025 * src/io-desktop/nadp-writer.c:
2026 * src/io-desktop/nadp-writer.h (nadp_writer_ifactory_provider_write_start,
2027 nadp_writer_ifactory_provider_write_data): New functions.
2029 * src/io-gconf/nagp-writer.c (nagp_writer_write_start):
2030 Explicitely write item type.
2032 * src/io-desktop/nadp-desktop-file.c:
2033 * src/io-desktop/nadp-desktop-file.h
2034 (nadp_desktop_file_set_boolean, nadp_desktop_file_set_locale_string,
2035 nadp_desktop_file_set_string, nadp_desktop_file_set_string_list,
2036 nadp_desktop_file_set_uint): New functions.
2038 * src/api/na-core-utils.h:
2039 * src/core/na-core-utils.c (na_core_utils_slist_to_array):
2042 2010-03-26 Pierre Wieser <pwieser@trychlos.org>
2044 * src/api/na-data-def.h:
2045 * src/core/na-icontextual-factory.c:
2046 * src/core/na-object-id-factory.c:
2047 * src/core/na-object-item-factory.c:
2048 * src/core/na-object-action-factory.c:
2049 * src/core/na-object-profile-factory.c:
2050 Define the key for .desktop file.
2052 * src/io-gconf/nagp-writer.c (nagp_writer_write_data):
2055 * src/io-desktop/nadp-desktop-provider.c:
2056 * src/io-desktop/nadp-reader.c:
2057 * src/io-desktop/nadp-reader.h
2058 (nadp_reader_ifactory_provider_read_start): Removed unused function.
2060 * src/io-desktop/nadp-desktop-file.c:
2061 * src/io-desktop/nadp-desktop-file.h
2062 (check_key_file): Check that we don't have a 'Hidden=true' key.
2063 (nadp_desktop_file_get_profiles): New function.
2065 * src/io-desktop/nadp-desktop-provider.c:
2066 * src/io-desktop/nadp-desktop-provider.h:
2067 Move reader functions and structure to nadp-reader.c.
2069 * src/io-desktop/nadp-keys.h:
2070 Relabel type of items in .desktop file (cf. draft 0.9).
2072 * src/io-desktop/nadp-reader.c:
2073 * src/io-desktop/nadp-reader.h:
2074 Read profiles present in the .desktop file.
2076 2010-03-26 Pierre Wieser <pwieser@trychlos.org>
2078 * src/io-desktop/nadp-desktop-file.c:
2079 * src/io-desktop/nadp-desktop-file.h
2080 (check_key_file): Check that we don't have a 'Hidden=true' key.
2081 (nadp_desktop_file_get_profiles): New function.
2083 * src/io-desktop/nadp-desktop-provider.c:
2084 * src/io-desktop/nadp-desktop-provider.h:
2085 Move reader functions and structure to nadp-reader.c.
2087 * src/io-desktop/nadp-keys.h:
2088 Relabel type of items in .desktop file (cf. draft 0.9).
2090 * src/io-desktop/nadp-reader.c:
2091 * src/io-desktop/nadp-reader.h:
2092 Read profiles present in the .desktop file.
2094 2010-03-26 Pierre Wieser <pwieser@trychlos.org>
2096 * configure.ac: Bump version number for data branch.
2098 2010-03-26 Pierre Wieser <pwieser@trychlos.org>
2102 2010-03-25 Pierre Wieser <pwieser@trychlos.org>
2104 * src/nact/nact-main-menubar-edit.c:
2105 * src/nact/nact-main-menubar-edit.h:
2106 * src/nact/nact-main-menubar-file.c:
2107 * src/nact/nact-main-menubar-file.h:
2108 * src/nact/nact-main-menubar-view.c:
2109 * src/nact/nact-main-menubar-view.h: New files.
2112 * src/nact/Makefile.am: Updated accordingly.
2114 * src/nact/nact-main-window.c
2115 (ipivot_consumer_on_mandatory_prefs_changed):
2116 Implement NAIPivotConsumer notification.
2118 * src/nact/nact-sort-buttons.c:
2119 * src/nact/nact-sort-buttons.h
2120 (nact_sort_buttons_level_zero_writability_change):
2121 Enable/disable the buttons depending of the level zero writability
2124 2010-03-24 Pierre Wieser <pwieser@trychlos.org>
2126 * src/core/na-ipivot-consumer.c
2127 (na_ipivot_consumer_notify_of_mandatory_prefs_changed) : New function.
2128 (on_mandatory_prefs_changed): New interface API.
2130 * src/core/na-pivot.c (monitor_runtime_preferences):
2131 Monitor the mandatory preferences set by the admin.
2133 * src/nact/nact-main-window.c (ipivot_consumer_iface_init):
2134 * src/plugin-menu/nautilus-actions.c (ipivot_consumer_iface_init):
2135 For now, only declare NULL implementations.
2137 * src/nact/nact-preferences-editor.c (on_base_runtime_init_dialog):
2138 * src/nact/nact-sort-buttons.c (nact_sort_buttons_runtime_init):
2139 Forbid the modification of order mode is level zero is not writable.
2141 * src/core/na-pivot.c (na_pivot_is_level_zero_writable):
2142 Writable if not all not GConf are locked by admin.
2144 * src/nact/nact-iaction-tab.c (nact_iaction_tab_runtime_init_toplevel):
2145 * src/nact/nact-iadvanced-tab.c (runtime_init_connect_signals):
2146 * src/nact/nact-icommand-tab.c (nact_icommand_tab_runtime_init_toplevel):
2147 * src/nact/nact-iconditions-tab.c (nact_iconditions_tab_runtime_init_toplevel):
2148 * src/nact/nact-ifolders-tab.c (nact_ifolders_tab_runtime_init_toplevel):
2149 * src/nact/nact-main-tab.h:
2150 Signal TAB_UPDATABLE_SIGNAL_SELECTION_CHANGED is renamed as
2151 MAIN_WINDOW_SIGNAL_SELECTION_CHANGED.
2153 * src/nact/nact-main-menubar.c:
2154 * src/nact/nact-main-menubar.h
2155 (nact_main_menubar_is_level_zero_order_changed): New function.
2157 * src/nact/nact-iactions-list.h:
2158 * src/nact/nact-iactions-list-bis.c (nact_iactions_list_bis_delete):
2159 Add an argument to select the row at end of the function.
2161 * src/nact/nact-main-window.c:
2162 Connect to MAIN_WINDOW_SIGNAL_LEVEL_ZERO_ORDER_CHANGED to update
2165 * src/nact/nact-iactions-list.c:
2166 * src/nact/nact-iactions-list.h
2167 (selection_changed): Remove the not used API.
2168 Remove the connection to the signal and the call to the interface.
2170 * src/nact/nact-assistant-export.c (iactions_list_iface_init):
2171 Use the IACTIONS_LIST_SIGNAL_SELECTION_CHANGED instead of the
2174 * src/nact/nact-main-window.c
2175 (ipivot_consumer_on_display_order_changed):
2176 Relay NAIPivotConsumer notification to nact_sort_buttons.
2178 * src/nact/nact-sort-buttons.c:
2179 * src/nact/nact-sort-buttons.h
2180 (nact_sort_buttons_display_order_change): New function.
2182 * src/nact/nact-main-menubar.c (save_item):
2183 Not only unref old origin, but also remove it from tree.
2185 2010-03-23 Pierre Wieser <pwieser@trychlos.org>
2187 Add buttons to sort the list.
2189 * src/nact/nact-sort-buttons.c:
2190 * src/nact/nact-sort-buttons.h: New files.
2192 * src/nact/Makefile.am:
2193 * src/nact/nact-main-window.c: Updated accordingly.
2195 * src/nact/nautilus-actions-config-tool.ui:
2196 Define three new buttons to help to sort the list of items.
2198 * src/core/Makefile.am:
2199 No more give a version number to the core library.
2201 Restore the target-location indicator.
2203 * src/api/na-ifactory-object-data.h:
2204 * src/core/na-object-action-factory.c:
2205 Renamed NAFO_DATA_TARGET_BACKGROUND as NAFO_DATA_TARGET_LOCATION.
2207 * src/api/na-object-api.h
2208 (na_object_is_target_location, na_object_set_target_location):
2211 * src/api/na-object-item.h:
2212 * src/plugin-menu/nautilus-actions.c (menu_provider_get_background_items):
2213 Renamed ITEM_TARGET_BACKGROUND as ITEM_TARGET_LOCATION.
2215 * src/core/na-icontextual-factory.c:
2216 * src/core/na-object-action-factory.c:
2217 * src/core/na-object-item-factory.c:
2218 Update data descriptions.
2220 * src/core/na-icontextual.c (is_target_background_candidate):
2221 Renamed as is_target_location_candidate().
2223 * src/core/na-object-action.c (na_object_action_is_candidate):
2224 Only selects the action if it is candidate for this target.
2226 * src/nact/nact-iaction-tab.c (on_tab_updatable_selection_changed):
2227 * src/nact/nautilus-actions-config-tool.ui:
2228 Display the target-location checkbox.
2230 * src/utils/nautilus-actions-new.c:
2231 Let the user select the target-location boolean indicator.
2233 2010-03-22 Pierre Wieser <pwieser@trychlos.org>
2235 * src/core/na-icontextual.c
2236 (is_current_folder_inside): Compare path rather that URI.
2237 (is_target_selection_candidate): Fix NASelectedInfo addressing.
2239 * src/plugin-menu/nautilus-actions.c
2240 (get_file_or_background_items): New function.
2241 (build_nautilus_menus, get_candidate_profile): Add debug messages.
2243 * src/core/na-selected-info.c (query_file_attributes):
2244 Fix file_info_get_attribute.
2246 * src/core/na-object-action.c (na_object_action_is_candidate):
2247 Considere background menu just as a special case of selection menu.
2249 * data/.gitignore: Update .gitignore.
2251 2010-03-17 Pierre Wieser <pwieser@trychlos.org>
2253 * data/Makefile.am: Automatically generate configurations schemas.
2255 * data/nautilus-actions.schemas.in:
2256 Renamed as data/nautilus-actions-prefs.schemas.in.
2257 Remove configurations schemas (now dynamically generated).
2259 * po/POTFILES.in: Updated accordingly.
2261 * src/core/na-icontextual-factory.c:
2262 * src/core/na-object-action-factory.c: Fix typo.
2264 * src/utils/nautilus-actions-schemas.c:
2265 Output configurations schemas to stdout.
2268 New file: do not try to translate dynamically generated schema.
2271 Build data/ after src/ to bo take advantage of dynamic generation of schemas.
2273 * src/core/na-icontextual-factory.c:
2274 String lists are now initialized in GConf-style.
2276 * src/io-gconf/nagp-writer.c (nagp_writer_write_data):
2277 * src/io-xml/naxml-writer.c (write_data_schema_v2, write_data_dump):
2278 Do not output empty values.
2280 * src/api/na-data-boxed.h:
2281 * src/core/na-data-boxed.c (na_data_boxed_is_set): New function.
2283 * data/nautilus-actions.schemas.in:
2285 Add io-providers/read-at-startup and io-providers/writable keys.
2287 * src/nact/nact.desktop.in: Add StartupNotify=true.
2289 * src/nact/nact-main-window.c (reload):
2290 Free the deleted list before filling the tree.
2292 * src/nact/nact-main-menubar.c
2293 (on_cut_activated): Do not cut not deletable items.
2294 (get_deletables): Add a ref on items to delete.
2296 * src/test/init-dispose-diff.sh:
2297 Do not take into account some debug messages.
2299 2010-03-16 Pierre Wieser <pwieser@trychlos.org>
2301 * src/utils/nautilus-actions-new.c
2302 (output_to_dir): Output the new action to a file.
2304 * src/core/na-core-utils.c (info_dir_is_writable):
2305 Do not emit a warning on 'no such file or directory' error.
2307 * src/utils/nautilus-actions-new.c
2308 (output_to_stdout): Output the new action to stdout.
2309 (output_to_gconf): Output the new action to GConf.
2311 * src/io-xml/naxml-writer.c (naxml_writer_write_start):
2312 Add attribute to list node, thus fixing writing of action.
2314 2010-03-15 Pierre Wieser <pwieser@trychlos.org>
2316 * src/io-xml/naxml-writer.c (naxml_writer_write_start):
2317 No need to explicitely write item type as the data is marked writable.
2319 * src/utils/nautilus-actions-new.c:
2320 Cleanup old command-line code.
2321 Check for incompatibility between boolean arguments.
2323 * src/api/na-data-def.h (na_data_def_get_data_def): New function.
2325 * src/core/na-data-def.c: New file.
2327 * src/core/Makefile.am: Updated accordingly.
2329 * src/core/na-icontextual-factory.c:
2330 * src/core/na-object-profile-factory.c:
2331 Update command-line options to not have duplicates.
2333 * src/utils/nautilus-actions-new.c:
2334 Use new ArgFromDataDef structure and display suitable help.
2336 * src/core/na-icontextual-factory.c:
2337 * src/core/na-object-action-factory.c:
2338 * src/core/na-object-item-factory.c:
2339 * src/core/na-object-profile-factory.c:
2340 * src/utils/nautilus-actions-new.c:
2341 Update data definitions to handle command-line arguments.
2343 2010-03-10 Pierre Wieser <pwieser@trychlos.org>
2345 * src/utils/nautilus-actions-new.c:
2346 Define a structure to host NADataDef argument definitions.
2348 * src/api/na-data-def.h:
2349 Add parameters to be able to manage command-line arguments.
2351 * src/core/na-icontextual-factory.c:
2352 * src/core/na-object-action-factory.c:
2353 * src/core/na-object-id-factory.c:
2354 * src/core/na-object-item-factory.c:
2355 * src/core/na-object-profile-factory.c: Updated accordingly.
2357 * src/core/na-io-provider.c (build_hierarchy):
2358 Attach the child item to its parent.
2360 * src/core/na-object-id.c (instance_dispose):
2361 * src/core/na-object-item.c (instance_dispose):
2362 * src/core/na-object.c (instance_dispose):
2365 * src/core/na-dbus-tracker.h: Remove no more used file.
2367 * src/core/Makefile.am: Updated accordingly.
2369 * src/core/na-icontextual.c:
2370 * src/core/na-object-profile.c:
2371 * src/plugin-tracker/na-tracker-dbus.c:
2372 * src/utils/nautilus-actions-run.c:
2373 Remove all references to NATrackedItem obsolete class.
2375 * src/api/na-ifactory-object-data.h:
2376 Rename v1 action data group to NA_FACTORY_ACTION_V1_GROUP.
2378 * src/core/na-object-action-factory.c:
2379 No more try to read obsolete NAFO_DATA_TARGET_BACKGROUND data.
2381 * src/plugin-tracker/na-tracker.c
2382 (menu_provider_get_background_items):
2383 Implement Nautilus get_background_items() interface.
2385 * data/nautilus-actions.schemas.in:
2386 Remove 'target-background' entry description.
2388 * src/api/na-object-api.h
2389 (na_object_is_target_background): Removed macro.
2391 * src/api/na-object-profile.h
2392 * src/core/na-object-profile.c
2393 (na_object_profile_is_target_background): Removed function.
2395 2010-03-09 Pierre Wieser <pwieser@trychlos.org>
2397 * src/io-gconf/nagp-writer.c (nagp_writer_write_data):
2398 Replace gconf_concat_dir_and_key by g_strdup_printf.
2400 * src/core/na-ifactory-provider.c (na_ifactory_provider_write_item):
2401 Add a debug trace when entering in the function.
2403 * src/api/na-icontext-conditions.h: Renamed as na-icontextual.h.
2404 * src/core/na-icontext-conditions.c: Renamed as na-icontextual.c.
2405 * src/core/na-icontext-conditions-factory.c:
2406 Renamed as na-icontextual-factory.c.
2409 * src/api/Makefile.am:
2410 * src/api/na-icontextual.h:
2411 * src/api/na-object-api.h:
2412 * src/core/Makefile.am:
2413 * src/core/na-icontextual.c:
2414 * src/core/na-object-action.c:
2415 * src/core/na-object-profile.c:
2416 * src/plugin-menu/nautilus-actions.c:
2417 * src/utils/nautilus-actions-run.c: Updated accordingly.
2419 2010-03-09 Pierre Wieser <pwieser@trychlos.org>
2421 Refactor NactIBackgroundTab class as NactIFoldersTab.
2423 * src/nact/nact-ibackground-tab.c:
2424 * src/nact/nact-ibackground-tab.h: Renamed as nact-ifolders-tab.{c,h}.
2426 * src/nact/Makefile.am:
2427 * src/nact/nact-main-tab.h:
2428 * src/nact/nact-main-window.c: Updated accordingly.
2430 Remove the 'target background' indicator which was introduced in 2.29.1.
2432 * src/core/na-object-action-factory.c:
2433 Update properties for NAFO_DATA_TARGET_BACKGROUND.
2435 * src/nact/nact-iaction-tab.c
2436 (nact_iaction_tab_runtime_init_toplevel): Remove the signal connection.
2437 (on_tab_updatable_selection_changed): Remove fields initialization.
2438 (on_target_background_toggled): Remove the function.
2440 * src/nact/nact-ibackground-tab.c (tab_set_sensitive):
2441 Always sensitive for profiles.
2443 * src/nact/nautilus-actions-config-tool.ui: Remove the fields.
2445 * src/core/na-object-action-factory.c:
2446 data_def_action_v1 is now available from outside.
2448 * src/core/na-object-action.c
2449 (ifactory_object_read_done, ifactory_object_write_done):
2450 Rewrite input/output functions.
2452 * src/io-gconf/nagp-reader.c
2453 (nagp_reader_read_data): Simplify the code.
2455 * src/io-gconf/nagp-writer.c
2456 (nagp_writer_write_start): No more write type as this is a normal data.
2457 (nagp_writer_write_data): Rewrite profile writing.
2458 (nagp_writer_write_done): Profile writing is now driven by NAObjectAction.
2460 * src/nact/nact-tree-model-dnd.c: Cleanup the code.
2462 2010-03-05 Pierre Wieser <pwieser@trychlos.org>
2464 * nact/nact-tree-model-dnd.c (drop_inside):
2465 Split to three functions to better readibility.
2466 Fix drop inside an empty menu.
2467 Fix drop into a non writable parent.
2469 * src/api/na-iio-provider.h: Add a comment.
2471 * src/core/na-io-provider.c:
2472 * src/core/na-io-provider.h (na_io_provider_get_return_code_label):
2475 * src/nact/nact-window.c (nact_window_save_item):
2476 Better error message.
2478 * src/nact/nact-export-ask.c (on_base_runtime_init_dialog):
2479 Set more clear label, whether the item be a label or an action.
2481 * src/nact/nact-tree-model-dnd.c (get_xds_atom_value):
2482 Remove debug traces after validation both on 32 and 64 bits systems.
2484 * src/api/na-core-utils.h:
2485 * src/core/na-core-utils.c
2486 (na_core_utils_slist_join_at_end): New function.
2488 * src/api/na-iio-provider.h: Fix typo in comment.
2490 * src/nact/nact-main-menubar.c (on_delete_activated):
2491 Do not delete a tree if at least one item is not writable.
2493 * src/nact/nact-tree-model-dnd.c (get_xds_atom_value):
2496 * src/plugin-menu/nautilus-actions.c
2497 (create_item_from_menu): Add a trace on weak notify.
2499 2010-03-04 Pierre Wieser <pwieser@trychlos.org>
2501 * src/core/na-object-action.c (instance_init):
2502 * src/core/na-object-menu.c (instance_init):
2503 Rather create the 'Type' box here than in read_start().
2505 2010-03-03 Pierre Wieser <pwieser@trychlos.org>
2507 * src/core/Makefile.am:
2508 * src/nact/Makefile.am: Fix make distcheck.
2510 * po/POTFILES.in: Updated.
2512 Rename the NAIConditions interface to NAIContextConditions
2513 (hopefully, there will be a NAIContextParameters some day :)).
2515 * src/core/na-iconditions-factory.c:
2516 Renamed as src/core/na-icontext-conditions-factory.c.
2518 * src/core/na-iconditions.c:
2519 Renamed as src/core/na-icontext-conditions.c.
2521 * src/api/na-iconditions.h:
2522 Renamed as src/core/na-icontext-conditions.h.
2524 * src/api/Makefile.am:
2525 * src/core/Makefile.am: Updated accordingly.
2527 * src/core/na-object-profile.c:
2528 * src/plugin-menu/nautilus-actions.c:
2529 Use new na_icontext_conditions_is_candidate() function.
2531 Define the NAIConditions interface, to be implemented by actions,
2532 profiles and menus (for now, only profiles).
2534 * src/api/na-iconditions.h:
2535 * src/core/na-iconditions.c:
2536 * src/core/na-iconditions-factory.c: New files.
2538 * src/api/Makefile.am:
2539 * src/core/Makefile.am: Updated accordingly.
2541 * src/api/na-ifactory-object-data.h:
2542 Define the NA_FACTORY_CONDITIONS_GROUP data group.
2544 * src/core/na-object-profile-factory.c:
2545 Use new data_def_conditions.
2547 * src/core/na-object-profile.c (register_type):
2548 Implement the new NAIConditions interface.
2550 Review the rationales, replacing serializable+obsoleted by
2551 readable+writable flags in NADataDef structure.
2553 * src/api/na-data-def.h:
2554 * src/core/na-factory-object.c:
2555 * src/core/na-object-action-factory.c:
2556 * src/core/na-object-action.c:
2557 * src/core/na-object-id-factory.c:
2558 * src/core/na-object-item-factory.c:
2559 * src/core/na-object-profile-factory.c:
2560 * src/io-desktop/nadp-desktop-provider.c: Updated accordingly.
2562 * src/plugin-tracker/na-tracker-dbus.c (instance_dispose):
2563 Release selected items in instance_dispose() rather than in
2564 instance_finalize() which caused a FPE in Nautilus terminaison.
2566 * src/api/na-ifactory-object.h:
2567 * src/core/na-ifactory-object.c:
2568 * src/core/na-iio-provider.c:
2569 * src/io-desktop/nadp-desktop-file.c:
2570 * src/io-desktop/nadp-desktop-file.h:
2571 * src/io-xml/naxml-writer.c:
2572 * src/io-xml/naxml-writer.h:
2573 * src/nact/nact-iadvanced-tab.c:
2574 * src/nact/nact-main-menubar.c:
2575 * src/utils/nautilus-actions-new.c: Cleanup the code.
2577 * src/nact/nact-assistant-export.c (assist_prepare_confirm):
2578 Optimize the build of the displayed text.
2580 * src/nact/nact-assistant-export.c (on_all_widgets_showed):
2581 Select and expand the first row of the list.
2583 * src/core/na-module.c (add_module_type):
2584 * src/io-desktop/nadp-reader.c (na_ifactory_provider_read_item):
2585 * src/io-desktop/nadp-writer.c (nadp_iio_provider_write_item):
2586 * src/nact/nact-export-format.c (draw_in_vbox):
2587 Add a weak_notify() local function in order to be able to trace
2588 the dispose of attached objects.
2590 * src/api/na-core-utils.h:
2591 * src/core/na-core-utils.c
2592 (na_core_utils_str_remove_char): New function.
2594 * src/api/na-iexporter.h:
2595 Onlu reference one short label in NAIExporterFormat structure.
2597 * src/core/na-export-format.c:
2598 * src/core/na-export-format.h:
2599 * src/io-xml/naxml-formats.c: Updated accordingly.
2601 * src/nact/base-window.c (setup_builder):
2602 Display a dialog error when unable to load a XML definition.
2604 * src/nact/nact-assistant-export.c:
2605 * src/nact/nact-assistant-export.ui:
2606 * src/nact/nact-assistant-import.c:
2607 Adjust the display to be more funny.
2609 * src/nact/nact-clipboard.c:
2610 Add na-export-format.h include file.
2612 * src/nact/nact-export-ask.c:
2613 * src/nact/nact-export-format.c:
2614 * src/nact/nact-export-format.h:
2615 Reference the NAExportFormat object instead of each and every label.
2617 * src/nact/nact-iprefs.h:
2618 Remove IPREFS_EXPORT_FORMAT_ASK definition.
2620 * src/nact/nact-preferences-editor.c:
2621 * src/nact/nautilus-actions-config-tool.ui:
2622 Use (renamed) nact_export_format_init_display() function.
2624 * src/api/na-core-utils.h:
2625 * src/core/na-core-utils.c (na_core_utils_file_exists):
2628 * src/io-xml/naxml-writer.c: Export to file.
2630 * po/POTFILES.in: Updated.
2632 * src/api/na-data-types.h
2633 (na_data_types_get_gconf_dump_key): New function.
2635 * src/core/na-data-types.c: New file.
2637 * src/core/Makefile.am: Updated accordingly.
2639 * src/api/na-ifactory-object-data.h:
2640 * src/core/na-object-item-factory.c:
2641 (NAFO_DATA_TYPE): New elementary data.
2643 * src/core/na-ifactory-object.c:
2644 * src/api/na-ifactory-object.h
2645 (na_ifactory_object_get_data_boxed): New function.
2647 * src/core/na-core-utils.c (na_core_utils_dir_is_writable_uri):
2648 Give a better name to the parameter.
2650 * src/core/na-exporter.c:
2651 * src/core/na-exporter.h (na_exporter_to_buffer, na_exporter_to_file):
2652 Reorder of functions in the files.
2654 * src/core/na-factory-object.c:
2655 * src/core/na-factory-object.h:
2656 Now use the new na_ifactory_object_get_data_boxed() function.
2658 * src/core/na-object-action-factory.c:
2659 * src/core/na-object-profile-factory.c:
2660 * src/io-xml/naxml-keys.h:
2661 Move the schema descriptions to data factory.
2663 * src/core/na-object-action.c:
2664 * src/core/na-object-menu.c:
2665 (ifactory_object_read_start): Allocate the 'type' data boxed.
2667 * src/io-gconf/nagp-keys.h: Fix the path of the schemas.
2669 * src/io-xml/naxml-formats.c:
2670 * src/io-xml/naxml-formats.h: New files.
2672 * src/io-xml/Makefile.am: Updated accordingly.
2674 * src/io-xml/naxml-provider.c: Implement NAXMLWriter calls.
2676 * src/io-xml/naxml-writer.c:
2677 * src/io-xml/naxml-writer.h: Export to buffer.
2679 * src/nact/nact-clipboard.c
2680 (nact_clipboard_dnd_drag_end): Fix gtk_selection_data_free() call.
2681 (export_row_object): Also exports menus.
2683 * src/nact/nact-tree-model-dnd.c
2684 (nact_tree_model_dnd_imulti_drag_source_drag_data_get):
2685 Fix and parse the returned URI to get the path of the target folder.
2687 2010-03-01 Pierre Wieser <pwieser@trychlos.org>
2689 * po/POTFILES.in: Add src/core/na-exporter.c file.
2691 * src/api/na-iexporter.h: Refactor NAIExporter interface.
2693 * src/core/na-export-format.c:
2694 * src/core/na-export-format.h
2695 (na_export_format_get_exporter): New function.
2697 * src/core/na-exporter.c:
2698 * src/core/na-exporter.h:
2699 * src/core/na-iexporter.c:
2700 * src/core/na-importer.c:
2701 * src/io-xml/naxml-provider.c:
2702 * src/nact/nact-assistant-export.c:
2703 * src/nact/nact-clipboard.c: Updated accordingly.
2705 * src/api/na-iexporter.h:
2706 * src/core/na-export-format.c:
2707 * src/core/na-export-format.h:
2708 * src/core/na-exporter.c:
2709 * src/core/na-iexporter.c:
2710 * src/io-xml/naxml-provider.c:
2711 * src/nact/nact-export-format.c:
2712 NAExporterStr structure is renamed as NAIExporterFormat.
2714 * src/api/na-iimporter.h (from_uri):
2715 Rename the API function to be consistant with NAIExporter interface.
2717 * src/core/na-iimporter.c:
2718 * src/io-xml/naxml-provider.c: Updated accordingly.
2720 * src/nact/nact-tree-model-dnd.c
2721 (nact_tree_model_dnd_imulti_drag_source_drag_data_get):
2722 Target folder is an URI.
2724 * src/nact/nact-main-menubar-tools.c:
2725 * src/nact/nact-main-menubar-tools.h: New files.
2727 * src/nact/nact-main-menubar-maintainer.c:
2728 * src/nact/nact-main-menubar-maintainer.h: New files.
2730 * src/nact/nact-main-menubar.c (on_update_sensitivities):
2731 Only paste a NAObjectItem into a menu.
2733 * src/nact/nact-main-menubar-help.c:
2734 * src/nact/nact-main-menubar-help.h: New files.
2736 * src/nact/Makefile.am:
2737 * src/nact/nact-main-menubar.c:
2738 * src/nact/nact-main-menubar.h: Updated accordingly.
2740 * src/core/na-updater.c:
2741 * src/core/na-updater.h (na_updater_append_item): New function.
2743 * src/nact/nact-main-menubar.c (save_item): Fix save machinery.
2745 * src/nact/nact-assistant-import.c
2746 (check_for_existance): Directly use the main window.
2748 * src/nact/nact-tree-model-dnd.c (drop_uri_list):
2749 Adapt to use na_importer_import_from_list() function.
2750 Display messages in a dialog box.
2751 Split the selection data on a '\r\n' separator.
2753 * src/api/na-iimporter.h (NAIImporterListParms): New structure.
2755 * src/core/na-importer.c:
2756 * src/core/na-importer.h (na_importer_import_from_list): New function.
2758 * src/api/na-iimporter.h:
2759 * src/core/na-iimporter.c:
2760 * src/core/na-importer-ask.c:
2761 * src/core/na-importer-ask.h:
2762 * src/core/na-importer.c:
2763 * src/core/na-importer.h:
2764 * src/io-xml/naxml-reader.c:
2765 * src/io-xml/naxml-reader.h:
2766 * src/nact/nact-assistant-import.c:
2767 * src/nact/nact-tree-model-dnd.c:
2768 * src/test/test-reader.c:
2769 NAIImporterParms structure is renamed as NAIImporterUriParms.
2770 'item' member of this same structure is renamed as imported.
2772 * src/io-gconf/nagp-reader.c:
2773 * src/io-gconf/nagp-writer.c:
2774 * src/io-gconf/nagp-writer.h: Cleanup the code.
2776 * src/nact/nact-iaction-tab.c (setup_toolbar_label):
2777 Immediately update the toolbar label when it is the same that those
2780 * src/nact/nact-icommand-tab.c (parse_parameters):
2781 Fix display of a single '%' char.
2783 * src/nact/nautilus-actions-config-tool.ui:
2784 ActionIconLabelLabel field renamed as ActionToolbarLabelLabel.
2786 * src/io-gconf/nagp-reader.c (read_done_item):
2787 Only action needs to setup the parent pointer.
2789 * src/io-gconf/nagp-writer.c (nagp_writer_write_data):
2790 Only writes non-empty values.
2792 * src/core/na-object.c (na_object_object_reset_origin):
2793 No more check for the value of object origin before resetting it.
2795 * src/core/na-object-item.c
2796 (na_object_item_remove_item): Improve debug message.
2797 (copy_children): Refuse to copy when target already has children.
2799 * src/nact/nact-main-menubar.c
2800 (nact_main_menubar_save_items): Do not re-dump all the items hierarchy.
2801 (save_item): Remove old children after having created the new ones.
2803 * src/core/na-object-action.c (ifactory_object_read_done):
2804 Force toolbar label to be the same that action one if flag is set to true.
2806 * src/api/na-object-api.h: Fix minor typo.
2808 2010-02-28 Pierre Wieser <pwieser@trychlos.org>
2810 * src/io-desktop/nadp-desktop-file.c
2811 (nadp_desktop_file_get_key_file_path):
2812 No more invalidate the function.
2814 * src/api/na-ifactory-object.h:
2815 * src/core/na-object-item-factory.c:
2816 * src/nact/nact-iactions-list-bis.c:
2817 * src/nact/nact-iactions-list.h:
2820 * src/api/na-object-api.h:
2821 New na_object_copy macro (evaluates as na_object_object_copy).
2823 * src/api/na-object-item.h (na_object_item_copy): Removed function.
2825 * src/api/na-object.h:
2826 * src/core/na-object.c:.
2827 (copy): Add 'recursive' flag.
2828 (iduplicable_copy): Use na_object_copy() macro.
2829 (na_object_object_copy): New function.
2831 * src/core/na-factory-object.c (na_factory_object_copy):
2832 No more delete all NADataBoxed, but update those who already exist.
2833 (write_data_iter): Fix return code.
2835 * src/core/na-iduplicable.c (na_iduplicable_duplicate):
2836 Review the rationale, and ensure that the function is recursive.
2838 * src/core/na-object-action.c
2839 * src/core/na-object-item.c:
2840 * src/core/na-object-menu.c:
2841 * src/core/na-object-profile.c:
2842 (instance_constructed): Removed function.
2843 (ifactory_object_copy): Removed function.
2844 (object_copy): New function, implementation of NAObject::copy.
2846 * src/core/na-pivot.c (instance_dispose): Add debug message.
2848 * src/core/na-updater.c (na_updater_remove_item):
2849 Only update tree if object has no parent.
2851 * src/io-gconf/nagp-gconf-provider.c
2852 (ifactory_provider_iface_init): Address nagp_writer_write_start().
2854 * src/io-gconf/nagp-reader.c (nagp_reader_read_data): Comment debug message.
2856 * src/io-gconf/nagp-writer.c:
2857 * src/io-gconf/nagp-writer.h (nagp_writer_write_start): New function.
2858 Write the type of the NAObjectItem.
2860 * src/nact/nact-iaction-tab.c (on_tab_updatable_selection_changed):
2861 * src/nact/nact-icommand-tab.c (on_tab_updatable_selection_changed):
2862 * src/nact/nact-iconditions-tab.c (on_tab_updatable_selection_changed):
2863 As objects have defaults, no more test for null string.
2865 * src/nact/nact-main-menubar.c
2866 (nact_main_menubar_save_items): Dump after check status.
2867 (save_item): Use new na_object_copy() macro.
2869 * src/nact/nact-window.c (nact_window_save_item):
2870 Remove superfluous dumps.
2872 2010-02-27 Pierre Wieser <pwieser@trychlos.org>
2874 * src/core/na-iduplicable.c (na_iduplicable_check_status):
2875 An object without any origin is considered modified.
2877 * src/core/na-iduplicable.c (get_duplicable_str):
2878 NAIDuplicable object defaults to not modified.
2880 * src/core/na-object-item-factory.c:
2881 Pointers to list of subitems are not comparable.
2883 Rewrite the update of the pivot tree where there is a non null origin.
2884 * src/core/na-updater.c:
2885 * src/core/na-updater.h
2886 (na_updater_add_item): Removed function.
2887 (na_updater_insert_item): New function.
2889 * src/io-gconf/nagp-writer.c (nagp_writer_write_data):
2890 Fix the path of written data.
2892 * src/nact/nact-main-menubar.c (on_new_profile_activated):
2893 Do not attach the profile as this is done by the tree model.
2894 (save_item): Copy the tree item to the pivot one if it exists.
2896 * src/core/na-object-item.c (instance_dispose):
2897 Set the subitems pointer to NULL before unreffing the children.
2899 * src/core/na-object.c (instance_finalize):
2900 Add a protection when finalizing NADataBoxed.
2902 * src/core/na-object-action.c (instance_constructed):
2903 * src/core/na-object-profile.c (instance_constructed):
2904 * src/core/na-object-menu.c (instance_constructed):
2905 Initialize NAIFactoryObject defaults here, rather than in object_new.
2907 * src/api/na-data-def.h: Remove fn_free() function pointer.
2909 * src/core/na-data-boxed.c:
2910 * src/core/na-object-action-factory.c:
2911 * src/core/na-object-id-factory.c:
2912 * src/core/na-object-profile-factory.c
2913 * src/core/na-object-item-factory.c: Updated accordingly.
2915 * src/core/na-iduplicable.c (get_duplicable_str):
2916 Initialize modification status to TRUE if origin is NULL.
2918 * src/nact/nact-tree-model.c (nact_tree_model_fill):
2919 Recheck modification and validity status of newly duplicated object.
2921 2010-02-26 Pierre Wieser <pwieser@trychlos.org>
2923 Fix references count mistakes in NACT.
2925 * src/api/na-object-api.h (na_object_unref_selected_items):
2926 New macro, more specifically targeting the tree selections.
2928 * src/core/na-factory-object.c:
2929 * src/core/na-factory-object.h (na_factory_object_finalize_instance):
2930 Renamed as na_factory_object_finalize().
2932 * src/core/na-object-action.c (instance_finalize):
2933 * src/core/na-object-item.c (instance_finalize):
2934 * src/core/na-object-menu.c (instance_finalize):
2935 * src/core/na-object-profile.c (instance_finalize):
2936 * src/core/na-object.c (instance_finalize):
2937 Move na_object_unref_selected_items() to
2938 na_object:na_factory_object_finalize.
2940 * src/core/na-pivot.c (instance_dispose, reload_items):
2941 Use non-recursive na_object_unref_items() macro.
2943 * src/nact/nact-assistant-export.c (assist_prepare_confirm):
2944 * src/nact/nact-iactions-list.c (free_items_callback):
2945 * src/nact/nact-main-menubar.c (on_update_sensitivities):
2946 Use recursive na_object_unref_selected_items() macro.
2948 * src/nact/nact-iactions-list.c (filter_selection):
2949 Unref the got object immediately (which was the actual bug).
2951 * src/test/init-dispose-diff.sh: Fix and optimize.
2953 Fix display of modification status in NACT.
2955 * src/api/na-iduplicable.h:
2956 * src/core/na-iduplicable.c (na_iduplicable_set_modified):
2959 * src/api/na-object-api.h:
2960 * src/api/na-object-item.h:
2961 * src/core/na-object-item.c (na_object_item_unref_items_rec):
2964 * src/core/na-data-boxed.c (string_are_equal):
2965 * src/core/na-factory-object.c (na_factory_object_are_equal):
2966 * src/core/na-object.c (na_object_object_check_status_up):
2967 Rewrite equality tests.
2969 * src/core/na-object-action-factory.c:
2970 * src/core/na-object-item-factory.c:
2971 * src/core/na-object-profile-factory.c:
2972 * src/core/na-object-action.c:
2973 * src/core/na-object-menu.c:
2974 * src/core/na-object-profile.c:
2975 Review one more time default values and initial allocations.
2977 * src/core/na-pivot.c (instance_dispose, na_pivot_load_items:
2978 Only unref the first level of items.
2980 * src/core/na-updater.c (na_updater_remove_item):
2981 Only unref the removed object as it will take care of also unreffing
2982 its children if its reference count is correct.
2984 * src/nact/nact-iactions-list.c (display_label):
2985 Add a commented debug line.
2987 * src/test/check-po.sh: Test cpompleteness of po/POTFILES.in.
2988 * src/test/time.sh: Bench the elapsed build time.
2990 2010-02-25 Pierre Wieser <pwieser@trychlos.org>
2992 * po/POTFILES.in: Updated.
2994 * src/core/na-object-profile.c:
2995 Remove no more used default profile.
2997 * src/core/na-object-profile.c:
2998 * src/nact/nact-iactions-list.c:
2999 No more include gi18n.h.
3001 * src/api/na-ifactory-object.h:
3002 * src/core/na-ifactory-object.c:
3003 Remove get_default() function from the interface.
3005 * src/api/na-object-action.h:
3006 * src/core/na-object-action.c (na_object_action_new_with_defaults):
3008 Remove ifactory_object_get_default() implementation.
3010 * src/api/na-object-menu.h:
3011 * src/core/na-object-menu.c (na_object_menu_new_with_defaults):
3013 Remove ifactory_object_get_default() implementation.
3015 * src/api/na-object-profile.h:
3016 * src/core/na-object-profile.c (na_object_profile_new_with_defaults):
3018 Remove ifactory_object_get_default() implementation.
3020 * src/core/na-factory-object.c:
3021 * src/core/na-factory-object.h
3022 (na_factory_object_set_defaults): New function.
3023 (na_factory_object_attach_with_default): Removed function.
3026 * src/core/na-object-action-factory.c:
3027 * src/core/na-object-item-factory.c:
3028 * src/core/na-object-profile-factory.c:
3029 Review default values.
3031 * src/nact/nact-iaction-tab.c:
3032 * src/nact/nact-icommand-tab.c:
3033 * src/nact/nact-iconditions-tab.c:
3034 Fix the display of NULL texts.
3036 * src/nact/nact-main-menubar.c:
3037 * src/utils/nautilus-actions-new.c:
3038 Allocate new objects with defaults.
3040 * src/api/na-ifactory-object.h:
3041 * src/api/na-ifactory-provider.h:
3042 * src/api/na-object-api.h:
3043 * src/api/na-object-item.h:
3044 * src/core/na-factory-object.c:
3045 * src/core/na-factory-object.h:
3046 * src/core/na-factory-provider.c:
3047 * src/core/na-factory-provider.h:
3048 * src/core/na-ifactory-provider.c:
3049 * src/core/na-object-action.c:
3050 * src/core/na-object-item.c:
3051 * src/core/na-object-menu.c:
3052 * src/core/na-object-profile.c:
3053 * src/core/na-updater.c:
3054 * src/io-gconf/nagp-gconf-provider.c:
3055 * src/io-gconf/nagp-writer.c:
3056 * src/io-gconf/nagp-writer.h:
3057 Implement NAIfactoryProvider in GConf I/O provider writer.
3059 Fix reference count errors in NACT user interface.
3061 * src/core/na-object-id.c (instance_dispose):
3062 Remove the disposing child from its parent childs list.
3064 * src/core/na-object-item-factory.c (free_items_list):
3065 * src/core/na-object-item.c (instance_dispose):
3066 * src/core/na-object.c (na_object_object_unref):
3069 * src/core/na-object-item.c (na_object_item_unref_items):
3070 Do not recursively unref objects here as this is done in dispose.
3072 * src/nact/nact-tree-model.c (nact_tree_model_dispose):
3073 Add a debug message.
3075 Make the menus exportable.
3077 * src/nact/nact-iactions-list.c:
3078 * src/nact/nact-tree-model-priv.h:
3079 * src/nact/nact-tree-model.c:
3080 * src/nact/nact-tree-model.h:
3081 Change the 'only_actions' semantic by a 'are_profiles_displayed' one.
3082 Profiles are actually stored, but not displayed.
3084 * src/nact/nact-iactions-list.c
3085 (nact_iactions_list_initial_load_toplevel):
3086 The title of the label column is no more localizable.
3088 Fix validity checks.
3090 * src/core/na-data-boxed.c
3091 (string_is_valid, locale_is_valid, slist_is_valid, pointer_is_valid,
3092 uint_is_valid): Fix individual validity checks of elementary data.
3094 * src/core/na-factory-object.c (na_factory_object_is_valid):
3095 First check for presence of mandatory data, then check present data.
3097 * src/core/na-iduplicable.c (na_iduplicable_duplicate):
3098 Also duplicate the status of the source object.
3100 * src/core/na-io-provider.c (na_io_provider_read_items):
3103 * src/core/na-object-item.c (na_object_item_copy):
3104 * src/core/na-object.c (na_object_object_check_status):
3107 * src/nact/nact-tree-model.c (nact_tree_model_fill):
3108 No more check status of newly duplicated objects.
3110 * src/nact/base-window.c (instance_dispose):
3111 Only set dispose after having tested for main window.
3113 * src/api/na-object-api.h:
3114 Distinguish between profile and item on get_label.
3116 * src/core/na-gtk-utils.c:
3117 * src/core/na-gtk-utils.h: New files.
3118 * src/core/Makefile.am: Updated accordingly.
3120 * src/core/na-data-boxed.c:
3121 * src/core/na-gconf-monitor.c:
3122 * src/core/na-importer-ask.c:
3123 * src/io-gconf/nagp-gconf-provider.c:
3124 * src/io-gconf/nagp-reader.c:
3125 * src/io-gconf/nagp-reader.h:
3126 Fix objects reading from GConf.
3128 * src/nact/nact-assistant-import.c:
3129 * src/nact/nact-iprefs.c:
3130 * src/nact/nact-preferences-editor.c:
3131 * src/nact/nact-tree-model-dnd.c:
3132 * src/utils/nautilus-actions-schemas.c:
3133 Move GConfClient to private object data, unref on dispose.
3135 2010-02-24 Pierre Wieser <pwieser@trychlos.org>
3137 * src/api/na-iimporter.h:
3138 * src/core/Makefile.am:
3139 * src/core/na-iimporter.c:
3140 * src/core/na-importer-ask.c:
3141 * src/core/na-importer-ask.h:
3142 * src/core/na-iprefs.c:
3143 * src/core/na-iprefs.h:
3144 * src/io-xml/naxml-reader.c:
3145 * src/nact/Makefile.am:
3146 * src/nact/nact-assistant-import.c:
3147 * src/nact/nact-iprefs.c:
3148 * src/nact/nact-iprefs.h:
3149 * src/nact/nact-main-window.h:
3150 * src/nact/nact-preferences-editor.c:
3151 * src/nact/nact-tree-model-dnd.c:
3152 * src/nact/nautilus-actions-config-tool.ui:
3153 * src/test/test-reader.c: ImporterAsk dialog.
3155 * src/io-xml/naxml-keys.c:
3156 * src/io-xml/naxml-keys.h:
3157 * src/io-xml/naxml-reader.c: Able to import type 3 XML files.
3159 * exports/config_1af5a47e-96d9_v1.4.schemas:
3160 * src/api/na-data-boxed.h:
3161 * src/api/na-ifactory-object-data.h:
3162 * src/core/na-data-boxed.c:
3163 * src/core/na-factory-object.c:
3164 * src/core/na-object-action.c:
3165 * src/core/na-object-id-factory.c:
3166 * src/core/na-object-item-factory.c:
3167 * src/core/na-object-profile-factory.c:
3168 * src/io-xml/naxml-provider.c:
3169 * src/io-xml/naxml-reader.c:
3170 * src/io-xml/naxml-reader.h: Able to import two profiles.
3172 * src/api/na-data-boxed.h:
3173 * src/api/na-gconf-utils.h:
3174 * src/core/na-data-boxed.c:
3175 * src/core/na-factory-object.c:
3176 * src/core/na-gconf-utils.c:
3177 Make the dump more pretty.
3179 * exports/action-5c4fa203-b5d0_post_v1.11_type_3.xml:
3180 * exports/config-4c4fa203-b5d0_post_v1.11_type_2.schema:
3181 * exports/config_1af5a47e-96d9_v1.schemas:
3182 * exports/config_2af5a47e-96d9_pre_v1.11.schemas:
3183 * exports/config_3c4fa203-b5d0_post_v1.11_type_1.schemas:
3184 Refactor export files to better suit test-reader needs.
3186 * src/api/Makefile.am:
3187 * src/api/na-data-boxed.h:
3188 * src/api/na-data-types.h:
3189 * src/api/na-gconf-utils.h:
3190 * src/api/na-ifactory-object-data.h:
3191 * src/api/na-ifactory-object.h:
3192 * src/api/na-ifactory-provider.h:
3193 * src/api/na-iimporter.h:
3194 * src/api/na-object-api.h:
3195 * src/api/na-object-profile.h:
3196 * src/core/Makefile.am:
3197 * src/core/na-data-boxed.c:
3198 * src/core/na-factory-object.c:
3199 * src/core/na-factory-object.h:
3200 * src/core/na-factory-provider.c:
3201 * src/core/na-factory-provider.h:
3202 * src/core/na-gconf-utils.c:
3203 * src/core/na-ifactory-object.c:
3204 * src/core/na-ifactory-provider.c:
3205 * src/core/na-importer.c:
3206 * src/core/na-importer.h:
3207 * src/core/na-io-provider.c:
3208 * src/core/na-object-action-factory.c:
3209 * src/core/na-object-action.c:
3210 * src/core/na-object-id-factory.c:
3211 * src/core/na-object-item-factory.c:
3212 * src/core/na-object-menu-factory.c:
3213 * src/core/na-object-menu.c:
3214 * src/core/na-object-profile-factory.c:
3215 * src/core/na-object-profile.c:
3216 * src/io-desktop/nadp-desktop-file.c:
3217 * src/io-desktop/nadp-desktop-file.h:
3218 * src/io-desktop/nadp-desktop-provider.c:
3219 * src/io-desktop/nadp-keys.c:
3220 * src/io-desktop/nadp-keys.h:
3221 * src/io-desktop/nadp-reader.c:
3222 * src/io-gconf/nagp-gconf-provider.c:
3223 * src/io-xml/naxml-keys.h:
3224 * src/io-xml/naxml-provider.c:
3225 * src/io-xml/naxml-reader.c:
3226 * src/io-xml/naxml-reader.h:
3227 * src/nact/nact-assistant-import.c:
3228 * src/nact/nact-tree-model-dnd.c:
3229 * src/test/test-include.c:
3230 * src/test/test-reader.c: Able to import a pre-v2 action.
3232 2010-02-22 Pierre Wieser <pwieser@trychlos.org>
3234 * src/api/Makefile.am:
3235 * src/api/na-ifactory-object-enum.h:
3236 * src/api/na-ifactory-object-str.h:
3237 * src/api/na-ifactory-object.h:
3238 * src/api/na-ifactory-provider.h:
3239 * src/api/na-iio-provider.h:
3240 * src/api/na-object-api.h:
3241 * src/core/Makefile.am:
3242 * src/core/na-data-element.c:
3243 * src/core/na-data-element.h:
3244 * src/core/na-factory-object.c:
3245 * src/core/na-factory-object.h:
3246 * src/core/na-ifactory-object.c:
3247 * src/core/na-ifactory-provider-priv.h:
3248 * src/core/na-ifactory-provider.c:
3249 * src/core/na-object-action-enum.c:
3250 * src/core/na-object-action.c:
3251 * src/core/na-object-id-enum.c:
3252 * src/core/na-object-item-enum.c:
3253 * src/core/na-object-item.c:
3254 * src/core/na-object-menu-enum.c:
3255 * src/core/na-object-menu.c:
3256 * src/core/na-object-profile-enum.c:
3257 * src/core/na-object-profile.c:
3258 * src/core/na-object.c:
3259 * src/io-desktop/nadp-desktop-provider.c:
3260 * src/io-desktop/nadp-desktop-provider.h:
3261 * src/io-desktop/nadp-keys.c:
3262 * src/io-desktop/nadp-keys.h:
3263 * src/io-desktop/nadp-reader.c:
3264 * src/io-desktop/nadp-writer.c:
3265 * src/io-xml/naxml-keys.h:
3266 * src/io-xml/naxml-reader.c:
3267 * src/test/test-include.c:
3268 Rename NAIDataFactory interface as NAIFactoryObject.
3270 * src/api/Makefile.am:
3271 * src/api/na-idata-factory-str.h:
3272 * src/api/na-idata-factory.h:
3273 * src/api/na-ifactory-provider-provider.h:
3274 * src/api/na-ifactory-provider.h:
3275 * src/api/na-iio-provider.h:
3276 * src/core/Makefile.am:
3277 * src/core/na-data-factory.c:
3278 * src/core/na-data-factory.h:
3279 * src/core/na-factory-provider.c:
3280 * src/core/na-factory-provider.h:
3281 * src/core/na-ifactory-provider-priv.h:
3282 * src/core/na-ifactory-provider.c:
3283 * src/core/na-object-action.c:
3284 * src/core/na-object-menu.c:
3285 * src/core/na-object-profile.c:
3286 * src/io-desktop/nadp-desktop-provider.c:
3287 * src/io-desktop/nadp-reader.c:
3288 * src/io-desktop/nadp-writer.c:
3289 * src/io-gconf/nagp-gconf-provider.c:
3290 * src/io-xml/naxml-provider.c:
3291 * src/io-xml/naxml-reader.c:
3292 Rename NAIIOFactory interface as NAIFactoryProvider.
3294 * src/core/na-io-provider.c:
3295 * src/core/na-pivot.c:
3296 * src/core/na-pivot.h:
3297 * src/nact/nact-application.c:
3298 * src/nact/nact-main-window.c:
3299 * src/plugin-menu/nautilus-actions.c:
3300 * src/utils/nautilus-actions-run.c
3301 (na_pivot_set_loadable): New function.
3302 (na_pivot_reload_items): Removed function.
3304 2010-02-21 Pierre Wieser <pwieser@trychlos.org>
3306 * src/core/na-pivot.c:
3307 * src/core/na-pivot.h:
3308 * src/core/na-updater.c:
3309 * src/core/na-updater.h:
3310 * src/nact/nact-application.c:
3311 * src/nact/nact-main-window.c:
3312 * src/plugin-menu/nautilus-actions.c:
3313 * src/test/test-reader.c:
3314 * src/utils/nautilus-actions-new.c:
3315 * src/utils/nautilus-actions-run.c:
3316 No more define the loadable set at NAPivot construction time,
3317 but deffer this when actually loading items.
3319 2010-02-20 Pierre Wieser <pwieser@trychlos.org>
3322 * src/api/na-idata-factory-str.h:
3323 * src/api/na-idata-factory.h:
3324 * src/api/na-iimporter.h:
3325 * src/api/na-iio-factory.h:
3326 * src/api/na-object-api.h:
3327 * src/core/Makefile.am:
3328 * src/core/na-data-factory.c:
3329 * src/core/na-data-factory.h:
3330 * src/core/na-idata-factory.c:
3331 * src/core/na-iio-factory.c:
3332 * src/core/na-importer.c:
3333 * src/core/na-importer.h:
3334 * src/core/na-io-factory.c:
3335 * src/core/na-io-factory.h:
3336 * src/core/na-iprefs.h:
3337 * src/core/na-module.c:
3338 * src/core/na-object-action-enum.c:
3339 * src/core/na-object-action.c:
3340 * src/core/na-object-id-enum.c:
3341 * src/core/na-object-item-enum.c:
3342 * src/core/na-object-item.c:
3343 * src/core/na-object-menu-enum.c:
3344 * src/core/na-object-menu.c:
3345 * src/core/na-object-profile-enum.c:
3346 * src/core/na-object-profile.c:
3347 * src/core/na-pivot.c:
3348 * src/io-desktop/Makefile.am:
3349 * src/io-gconf/Makefile.am:
3350 * src/io-xml/Makefile.am:
3351 * src/io-xml/naxml-keys.c:
3352 * src/io-xml/naxml-keys.h:
3353 * src/io-xml/naxml-provider.c:
3354 * src/io-xml/naxml-provider.h:
3355 * src/io-xml/naxml-reader.c:
3356 * src/io-xml/naxml-reader.h:
3357 * src/nact/Makefile.am:
3358 * src/nact/nact-assistant-import.c:
3359 * src/nact/nact-import-ask.c:
3360 * src/nact/nact-iprefs.c:
3361 * src/nact/nact-preferences-editor.c:
3362 * src/nact/nact-tree-model-dnd.c:
3363 * src/plugin-menu/Makefile.am:
3364 * src/plugin-tracker/Makefile.am:
3365 * src/test/.gitignore:
3366 * src/test/Makefile.am:
3367 * src/utils/Makefile.am: Implement NAXMLReader.
3369 2010-02-18 Pierre Wieser <pwieser@trychlos.org>
3371 * src/api/na-core-utils.h:
3372 * src/api/na-idata-factory-str.h:
3373 * src/core/na-core-utils.c:
3374 * src/core/na-data-element.c:
3375 * src/core/na-data-element.h:
3376 * src/core/na-data-factory.c:
3377 * src/core/na-io-provider.c:
3378 * src/core/na-io-provider.h:
3379 * src/core/na-object-action-enum.c:
3380 * src/core/na-object-id-enum.c:
3381 * src/core/na-object-item-enum.c:
3382 * src/core/na-object-item.c:
3383 * src/core/na-object-menu-enum.c:
3384 * src/core/na-object-profile-enum.c:
3385 * src/core/na-object.c:
3386 * src/io-desktop/nadp-writer.c:
3387 * src/io-gconf/nagp-reader.c:
3388 * src/nact/nact-assistant-export.c:
3389 * src/nact/nact-iactions-list-bis.c:
3390 * src/nact/nact-main-statusbar.c:
3391 * src/nact/nact-tree-model-dnd.c:
3392 * src/nact/nact-tree-model.c:
3393 Fix non empty string list.
3394 Fix under reference in export assistant.
3395 Refactor NADataElement class.
3397 * src/core/na-exporter.c (na_exporter_get_formats):
3400 * src/core/na-iduplicable.c (na_iduplicable_dispose):
3401 Test for effective connexion before trying to disconnect.
3403 * src/core/na-data-element.c (na_data_element_set):
3404 Fix value->type inverted assertion.
3406 * src/api/na-core-utils.h:
3407 * src/core/na-core-utils.c:
3408 * src/io-desktop/nadp-desktop-file.c:
3409 * src/io-desktop/nadp-desktop-provider.c:
3410 * src/io-desktop/nadp-xdg-dirs.c:
3411 Fix reading of localized values in the desktop file.
3413 * src/nact/base-iprefs.c:
3414 * src/nact/base-iprefs.h:
3415 * src/nact/nact-assistant-import.c:
3416 * src/nact/nact-icommand-tab.c:
3417 * src/nact/nact-import-ask.c:
3418 * src/nact/nact-iprefs.c:
3419 * src/nact/nact-iprefs.h:
3420 * src/nact/nact-main-toolbar.c:
3421 * src/nact/nact-preferences-editor.c:
3422 Fix bad inheritance of interfaces.
3424 * src/api/na-object-api.h:
3425 * src/api/na-object.h:
3426 * src/core/na-data-factory.c:
3427 * src/core/na-io-provider.c:
3428 * src/core/na-object-action.c:
3429 * src/core/na-object-id.c:
3430 * src/core/na-object-menu.c:
3431 * src/core/na-object-profile.c:
3432 * src/core/na-object.c: Fix validity check of the items.
3434 2010-02-17 Pierre Wieser <pwieser@trychlos.org>
3437 * src/test/test-parse-uris.c:
3438 * src/nact/nact-preferences-editor.c:
3439 * src/nact/nact-main-statusbar.c:
3440 * src/nact/nact-iconditions-tab.c: Update list of translatable files.
3442 * src/api/na-core-utils.h:
3443 * src/api/na-idata-factory-str.h:
3444 * src/api/na-idata-factory.h:
3445 * src/api/na-iduplicable.h:
3446 * src/core/na-core-utils.c:
3447 * src/core/na-data-element.c:
3448 * src/core/na-data-element.h:
3449 * src/core/na-data-factory.c:
3450 * src/core/na-data-factory.h:
3451 * src/core/na-idata-factory.c:
3452 * src/core/na-iduplicable.c:
3453 * src/core/na-io-provider.c:
3454 * src/core/na-iprefs.c:
3455 * src/core/na-object-action-enum.c:
3456 * src/core/na-object-action.c:
3457 * src/core/na-object-id-enum.c:
3458 * src/core/na-object-item-enum.c:
3459 * src/core/na-object-menu.c:
3460 * src/core/na-object-profile-enum.c:
3461 * src/core/na-object-profile.c:
3462 * src/core/na-object.c:
3463 * src/io-desktop/nadp-desktop-provider.c:
3464 * src/io-gconf/nagp-reader.c: Add is_valid() functions.
3466 * src/utils/nautilus-actions-run.c: Restore production loadable set.
3468 * src/api/na-idata-factory.h:
3469 * src/api/na-iio-factory.h:
3470 * src/core/na-data-factory.c:
3471 * src/core/na-iio-factory.c:
3472 * src/core/na-object-action.c:
3473 * src/core/na-object-menu.c:
3474 * src/core/na-object-profile.c:
3475 * src/io-desktop/nadp-desktop-provider.c:
3476 * src/io-gconf/nagp-gconf-provider.c:
3477 * src/io-xml/naxml-provider.c:
3478 Add read_start() and write_start() to NAIIOFactory and
3479 NAIDataFactory interfaces.
3481 * po/POTFILES.in: Update list of translatable files.
3483 * src/utils/console-utils.c:
3484 * src/utils/nautilus-actions-run.c: Update command-line utilities.
3486 * src/test/test-include.c:
3487 * src/test/test-parse-uris.c: Update test utilities.
3489 * src/plugin-tracker/na-tracker-dbus.c:
3490 * src/plugin-tracker/na-tracker.c: Update NATracker plugin.
3492 * src/core/Makefile.am:
3493 * src/core/na-updater.c:
3494 * src/core/na-updater.h:
3495 * src/nact/nact-window.c:
3496 * src/nact/nact-window.h: Update NactWindow class.
3498 * src/api/na-object-api.h:
3499 * src/api/na-object-item.h:
3500 * src/core/na-object-item.c:
3501 * src/nact/nact-tree-model-dnd.c:
3502 * src/nact/nact-tree-model.c: Update NactTreeModel class.
3504 * src/api/na-core-utils.h:
3505 * src/api/na-object-api.h:
3506 * src/api/na-object-profile.h:
3507 * src/core/na-core-utils.c:
3508 * src/core/na-object-profile.c:
3509 * src/io-gconf/nagp-reader.c:
3510 * src/nact/nact-ibackground-tab.c:
3511 * src/nact/nact-schemes-list.c: Update schemes list.
3513 * src/nact/nact-providers-list.c: Update providers list.
3515 * src/core/na-iprefs.c:
3516 * src/core/na-iprefs.h:
3517 * src/nact/nact-assistant-export.c:
3518 * src/nact/nact-export-ask.c:
3519 * src/nact/nact-export-format.c:
3520 * src/nact/nact-export-format.h:
3521 * src/nact/nact-preferences-editor.c:
3522 * src/nact/nact-preferences.ui: Update NactPreferencesEditor class.
3524 * src/nact/base-iprefs.c:
3525 * src/nact/base-iprefs.h:
3526 * src/nact/nact-main-window.c:
3527 * src/nact/nact-main-window.h: Update NactMainWindow class.
3529 * src/core/na-iprefs.c:
3530 * src/core/na-iprefs.h:
3531 * src/nact/nact-iprefs.c:
3532 * src/nact/nact-iprefs.h:
3533 * src/nact/nact-main-toolbar.c: Update toolbar.
3535 * src/api/na-iio-provider.h:
3536 * src/core/na-io-provider.c:
3537 * src/core/na-io-provider.h:
3538 * src/nact/nact-main-statusbar.c: Update status bar.
3540 * src/api/na-object-action.h:
3541 * src/api/na-object-api.h:
3542 * src/api/na-object-id.h:
3543 * src/api/na-object-item.h:
3544 * src/api/na-object-profile.h:
3545 * src/api/na-object.h:
3546 * src/core/na-object-action.c:
3547 * src/core/na-object-id.c:
3548 * src/core/na-object-item.c:
3549 * src/core/na-object-profile.c:
3550 * src/core/na-object.c:
3551 * src/core/na-pivot.c:
3552 * src/core/na-pivot.h:
3553 * src/core/na-updater.c:
3554 * src/core/na-updater.h:
3555 * src/nact/nact-export-format.c:
3556 * src/nact/nact-main-menubar.c: Update menu bar.
3558 * src/nact/nact-iprefs.c: Update NactIPrefs interface.
3560 * src/api/na-core-utils.h:
3561 * src/core/na-core-utils.c:
3562 * src/nact/nact-iconditions-tab.c:
3563 Update NactIConditionsTab interface.
3565 * src/api/na-core-utils.h:
3566 * src/core/na-core-utils.c:
3567 * src/core/na-iprefs.c:
3568 * src/core/na-iprefs.h:
3569 * src/nact/nact-icommand-tab.c:
3570 * src/nact/nact-iprefs.c:
3571 * src/nact/nact-iprefs.h: Update NactICommandTab interface.
3573 * src/api/na-object-api.h:
3574 * src/api/na-object-profile.h:
3575 * src/core/na-object-profile.c:
3576 * src/nact/nact-iaction-tab.c:
3577 * src/nact/nact-iadvanced-tab.c:
3578 * src/nact/nact-ibackground-tab.c: Update NactIBackgroundTab
3581 * src/api/na-object-api.h:
3582 * src/api/na-object-item.h:
3583 * src/nact/nact-gtk-utils.c:
3584 * src/nact/nact-gtk-utils.h:
3585 * src/nact/nact-iaction-tab.c: Update NactIActionTab interface.
3587 * core/na-object-action-fn.h:
3588 * core/na-object-action-priv.h:
3589 * core/na-object-fn.h:
3590 * core/na-object-id-fn.h:
3591 * core/na-object-id-priv.h:
3592 * core/na-object-item-fn.h:
3593 * core/na-object-item-priv.h:
3594 * core/na-object-menu-fn.h:
3595 * core/na-object-menu-priv.h:
3596 * core/na-object-profile-fn.h:
3597 * core/na-object-profile-priv.h: Remove no more used files.
3599 * src/api/na-iduplicable.h:
3600 * src/api/na-object-api.h:
3601 * src/api/na-object-item.h:
3602 * src/api/na-object.h:
3603 * src/core/na-iduplicable.c:
3604 * src/core/na-object-item.c:
3605 * src/core/na-object.c:
3606 * src/nact/nact-iactions-list-bis.c:
3607 * src/nact/nact-iactions-list.c:
3608 * src/nact/nact-window.c:
3609 * src/nact/nact-window.h: Update NactIActionsList interface.
3611 * src/api/na-iduplicable.h:
3612 * src/api/na-object-api.h:
3613 * src/api/na-object-item.h:
3614 * src/core/na-exporter.c:
3615 * src/core/na-exporter.h:
3616 * src/core/na-iduplicable.c:
3617 * src/core/na-object-item.c:
3618 * src/nact/Makefile.am:
3619 * src/nact/nact-assistant-export.c:
3620 * src/nact/nact-clipboard.c:
3621 * src/nact/nact-clipboard.h:
3622 * src/nact/nact-confirm-logout.c:
3623 * src/nact/nact-export-ask.c:
3624 * src/nact/nact-export-format.c:
3625 * src/nact/nact-export-format.h:
3626 * src/nact/nact-iprefs.h:
3627 * src/nact/nact-main-menubar.h:
3628 * src/nact/nact-assistant-export.c:
3629 * src/nact/nact-assistant-export.h:
3630 * src/nact/nact-assistant-export.ui:
3631 * src/nact/nact-assistant-import.c:
3632 * src/nact/nact-import-ask.c:
3633 * src/nact/nact-import-ask.h:
3634 * src/nact/nact-iprefs.c:
3635 * src/nact/nact-iprefs.h:
3636 * src/nact/nact-tree-model.h: Update Nact classes.
3638 Refactor: move all XML code to src/io-xml plugin.
3640 * src/nact/Makefile.am:
3641 * src/nact/base-application-class.h:
3642 * src/nact/base-assistant.h:
3643 * src/nact/base-assistant.h:
3644 * src/nact/base-builder.h:
3645 * src/nact/base-dialog.h:
3646 * src/nact/base-iprefs.c:
3647 * src/nact/base-window-class.h: Update typo in Base class headers.
3649 * src/core/na-importer.c:
3650 * src/core/na-importer.h: New files.
3652 * src/core/Makefile.am:
3653 * src/core/na-iimporter.c:
3654 * src/core/na-io-provider.c:
3655 * src/core/na-iprefs.h: Update core library.
3657 * src/nact/nact-export-format.h:
3658 * src/nact/nact-export-format.c:
3659 * src/core/na-exporter.h:
3660 * src/core/na-exporter.c: Update export treatements.
3662 * src/api/na-iexporter.h:
3663 * src/core/na-iexporter.c:
3664 * src/io-xml/naxml-module.c:
3665 * src/io-xml/naxml-provider.c: Update NAIExporter interface.
3667 Define NAExportFormat new class.
3669 * src/core/na-export-format.c:
3670 * src/core/na-export-format.h: New files.
3672 Rename src/nact/nact-assistant-export-ask.{c,h} to
3673 src/nact/nact-export-ask.{c,h}
3675 2010-02-15 Pierre Wieser <pwieser@trychlos.org>
3677 Now install defined ids in docdir.
3679 * doc/export-format-id: New file.
3681 * doc/Makefile.am: Updated accordingly.
3683 Define NactIPrefs interface.
3685 * src/nact/nact-iprefs.c:
3686 * src/nact/nact-iprefs.h: New files.
3689 Remove useless src/private directory.
3691 Define NAUpdater class.
3693 * src/core/na-updater.c:
3694 * src/core/na-updater.h: New files.
3696 Update src/core/na-pivot.{c,h}
3697 Update src/core/na-module.{c,h}
3698 Update src/core/na-iprefs.{c,h}
3699 Update src/core/na-ipivot-consumer.{c,h}
3700 Update src/core/na-io-factory.{c,h}
3701 Update src/core/na-io-provider.{c,h}
3702 Update src/core/na-iabout.{c,h}
3705 2010-02-15 Deji Akingunola <dakingun@gmail.com>
3707 * src/test/Makefile.am: Fix typo.
3709 2010-02-15 Pierre Wieser <pwieser@trychlos.org>
3712 Update src/plugin-tracker.
3713 Update src/plugin-menu.
3715 Define NAIImporter interface.
3717 * src/api/na-iimporter.h:
3718 * src/core/na-iimporter.c: New files.
3720 Define NAIExporter interface.
3722 * src/api/na-iexporter.h:
3723 * src/core/na-iexporter.c: New files.
3725 * src/core/na-dbus-tracker.h: New file.
3727 Remove useless src/api/na-gconf-keys.h
3728 Update GConf I/O provider.
3729 Create src/io-gconf/nagp-keys.c
3730 Rename src/io-gconf/nagp-write.{c,h} to src/io-gconf/nagp-writer.{c,h}
3731 Rename src/io-gconf/nagp-read.{c,h} to src/io-gconf/nagp-reader.{c,h}
3733 Update I/O desktop provider.
3735 * src/io-desktop/nadp-keys.c:
3736 * src/io-desktop/nadp-keys.h: New files.
3738 Rename src/io-desktop/nadp-xdg-data-dirs.{c,h} to src/io-desktop/nadp-xdg-dirs.{c,h}
3739 Rename src/io-desktop/nadp-write.{c,h} to src/io-desktop/nadp-writer.{c,h}
3740 Rename src/io-desktop/nadp-read.{c,h} to src/io-desktop/nadp-reader.{c,h}
3742 NAObject-derived classes implement NAIDataFactory interface.
3744 * src/core/na-object-id-enum.c:
3745 * src/core/na-object-item-enum.c:
3746 * src/core/na-object-action-enum.c:
3747 * src/core/na-object-profile-enum.c:
3748 * src/core/na-object-menu-enum.c: New files.
3750 Define NADataElement class.
3752 * src/core/na-data-element.c:
3753 * src/core/na-data-element.h: New files.
3755 Define NAIDataFactory interface.
3757 * src/api/na-idata-factory.h:
3758 * src/api/na-idata-factory-enum.h:
3759 * src/api/na-idata-factory-str.h:
3760 * src/core/na-idata-factory.c:
3761 * src/core/na-data-factory.c:
3762 * src/core/na-data-factory.h: New files.
3764 Define NAIIOFactory interface.
3766 * src/api/na-iio-factory.h:
3767 * src/api/na-iio-factory-factory.h:
3768 * src/core/na-iio-factory.c:
3769 * src/core/na-io-factory.c:
3770 * src/core/na-io-factory.h: New files.
3772 Rename src/core/na-object-menu-class.h to src/api/na-object-menu.h
3773 Rename src/core/na-object-profile-class.h to src/api/na-object-profile.h
3774 Rename src/core/na-object-action-class.h to src/api/na-object-action.h
3775 Rename src/core/na-object-item-class.h to src/api/na-object-item.h
3776 Rename src/core/na-object-id-class.h to src/api/na-object-id.h
3777 Rename src/core/na-object-class.h to src/api/na-object.h
3778 Rename src/core/na-iduplicable.h to src/api/na-iduplicable.h
3779 Rename src/core/na-gconf-utils.h to src/api/na-gconf-utils.h
3780 Rename src/api/na-iio-provider.c to src/core/na-iio-provider.c
3782 * src/api/na-dbus.h: Update defined name.
3784 * m4/na-log-domains.m4: Update log domains with new subdirs.
3786 * doc/io-provider-id: Reference na-xml XML provider.
3788 Rename src/api/na-gconf-monitor.c to src/core/na-gconf-monitor.c
3789 Rename src/core/na-utils.h to src/api/na-core-utils.h
3790 Rename src/core/na-utils.c to src/core/na-core-utils.c
3792 * src/api/Makefile.am:
3793 * src/core/Makefile.am: Updated accordingly.
3795 * src/core/na-core-utils.c:
3796 * src/core/na-core-utils.h: Normalize functions names.
3798 Merge src/private/ and src/runtime to src/core/
3799 Rename src/api/na-api.h to src/api/na-extension.h
3802 * src/io-desktop/nadp-module.c:
3803 * src/io-gconf/nagp-module.c:
3804 * src/runtime/na-module.c: Updated accordingly.
3806 Define XML provider as a dynamic module.
3808 * io-xml/Makefile.am:
3809 * io-xml/naxml-module.c:
3810 * io-xml/naxml-provider.c:
3811 * io-xml/naxml-provider.h: New files.
3813 Rename source tree from nautilus-actions/ to src/
3814 Rename src/io-provider-desktop/ to src/io-desktop/
3815 Rename src/io-provider-gconf/ to src/io-gconf/
3816 Rename src/plugin to src/plugin-menu/
3817 Rename src/tracker to src/plugin-tracker/
3821 * po/POTFILES.in: Updated accordingly.
3823 2010-01-31 Pierre Wieser <pwieser@trychlos.org>
3825 * nautilus-actions/io-provider-desktop/nadp-desktop-file.c:
3826 * nautilus-actions/io-provider-desktop/nadp-desktop-file.h:
3827 * nautilus-actions/io-provider-desktop/nadp-read.c:
3828 * nautilus-actions/io-provider-desktop/nadp-utils.c:
3829 * nautilus-actions/io-provider-desktop/nadp-utils.h:
3830 * nautilus-actions/io-provider-gconf/nagp-read.c:
3831 Implements reading of .desktop files.
3833 * nautilus-actions/io-provider-gconf/nagp-write.c (write_item_action):
3834 Always writes the 'OBJECT_ITEM_TOOLBAR_LABEL_ENTRY' key.
3836 2010-01-30 Pierre Wieser <pwieser@trychlos.org>
3838 No more record the toolbar_same_label indicator.
3840 * nautilus-actions.schemas.in:
3841 Remove schema for 'toolbar-same-label' key.
3843 * nautilus-actions/io-provider-gconf/nagp-read.c
3844 (read_item_action_properties):
3845 No more read the 'toolbar-same-label' entry.
3847 * nautilus-actions/io-provider-gconf/nagp-write.c (write_item_action):
3848 No more write the 'toolbar-same-label' entry.
3849 Remove the key if undeeded.
3851 * nautilus-actions/nact/nact-iaction-tab.c
3852 (on_toolbar_same_label_toggled): Fix toolbar label setup.
3854 * nautilus-actions/nact/nact-xml-reader.c (apply_values):
3855 No more read OBJECT_ITEM_TOOLBAR_SAME_LABEL_ENTRY node.
3857 * nautilus-actions/runtime/na-gconf-utils.c:
3858 * nautilus-actions/runtime/na-gconf-utils.h
3859 (na_gconf_utils_remove_entry): New function.
3861 * nautilus-actions/runtime/na-xml-writer.c
3862 (create_schema_entry, create_dump_entry):
3863 No more write the 'toolbar-same-label' entry.
3865 * nautilus-actions/nact/nact-iaction-tab.c
3866 (on_tab_updatable_selection_changed):
3867 Update tab label depending on the currently selected item.
3869 * nautilus-actions/nact/nautilus-actions-config-tool.ui:
3870 No more give a special name to Action tab label.
3872 * nautilus-actions/nact/nautilus-actions-config-tool.ui:
3873 Fix Action tab layout.
3875 A full rewriting of the writability of items vs. providers.
3877 * data/nautilus-actions.schemas.in:
3878 Describe 'export-format' and 'io-providers-order' keys.
3879 Define 'mandatory/all/locked' key to lock all configuration.
3881 * doc/io-provider-id: Reserve 'all' special provider_id.
3883 * nautilus-actions/api/na-gconf-monitor.c
3884 * nautilus-actions/io-provider-desktop/nadp-desktop-file.c
3885 * nautilus-actions/io-provider-desktop/nadp-desktop-provider.c
3886 * nautilus-actions/nact/base-application.c
3887 * nautilus-actions/nact/base-assistant.c
3888 * nautilus-actions/nact/base-builder.c
3889 * nautilus-actions/nact/base-dialog.c
3890 * nautilus-actions/nact/base-window.c
3891 * nautilus-actions/nact/nact-application.c
3892 * nautilus-actions/nact/nact-assistant-export-ask.c
3893 * nautilus-actions/nact/nact-assistant-export.c
3894 * nautilus-actions/nact/nact-assistant-import-ask.c
3895 * nautilus-actions/nact/nact-assistant-import.c
3896 * nautilus-actions/nact/nact-clipboard.c
3897 * nautilus-actions/nact/nact-confirm-logout.c
3898 * nautilus-actions/nact/nact-window.c
3899 * nautilus-actions/runtime/na-module.c
3900 (instance_init, instance_dispose):
3901 Review debug messages formatting.
3903 * nautilus-actions/api/na-iio-provider.c:
3904 * nautilus-actions/api/na-iio-provider.h
3905 (is_writable): Removed API.
3906 (is_able_to_write): New API.
3907 Review operations return codes.
3908 Add provider status.
3910 * nautilus-actions/io-provider-desktop/nadp-desktop-provider.c:
3911 * nautilus-actions/io-provider-desktop/nadp-desktop-provider.h:
3912 * nautilus-actions/io-provider-desktop/nadp-read.c:
3913 * nautilus-actions/io-provider-desktop/nadp-write.c:
3914 * nautilus-actions/io-provider-desktop/nadp-write.h:
3915 * nautilus-actions/io-provider-gconf/nagp-gconf-provider.c:
3916 * nautilus-actions/io-provider-gconf/nagp-write.c:
3917 * nautilus-actions/io-provider-gconf/nagp-write.h:
3918 Updated to new NAIIOProvider API.
3920 * nautilus-actions/nact/nact-iaction-tab.c:
3921 * nautilus-actions/nact/nact-iactions-list.c:
3922 * nautilus-actions/nact/nact-iactions-list.h:
3923 * nautilus-actions/nact/nact-iadvanced-tab.c:
3924 * nautilus-actions/nact/nact-ibackground-tab.c:
3925 * nautilus-actions/nact/nact-icommand-tab.c:
3926 * nautilus-actions/nact/nact-iconditions-tab.c:
3927 * nautilus-actions/nact/nact-main-menubar.c:
3928 * nautilus-actions/nact/nact-main-tab.h:
3929 * nautilus-actions/nact/nact-main-window.c:
3930 * nautilus-actions/nact/nact-providers-list.c:
3931 * nautilus-actions/nact/nact-tree-model-dnd.c:
3932 * nautilus-actions/nact/nact-tree-model.c:
3933 * nautilus-actions/nact/nact-window.c:
3934 * nautilus-actions/nact/nact-window.h:
3935 Take advantage of the new global item writability status.
3937 * nautilus-actions/nact/nact-main-statusbar.c:
3938 * nautilus-actions/nact/nact-main-statusbar.h
3939 (nact_main_statusbar_set_locked): Display the reason.
3941 * nautilus-actions/nact/nact-iactions-list-bis.c
3942 (nact_iactions_list_bis_list_modified_items):
3943 Dump the raw content of the list.
3945 * nautilus-actions/plugin/nautilus-actions.c (instance_init):
3946 * nautilus-actions/runtime/na-pivot.c:
3947 * nautilus-actions/runtime/na-pivot.h(na_pivot_new):
3948 * nautilus-actions/utils/nautilus-actions-new.c (write_to_gconf):
3949 * nautilus-actions/utils/nautilus-actions-run.c (get_action):
3950 New na_pivot_new() signature.
3952 * nautilus-actions/private/na-object-item-fn.h:
3953 * nautilus-actions/private/na-object-item-priv.h:
3954 * nautilus-actions/private/na-object-item.c:
3955 The NAObjectItem now embeds a NAIOProvider pointer.
3957 * nautilus-actions/runtime/na-io-provider.c:
3958 * nautilus-actions/runtime/na-io-provider.h:
3959 Load all available and defined I/O providers.
3961 * nautilus-actions/test/init-dispose-diff.sh: New file.
3963 2010-01-27 Pierre Wieser <pwieser@trychlos.org>
3965 * nautilus-actions/nact/nact-preferences.ui:
3966 Fix the name of the Down button.
3967 Invert buttons so that Up is at the top, and Down at the bottom.
3969 * nautilus-actions/nact/nact-providers-list.c:
3970 Activate up/down buttons.
3971 Save the I/O providers individual preferences.
3972 Load and save in order.
3974 * nautilus-actions/runtime/na-io-provider.c:
3975 Order the I/O providers in write priority.
3977 2010-01-26 Pierre Wieser <pwieser@trychlos.org>
3979 * nautilus-actions/io-provider-gconf/nagp-read.c
3980 (nagp_iio_provider_read_items): Remove path trace.
3982 * nautilus-actions/nact/nact-application.c
3983 (appli_initialize_application):
3984 * nautilus-actions/plugin/nautilus-actions.c (instance_init):
3985 * nautilus-actions/utils/nautilus-actions-new.c (write_to_gconf):
3986 * nautilus-actions/utils/nautilus-actions-run.c (get_action):
3987 Adapt to new na_pivot_new().
3989 * nautilus-actions/nact/nact-iaction-tab.c (display_provider_name):
3990 Adapt to the temporary new NAIOProvider API.
3992 * nautilus-actions/nact/nact-preferences-editor.c:
3993 Fix compilation error by adding nact-providers-list.h include file.
3995 * nautilus-actions/nact/nact-providers-list.c:
3996 Display list of providers with their initial state.
3998 * nautilus-actions/plugin/nautilus-module.c:
3999 * nautilus-actions/tracker/na-tracker-plugin.c:
4000 (nautilus_module_initialize):
4001 Prefix the log message with "[N-A]".
4003 * nautilus-actions/runtime/na-gconf-utils.c:
4004 * nautilus-actions/runtime/na-gconf-utils.h
4005 (na_gconf_utils_get_subdirs, na_gconf_utils_free_subdirs):
4008 * nautilus-actions/runtime/na-io-provider.c:
4009 * nautilus-actions/runtime/na-io-provider.h:
4010 Refactoring to keep a static list of capable I/O providers.
4012 * nautilus-actions/runtime/na-module.c
4013 (na_module_load_modules): Only displays the name of the loaded module.
4014 (is_a_na_plugin): Add a trace with the full path of the module.
4016 * nautilus-actions/runtime/na-pivot.c:
4017 * nautilus-actions/runtime/na-pivot.h:
4018 Define loadable_set and io_provider_set as construct-only properties.
4019 Remove unused action_changed_handler stuff.
4020 No more maintain the list of capable I/O providers.
4022 2010-01-25 Pierre Wieser <pwieser@trychlos.org>
4024 * nautilus-actions/runtime/na-pivot.c:
4025 * nautilus-actions/runtime/na-pivot.h: Source reorganization.
4027 * nautilus-actions/runtime/na-pivot.c:
4028 * nautilus-actions/runtime/na-pivot.h (na_pivot_get_automatic_reload):
4029 Remove unused function.
4031 * nautilus-actions/runtime/na-pivot.c:
4032 * nautilus-actions/runtime/na-pivot.h (na_pivot_set_population):
4033 Function is renamed to na_pivot_set_loadable_population().
4034 The enum is named NAPivotLoadable.
4036 * nautilus-actions/plugin/nautilus-actions.c (instance_init):
4037 * nautilus-actions/utils/nautilus-actions-run.c (get_action):
4038 Adjusted accordingly.
4040 * nautilus-actions/runtime/na-module.c: Source slight adjustment.
4042 2010-01-23 Pierre Wieser <pwieser@trychlos.org>
4044 * nautilus-actions/nact/nact-schemes-list.c: Cleanup the source file.
4046 * nautilus-actions/nact/nact-preferences.ui:
4047 Reset tooltips in all preference pages.
4049 * nautilus-actions/nact/nact-providers-list.c:
4050 * nautilus-actions/nact/nact-providers-list.h: New files.
4052 * nautilus-actions/nact/Makefile.am: Updated accordingly.
4054 * nautilus-actions/nact/nact-preferences-editor.c:
4055 Updated to handle a sixth tab.
4057 2010-01-23 Pierre Wieser <pwieser@trychlos.org>
4059 * configure.ac: Bump version number.
4061 * All source files: Updated copyright notice.
4063 2010-01-23 Pierre Wieser <pwieser@trychlos.org>
4065 * NEWS: Updated for release.
4068 Add nautilus-actions/nact/nact-preferences.ui file.
4071 Add a dependancy on dbus-lib-1 for tracker.
4073 * nautilus-actions/nact/base-window.c (search_for_child_widget):
4074 Use GtkBuildable interface instead of 'name' field (fix #607704).
4076 2010-01-20 Pierre Wieser <pwieser@trychlos.org>
4078 * data/nautilus-actions.schemas.in:
4079 Add a schema for 'na-desktop/locked' mandatory key.
4082 Ignore eclipse-specific files.
4084 * data/nautilus-actions.schemas.in:
4085 Fix default value for level zero key.
4086 Describe the new 'schemes' preference key.
4088 * nautilus-actions/nact/nact-preferences.ui:
4089 * nautilus-actions/nact/nact-schemes-list.c:
4090 * nautilus-actions/nact/nact-schemes-list.h: New files.
4092 * nautilus-actions/nact/nact-iadvanced-tab.c:
4093 * nautilus-actions/nact/nact-preferences-editor.c:
4094 * nautilus-actions/nact/Makefile.am: Updated accordingly.
4096 2010-01-17 Pierre Wieser <pwieser@trychlos.org>
4098 * nautilus-actions/nact/nact-assistant-export.ui:
4099 * nautilus-actions/nact/nautilus-actions-config-tool.ui:
4100 Forces default orientation of vboxes (fix #607218).
4102 * nautilus-actions/nact/nact-main-toolbar.c:
4103 * nautilus-actions/nact/nact-main-toolbar.h: New files.
4105 * nautilus-actions/nact/Makefile.am:
4106 * nautilus-actions/nact/nact-main-menubar.c: Updated accordingly.
4108 2010-01-16 Pierre Wieser <pwieser@trychlos.org>
4110 * nautilus-actions/nact/nact-clipboard.c:
4111 Fix primary clipboard management.
4113 * nautilus-actions/nact/nact-main-menubar.c (on_update_sensitivities):
4114 Fix cut/copy/duplicate/delete sensitivity when selection is multiple.
4116 2010-01-15 Pierre Wieser <pwieser@trychlos.org>
4118 * nautilus-actions/nact/nact-iactions-list-bis.c:
4119 * nautilus-actions/nact/nact-iactions-list.h
4120 (nact_iactions_list_bis_clear_selection): New function.
4122 * nautilus-actions/nact/nact-iactions-list.c (nact_iactions_list_fill):
4123 Clear the selection before filling the tree view.
4125 * nautilus-actions/nact/nact-main-menubar.c (on_update_sensitivities):
4126 Force the count of selected items to be consistant with the list.
4128 * nautilus-actions/nact/nact-tree-model-dnd.c (drop_inside):
4129 Dropped new item is set as new.
4131 * nautilus-actions/nact/nact-iactions-list.c (filter_selection):
4132 Review selection criteria, introducing implicit selection.
4134 * nautilus-actions/nact/nact-main-menubar.c (on_update_sensitivities):
4135 Review menu items sensitivity, especially when provider is not writable.
4136 Enable new item even when selection is multiple.
4138 * nautilus-actions/nact/nact-window.c:
4139 * nautilus-actions/nact/nact-window.h (nact_window_is_writable_item):
4142 2010-01-05 Pierre Wieser <pwieser@trychlos.org>
4144 * configure.ac: Bump version number.
4146 2010-01-05 Pierre Wieser <pwieser@trychlos.org>
4148 * configure.ac: Add -Wformat=2 compilation option.
4150 * nautilus-actions/nact/nact-gtk-utils.c (nact_gtk_utils_set_editable):
4151 * nautilus-actions/nact/nact-iactions-list.c
4152 (nact_iactions_list_runtime_init_toplevel):
4153 * nautilus-actions/nact/nact-iadvanced-tab.c
4154 (runtime_init_connect_signals):
4155 * nautilus-actions/nact/nact-ibackground-tab.c
4156 (nact_ibackground_tab_runtime_init_toplevel):
4157 Substitute gtk_cell_layout_get_cells to obsoleted
4158 gtk_tree_view_column_get_cell_renderers.
4160 * nautilus-actions/runtime/na-xml-writer.c (na_xml_writer_output_xml):
4161 Use correct printf format.