mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-11-05 16:04:31 +00:00
96 commits
Author | SHA1 | Message | Date | |
---|---|---|---|---|
Ramiro Estrugo
|
90d404095e | nautilus-extensions -> nautilus-private renaming. | ||
Ramiro Estrugo
|
f090979940 |
Add preferences for default manual layout support.
* libnautilus-extensions/nautilus-global-preferences.h: Add preferences for default manual layout support. * libnautilus-extensions/nautilus-global-preferences.c: (default_icon_view_sort_order_or_manual_layout_changed_callback), (nautilus_global_preferences_initialize): Use different enumerations for icon view and list view default sort order since only icon view supports manual layout. Add entries for default manual layout preference. Add proxy preference for both icon view sort order and manual layout so that it can be presented to the user as one choice and thus just one menu. This also matches the view menu. * libnautilus-extensions/nautilus-preferences-item.c: (preferences_item_create_enumeration_list), (preferences_item_create_enumeration_menu): Add support for separators in string pickers. * src/file-manager/fm-icon-view.c: (get_default_directory_manual_layout), (fm_icon_view_real_get_directory_auto_layout), (fm_icon_view_real_set_directory_auto_layout), (fm_icon_view_reset_to_defaults), (default_use_manual_layout_changed_callback), (fm_icon_view_initialize): Add support for a default "use manual layout" preference. * src/nautilus-preferences-dialog.c: Make the default sort order preference use the proxy prefernece instead of the real one. |
||
Andy Hertzfeld
|
a0cd617c1f |
added preferences for the maximum numder of items per site and the update
added preferences for the maximum numder of items per site and the update interval. It's not quite finished, as the news view isn't watching the update interval preference yet. * components/news/nautilus-news.c: (do_destroy), (draw_rss_items), (nautilus_news_make_new_channel), (max_items_changed), (make_news_view): use the preference for max items and update interval * libnautilus-extensions/nautilus-global-preferences.c: define defaults for news panel preferences * libnautilus-extensions/nautilus-global-preferences.h: define news panel preferences * src/nautilus-preferences-dialog.c: add a news panel pane to the preferences dialog |
||
John Sullivan
|
4bcb92e252 |
reviewed by: Darin Adler <darin@eazel.com>
Fixed bug 8024 (Default folder viewer chosen from "View As..." window is not reflected in Preferences dialog) * libnautilus-extensions/nautilus-global-preferences.h: Put iids for Icon and List view here since they must be accessed from multiple places now. Add NAUTILUS_DEFAULT_FOLDER_VIEWER_OTHER enum case. Add prototype for nautilus_global_preferences_set_default_folder_viewer. * libnautilus-extensions/nautilus-global-preferences.c: (get_default_folder_viewer_preference_from_iid): New helper function, returns appropriate NAUTILUS_DEFAULT_FOLDER_VIEWER preference value based on folder-viewing iid. (default_default_folder_viewer_callback): New function to determine default value of NAUTILUS_DEFAULT_FOLDER_VIEWER preference; uses gnome_vfs_mime (name is not a typo). (set_default_folder_viewer_in_gnome_vfs): New function, updates gnome-vfs mime database properly for new folder-viewing iid. (default_folder_viewer_changed_callback): New function, reacts to change in NAUTILUS_DEFAULT_FOLDER_VIEWER preference by updating gnome-vfs mime database (moved here from nautilus-application.c). (nautilus_global_preferences_set_default_folder_viewer): New public function to set the default folder viewer with an iid; handles setting both gnome-vfs and gconf's values. (nautilus_global_preferences_initialize): Add callback for when default folder viewer changes (moved here from nautilus-application.c). * libnautilus-extensions/nautilus-program-chooser.c: (set_default_for_type): Special-case folder viewer to call nautilus_global_preferences_set_default_folder_viewer. * src/file-manager/nautilus-directory-view-ui.xml: Changed "Reset to View Preferences" to "Reset View to Match Preferences". It's really long, but the former was very unclear. Improvements to wording are hereby solicited. * src/nautilus-application.c: (manufactures), (create_object), (default_folder_viewer_changed_callback): Updated for #define name changes. (nautilus_application_startup): Moved code that reacted to default folder viewer preference to nautilus-global-preferences.c. |
||
Ramiro Estrugo
|
83a1b134e7 |
Retire this class. It was a bad idea to use subclassing for the specific
* libnautilus-extensions/Makefile.am: * libnautilus-extensions/nautilus-preferences-dialog.c: * libnautilus-extensions/nautilus-preferences-dialog.h: Retire this class. It was a bad idea to use subclassing for the specific use of the preferences dialog in nautilus. Hooking signals up to a regular GnomeDialog is good enough. * libnautilus-extensions/nautilus-global-preferences.h: * libnautilus-extensions/nautilus-global-preferences.c: (global_preferences_install_defaults), (nautilus_global_preferences_initialize): Remove the implementation of the Nautilus preferences dialog from here. That is something that is specific to the Nautilus shell. The code lives in the Nautilus shell itself now. * libnautilus-extensions/nautilus-preferences-box.h: * libnautilus-extensions/nautilus-preferences-box.c: (nautilus_preferences_box_initialize), (preferences_box_select_pane), (preferences_box_category_list_recreate), (preferences_box_add_pane), (nautilus_preferences_box_update), (preferences_box_find_pane), (preferences_box_populate_pane), (nautilus_preferences_box_populate), (user_level_changed_callback), (nautilus_preferences_dialog_new): Add support for building preference boxes using structures to describe them. Also add a convenience function for creating a GnomeDialog with a preference box as its sole child. * libnautilus-extensions/nautilus-preferences-pane.c: * libnautilus-extensions/nautilus-preferences-pane.h: (nautilus_preferences_pane_add_item_to_nth_group): Remove this function as its no longer used. * libnautilus-extensions/nautilus-sidebar-functions.h: * libnautilus-extensions/nautilus-sidebar-functions.c: (sidebar_panel_make_preference_key): Make the known sidebar panel enabled preference keys public as string constants. * src/Makefile.am: * src/nautilus-preferences-dialog.h: * src/nautilus-preferences-dialog.c: (dialog_button_clicked_callback), (dialog_close_callback), (preferences_dialog_create), (global_preferences_populate_sidebar_panels_callback), (preferences_dialog_populate_sidebar_tabs_group), (preferences_dialog_destroy), (global_preferences_get_dialog), (nautilus_preferences_dialog_show): Move the implementation of the Nautilus preference dialog into the Nautilus shell itself. * src/nautilus-window-menus.c: (user_level_customize_callback): Update for new preference dialog show function. |
||
Seth Nickell
|
7245763900 |
reviewed by: Darin Adler <darin@eazel.com>
2001-04-19 Seth Nickell <snickell@stanford.edu> reviewed by: Darin Adler <darin@eazel.com> * libnautilus-extensions/nautilus-global-preferences.c: * libnautilus-extensions/nautilus-global-preferences.h: Add a preference for having the desktop directory point at the Unix homedir rather than the default Nautilus desktop directory. * libnautilus-extensions/nautilus-file-utilities.c: (nautilus_get_desktop_directory): Check the preference and return the appropriate directory. * src/nautilus-application.c: (nautilus_application_startup), (confirm_ok_to_run_as_root), (desktop_location_changed_callback): Add a callback for updating the desktop when the preference changes. * src/nautilus-desktop-window.h: * src/nautilus-desktop-window.c: (nautilus_desktop_window_update_directory), (nautilus_desktop_window_new): Add boolean variable affect_desktop_on_next_location_change to allow reloading of the desktop dir (rather than loading on open in to a new/toplevel window). Add a function for telling the desktop window to point to the updated destkop location. * src/nautilus-window-manage-views.c: (open_location): Check whether this open should be done in the desktop itself or if we should open a new window (/ recycle an existing window). |
||
Ramiro Estrugo
|
17054afdc7 |
Remove NAUTILUS_PREFERENCES_ICON_CAPTIONS, its not needed anymore.
* libnautilus-extensions/nautilus-global-preferences.h: Remove NAUTILUS_PREFERENCES_ICON_CAPTIONS, its not needed anymore. * libnautilus-extensions/nautilus-global-preferences.c: (global_preferences_populate_pane): Add support for installing a list if strings to ignore when enforcing the unique choice rule for enumeration lists items. (global_preferences_create_dialog), (nautilus_global_preferences_initialize): Register the enumerations at initialization time instead of dialog creation time. This is needed so that sanity checking on enumeration preferences can occur even if the user hasnt opened the dialog. * libnautilus-extensions/nautilus-preferences-item.h: * libnautilus-extensions/nautilus-preferences-item.c: (nautilus_preferences_item_initialize_class), (nautilus_preferences_item_initialize), (preferences_item_destroy), (preferences_item_update_enumeration_list_uniqueness), (preferences_item_update_enumeration_list), (preferences_item_create_enumeration_list), (enumeration_list_changed_callback), (nautilus_preferences_item_enumeration_list_set_unique_exceptions): Make sure the string pickers are wired such that duplicate choices cannot be made by the user. We do this by making items that would result in duplicates insensitive. Its possible to bypass this rule for some items. We use the use the enumeration_list_unique_exceptions. * libnautilus-extensions/nautilus-preferences.c: (preferences_block_callbacks), (preferences_unblock_callbacks): New private functions to block/unblock preferences callbacks. (string_list_is_valid): New private function to sanity check the values of a string list. (nautilus_preferences_get_string_list): Sanity check the results of this function for greater convenience of the callers - they no longer need to do error checking on the result. (preferences_entry_invoke_callbacks_if_needed): Invoke callbacks only if they are not blocked. * src/file-manager/Makefile.am: * src/file-manager/fm-icon-text-window.c: * src/file-manager/fm-icon-text-window.h: Retire these 2 files. There no longer is a Icon Captions window. * src/file-manager/fm-directory-view.c: (fm_directory_view_initialize), (fm_directory_view_destroy): Update for slight change in the Icon Captions preference name. * src/file-manager/fm-icon-view.c: (fm_icon_view_get_icon_text_attributes_from_preferences): New function to fetch the icon caption attributes from preferences. A similar function used to live in fm-icon-text-window.[ch]. That is no longer the case now that the Icon Captions have moved into the preferences dialog. (fm_icon_view_get_icon_text_attribute_names): Simplify the munging of icon captions by using a string list. (fm_icon_view_merge_menus): Remove the Icon Captions menu. The Icon Captions picker now lives in the preferences dialog. * src/file-manager/nautilus-icon-view-ui.xml: Remove Icon Captions menu item which no longer exists. |
||
Ramiro Estrugo
|
ba29511a88 |
Implement the missing GconfValue comparison for lists.
* libnautilus-extensions/nautilus-gconf-extensions.c: (simple_value_is_equal), (nautilus_gconf_value_is_equal): Implement the missing GconfValue comparison for lists. * libnautilus-extensions/nautilus-global-preferences.h: More consistent name for the icon captions preference. * libnautilus-extensions/nautilus-global-preferences.c: (global_preferences_register_enumerations): Allow enumeration ids to be installed for string lists. A bit of a hack to let enumeration lists work in the NautilusPreferencesItem object. (global_preferences_install_one_default): Add support for string lists. (global_preferences_create_dialog): Move the icon captions widgetry from its own lonesome dialog into the preferences dialog. * libnautilus-extensions/nautilus-preferences-box.h: * libnautilus-extensions/nautilus-preferences-box.c: (nautilus_preferences_box_new): Remove unused parameter from constructor. Remove some crufty unused code. Match the Nautilus style more. * libnautilus-extensions/nautilus-preferences-dialog.h: * libnautilus-extensions/nautilus-preferences-dialog.c: (nautilus_preferences_dialog_construct): Remove some crufty unused signals, defines and code. Match the Nautilus style more. Dont hard code the default size. Let Gtk do that work for us. Remove unused dialog_destroy callback. * libnautilus-extensions/nautilus-preferences-item.h: * libnautilus-extensions/nautilus-preferences-item.c: (preferences_item_destroy), (preferences_item_update_enumeration_list), (preferences_item_set_main_child), (preferences_item_add_connection_child), (preferences_item_create_enumeration_radio), (preferences_item_create_enumeration_list), (preferences_item_create_boolean), (preferences_item_update_editable_string), (preferences_item_create_editable_string), (preferences_item_create_editable_integer), (preferences_item_create_enumeration_menu), (preferences_item_create_font), (preferences_item_create_padding), (preferences_item_create_smooth_font), (nautilus_preferences_item_new), (enumeration_list_changed_callback), (preferences_item_update_displayed_value): Add support for enumerations lists. Cleanup the way children are added to the main box. Allow for more than one child (for enum list support). Keep a list of widgets and their respective changed signal ids, so they can all be blocked and unblocked when needed. * libnautilus-extensions/nautilus-preferences.h: * libnautilus-extensions/nautilus-preferences.c: (update_auto_string_list), (preferences_entry_update_auto_storage), (preferences_entry_remove_auto_storage), (nautilus_preferences_add_auto_string_list), (nautilus_preferences_remove_auto_string), (nautilus_preferences_remove_auto_string_list): Add support for auto storage of string lists. * src/nautilus-application.c: (check_required_directories): Update for EelStringList _as_string changes. |
||
Ramiro Estrugo
|
daf62d3867 |
Remove unused header.
* libnautilus-extensions/Makefile.am: * libnautilus-extensions/nautilus-preferences-private.h: Remove unused header. * libnautilus-extensions/nautilus-directory.c: (nautilus_directory_get_internal): Remove unnecessary removal of preferences callbacks at exit time. This happens automatically. * libnautilus-extensions/nautilus-gconf-extensions.h: * libnautilus-extensions/nautilus-gconf-extensions.c: (nautilus_gconf_client_get_global), (nautilus_gconf_set_integer), (nautilus_gconf_get_integer), (nautilus_gconf_is_default), (nautilus_gconf_monitor_add), (nautilus_gconf_monitor_remove), (nautilus_gconf_value_free), (nautilus_gconf_notification_add), (nautilus_gconf_notification_remove): New functions for easier addition and removal of notifications. New funtions for easier addition and removal of directory monitoring. Add a #define for a undefined connection. * libnautilus-extensions/nautilus-global-preferences.h: Remove SOUND_STATE hack. * libnautilus-extensions/nautilus-sound.c: (kill_sound_if_necessary), (nautilus_sound_initialize), (nautilus_sound_kill_sound), (nautilus_sound_register_sound), (nautilus_sound_can_play_sound): Use gconf directly for the sound state hack, since nautilus preferences arent really useful for this specific use because of initialization, and default value issues. * libnautilus-extensions/nautilus-global-preferences.c: (nautilus_global_preferences_initialize): Pass in the storage prefix when initializing preferences. * libnautilus-extensions/nautilus-preferences.h: We now need to pass in the storage prefix when initializing. * libnautilus-extensions/nautilus-preferences.c: Change the way preferences are initialized a little bit. We now feed the initialize function a storage prefix to use for gconf. Add assertions for any public function that was used before initialization. Make the key allocations a little faster by caching the prefixes that hardly ever change. Simplify the addition and removal of gconf notifications by using the new gconf extensions to do so. Add a little bit of self checks. I need to figure out a gconf problem before adding more checks, these are very minimal for now. |
||
Ramiro Estrugo
|
cecf7c783c |
Make the way we deal with enumerations simpler. Add "View Preferences"
* libnautilus-extensions/nautilus-global-preferences.h: * libnautilus-extensions/nautilus-global-preferences.c: (global_preferences_register_enumerations), (global_preferences_create_dialog), (global_preferences_populate_sidebar_panels_callback), (global_preferences_install_font_defaults), (global_preferences_populate_pane): Make the way we deal with enumerations simpler. Add "View Preferences" pane and all the related defines. * libnautilus-extensions/nautilus-preferences-group.h: * libnautilus-extensions/nautilus-preferences-group.c: (nautilus_preferences_group_initialize_class), (nautilus_preferences_group_initialize), (nautilus_preferences_group_destroy), (nautilus_preferences_group_new), (nautilus_preferences_group_add_item), (nautilus_preferences_group_update), (nautilus_preferences_group_get_num_visible_items), (nautilus_preferences_group_get_title_label), (nautilus_preferences_group_get_max_caption_width), (nautilus_preferences_group_align_captions): Add support for 2 columns. Add better support for caption alignment. Some minor style tweaking. * libnautilus-extensions/nautilus-preferences-item.h: * libnautilus-extensions/nautilus-preferences-item.c: (preferences_item_destroy), (preferences_item_update_enumeration_radio), (preferences_item_create_enumeration_radio), (preferences_item_create_boolean), (preferences_item_create_editable_string), (preferences_item_create_editable_integer), (preferences_item_update_enumeration_menu), (preferences_item_create_enumeration_menu), (preferences_item_create_font), (preferences_item_create_padding), (smooth_font_changed_callback), (preferences_item_create_smooth_font), (nautilus_preferences_item_new), (enumeration_radio_changed_callback), (font_changed_callback), (enumeration_menu_changed_callback), (preferences_item_update_displayed_value), (nautilus_preferences_item_get_child_width), (nautilus_preferences_item_update_showing): Add support for padding items. Rename the enumeration items to better describe their look and function. No longer need to store the whole enumeration. We just need the enumeration id to make enumeration queries. Remove the constrained integer stuff which is replaced by the use of an enumeration id. * libnautilus-extensions/nautilus-preferences-pane.h: * libnautilus-extensions/nautilus-preferences-pane.c: (nautilus_preferences_pane_add_item_to_nth_group), (preferences_pane_get_max_caption_width), (nautilus_preferences_pane_update), (nautilus_preferences_pane_get_num_visible_groups): Better caption alignment. * libnautilus-extensions/nautilus-preferences.h: * libnautilus-extensions/nautilus-preferences.c: (preferences_entry_free), (nautilus_preferences_get_description), (nautilus_preferences_set_enumeration_id), (nautilus_preferences_get_enumeration_id): No longer store the whole enumeration, just an enumeration id. * src/file-manager/fm-icon-view.c: (fm_icon_view_initialize), (fm_icon_view_update_icon_container_font_size_table): * src/file-manager/fm-list-view.c: (fm_list_view_initialize), (fm_list_view_update_font): Update for new "View Preferences" preferences. Not hooked up for real yet. |
||
Rebecca Schulman
|
b7825c722a |
Fix bugzilla.eazel.com bug 7933, and the nautilus half of bug 7934, by
2001-04-06 Rebecca Schulman <rebecka@eazel.com> Fix bugzilla.eazel.com bug 7933, and the nautilus half of bug 7934, by removing the search preferences from nautilus, and removing the ability to make a new index from Nautilus. These features may return at some point, but in the future will require a root password. reviewed by: Pavel Cisler <pavel@eazel.com> * libnautilus-extensions/nautilus-global-preferences.c: (global_preferences_install_defaults), (global_preferences_create_dialog), (global_preferences_install_font_defaults): * libnautilus-extensions/nautilus-global-preferences.h: Remove all of the medusa preferences, including the preference to make the preference itself sensitive and insensitive, and all callbacks and set up related to the search preference * libnautilus-extensions/nautilus-medusa-support.c: (nautilus_medusa_services_are_enabled), (nautilus_medusa_check_cron_is_enabled), (nautilus_medusa_get_configuration_file_path), (nautilus_medusa_get_explanation_of_enabling): * libnautilus-extensions/nautilus-medusa-support.h: Remove functions to enable / disable medusa, and to check on cron. Add new function to explain how to turn on medusa as root, so that the same message can be adjusted, and used in multiple dialogs * src/file-manager/fm-search-list-view.c: (report_index_age_as_status), (load_location_callback), (display_indexed_search_problems_dialog), (display_system_services_are_disabled_dialog): Remove dialog about medusa being blocked, since medusa can only be either on or off now. Clarify the message about medusa being off, and change the message to tell the user how to turn medusa on as root, instead of recommending they change their preference in nautilus about searching. Refactor status message about last indexing time to simplify the load_location_callback. Don't tell users that "an index can't be created right now", but instead tell them how to create an index as root, when this information is appopriate. Remove two FIXMEs that are now obsolete. * src/file-manager/nautilus-indexing-info.c: (set_close_hides_for_dialog), (show_index_progress_dialog), (show_reindex_request_dialog), (last_index_time_and_reindex_button_dialog_new), (index_progress_dialog_new), (show_indexing_info_dialog), (nautilus_indexing_info_show_dialog): Remove dialog about medusa being blocked, and make the index status dialog explain clearly that there is no index in the case where medusa is turned off, instead of giving an error message. Change the state changed callbacks to coincide with concurrent changes to the medusa "system state" API. Fix a bug that could cause nautilus to crash if the index status dialog was up when medusa was turned on (a race condition of two callbacks trying to destroy the same dialog) * src/nautilus-first-time-druid.c: (druid_finished), (nautilus_first_time_druid_show): Remove medusa and cron pages from the first time druid. Includes removing the callbacks to change the page order based on whether medusa and/or cron are available. |
||
Gene Z. Ragan
|
501a3c4764 |
Fixed bug 7821, SOLARIS: Nautilus hangs attempted to initialize ESD
2001-04-05 Gene Z. Ragan <gzr@eazel.com> Fixed bug 7821, SOLARIS: Nautilus hangs attempted to initialize ESD * libnautilus-extensions/nautilus-global-preferences.h: Remove unused sound init preference. * libnautilus-extensions/nautilus-sound.c: * libnautilus-extensions/nautilus-sound.h: (nautilus_sound_initialize): Remove call to esd_open_audio. It is the wrong call to use and caused problems on Solaris. (nautilus_sound_can_play_sound): Call esd_sound_open to determine if we can handle audio playback. |
||
Ramiro Estrugo
|
fbbaf80362 |
Remove librsvg.
* Makefile.am: Remove librsvg. * librsvg/.cvsignore: * librsvg/Makefile.am: * librsvg/art_render.c: * librsvg/art_render.h: * librsvg/art_render_gradient.c: * librsvg/art_render_gradient.h: * librsvg/art_render_mask.c: * librsvg/art_render_mask.h: * librsvg/art_render_svp.c: * librsvg/art_render_svp.h: * librsvg/art_rgba.c: * librsvg/art_rgba.h: * librsvg/example-nested-transform.svg: * librsvg/makefile-simple: * librsvg/opacity.svg: * librsvg/rsvg-bpath-util.c: * librsvg/rsvg-bpath-util.h: * librsvg/rsvg-css.c: * librsvg/rsvg-css.h: * librsvg/rsvg-defs.c: * librsvg/rsvg-defs.h: * librsvg/rsvg-ft.c: * librsvg/rsvg-ft.h: * librsvg/rsvg-paint-server.c: * librsvg/rsvg-paint-server.h: * librsvg/rsvg-path.c: * librsvg/rsvg-path.h: * librsvg/rsvg.c: * librsvg/rsvg.h: * librsvg/subpixel-text-test: * librsvg/test-ft-gtk.c: * librsvg/test-ft.c: * librsvg/test-rsvg.c: * librsvg/test.svg: Move librsvg to its own top level GNOME CVS module. * configure.in: Add librsvg and eel dependencies. Remove librsvg and font entries. * nautilus.spec.in: Remove font entries. Add librsvg and eel requirements. * data/Makefile.am: * data/fonts/.cvsignore: * data/fonts/Makefile.am: * data/fonts/urw/.cvsignore: * data/fonts/urw/Makefile.am: * data/fonts/urw/README: * data/fonts/urw/fonts.dir: * data/fonts/urw/n019003l.afm: * data/fonts/urw/n019003l.pfb: * data/fonts/urw/n019003l.pfm: * data/fonts/urw/n019004l.afm: * data/fonts/urw/n019004l.pfb: * data/fonts/urw/n019004l.pfm: * data/fonts/urw/n019023l.afm: * data/fonts/urw/n019023l.pfb: * data/fonts/urw/n019023l.pfm: * data/fonts/urw/n019024l.afm: * data/fonts/urw/n019024l.pfb: * data/fonts/urw/n019024l.pfm: Retire default fonts. These now live in eel. * libnautilus/nautilus-undo-transaction.c: (nautilus_undo_transaction_destroy): * libnautilus/nautilus-view.c: (nautilus_view_destroy): Update for eel changes. Use eel-gtk-macros. * nautilus-installer/src/nautilus-druid-page-eazel.c: (nautilus_druid_page_eazel_destroy), (nautilus_druid_page_eazel_finalize), (nautilus_druid_page_eazel_size_allocate), (nautilus_druid_page_eazel_size_request): Update for eel changes. Use eel-gtk-macros. * libnautilus-extensions/Makefile.am: * libnautilus-extensions/nautilus-bonobo-extensions.c: * libnautilus-extensions/nautilus-bonobo-extensions.h: * libnautilus-extensions/nautilus-bookmark.c: * libnautilus-extensions/nautilus-ctree.c: * libnautilus-extensions/nautilus-customization-data.c: * libnautilus-extensions/nautilus-dateedit-extensions.c: * libnautilus-extensions/nautilus-dateedit-extensions.h: * libnautilus-extensions/nautilus-directory-async.c: * libnautilus-extensions/nautilus-directory-background.c: * libnautilus-extensions/nautilus-directory-background.h: * libnautilus-extensions/nautilus-directory-metafile-monitor.c: * libnautilus-extensions/nautilus-directory-metafile.c: * libnautilus-extensions/nautilus-directory.c: * libnautilus-extensions/nautilus-drag-window.c: * libnautilus-extensions/nautilus-drag.c: * libnautilus-extensions/nautilus-druid-page-eazel.c: * libnautilus-extensions/nautilus-druid.c: * libnautilus-extensions/nautilus-entry.c: * libnautilus-extensions/nautilus-file-changes-queue.c: * libnautilus-extensions/nautilus-file-operations-progress.c: * libnautilus-extensions/nautilus-file-operations.c: * libnautilus-extensions/nautilus-file-private.h: * libnautilus-extensions/nautilus-file-utilities.c: * libnautilus-extensions/nautilus-file.c: * libnautilus-extensions/nautilus-font-factory.c: * libnautilus-extensions/nautilus-gconf-extensions.c: * libnautilus-extensions/nautilus-generous-bin.c: * libnautilus-extensions/nautilus-global-preferences.c: * libnautilus-extensions/nautilus-global-preferences.h: * libnautilus-extensions/nautilus-horizontal-splitter.c: * libnautilus-extensions/nautilus-icon-canvas-item.c: * libnautilus-extensions/nautilus-icon-canvas-item.h: * libnautilus-extensions/nautilus-icon-container.c: * libnautilus-extensions/nautilus-icon-container.h: * libnautilus-extensions/nautilus-icon-dnd.c: * libnautilus-extensions/nautilus-icon-factory.c: * libnautilus-extensions/nautilus-icon-factory.h: * libnautilus-extensions/nautilus-icon-private.h: * libnautilus-extensions/nautilus-icon-text-item.c: * libnautilus-extensions/nautilus-keep-last-vertical-box.c: * libnautilus-extensions/nautilus-lib-self-check-functions.c: * libnautilus-extensions/nautilus-lib-self-check-functions.h: * libnautilus-extensions/nautilus-link-set.c: * libnautilus-extensions/nautilus-link.c: * libnautilus-extensions/nautilus-list-column-title.c: * libnautilus-extensions/nautilus-list.c: * libnautilus-extensions/nautilus-medusa-support.c: * libnautilus-extensions/nautilus-merged-directory.c: * libnautilus-extensions/nautilus-metafile-factory.c: * libnautilus-extensions/nautilus-metafile.c: * libnautilus-extensions/nautilus-mime-actions.c: * libnautilus-extensions/nautilus-preferences-box.c: * libnautilus-extensions/nautilus-preferences-dialog.c: * libnautilus-extensions/nautilus-preferences-group.c: * libnautilus-extensions/nautilus-preferences-item.c: * libnautilus-extensions/nautilus-preferences-pane.c: * libnautilus-extensions/nautilus-preferences.c: * libnautilus-extensions/nautilus-preferences.h: * libnautilus-extensions/nautilus-program-chooser.c: * libnautilus-extensions/nautilus-program-choosing.c: * libnautilus-extensions/nautilus-program-choosing.h: * libnautilus-extensions/nautilus-search-uri.c: * libnautilus-extensions/nautilus-sidebar-functions.c: * libnautilus-extensions/nautilus-tabs.c: * libnautilus-extensions/nautilus-theme.c: * libnautilus-extensions/nautilus-thumbnails.c: * libnautilus-extensions/nautilus-trash-directory.c: * libnautilus-extensions/nautilus-trash-file.c: * libnautilus-extensions/nautilus-trash-monitor.c: * libnautilus-extensions/nautilus-undo-context.c: * libnautilus-extensions/nautilus-undo-manager.c: * libnautilus-extensions/nautilus-undo-signal-handlers.c: * libnautilus-extensions/nautilus-vfs-directory.c: * libnautilus-extensions/nautilus-vfs-file.c: * libnautilus-extensions/nautilus-view-identifier.c: * libnautilus-extensions/nautilus-volume-monitor.c: Use new eel library. * libnautilus-extensions/nautilus-art-extensions.c: * libnautilus-extensions/nautilus-art-extensions.h: * libnautilus-extensions/nautilus-art-gtk-extensions.c: * libnautilus-extensions/nautilus-art-gtk-extensions.h: * libnautilus-extensions/nautilus-background-canvas-group.c: * libnautilus-extensions/nautilus-background-canvas-group.h: * libnautilus-extensions/nautilus-background.c: * libnautilus-extensions/nautilus-background.h: * libnautilus-extensions/nautilus-caption-table.c: * libnautilus-extensions/nautilus-caption-table.h: * libnautilus-extensions/nautilus-caption.c: * libnautilus-extensions/nautilus-caption.h: * libnautilus-extensions/nautilus-clickable-image.c: * libnautilus-extensions/nautilus-clickable-image.h: * libnautilus-extensions/nautilus-debug-drawing.c: * libnautilus-extensions/nautilus-debug-drawing.h: * libnautilus-extensions/nautilus-debug.c: * libnautilus-extensions/nautilus-debug.h: * libnautilus-extensions/nautilus-ellipsizing-label.c: * libnautilus-extensions/nautilus-ellipsizing-label.h: * libnautilus-extensions/nautilus-enumeration.c: * libnautilus-extensions/nautilus-enumeration.h: * libnautilus-extensions/nautilus-font-manager.c: * libnautilus-extensions/nautilus-font-manager.h: * libnautilus-extensions/nautilus-font-picker.c: * libnautilus-extensions/nautilus-font-picker.h: * libnautilus-extensions/nautilus-gdk-extensions.c: * libnautilus-extensions/nautilus-gdk-extensions.h: * libnautilus-extensions/nautilus-gdk-font-extensions.c: * libnautilus-extensions/nautilus-gdk-font-extensions.h: * libnautilus-extensions/nautilus-gdk-pixbuf-extensions.c: * libnautilus-extensions/nautilus-gdk-pixbuf-extensions.h: * libnautilus-extensions/nautilus-glib-extensions.c: * libnautilus-extensions/nautilus-glib-extensions.h: * libnautilus-extensions/nautilus-glyph.c: * libnautilus-extensions/nautilus-glyph.h: * libnautilus-extensions/nautilus-gnome-extensions.c: * libnautilus-extensions/nautilus-gnome-extensions.h: * libnautilus-extensions/nautilus-graphic-effects.c: * libnautilus-extensions/nautilus-graphic-effects.h: * libnautilus-extensions/nautilus-gtk-extensions.c: * libnautilus-extensions/nautilus-gtk-extensions.h: * libnautilus-extensions/nautilus-gtk-macros.h: * libnautilus-extensions/nautilus-image-table.c: * libnautilus-extensions/nautilus-image-table.h: * libnautilus-extensions/nautilus-image-with-background.c: * libnautilus-extensions/nautilus-image-with-background.h: * libnautilus-extensions/nautilus-image.c: * libnautilus-extensions/nautilus-image.h: * libnautilus-extensions/nautilus-label-with-background.c: * libnautilus-extensions/nautilus-label-with-background.h: * libnautilus-extensions/nautilus-label.c: * libnautilus-extensions/nautilus-label.h: * libnautilus-extensions/nautilus-labeled-image.c: * libnautilus-extensions/nautilus-labeled-image.h: * libnautilus-extensions/nautilus-lib-self-check-functions.c: * libnautilus-extensions/nautilus-lib-self-check-functions.h: * libnautilus-extensions/nautilus-password-dialog.c: * libnautilus-extensions/nautilus-password-dialog.h: * libnautilus-extensions/nautilus-radio-button-group.c: * libnautilus-extensions/nautilus-radio-button-group.h: * libnautilus-extensions/nautilus-region.c: * libnautilus-extensions/nautilus-region.h: * libnautilus-extensions/nautilus-scalable-font-private.h: * libnautilus-extensions/nautilus-scalable-font.c: * libnautilus-extensions/nautilus-scalable-font.h: * libnautilus-extensions/nautilus-self-checks.c: * libnautilus-extensions/nautilus-self-checks.h: * libnautilus-extensions/nautilus-smooth-text-layout-cache.c: * libnautilus-extensions/nautilus-smooth-text-layout-cache.h: * libnautilus-extensions/nautilus-smooth-text-layout.c: * libnautilus-extensions/nautilus-smooth-text-layout.h: * libnautilus-extensions/nautilus-smooth-widget.c: * libnautilus-extensions/nautilus-smooth-widget.h: * libnautilus-extensions/nautilus-stock-dialogs.c: * libnautilus-extensions/nautilus-stock-dialogs.h: * libnautilus-extensions/nautilus-string-list.c: * libnautilus-extensions/nautilus-string-list.h: * libnautilus-extensions/nautilus-string-map.c: * libnautilus-extensions/nautilus-string-map.h: * libnautilus-extensions/nautilus-string-picker.c: * libnautilus-extensions/nautilus-string-picker.h: * libnautilus-extensions/nautilus-string.c: * libnautilus-extensions/nautilus-string.h: * libnautilus-extensions/nautilus-text-caption.c: * libnautilus-extensions/nautilus-text-caption.h: * libnautilus-extensions/nautilus-viewport.c: * libnautilus-extensions/nautilus-viewport.h: * libnautilus-extensions/nautilus-wrap-table.c: * libnautilus-extensions/nautilus-wrap-table.h: * libnautilus-extensions/nautilus-xml-extensions.c: * libnautilus-extensions/nautilus-xml-extensions.h: Remove these files. These are all part of eel now. * applets/launcher/nautilus-launcher-applet.c: * applets/preferences-applet/nautilus-preferences-applet.c: * components/adapter/Makefile.am: * components/adapter/main.c: * components/adapter/nautilus-adapter-control-embed-strategy.c: * components/adapter/nautilus-adapter-embed-strategy.c: * components/adapter/nautilus-adapter-embeddable-embed-strategy.c: * components/adapter/nautilus-adapter-factory-server.c: * components/adapter/nautilus-adapter-file-load-strategy.c: * components/adapter/nautilus-adapter-load-strategy.c: * components/adapter/nautilus-adapter-progressive-load-strategy.c: * components/adapter/nautilus-adapter-stream-load-strategy.c: * components/adapter/nautilus-adapter.c: * components/hardware/Makefile.am: * components/hardware/nautilus-hardware-view.c: * components/help/Makefile.am: * components/help/help-method.c: * components/help/hyperbola-filefmt.c: * components/help/hyperbola-nav-tree.c: * components/history/Makefile.am: * components/history/nautilus-history-view.c: * components/image-viewer/Makefile.am: * components/image-viewer/nautilus-image-view.c: * components/loser/content/Makefile.am: * components/loser/content/nautilus-content-loser.c: * components/loser/sidebar/Makefile.am: * components/loser/sidebar/nautilus-sidebar-loser.c: * components/mozilla/Makefile.am: * components/mozilla/bonobo-extensions.c: * components/mozilla/nautilus-mozilla-content-view.c: * components/music/Makefile.am: * components/music/nautilus-music-view.c: * components/notes/Makefile.am: * components/notes/nautilus-notes.c: * components/rpmview/Makefile.am: * components/rpmview/nautilus-rpm-verify-window.c: * components/rpmview/nautilus-rpm-view-install.c: * components/rpmview/nautilus-rpm-view.c: * components/sample/nautilus-sample-content-view.c: * components/services/install-view/Makefile.am: * components/services/install-view/callbacks.c: * components/services/install-view/forms.c: * components/services/install-view/nautilus-service-install-view.c: * components/services/install/lib/eazel-install-logic2.c: * components/services/install/server/main.c: * components/services/inventory-view/Makefile.am: * components/services/inventory-view/nautilus-inventory-config-page .c: * components/services/inventory-view/nautilus-inventory-disable-pag * components/services/inventory-view/nautilus-inventory-enable-page * components/services/inventory-view/nautilus-inventory-view.c: * components/services/inventory/Makefile.am: * components/services/inventory/eazel-inventory-upload-callback.c: * components/services/inventory/eazel-inventory.c: * components/services/inventory/main.c: * components/services/login/nautilus-view/Makefile.am: * components/services/login/nautilus-view/nautilus-change-password- view.c: * components/services/login/nautilus-view/password-box.c: * components/services/nautilus-dependent-shared/Makefile.am: * components/services/nautilus-dependent-shared/eazel-services-exte nsions.c: * components/services/nautilus-dependent-shared/eazel-services-exte nsions.h: * components/services/nautilus-dependent-shared/eazel-services-foot er.c: * components/services/nautilus-dependent-shared/eazel-services-head er.c: * components/services/nautilus-dependent-shared/test-footer-header. c: * components/services/summary/Makefile.am: * components/services/summary/nautilus-summary-callbacks.c: * components/services/summary/nautilus-summary-dialogs.c: * components/services/summary/nautilus-summary-dialogs.h: * components/services/summary/nautilus-summary-footer.c: * components/services/summary/nautilus-summary-menu-items.c: * components/services/summary/nautilus-summary-view-private.h: * components/services/summary/nautilus-summary-view.c: * components/services/time/nautilus-view/main.c: * components/services/time/nautilus-view/trilobite-eazel-time-view. c: * components/services/trilobite/sample/nautilus-view/Makefile.am: * components/text/Makefile.am: * components/text/nautilus-text-view.c: * components/throbber/Makefile.am: * components/throbber/main.c: * components/throbber/nautilus-throbber.c: * components/tree/Makefile.am: * components/tree/nautilus-tree-change-queue.c: * components/tree/nautilus-tree-expansion-state.c: * components/tree/nautilus-tree-model.c: * components/tree/nautilus-tree-node.c: * components/tree/nautilus-tree-view-dnd.c: * components/tree/nautilus-tree-view.c: * helper-utilities/authenticate/Makefile.am: * helper-utilities/authenticate/nautilus-authenticate.c: * nautilus-installer/src/nautilus-druid.c: * src/Makefile.am: * src/file-manager/fm-desktop-icon-view.c: * src/file-manager/fm-directory-view.c: * src/file-manager/fm-directory-view.h: * src/file-manager/fm-error-reporting.c: * src/file-manager/fm-icon-text-window.c: * src/file-manager/fm-icon-view.c: * src/file-manager/fm-list-view.c: * src/file-manager/fm-properties-window.c: * src/file-manager/fm-search-list-view.c: * src/file-manager/nautilus-indexing-info.c: * src/nautilus-about.c: * src/nautilus-application.c: * src/nautilus-bookmark-list.c: * src/nautilus-bookmark-parsing.c: * src/nautilus-bookmarks-window.c: * src/nautilus-complex-search-bar.c: * src/nautilus-component-adapter-factory.c: * src/nautilus-desktop-window.c: * src/nautilus-first-time-druid.c: * src/nautilus-link-set-window.c: * src/nautilus-location-bar.c: * src/nautilus-main.c: * src/nautilus-navigation-bar.c: * src/nautilus-profiler.c: * src/nautilus-property-browser.c: * src/nautilus-search-bar-criterion.c: * src/nautilus-search-bar.c: * src/nautilus-shell.c: * src/nautilus-sidebar-tabs.c: * src/nautilus-sidebar-title.c: * src/nautilus-sidebar.c: * src/nautilus-signaller.c: * src/nautilus-simple-search-bar.c: * src/nautilus-switchable-navigation-bar.c: * src/nautilus-switchable-search-bar.c: * src/nautilus-theme-selector.c: * src/nautilus-view-frame-corba.c: * src/nautilus-view-frame.c: * src/nautilus-window-manage-views.c: * src/nautilus-window-menus.c: * src/nautilus-window-toolbars.c: * src/nautilus-window.c: * src/nautilus-window.h: * src/nautilus-zoom-control.c: Update for new eel library usage. * test/test-nautilus-background.c: * test/test-nautilus-clickable-image.c: * test/test-nautilus-font-manager.c: * test/test-nautilus-font-picker.c: * test/test-nautilus-font-simple.c: * test/test-nautilus-font.c: * test/test-nautilus-glyph-simple.c: * test/test-nautilus-glyph.c: * test/test-nautilus-image-background.c: * test/test-nautilus-image-scrolled.c: * test/test-nautilus-image-simple.c: * test/test-nautilus-image-table.c: * test/test-nautilus-image-tile.c: * test/test-nautilus-image.c: * test/test-nautilus-label-background.c: * test/test-nautilus-label-flavorful.c: * test/test-nautilus-label-offset.c: * test/test-nautilus-label-scrolled.c: * test/test-nautilus-label-simple.c: * test/test-nautilus-label-wrapped.c: * test/test-nautilus-label.c: * test/test-nautilus-labeled-image.c: * test/test-nautilus-password-dialog.c: * test/test-nautilus-pixbuf-tile.c: * test/test-nautilus-smooth-text-layout.c: * test/test-nautilus-viewport-constraint.c: * test/test-nautilus-widgets.c: Remove these. They live in eel now. * test/vsignore: * test/kefile.am: * test/st-nautilus-preferences-change.c: * test/st-nautilus-preferences-display.c: * test/st-nautilus-wrap-table.c: * test/st.c: * test/st.h: Update for new eel library usage. |
||
Ramiro Estrugo
|
50644c182d |
New functions. Move sidebar and sidebar panel specific code used
* libnautilus-extensions/Makefile.am: * libnautilus-extensions/nautilus-sidebar-functions.h: * libnautilus-extensions/nautilus-sidebar-functions.c: (compare_view_identifiers), (sidebar_is_sidebar_panel_enabled), (sidebar_is_sidebar_panel_enabled_cover), (sidebar_get_sidebar_panel_view_identifiers), (nautilus_sidebar_get_enabled_sidebar_panel_view_identifiers), (nautilus_sidebar_panel_make_preference_key), (nautilus_sidebar_for_each_panel): New functions. Move sidebar and sidebar panel specific code used throughout Nautilus to its own place. * libnautilus-extensions/nautilus-global-preferences.c: (global_preferences_populate_sidebar_panels_callback), (global_preferences_create_sidebar_panels_pane), (global_preferences_install_sidebar_panel_defaults): Move sidebar and sidebar panel specific code to nautilus-sidebar-functions.[ch]. Simplify sidebar panel creation a bit. * libnautilus-extensions/nautilus-global-preferences.h: Remove the sidebar panel NAMESPACE as preferences dont support namespaces any more. * src/nautilus-sidebar.c: (any_panel_matches_iid): Tiny anal renaming. (toggle_sidebar_panel): Simplify this function a bit. The previous "dance" that the code was doing was not really necessariy. (sidebar_for_each_sidebar_panel), (sidebar_add_panel_context_menu_items): Simplify a lot by using the new sidebar panel iterator. Remove a bunch of oaf code which is handled by the iterator in sidebar-functions. Also, only create the menu items if the preference is visible at the current user level. (nautilus_sidebar_get_sidebar_panel_key): Yank this function as it is not needed anymore. * src/nautilus-window.c: (nautilus_window_for_each_sidebar_panel), (nautilus_window_initialize): Keep track of sidebar panel changes for each individual panel instead of trying to use the whole namespace. The namespace thing was a broken feature of preferences which is no longer supported. (update_sidebar_panels_from_preferences): Update for new public sidebar functions. |
||
Michael Fleming
|
00d84b24fb |
reviewed by: John Sullivan <sullivan@eazel.com>
Part of bug 4832 Added preferences for HTTP proxy username/password. Really, this is sub-optimal: o The first-time druid still doesn't have UI for this o The password is presented and stored in the clear (? does this matter? It's transmitted in the clear, too) o If the user is using an HTTP proxy that requires authentication, but have not filled out the username/password correctly, they get an "Access Denied" dialog o There's no way to tell embedded mozilla about this (bug 74171), so embedded mozilla prompts the user again for the password * libnautilus-extensions/nautilus-global-preferences.c: * libnautilus-extensions/nautilus-global-preferences.h: |
||
John Sullivan
|
586793d2bb |
reviewed by: Ramiro Estrugo <ramiro@eazel.com>
Fixed bug 3328 (Need a preference to specify upper bounds for thumbnailing) In Speed Tradeoffs at Advanced level, you can now choose an upper bound for image file size that will get thumbnailed. * libnautilus-extensions/nautilus-global-preferences.c: * libnautilus-extensions/nautilus-global-preferences.h: Add thumbnail limit preference. * libnautilus-extensions/nautilus-icon-factory.c: (destroy_icon_factory), (get_icon_factory): Add and remove callback for thumbnail-limit preference. (thumbnail_limit_changed_callback): Store new value in global variable; send icons-changed signal. (nautilus_icon_factory_get_icon_for_file): Use global variable instead of constant when determining thumbail limit. * libnautilus-extensions/nautilus-preferences-item.c: (preferences_item_update_constrained_integer): Check the label strings correctly; this was working for the font size menus only because the label strings were just the number printf'ed into a string. |
||
Ramiro Estrugo
|
f7170ace27 |
Fix bugs:
7343 - Fonts checks should work even when nautilus has not undergone 'make install' 7703 - index status dialog is mixing gnome dialog font and nautilus custom font 7204 - Need a better way to pick a fallback font 1102 - Embedded text should use preferences to determine the font it uses 7357 - Preferences dialog spews critical in the ja_JP locale 7344 - NautilusScalable should not be doing any preferences peeking 7345 - Default font "helvetica" hard coded and marked for translatation in many places 7834 - Should mark selected style in font picker menu 5239 - Please make the text viewer use a fixed-width font 7401 - Non smooth font family picker should have a "GTK System Font" entry Work in progress for related bugs: 5101 - font sizes hard-coded in icon view 5456 - Sidebar tabs use hard coded font families 7670 - Font size is small in list view. reviewed by: Glynn Foster <glynn.foster@ireland.sun.com> * components/notes/nautilus-notes.c: (make_notes_view): Dont translate the font name. * components/text/nautilus-text-view-ui.xml: Add default and fixed entries. * components/text/nautilus-text-view.c: (nautilus_text_view_initialize_class), (nautilus_text_view_initialize), (nautilus_text_view_destroy), (nautilus_text_view_update_font), (handle_ui_event), (merge_bonobo_menu_items), (nautilus_text_view_zoom_to_level), (zoomable_zoom_to_fit_callback), (font_changed_callback): Dont store the font name and size. Compute these as needed. Use deltas instead of hard coded font sizes to compute the font size for a given zoom level. Store the font changes in preferences. * libnautilus-extensions/nautilus-caption.c: (nautilus_caption_initialize), (nautilus_caption_set_title_label), (nautilus_caption_get_title_label), (nautilus_caption_get_title_label_width), (nautilus_caption_set_child), (nautilus_caption_set_spacing): * libnautilus-extensions/nautilus-caption.h: Add support for nice caption alignments. * libnautilus-extensions/nautilus-directory.c: (add_preferences_callbacks), (remove_preferences_callbacks): A bit of a hack. Keep track of changes in the default smooth font so that embedded icon text previews can be updated as needed. * libnautilus-extensions/nautilus-font-factory.c: (nautilus_font_factory_get_font_by_family), A temporary hack for default system font usage. In a future checkin this will not be needed anymore. (nautilus_font_factory_get_font_from_preferences): Dont translate font names anymore. * libnautilus-extensions/nautilus-font-manager.c: (font_description_new), (font_description_free), (font_description_get_char_set), (font_description_table_for_each), (font_list_find_bold_callback), (get_test_font_dir), (nautilus_self_check_font_manager): * libnautilus-extensions/nautilus-font-manager.h: Merge char_set_registry and char_set_encoding into one string 'char_set.' Make the font checks work even if nautilus has not undergone 'make install' * libnautilus-extensions/nautilus-font-picker.c: (nautilus_font_picker_initialize), (nautilus_font_picker_destroy), (font_picker_populate), (font_make_style_name), (font_style_entry_new), (compare_style), (global_font_list_populate_callback): * libnautilus-extensions/nautilus-font-picker.h: Sublcass the font picker from NautilusCaption so that it will nicely align in the preferences dialog. Mark selected style in font picker menus by using radio buttons. Fix a storage leak on destruction. * libnautilus-extensions/nautilus-glib-extensions.c: (nautilus_compare_integer), (nautilus_self_check_glib_extensions): * libnautilus-extensions/nautilus-glib-extensions.h: New GCompare function for integers. * libnautilus-extensions/nautilus-global-preferences.c: (global_preferences_install_defaults), (global_preferences_create_dialog), (global_preferences_create_search_pane), (global_preferences_create_sidebar_panels_pane), (global_preferences_pane_update_callback), (global_preferences_get_dialog), (global_preferences_install_sidebar_panel_defaults), (global_preferences_make_sidebar_panel_key), (global_preferences_is_sidebar_panel_enabled), (global_preferences_install_home_location_defaults), (global_preferences_install_font_defaults), (global_preferences_install_medusa_defaults), (global_preferences_populate_pane), (global_preferences_get_smooth_font), (global_preferences_get_smooth_bold_font), (nautilus_global_preferences_get_icon_view_smooth_font), (nautilus_global_preferences_get_default_smooth_font), (nautilus_global_preferences_get_default_smooth_bold_font), (nautilus_global_preferences_initialize): * libnautilus-extensions/nautilus-global-preferences.h: Simplify the creation of preferences by using structures to describe both preferences and preference fialog entries. * libnautilus-extensions/nautilus-gtk-extensions.c: (nautilus_gtk_get_system_font): * libnautilus-extensions/nautilus-gtk-extensions.h: New function to obtain the "Gtk System Font." * libnautilus-extensions/nautilus-icon-canvas-item.c: (nautilus_icon_canvas_item_initialize_class), (nautilus_icon_canvas_item_set_arg), (nautilus_icon_canvas_item_get_arg), (nautilus_icon_canvas_item_set_smooth_font_size): * libnautilus-extensions/nautilus-icon-canvas-item.h: Use signed integers for the font dimensions. * libnautilus-extensions/nautilus-icon-container.c: (nautilus_icon_container_initialize), (nautilus_icon_container_update_icon), (nautilus_icon_container_theme_changed), (nautilus_icon_container_set_font_size_table): * libnautilus-extensions/nautilus-icon-container.h: * libnautilus-extensions/nautilus-icon-private.h: Dont translate the font names. Rename the font size table to better reflect its purpose. Use signed integers for font sizes. * libnautilus-extensions/nautilus-icon-factory.c: (embedded_text_font_changed_callback), (embedded_text_font_free), (embed_text): Keep track of changes in the smooth font used for embedded text so that the icon text previews will update as needed. * libnautilus-extensions/nautilus-preferences-box.c: (nautilus_preferences_box_find_pane): * libnautilus-extensions/nautilus-preferences-box.h: New function to find a named pane. * libnautilus-extensions/nautilus-preferences-group.c: (preferences_group_align_captions), (nautilus_preferences_group_update), (nautilus_preferences_group_get_title_label): * libnautilus-extensions/nautilus-preferences-group.h: Add support for aligning captions. * libnautilus-extensions/nautilus-preferences-item.c: (nautilus_preferences_item_initialize), (preferences_item_construct), (preferences_item_update_enum), (preferences_item_create_enum), (preferences_item_update_short_enum), (preferences_item_create_short_enum), (preferences_item_update_boolean), (preferences_item_create_boolean), (preferences_item_update_editable_string), (preferences_item_create_editable_string), (preferences_item_update_editable_integer), (preferences_item_create_editable_integer), (preferences_item_update_constrained_integer), (preferences_item_create_constrained_integer), (preferences_item_update_font), (preferences_item_create_font), (preferences_item_update_smooth_font), (preferences_item_create_smooth_font), (nautilus_preferences_item_new), (enum_radio_group_changed_callback), (boolean_button_toggled_callback), (font_item_changed_callback), (editable_string_changed_callback), (editable_integer_changed_callback), (constrained_integer_changed_callback), (nautilus_preferences_item_update_displayed_value), (preferences_item_update_editable_integer_settings_at_idle), (nautilus_preferences_item_get_control_showing), (nautilus_preferences_item_set_constrained_integer_paramaters), (nautilus_preferences_item_child_is_caption), (nautilus_preferences_item_get_caption_title_label_width), (nautilus_preferences_item_set_caption_spacing): * libnautilus-extensions/nautilus-preferences-item.h: Add a new CONSTRAINED INTEGER item type. Add support for aligning captions. Dont translate font names. * libnautilus-extensions/nautilus-preferences-pane.c: (nautilus_preferences_pane_add_group), (nautilus_preferences_pane_add_item_to_nth_group), (nautilus_preferences_pane_get_num_visible_groups), (nautilus_preferences_pane_get_num_groups), (nautilus_preferences_pane_find_group): * libnautilus-extensions/nautilus-preferences-pane.h: Add a function for finding a named group. * libnautilus-extensions/nautilus-scalable-font.c: (nautilus_scalable_font_get_default_font), (nautilus_scalable_font_get_default_bold_font): Dont peek preferences for the default fonts. These are now handled in nautilus-global-preferences. * libnautilus-extensions/nautilus-smooth-text-layout.c: (smooth_text_layout_line_list_new), (smooth_text_layout_line_list_new_wrapped), (nautilus_smooth_text_layout_new), (nautilus_smooth_text_layout_set_font_size): Use signed integers for font sizes. * libnautilus-extensions/nautilus-string-picker.c: (nautilus_string_picker_initialize), (nautilus_string_picker_set_string_list): Update for Caption superclass changes. Dont make singleton choices insensitive. * libnautilus-extensions/nautilus-text-caption.c: (nautilus_text_caption_initialize): * libnautilus-extensions/nautilus-text-caption.h: Update for Caption superclass changes. Fix errors in header comments. * src/file-manager/fm-directory-view.c: (fm_directory_view_initialize), (fm_directory_view_destroy): * src/file-manager/fm-directory-view.h: Remove knowledge of font stuff. The fonts for icon and list view are now handled separately so each subclass will have to do its own preferences listening. * src/file-manager/fm-icon-view.c: (set_sort_criterion_by_id), (font_changed_callback), (smooth_font_changed_callback), (standard_font_size_changed_callback), (fm_icon_view_initialize_class), (fm_icon_view_initialize), (fm_icon_view_update_icon_container_font_size_table), (fm_icon_view_update_icon_container_smooth_font), (create_icon_container): Keep track of icon view font changes. Use deltas to compute the font sizes instead of hard coded point sizes. * src/file-manager/fm-list-view.c: (fm_list_view_initialize_class), (fm_list_view_initialize), (fm_list_view_update_font), (font_or_font_size_changed_callback), (fm_list_view_image_display_policy_changed): Keep track of list view font changes. Use deltas to compute the font sizes instead of hard coded point sizes. * src/file-manager/nautilus-indexing-info.c: (last_index_time_and_reindex_button_dialog_new), (index_progress_dialog_new): Dont use smooth labels mixed in with regular gtk labels. * src/nautilus-sidebar-tabs.c: (nautilus_sidebar_tabs_load_theme_data), (smooth_font_changed_callback), (nautilus_sidebar_tabs_initialize), (nautilus_sidebar_tabs_destroy): Add macros and FIXME for hard coded font size. NULL out the tab_font when its unreffed, otherwise all hell breaks lose when user level changes. Update for default font changes. * src/nautilus-sidebar-title.c: (smooth_font_changed_callback), (nautilus_sidebar_title_initialize), (nautilus_sidebar_title_destroy), (update_font): Keep track of smooth font changes. Update for default font changes. * test/test-nautilus-font-manager.c: (font_iterator_callback): * test/test-nautilus-font-picker.c: (update_font), (print_selected_font_callback), (main): * test/test-nautilus-label-simple.c: (use_system_font_callback), (use_system_font_bold_callback), (main): Update for font picker and font manager changes. |
||
Darin Adler
|
6a3ac19781 |
reviewed by: John Sullivan <sullivan@eazel.com>
Fix bug 6613 (no way to delete files without using trash) by integrating Maciej's patch to add an optional Delete command (with some fixes to the patch). There may still be some loose ends. Fix bug 2206 (No way to move or copy a file to a different directory from keyboard) by implementing Cut, Copy, and Paste for files, in a way that will be familiar to Windows users. The positioning of the new files is not right yet (they inherit their position from the old files), there is no feedback when you have cut some files (Arlo's idea, which I might implement, is to make them translucent to show they are "on the way out") or when you have copied some files, and I think there are some other loose ends. Fixed cut, copy, and paste within the file names when you do a rename. This wasn't working at all. Got rid of configure-time checks that were looking at the existence of some special system files. Fixed a few minor bugs discovered by code inspection. * libnautilus-extensions/nautilus-global-preferences.h: * libnautilus-extensions/nautilus-global-preferences.c: (global_preferences_install_descriptions), (global_preferences_install_defaults), (global_preferences_install_visibility), (global_preferences_create_dialog): Add expert preference to add a Delete command that bypasses the Trash. * src/file-manager/nautilus-directory-view-ui.xml: Add Delete, Cut Files, Copy Files, and Paste Files. * src/file-manager/fm-directory-view.c: (confirm_delete_directly), (delete_callback): Add delete code. (bonobo_menu_empty_trash_callback): Get rid of extraneous cast. (fm_directory_view_initialize): Track the delete preference. Set the flags properly to indicate we have our own X window. Add a target so GTK knows that we accept pastes of copied files. (forget_clipboard_contents): Helper for when we are no longer the clipboard owner. (fm_directory_view_destroy): Remove the delete preference callback. Free the clipboard contents. (offset_drop_points): Change so it handles NULL for the list of points. (trash_or_delete_files_common): Remove unneeded parameters. (get_current_event_time): New function, placeholder that just returned GDK_CURRENT_TIME. Perhaps we should get the real event time here for use in clipboard manipulation calls. (copy_or_cut_files): New function. Save the selection for later use in a paste. (copy_files_callback), (cut_files_callback): Call the new copy_or_cut_files function. (paste_files_callback): Do the clipboard convert that results in the paste operation. (real_selection_clear_event): Forget the clipboard contents. (real_selection_get): Convert the selection into the appropriate format and put it on the clipboard. (convert_lines_to_str_list): Helper function for decoding incoming pasted files. (real_selection_received): Handle pasted files by parsing and then triggering a file copy operation. (real_merge_menus): Add verbs for cut, copy, and paste. (enable_delete_changed_callback): Keep track of delete command status in a boolean. (real_update_menus): Show delete command if the preference is on and we are not showing "Delete from Trash". Update names of the Cut and Copy command depending on how many files are selected. Also desensitize them when none are selected. (fm_directory_view_select_file): Initialize an uninitialized field. (fm_directory_view_move_copy_items): Allow relative_item_points to be NULL. (real_realize): Create our own X window. (real_size_allocate): Trick GtkScrolledWindow into doing the right thing despite the fact that we have our own X window. (fm_directory_view_initialize_class): Moved down to the bottom so we don't need so many forward declaractions. Added code to set up some needed atoms and new default handlers. * libnautilus-extensions/nautilus-icon-text-item.c: (send_focus_event), (iti_stop_editing), (iti_start_editing): Add code to send the appropriate focus events to the fake off-screen GtkEntry. This makes the clipboard code that tracks focus-related signals work properly with this entry. (iti_event): Tweak the sequence and simplify the code a bit. * libnautilus/nautilus-clipboard.c: (set_paste_sensitive_if_clipboard_contains_data): Add more FIXMEs. This function is very far from useful, and it's not clear that it can be implemented efficiently under X. (nautilus_clipboard_set_up_editable): Get rid of silly "grab_focus" hack that was an attempt to address the problems with the NautilusIconTextItem. The real solution was to do focusing for that item too. (nautilus_clipboard_set_up_editable_in_control): Fix this so it works when called on an editable that is already focused. * src/file-manager/fm-icon-view.c: (renaming_icon_callback): Get rid of "grab_focus" workaround, which wasn't working. * acconfig.h: * configure.in: Remove all configure checks that were checking the existence of files. * libnautilus-extensions/nautilus-medusa-support.c: (nautilus_medusa_check_cron_is_enabled): Simplify logic so there's less room for confusion (I did this as a fix for the bug that was reported on the mailing list, but Rebecka checked in the small patch first). Also change it so we don't need a configure-time check for the existence of the process directory and fix it so we won't get a core dump if the file doesn't have a space character in it. Also change the logic so we don't leave the directory open when we do find the cron process. * libnautilus-extensions/nautilus-volume-monitor.c: (nautilus_volume_monitor_initialize_class), (has_removable_mntent_options), (get_removable_volumes), (volume_is_removable), (volume_is_read_only), (mount_volume_get_cdrom_name), (mount_volume_activate_cdda), (mount_volume_activate_cdrom), (build_volume_list_delta), (get_current_mount_list), (mount_lists_are_identical), (verify_current_mount_state), (mount_volume_floppy_add), (get_cdrom_type_solaris), (mount_volume_iso9660_add), (display_mount_status), (close_error_pipe), (nautilus_volume_monitor_mount_unmount_removable), (mount_volume_add_filesystem): Make changes throughout to get rid of dependence on configure-time file checks and do things at runtime instead. Also use typedefs to make less code conditional. Also fix the Solaris CD-ROM code which was casting a GString to a (char *) before, so it used absurd file names, and failed to open and returned FALSE all the time. * libnautilus-extensions/nautilus-icon-container.c: (nautilus_icon_container_start_renaming_selected_item): Send the renaming signal before setting up the rest of the icon. This change is not really needed, but it's a better order to do things. * libnautilus/nautilus-clipboard-ui.xml: Move tips into the commands instead of the menu items (for style mostly, no practical implications at the moment). * src/nautilus-shell-ui.xml: Remove tips from Cut, Copy, and Paste, since tips from insensitive items aren't used, and if we had tips, we'd put them on the command, not the menu item, anyway. |
||
John Sullivan
|
40f19a1e1d |
reviewed by: Darin Adler <darin@eazel.com>
Fixed bug 1853 (Want preference for always sorting folders first) For now, this is a global preference. Making it per-window later is a possibility. Arlo is working on a design for directory view defaults that may incorporate this. * libnautilus-extensions/nautilus-file.h: * libnautilus-extensions/nautilus-file.c: (nautilus_file_compare_for_sort_reversed): Eliminated this in favor of a parameter to nautilus_file_compare_for_sort. (nautilus_file_compare_for_sort): Add a parameter for reversed, and another for directories_first. (nautilus_file_compare_for_sort_internal): Former guts of nautilus_file_compare_for_sort moved here. (nautilus_self_check_file): Update compare_for_sort self-checks. * libnautilus-extensions/nautilus-global-preferences.h: * libnautilus-extensions/nautilus-global-preferences.c: (global_preferences_install_descriptions), (global_preferences_install_defaults), (global_preferences_install_visibility), (global_preferences_create_dialog): Install an "Always list folders before files" preference in the Icon and List Views section. * src/file-manager/fm-directory-view.h: (sort_directories_first_changed): New function pointer for subclasses to override. * src/file-manager/fm-directory-view.c: (fm_directory_view_should_sort_directories_first): New function for subclasses to call. (sort_directories_first_changed_callback): Call virtual function when preference changes. (fm_directory_view_initialize): Store initial value of preference; install preference callback. (fm_directory_view_destroy): Remove preference callback. * src/file-manager/fm-desktop-icon-view.c: (desktop_icons_compare_callback): Respect preference setting. * src/file-manager/fm-icon-view.c: (icon_container_compare_icons_callback): Update to respect directories_first setting. (icon_container_compare_icons_by_name_callback): Update for API change only. (fm_icon_view_sort_directories_first_changed): Override virtual function; re-sort icon container if in auto-layout mode. (fm_icon_view_initialize_class): Install virtual function override. * src/file-manager/fm-list-view.c: (fm_list_view_initialize_class): Install virtual function override. (list_view_compare_files_for_sort): New function, broken out of fm_list_view_compare_rows, and changed to respect directories_first setting. (fm_list_view_compare_rows): Break out list_view_compare_files_for_sort. (compare_rows_by_name): Update for API change only. (real_sort_directories_first_changed): Override virtual function; re-sort list. (fm_list_view_display_pending_files): Update code that sorts pending items before adding them to list. (fm_list_view_sort_items): Add comment. |
||
Darin Adler
|
dcb478cf7e |
reviewed by: John Sullivan <sullivan@eazel.com>
Fix bug 6495 (Emacs-style keybindings not working in location bar and other NautilusEntry fields) by adding an expert preference to control whether the Emacs shortcuts or the ones in the menu bar take precedence. I started with Maciej's patch and did many refinements. Fix bug 1788 ("Select All" needs to be implemented for text): I had to add Select All so it won't do the icon view's Select All when you do a select all with the location bar focused. Fix bug 5612 (clicking to deselect causes incorrect menu sensitivity) by adding another signal handler for button clicks. Fix bug 7581 (When trying to restart Nautilus after crash from bug 7579 I get a Segmentation Fault). I was just lucky enough to run into the problem on my machine. * libnautilus-extensions/nautilus-global-preferences.h: * libnautilus-extensions/nautilus-global-preferences.c: (global_preferences_install_descriptions), (global_preferences_install_defaults), (global_preferences_install_visibility), (global_preferences_create_dialog): Added the new Emacs-shortcut preference with the wording requested in the bug report. * libnautilus-extensions/nautilus-entry.h: * libnautilus-extensions/nautilus-entry.c: (emacs_shortcuts_preference_changed_callback): Track the preference. (nautilus_entry_initialize): Set up the callback to track the preference. (nautilus_entry_destroy): Tear down the callback to track the preference. (nautilus_entry_key_press): Allow the emacs shortcuts built into GtkEntry to work if the preference is set that way. Also, only emit the selection_changed signal if the key is actually handled. (nautilus_entry_motion_notify): Simplify the logic, since it's OK to send the selection_changed signal a little too often. (select_all_at_idle): Handle the case where the object is destroyed. (nautilus_entry_select_all_at_idle): Ref the object to handle the case where the object is destroyed before the idle happens. (nautilus_entry_button_press): Send a selection_changed message, since pressing the button can cause a selection change. (nautilus_entry_button_release): Send a selection_changed message, since pressing the button can cause a selection change. (nautilus_entry_initialize_class): Add new default handlers. Also, move to bottom of file so we don't need so many forward declarations. * libnautilus/nautilus-clipboard-ui.xml: Add a Select All Text command. * libnautilus/nautilus-clipboard.c: (select_all): New function to select all the text in a GtkEditable. Sadly it needs a special case for GtkText. (select_all_idle_callback): Callback used to select the text from idle. (select_all_callback): Callback that sets up the idle. Called from the bonobo verb. (initialize_clipboard_component_with_callback_data): Add the callback for Select All. * librsvg/rsvg.c: (rsvg_state_init): Initialize more fields, including font_size. (rsvg_text_handler_characters): Don't try to draw if the font size is 0 or negative. * librsvg/art_render_mask.c: (art_render_mask_render): Handle cases where x1 < x0. The old code would seg. fault. This was the reason we got a crash in bug 7581. * configure.in: Upped the required version of gnome-vfs. |
||
Ramiro Estrugo
|
47496b27cb |
reviewed by: John Sullivan <sullivan@eazel.com>
Fix bugs: 7349 - Sidebar tabs no longer display in a bold font 7477 - Sidebar tab labels don't update to new font when font is changed 7492 - Font style regression on Sidebar title * libnautilus-extensions/nautilus-global-preferences.h: * libnautilus-extensions/nautilus-global-preferences.c: (nautilus_global_preferences_get_smooth_font): Add documentation to clarify the fact that the result needs to be unrefed. (nautilus_global_preferences_get_smooth_bold_font): New function that returns a bold version of the user's preferred font. * src/nautilus-sidebar-tabs.c: (nautilus_sidebar_tabs_load_theme_data): Use the user's bold preffered font instead of the default font. (bug 7349) (smooth_font_changed_callback), (nautilus_sidebar_tabs_initialize), (nautilus_sidebar_tabs_destroy): Listen for changes in the user's preferred font and update the tabs accordingly (bug 7477) * src/nautilus-sidebar-title.c: (smooth_font_changed_callback): Use the user's bold preferred font instead of the plain one. Also unref the font when done to plug a tiny leak. (bug 7492) |
||
Ramiro Estrugo
|
24faaf9219 |
reviewed by: Pavel Cisler <pavel@eazel.com>
Maciej Stachowiak <mjs@eazel.com> Bugs: 6368 - Multibyte font handling in non smooth mode. 2673 - Need to hook up the new font picker to nautilus 1274 - Add support for picking a custom font * components/history/Makefile.am: * components/history/nautilus-history-view.c: (main): Initialize gettext for the history component so it can display localized strings. * components/notes/nautilus-notes.c: (make_notes_view): Set the notes widget font from preferences so it can be properly localized. * components/text/nautilus-text-view.c: (nautilus_text_view_set_font): Use the localized font name to make this work in locales other than the default. * libnautilus-extensions/Makefile.am: Add a macro for finding data on the source tree for the situation when 'make install' has not be run. * libnautilus-extensions/nautilus-font-factory.c: (nautilus_font_factory_get_font_by_family): Workaround the problem that fully qualified localized fonts were being processed incorrectly. We simply leave them alone now. (nautilus_font_factory_get_font_from_preferences): Use the localized font string to make this work on more locales. * libnautilus-extensions/nautilus-font-manager.h: * libnautilus-extensions/nautilus-font-manager.c: (font_description_table_find): New function to find a description in a table. (font_description_table_for_each): Change the return value to a boolean to indicate whether to stop the iteration or not. Switch the order of an assert and assigned. (collect_fonts_from_directory): Use macros for the mime type strings. (font_ignore_directory): Add more directories to ignore. (font_manager_collect_font_tables): Change prepend to append to get fonts in a better order (fallback and user fonts first) , (font_table_list_find), (free_font_tables), (ensure_global_font_table), (nautilus_font_manager_for_each_font): Use just one global table for all fonts instead of 3. (nautilus_font_manager_get_default_font): Compute the default dynamically to take user choices into account. Make it work on non installed nautilus builds. (nautilus_font_manager_get_default_bold_font): Same as above for a bold font. (nautilus_font_manager_file_is_scalable_font): New function to check that a file is really a scalable font: (font_list_find_bold_callback), (nautilus_font_manager_get_bold), (nautilus_font_manager_weight_is_bold): New functions to find a bold font in the global tables. (nautilus_self_check_font_manager): Make it work on not installed nautilus builds and remove the hack where checks would on run for the "ramiro" user. * libnautilus-extensions/nautilus-font-picker.c: (nautilus_font_picker_initialize), (font_list_find), (font_picker_update_styles), (font_picker_populate), (font_picker_font_changed_callback), (font_picker_style_changed_callback), (font_find_style), (ignore_font), (font_make_name), (font_make_style), (global_font_list_free), (font_list_count_families), (global_font_list_get), (global_font_list_populate_callback), (nautilus_font_picker_get_selected_font), (nautilus_font_picker_set_selected_font): Make the font list global and not per widget instance. Use better labels for the font styles. Use better labels for font names (foundry and family vs just family depending on how many families of the same font are found) * libnautilus-extensions/nautilus-global-preferences.h: * libnautilus-extensions/nautilus-global-preferences.c: (global_preferences_install_font_defaults): Add new smooth font preference for the icon container. (nautilus_global_preferences_get_smooth_font): New function to safely get a smooth font out of preferences. * libnautilus-extensions/nautilus-icon-container.c: (nautilus_icon_container_initialize): Use the localized version of the font strings and add a FIXME for the problem of checking these in many disparate places in nautilus. * libnautilus-extensions/nautilus-program-chooser.c: (program_file_pair_get_program_name_for_display): Use the localized version of the application name strings. * libnautilus-extensions/nautilus-scalable-font.h: * libnautilus-extensions/nautilus-scalable-font.c: (nautilus_scalable_font_initialize_class), (nautilus_scalable_font_initialize), (nautilus_scalable_font_destroy), (nautilus_scalable_font_new), (nautilus_scalable_font_make_bold), (nautilus_scalable_font_get_default_font), (nautilus_scalable_font_get_default_bold_font), (free_global_font_handle_table), (initialize_global_stuff_if_needed), (nautilus_scalable_font_get_rsvg_handle): Simplify this class a lot by using the font manager. No longer need to manage font lookup and queries. * libnautilus-extensions/nautilus-smooth-text-layout-cache.c: (nautilus_self_check_smooth_text_layout_cache): Fix a comment. Dont hardcode the font family. Use the default font. Remove the #ifdef hacker for "before make install fonts broken" problem which is now fixed. * src/file-manager/fm-directory-view.h: * src/file-manager/fm-directory-view.c: (directory_view_smooth_font_changed_callback), (fm_directory_view_initialize), (fm_directory_view_destroy): Add method for responding to changes in the smooth font for AA mode of the icon container. * src/file-manager/fm-icon-view.c: (fm_icon_view_smooth_font_changed), (fm_icon_view_initialize_class), (fm_icon_view_update_icon_container_smooth_font), (create_icon_container): Add support for responding to change in the smooth font. Update the icon container's smooth font on such changes. * src/nautilus-about.c: (nautilus_about_draw_info): Change the offset of the "Nautilus" title which broken when jsh make glyphs render properly taking the baseline into account. * src/nautilus-sidebar-title.c: (update_font): Use the localized font name. * src/nautilus-sidebar.c: (nautilus_sidebar_add_panel), (nautilus_sidebar_remove_panel): Use the localized sidebar tabs descriptions. * src/nautilus-window.c: (create_view_as_menu_item): Use the localized "View as" labels. * test/test-nautilus-font-manager.c: (font_iterator_callback): * test/test-nautilus-font-picker.c: (update_font), (font_changed_update_label_callback), (font_changed_update_file_name_callback), (use_defalt_font_callback), (use_defalt_bold_font_callback), (use_defalt_font_update_picker_callback), (use_defalt_bold_font_update_picker_callback), (main): * test/test.c: (test_quit): Updates for changes in font manager and font picker. |
||
Ramiro Estrugo
|
a5eedddc21 |
reviewed by: <delete if not using a buddy>
2001-03-02 Ramiro Estrugo <ramiro@eazel.com> reviewed by: <delete if not using a buddy> Bug 2673 - Need to hook up the new font picker to nautilus . * configure.in: Remove an old font setup hack that never really worked. * data/fonts/urw/fonts.dir: Rename the fonts to "Helvetica Default" in order not to clash with system fonts. * libnautilus-extensions/nautilus-font-manager.h: * libnautilus-extensions/nautilus-font-manager.c: (font_description_new): Add a font type parameter. (font_lists_total_num_fonts): New function to count the total number of scalable fonts detetected. (font_description_table_add): Pass in the detected font lists to do reality checks. (font_get_font_type): New function. (font_description_table_get_length), (font_description_table_peek_nth), (font_description_table_get_nth_file_name): Name the parameters more consistently. (font_description_table_for_each): Add font type parameter (font_description_table_new): Rework to not require storing the detected font list. We now use that only for the duration of the constructor. Lost the install_font_lists dumbness. (font_server_for_each_font_directory_internal): Use g_warning instead of g_print. (font_ignore_directory): New function to determine whether we should ignore a directory - makes things much faster. (font_manager_collect_font_tables): New function to handle all the work of collecting font directories into tables. (font_server_for_each_callback), (font_table_list_free), (font_table_list_for_each), (free_font_tables), (ensure_at_exit_handler), (ensure_fallback_font_table), (ensure_user_font_table), (ensure_system_font_tables): Add 3 tables for fallback, system and users fonts. These are populated as needed. (nautilus_font_manager_for_each_font): Iterate the 3 font talbles. (nautilus_font_manager_get_fallback_font) : New function to obtain a fallback font quickly without having to check the system. (call_chop_off_comments), (nautilus_self_check_font_manager): Rework the checks to not create a temp directory. Unfortunately they now only run for me. * libnautilus-extensions/nautilus-font-picker.h: * libnautilus-extensions/nautilus-font-picker.c: (nautilus_font_picker_initialize_class), (nautilus_font_picker_initialize), (nautilus_font_picker_destroy), (font_entry_list_find), (font_picker_update), (font_name_picker_changed_callback), (style_picker_changed_callback), (ignore_font), (font_manager_callback), (style_list_for_each_callback), (font_entry_list_for_each_callback), (nautilus_font_picker_get_selected_font), (nautilus_font_picker_set_selected_font), (nautilus_font_picker_set_title_label): Use the new font manager. * libnautilus-extensions/nautilus-global-preferences.h: * libnautilus-extensions/nautilus-global-preferences.c: (global_preferences_install_descriptions), (global_preferences_install_defaults), (global_preferences_create_dialog), (appearnace_pane_update), (global_preferences_create_font_group), (global_preferences_install_home_location_defaults), (global_preferences_install_font_defaults): Add a new preference for the smooth font. Factor our the default font code to its own function. Setup the font pickers items to be mutually exclusive according to the smooth graphics mode preference value. * libnautilus-extensions/nautilus-gtk-extensions.h: * libnautilus-extensions/nautilus-gtk-extensions.c: (nautilus_gtk_widget_set_shown): New function to show or hide a widget in one go. * libnautilus-extensions/nautilus-preferences-group.c: (nautilus_preferences_group_update): Dont show the widget if a controlling preference prevents it. * libnautilus-extensions/nautilus-preferences-item.h: * libnautilus-extensions/nautilus-preferences-item.c: (preferences_item_update_smooth_font), (preferences_smooth_font_changed_callback), (preferences_item_create_smooth_font): Add support for a smooth font picker. (preferences_item_destroy), (preferences_item_construct), (nautilus_preferences_item_set_control_preference), (nautilus_preferences_item_set_control_action), (nautilus_preferences_item_get_control_showing): Add support for using a controlling preference which can force the widget to be shown or hidden depending on its value. * libnautilus-extensions/nautilus-preferences-pane.c: (nautilus_preferences_pane_update): Use new gtk extension to show or hide the widget in one go. * libnautilus-extensions/nautilus-scalable-font.h: * libnautilus-extensions/nautilus-scalable-font.c: (font_family_string_map_new): Update fallback font name. (nautilus_scalable_font_new_from_file_name): New function to create a font directly from a font file name. (nautilus_scalable_font_get_default_font): Update fallback font name. (nautilus_scalable_font_get_default_bold_font): New function to get a fallback bold font. Remove some unsed functions. Remove the font setup hack, the font manager takes care of that now. * libnautilus-extensions/nautilus-string-picker.h: * libnautilus-extensions/nautilus-string-picker.c: (nautilus_string_picker_clear): New function to clear the string picker. * libnautilus-extensions/nautilus-tabs.c: (nautilus_tabs_initialize): Fix the hard coded font name. * src/nautilus-first-time-druid.c: (new_title_label): Fix the hard coded font name. * src/nautilus-sidebar-tabs.c: (nautilus_sidebar_tabs_load_theme_data): Fix the hard coded font name. * test/Makefile.am: * test/test-nautilus-font-manager.c: (font_type_to_string), (font_iterator_callback), (font_table_for_each_callback), (main): * test/test-nautilus-font-picker.c: (font_picker_changed_callback), (main): * test/test-nautilus-glyph-simple.c: (main): * test/test-nautilus-label.c: (main): Update for new font picker and font manager changes. |
||
Gene Z. Ragan
|
e4abb4d117 |
reviewed by: Pavel Cisler <pavel@eazel.com>
2001-02-28 Gene Z. Ragan <gzr@eazel.com> reviewed by: Pavel Cisler <pavel@eazel.com> Fixed bug 7141, gconf entry "show_directory_item_counts" stored in "preferencees" directory * libnautilus-extensions/nautilus-global-preferences.h: Corrected a typographical error. |
||
Gene Z. Ragan
|
8ff3209e1c |
reviewed by: George Lebl <jirka@5z.com>
2001-02-24 Gene Z. Ragan <gzr@eazel.com> reviewed by: George Lebl <jirka@5z.com> Fixed bug 3546, Nautilus fails if MP3 previews in rapid succession Fixed bug 5105, Preview sound file during MP3 playback -> "/dev/dsp: Device or resource busy" * libnautilus-extensions/nautilus-global-preferences.h: Add a preference that that tracks the result of an intial audio output capability check during nautilus_sound_initialize(). * libnautilus-extensions/nautilus-sound.c: (nautilus_sound_initialize): Check audio output capability and save the result of the check in a preference. (nautilus_sound_can_play_sound): Check saved preference instead of opening and closing esd as a way to check if sound output is available. The constant opening and closing creating a latency problem withing esd and was affecting the audio preview mechanism. |
||
John Sullivan
|
21173338be |
reviewed by: Darin Adler <darin@eazel.com>
Fixed bug 3321 (Finalize contents of Help menu for 1.0). Actually there's still an open issue about the Customer Service item, which I've left in for now. * src/nautilus-shell-ui.xml: Added Quick Reference, removed License, put About last after a separator. * src/nautilus-window-menus.c: (help_menu_nautilus_quick_reference_callback): New callback. (help_menu_nautilus_license_callback): Removed this. (nautilus_window_initialize_menus): Install callback for Quick Reference, remove for License. Also removed the space from "tool bar" everywhere, per the final decision of Vera & Rhoda. I grepped and replaced everywhere for "tool bar", "Tool Bar", "TOOL_BAR", and "tool_bar". * components/loser/content/nautilus-content-loser-ui.xml: * components/loser/sidebar/nautilus-sidebar-loser-ui.xml: * components/mozilla/bonobo-extensions.c: * components/sample/nautilus-sample-content-view-ui.xml: * libnautilus-extensions/nautilus-bonobo-extensions.c: * libnautilus-extensions/nautilus-global-preferences.c: (global_preferences_install_descriptions), (global_preferences_install_defaults), (global_preferences_install_visibility), (global_preferences_create_dialog): * libnautilus-extensions/nautilus-global-preferences.h: * src/nautilus-service-ui.xml: * src/nautilus-shell-ui.xml: * src/nautilus-window-menus.c: (view_menu_show_hide_toolbar_callback), (nautilus_window_update_show_hide_menu_items), (help_menu_nautilus_quick_reference_callback), (nautilus_window_initialize_menus): * src/nautilus-window-toolbars.c: (set_up_special_bonobo_button), (set_up_toolbar_images), (theme_changed_callback), (set_up_back_or_forward_toolbar_item), (nautilus_window_initialize_toolbars): * src/nautilus-window.c: (nautilus_window_constructed), (nautilus_window_hide_toolbar), (nautilus_window_show_toolbar), (nautilus_window_toolbar_showing), (nautilus_window_show): * src/nautilus-window.h: Made toolbar one word. |
||
Rebecca Schulman
|
6e9dead4be |
Remove the "backup unindexed search" preference for 1.0, which is
2001-02-21 Rebecca Schulman <rebecka@eazel.com> Remove the "backup unindexed search" preference for 1.0, which is bugzilla.eazel.com bug 6775. We will not be doing backup searches, and with Ramiro's help redo preference changes more cleanly, and to be more compatible with his preference changes. reviewed by: Ramiro Estrugo <ramiro@eazel.com> * libnautilus-extensions/nautilus-global-preferences.c: (global_preferences_install_descriptions), (global_preferences_install_defaults), (global_preferences_install_visibility), (global_preferences_create_dialog), (global_preferences_install_home_location_defaults), (global_preferences_use_fast_search_changed_callback), (global_preferences_medusa_state_changed_callback), (global_preferences_install_medusa_defaults): * libnautilus-extensions/nautilus-global-preferences.h: Remove the old BACKUP_SEARCH preference, and add functions to install medusa preference defaults, and to synchronize the gconf value of the preference with the system configuration file used by medusa. * libnautilus-extensions/nautilus-preferences.c: (nautilus_preferences_set_boolean), (nautilus_preferences_get_boolean): Remove old system preferences calls * libnautilus-extensions/Makefile.am: * libnautilus-extensions/nautilus-system-preferences.c: * libnautilus-extensions/nautilus-system-preferences.h: Remove these * libnautilus-extensions/nautilus-medusa-support.c: (nautilus_medusa_services_have_been_enabled_by_user), (nautilus_medusa_blocked), (nautilus_medusa_enable_services), (nautilus_medusa_add_system_state_changed_callback): * libnautilus-extensions/nautilus-medusa-support.h: Add this file to hide potentially ifdef'd out medusa code. * src/file-manager/fm-search-list-view.c: (load_location_callback): * src/nautilus-complex-search-bar.c: (nautilus_complex_search_bar_get_location): Remove logic related to the BACKUP_SEARCH feature. |
||
Rebecca Schulman
|
5510539d69 |
Fix bugzilla.eazel.com 6414 to add prefence to nautilus to enable/disable
2001-02-20 Rebecca Schulman <rebecka@eazel.com> Fix bugzilla.eazel.com 6414 to add prefence to nautilus to enable/disable medusa * libnautilus-extensions/nautilus-global-preferences.h: * libnautilus-extensions/nautilus-global-preferences.c: (global_preferences_install_descriptions), (global_preferences_install_defaults), (global_preferences_install_visibility), (global_preferences_create_dialog): Add the fast search preference pane, visibility level, change SEARCH_METHOD -> BACKUP_SEARCH * libnautilus-extensions/nautilus-system-preferences.c: * libnautilus-extensions/nautilus-system-preferences.h: * libnautilus-extensions/Makefile.am: (nautilus_is_system_preference), (nautilus_system_preference_get_boolean), (nautilus_system_preference_set_boolean): Add setters and getters for system preferences that are not managed by gconf. The current set and get functions turn on and off medusa services * libnautilus-extensions/nautilus-preferences.c: (nautilus_preferences_set_boolean), (nautilus_preferences_get_boolean): Use the new system preference setters and getters instead of the standard ones if the preference is not managed by gconf * src/file-manager/fm-search-list-view.c: (load_location_callback), (display_system_services_are_blocked_dialog): * src/nautilus-complex-search-bar.c: (nautilus_complex_search_bar_get_location): change SEARCH_METHOD -> BACKUP_SEARCH |
||
Rebecca Schulman
|
d6f41a7c6c |
Fix bug 6333, that a warning about not finding unindexed files should not
2001-02-12 Rebecca Schulman <rebecka@eazel.com> Fix bug 6333, that a warning about not finding unindexed files should not be displayed if the backup search is turned on. reviewed by: John Sullivan <sullivan@eazel.com> * libnautilus-extensions/nautilus-global-preferences.h: Leave a note that we should change the SEARCH_METHOD name to be more clear about what the preference is for (whether or not we do a slow background search) * src/file-manager/fm-search-list-view.c: (load_location_callback): Check the SEARCH_METHOD preference |
||
Gene Z. Ragan
|
540e21ee39 |
reviewed by: Mike Engber <angber@eazel.com>
2001-02-08 Gene Z. Ragan <gzr@eazel.com> reviewed by: Mike Engber <angber@eazel.com> Fixed bug 3087, gmc to Nautilus transition tool Added all features except removing gmc from session. Will need some additional help to add that feature. * libnautilus-extensions/nautilus-global-preferences.h: Add a preferences constant to indicate if Nautilus should respawn in the Gnome session. * src/nautilus-application.c: (nautilus_application_startup), (volume_unmounted_callback), (removed_from_session), (save_session), (set_session_restart), (init_session): Check preferences add add ourselves to session with a respawn setting if the user has specified that they wish such behavior. * src/nautilus-first-time-druid.c: (druid_finished), (set_up_gmc_transition_page): Save gmc to nautilus transition values in nautilus preferences. |
||
John Sullivan
|
6252fcac20 |
reviewed by: Darin Adler <darin@eazel.com>
Fixed bug 6162 (need option to stop "xx items" from being calculated for ftp:// locations) Added a speed tradeoff preference for showing directory counts. It's "local-only" for Beginner and "always" (but changeable) for Intermediate/Advanced. Fixed bug 1856 (fix hideous hack to kick-start embedded-text reading when preference changes) Fixed bug 2396 (properties window doesn't show/hide "special flags" when preference changes) * libnautilus-extensions/nautilus-directory-async.c: (dequeue_pending_idle_callback): Update for name change. (lacks_directory_count): Now checks preference by calling nautilus_file_should_show_directory_item_count. (should_get_directory_count_now): Renamed to add the "_now" to help distinguish from nautilus_file_should_show_directory_item_count. (directory_count_start): Update for name change. * libnautilus-extensions/nautilus-directory-private.h: * libnautilus-extensions/nautilus-directory.c: (emit_change_signals_for_all_files): New function, emits change signals for self-as-file (if applicable) and all contained files. (async_state_changed_one): New hash-table function, calls emit_change_signals_for_all_files on a directory. (async_data_preference_changed_callback): New preferences-changed callback, calls async_state_changed_one on each directory. (add_preferences_callbacks): Renamed from add_filtering_callbacks, now adds callbacks for top-left text and item counts preferences. (remove_preferences_callbacks): Renamed from remove_filtering_callbacks, now removes callbacks for top-left text and item counts preferences. (nautilus_directory_get_internal): Update for name change. (nautilus_directory_emit_change_signals): renamed from _emit_change_signals_deep to avoid recursion connotation. (nautilus_directory_emit_metadata_changed), (call_files_changed_free_list), (call_files_changed_unref_free_list): Update for name change. * libnautilus-extensions/nautilus-file.c: (get_speed_tradeoff_preference_for_file): New utility function, returns boolean based on local-ness of file and value of specified speed-tradeoff preference. (nautilus_file_should_get_top_left_text): Now calls get_speed_tradeoff_preference_for_file. (nautilus_file_should_show_directory_item_count): New function, calls get_speed_tradeoff_preference_for_file. (nautilus_file_get_directory_item_count), (nautilus_file_get_deep_counts): Bail out early without computation if _should_show_directory_item_count is FALSE. (nautilus_file_changed): Update for name change. * libnautilus-extensions/nautilus-file.h: Make nautilus_file_should_show_directory_item_count public so the preferences window can make UI decisions based on it. * libnautilus-extensions/nautilus-global-preferences.h: * libnautilus-extensions/nautilus-global-preferences.c: (global_preferences_install_descriptions), (global_preferences_install_defaults), (global_preferences_install_visibility), (global_preferences_create_dialog): Add new preference NAUTILUS_PREFERENCES_SHOW_DIRECTORY_ITEM_COUNTS and wire up default values and UI. * src/file-manager/fm-directory-view.c: (fm_directory_view_initialize), (fm_directory_view_destroy): Remove hideous hack. * src/file-manager/fm-properties-window.c: (append_separator): Return widget instead of row number. (attach_directory_contents_value_field): Return widget. (update_visibility_of_table_rows): New helper function to update visibility of a series of table rows & contained widgets. (update_visibility_of_item_count_fields): New function to update visibility of directory item count widgetry. (update_visibility_of_item_count_fields_wrapper): Simple wrapper for above. (remember_directory_contents_widget), (append_directory_contents_fields): Remember item counts widgetry so it can be shown/hidden later; set up prefs callback; change signature for to pass window. (create_basic_page), (create_permissions_page): store table in window->details; update for changed signatures. (append_special_execution_checkbox): Now takes window, don't use GTK_EXPAND to avoid resizing column unnecessarily, count number of special flags rows. (remember_special_flags_widget), (update_visibility_of_special_flags_widgets): New function to update visibility of special flags widgetry. (update_visibility_of_special_flags_widgets_wrapper): Simple wrapper for above. (append_special_execution_flags): Remember special flags widgetry so it can be shown/hidden later; set up prefs callback; change signature to pass window. (real_destroy): free widget lists. |
||
John Sullivan
|
5e384e1bd1 |
reviewed by: Darin Adler <darin@eazel.com>
Fixed bug 4427 (Should not execute text files by default). Now it asks whether to run or display executable text files. Advanced users can set a new preference. * libnautilus-extensions/nautilus-stock-dialogs.h: * libnautilus-extensions/nautilus-stock-dialogs.c: (create_message_box): New bottleneck function, contains former guts of show_message_box but doesn't call gtk_widget_show. (show_message_box): Now just a simple wrapper for calling create_message_box and showing the result. (nautilus_show_info_dialog), (nautilus_show_warning_dialog), (nautilus_show_error_dialog), (nautilus_show_yes_no_dialog), (nautilus_show_error_dialog_with_details): Renamed to add verb "show" to names. (nautilus_run_simple_dialog): Renamed to add verb "run" to name. (nautilus_create_question_dialog): New public function, does not show the dialog yet so caller can add more buttons or whatever before showing. * libnautilus-extensions/nautilus-global-preferences.h: * libnautilus-extensions/nautilus-global-preferences.c: (global_preferences_install_descriptions), (global_preferences_install_defaults), (global_preferences_install_visibility), (global_preferences_create_dialog): Add new preference for what to do when an executable text file is activated. It defaults to "Ask" and is visible only at Advanced level. * libnautilus-extensions/nautilus-file-private.h: * libnautilus-extensions/nautilus-file.h: Moved nautilus_file_contains_text into public header. * src/file-manager/fm-directory-view.c: (get_executable_text_file_action): New function, uses preference and dialog (if necessary) to determine how to handle activating an executable text file. (activate_callback): Now handles executable text files specially by using get_executable_text_file_action. Restructured the control flow a little. * components/music/nautilus-music-view.c: (set_album_cover), (play_current_file), (nautilus_music_view_update): * components/rpmview/nautilus-rpm-view-install.c: (nautilus_rpm_view_install_done): * components/services/summary/nautilus-view/nautilus-summary-dialogs.c: (nautilus_summary_login_failure_dialog), (generate_error_dialog): * components/text/nautilus-text-view.c: (file_read_callback): * libnautilus-extensions/nautilus-file-operations.c: (confirm_empty_trash), (handle_transfer_vfs_error), (handle_transfer_overwrite), (nautilus_file_operations_copy_move), (handle_new_folder_vfs_error), (nautilus_file_operations_move_to_trash): * libnautilus-extensions/nautilus-icon-dnd.c: (confirm_switch_to_manual_layout): * libnautilus-extensions/nautilus-program-chooser.c: (nautilus_program_chooser_show_no_choices_message): * libnautilus-extensions/nautilus-program-choosing.c: (nautilus_launch_application): * libnautilus-extensions/nautilus-volume-monitor.c: (display_mount_status): * src/file-manager/fm-desktop-icon-view.c: (icon_view_create_nautilus_links): * src/file-manager/fm-directory-view.c: (fm_directory_view_confirm_multiple_windows), (real_file_limit_reached), (fm_directory_view_confirm_deletion), (confirm_delete_from_trash), (report_broken_symbolic_link), * src/file-manager/fm-error-reporting.c: (fm_report_error_renaming_file), (fm_report_error_setting_group), (fm_report_error_setting_owner), (fm_report_error_setting_permissions): * src/file-manager/fm-properties-window.c: (set_custom_image): * src/file-manager/fm-search-list-view.c: (load_location_callback), (load_error_callback), (display_indexed_search_problems_dialog), (real_file_limit_reached): * src/file-manager/nautilus-indexing-info.c: (update_file_index_callback), (show_search_service_not_available_dialog): * src/nautilus-application.c: (check_required_directories), (nautilus_application_startup): * src/nautilus-location-bar.c: (drag_data_received_callback): * src/nautilus-property-browser.c: (remove_pattern), (remove_emblem), (emblem_image_file_changed), (add_pattern_to_browser), (add_color_to_browser), (emblem_dialog_clicked): * src/nautilus-sidebar.c: (receive_dropped_uri_list): * src/nautilus-theme-selector.c: (add_theme_to_icons), (theme_select_row_callback): * src/nautilus-window-manage-views.c: (handle_unreadable_location), (report_content_view_failure_to_user_internal), (report_sidebar_panel_failure_to_user), (nautilus_window_end_location_change_callback): * src/nautilus-window-menus.c: (forget_history_if_confirmed), (show_bogus_bookmark_window): Updated for dialog API name changes. * libnautilus-extensions/nautilus-file.c: (get_description): Lucky Aaron gets missing mime description complaints now. |
||
Ramiro Estrugo
|
cb835b6f37 |
Make comments reflect reality more. Changed the structure of the file a
* libnautilus-extensions/nautilus-global-preferences.c: (global_preferences_install_descriptions), (global_preferences_install_defaults), (global_preferences_install_visibility), (global_preferences_install_proxy_defaults), (global_preferences_install_home_location_defaults), (nautilus_global_preferences_initialize): * libnautilus-extensions/nautilus-global-preferences.h: Make comments reflect reality more. Changed the structure of the file a bit to have the defaults, descriptions and visibility installing functions be at the top. |
||
Ramiro Estrugo
|
d927dfd26d |
reviewed by: Pavel Cisler <pavel@eazel.com>
Lots of bug fixes: 2848 - User level agnostic config settings have nowhere to live. 2654 - Need default values even for non user level preferences. 3414 - Show more preferences at higher user levels. 3415 - Make preference the same for all levels at which it is not visible 3416 - Make preference changes affect all levels at which they are visible 4357 - Web search URL setting should be reset upon Nautilus update 5160 - Tree view doesnt exist when starting nautilus as a beginner 5234 - Sidebar panel preferences are not properly separated among user levels * components/mozilla/mozilla-preferences.cpp: Update for gnome vfs proxy changes. Proxy host and port are now stored in separate gconf settings. * libnautilus-extensions/Makefile.am: * libnautilus-extensions/nautilus-enumeration.h: * libnautilus-extensions/nautilus-enumeration.c: (nautilus_enumeration_new), (nautilus_enumeration_free), (nautilus_enumeration_insert), (nautilus_enumeration_get_nth_entry), (nautilus_enumeration_get_nth_description), (nautilus_enumeration_get_nth_value), (nautilus_enumeration_get_num_entries), (nautilus_self_check_enumeration): New files. An enumeration data structure. * components/tree/nautilus-tree-expansion-state.c: No longer need to give the full path to a gconf setting. * components/tree/nautilus-tree-view.c: (filtering_changed_callback), (nautilus_tree_view_initialize): * libnautilus-extensions/nautilus-directory-async.c: (can_use_public_metafile), (get_filter_options_for_directory_count): * libnautilus-extensions/nautilus-file-operations.c: (confirm_empty_trash): * libnautilus-extensions/nautilus-file.c: (nautilus_file_should_get_top_left_text): * libnautilus-extensions/nautilus-font-factory.c: (nautilus_font_factory_get_font_from_preferences): Update for preferences api changes. * libnautilus-extensions/nautilus-gconf-extensions.h: * libnautilus-extensions/nautilus-gconf-extensions.c: (global_client_free), (nautilus_gconf_client_get_global), (nautilus_gconf_handle_error), (nautilus_gconf_set_boolean), (nautilus_gconf_get_boolean), (nautilus_gconf_set_int), (nautilus_gconf_get_int), (nautilus_gconf_set_string), (nautilus_gconf_get_string), (nautilus_gconf_set_string_list), (nautilus_gconf_get_string_list), (nautilus_gconf_is_default), (nautilus_gconf_monitor_directory): New files. Useful gconf extensions; make peeking and poking settings a little easier. * libnautilus-extensions/nautilus-icon-container.c: (button_press_event): * libnautilus-extensions/nautilus-icon-canvas-item.c: (in_single_click_mode): Update for preferences api changes. * libnautilus-extensions/nautilus-icon-factory.c: (icon_theme_changed_callback), (should_display_image_file_as_itself): Update for preferences api changes. Also no longer need to define a default theme. * libnautilus-extensions/nautilus-lib-self-check-functions.h: Add entries for enumeration and preferences. Remove preference entry. Note plural vs not. * libnautilus-extensions/nautilus-preference.c: * libnautilus-extensions/nautilus-preference.h: Retire these 2. No longer use a GtkObject to store each preference. We simply use the string name instead. * libnautilus-extensions/nautilus-preferences-box.h: * libnautilus-extensions/nautilus-preferences-box.c: (nautilus_preferences_box_add_pane), (nautilus_preferences_box_update): New function. Should be called when user level changes so that the box updates its panes. * libnautilus-extensions/nautilus-preferences-dialog.h: * libnautilus-extensions/nautilus-preferences-dialog.c: (nautilus_preferences_dialog_initialize), (nautilus_preferences_dialog_destroy), (nautilus_preferences_dialog_get_prefs_box), (nautilus_preferences_dialog_update), (user_level_changed_callback): Keep track of user level changes. New function to update the dialog when user level changes. * libnautilus-extensions/nautilus-preferences-group.h: * libnautilus-extensions/nautilus-preferences-group.c: (nautilus_preferences_group_initialize), (nautilus_preferences_group_destroy), (nautilus_preferences_group_add_item): Collect the group's items in a list. Update to user a string to represent a preference instead of a GtkObject. (nautilus_preferences_group_update): New function. Updates the group's items to respect preferences visibility based on the user level. (nautilus_preferences_get_num_visible_items): New function. Return the number of currently visible items. Collect the group's items in a list. Update to user a string to represent a preference instead of a GtkObject. * libnautilus-extensions/nautilus-preferences-item.h: * libnautilus-extensions/nautilus-preferences-item.c: (preferences_item_construct), (preferences_item_create_enum), (preferences_item_create_short_enum), (preferences_item_create_boolean), (preferences_item_create_editable_string), (preferences_item_create_integer), (preferences_item_create_font_family), (preferences_item_create_theme), (enum_radio_group_changed_callback), (editable_string_changed_callback), (integer_changed_callback), (nautilus_preferences_item_get_name): New function to fetch the item's preference name. Add a new kind of preference - INTEGER. Update for string vs. GtkObject preferences representation changes. * libnautilus-extensions/nautilus-preferences-pane.h: * libnautilus-extensions/nautilus-preferences-pane.c: (nautilus_preferences_pane_update): New function. Updates the pane's groups to respect preferences visibility based on the user level. * libnautilus-extensions/nautilus-preferences.h: * libnautilus-extensions/nautilus-preferences.c: (preferences_get_path), (preferences_get_defaults_path), (preferences_get_visibility_path), (preferences_get_user_level_key), (preferences_preference_is_internal), (preferences_preference_is_user_level), (preferences_key_make), (preferences_key_make_for_default), (preferences_key_make_for_default_getter), (preferences_key_make_for_visibility), (preferences_global_client_remove_notification), (preferences_global_client_get), (preferences_preference_is_default), (preferences_make_user_level_filtered_key), (nautilus_preferences_get_visible_user_level), (nautilus_preferences_set_visible_user_level), (nautilus_preferences_set_boolean), (preferences_key_make_for_getter), (nautilus_preferences_get_boolean), (nautilus_preferences_set_int), (nautilus_preferences_get_int), (nautilus_preferences_set), (nautilus_preferences_get), (nautilus_preferences_set_string_list), (nautilus_preferences_get_string_list), (nautilus_preferences_get_user_level), (nautilus_preferences_set_user_level), (nautilus_preferences_default_set_int), (nautilus_preferences_default_get_int), (nautilus_preferences_default_set_boolean), (nautilus_preferences_default_get_boolean), (nautilus_preferences_default_set_string), (nautilus_preferences_default_get_string), (nautilus_preferences_default_set_string_list), (nautilus_preferences_default_get_string_list), (preferences_callback_entry_invoke_function), (preferences_something_changed_notice), (preferences_global_table_check_changes_function), (preferences_user_level_changed_notice), (preferences_entry_add_callback), (preferences_entry_remove_callback), (preferences_callback_entry_free), (preferences_callback_entry_free_func), (preferences_entry_free), (preferences_entry_free_func), (preferences_global_table_free), (preferences_global_table_get_global), (preferences_global_table_lookup), (preferences_global_table_insert), (preferences_global_table_lookup_or_insert), (nautilus_preferences_add_callback), (preferences_while_alive_disconnector), (nautilus_preferences_add_callback_while_alive), (nautilus_preferences_remove_callback), (nautilus_preferences_enumeration_insert), (nautilus_preferences_enumeration_get_nth_entry), (nautilus_preferences_enumeration_get_nth_description), (nautilus_preferences_enumeration_get_nth_value), (nautilus_preferences_enumeration_get_num_entries), (nautilus_preferences_set_description), (nautilus_preferences_get_description), (nautilus_preferences_get_user_level_name_for_display), (nautilus_preferences_get_user_level_name_for_storage), (preferences_user_level_check_range), (nautilus_preferences_monitor_directory), (nautilus_preferences_is_visible), (nautilus_self_check_preferences): Many changes. Redid to support the preferences system described in bugs 3414, 3415 and 3416. * libnautilus-extensions/nautilus-smooth-widget.c: (preferences_get_is_smooth): * libnautilus-extensions/nautilus-sound.c: (kill_sound_if_necessary), (nautilus_sound_initialize), (nautilus_sound_kill_sound), (nautilus_sound_register_sound), (nautilus_sound_can_play_sound): * libnautilus-extensions/nautilus-theme.c: (nautilus_theme_get_theme), (nautilus_theme_get_theme_data), (nautilus_theme_get_image_path): Update for preferences api changes. * libnautilus-extensions/nautilus-user-level-manager.c: * libnautilus-extensions/nautilus-user-level-manager.h: Retire. No longer needed. User level things are handled in nautilus-preferences.[ch] now. The current user level design is much simpler and does no require its own GtkObject. * src/file-manager/fm-desktop-icon-view.c: (update_home_link_and_delete_copies), (real_update_menus): * src/file-manager/fm-directory-view.c: (open_location), (confirm_delete_from_trash), (real_update_menus), (fm_directory_view_activate_files), (filtering_changed_callback): * src/file-manager/fm-icon-text-window.c: (changed_attributes_option_menu_callback), (fm_get_text_attribute_names_preference_or_default): * src/file-manager/fm-icon-view.c: (should_preview_sound), (fm_icon_view_update_click_mode), (fm_icon_view_update_smooth_graphics_mode): * src/file-manager/fm-list-view.c: (fm_list_view_update_click_mode): * src/file-manager/fm-properties-window.c: (create_permissions_page): * src/nautilus-application.c: (desktop_changed_callback): * src/nautilus-complex-search-bar.c: (nautilus_complex_search_bar_get_location): * src/nautilus-first-time-druid.c: (user_level_selection_changed), (make_hbox_user_level_radio_button), (set_up_user_level_page): * src/nautilus-main.c: (main): * src/nautilus-property-browser.c: (nautilus_property_browser_update_contents): * src/nautilus-sidebar.c: (nautilus_sidebar_sidebar_panel_enabled), (toggle_sidebar_panel), (nautilus_sidebar_size_allocate): * src/nautilus-switchable-search-bar.c: (nautilus_switchable_search_bar_new), (nautilus_search_uri_to_search_bar_mode): Update for preferences api changes. * src/nautilus-window-manage-views.c: (position_and_show_window_callback), (nautilus_window_end_location_change_callback): Update for preferences api changes. Also, no longer need to pass in a default location to the preferences getter. * src/nautilus-window-menus.c: (user_level_customize_callback), (switch_to_user_level), (refresh_bookmarks_menu), (user_level_changed_callback), (add_user_level_menu_item), (nautilus_window_initialize_menus), (update_user_level_menu_items), (convert_user_level_to_path): A lot of simplification. The "Edit Settings..." menu item no longer changes it wording based on the user level. We know allow it to edit settings on all user levels, since we have the ability to hide preferences at higher user levels. No longer need to update the preferences dialog or its title. * src/nautilus-window.c: (nautilus_window_constructed), (nautilus_window_close), (nautilus_window_go_web_search), (nautilus_window_go_home), (nautilus_window_show): Update for preferences api changes. * libnautilus-extensions/nautilus-global-preferences.h: Update all the preferences defines to not include a full gconf path. We dont need to do this anymore to get non user level coupled prefernces. * libnautilus-extensions/nautilus-global-preferences.c: (compare_view_identifiers), (global_preferences_create_dialog), (nautilus_global_preferences_get_enabled_sidebar_panel_view_identif iers), (global_preferences_install_sidebar_panel_defaults), (global_preferences_is_sidebar_panel_enabled), (global_preferences_install_speed_tradeoff_descriptions), (register_proxy_preferences), (global_preferences_register), (global_preferences_install_defaults), (nautilus_global_preferences_set_dialog_title): Lots of changes to support new preferences design. Set the WM_CLASS here once instead of everytime the dialog title is changed. This was causing criticals. No longer need to create parallel proxy preferences and map them to the gconf ones. We can use the gconf ones directly now. * test/.cvsignore: * test/Makefile.am: * test/test-nautilus-preferences-change.c: (user_level_changed_callback), (fruits_changed_callback), (int_picker_changed_callback), (user_level_picker_changed_callback), (picker_new), (user_level_picker_new), (main): * test/test-nautilus-preferences-display.c: (text_caption_update), (user_level_caption_update), (user_level_changed_callback), (green_changed_callback), (yellow_changed_callback), (red_changed_callback), (apple_changed_callback), (orange_changed_callback), (pear_changed_callback), (entry_new), (user_level_frame_new), (colors_frame_new), (fruits_frame_new), (main): * test/test.c: (test_pixbuf_draw_rectangle_tiled), (test_text_caption_set_text_for_int_preferences), (test_text_caption_set_text_for_string_preferences), (test_text_caption_set_text_for_default_int_preferences), (test_text_caption_set_text_for_default_string_preferences), (test_text_caption_get_text_as_int), (test_window_set_title_with_pid): * test/test.h: New tests for preferences changes. * test/test-nautilus-preferences.c: Retire old prefs test which didnt really work. * test/test-nautilus-smooth-graphics.c: (smooth_graphics_mode_changed_callback), (main): Update for preferences api changes. |
||
Mike Engber
|
6c091215b4 |
Changed gconf key for the show desktop option in order to avoid using the
* libnautilus-extensions/nautilus-global-preferences.h: Changed gconf key for the show desktop option in order to avoid using the old default value (OFF) in existing gconf databases (bug 5148) |
||
Maciej Stachowiak
|
c4fbe9ceb6 |
Expand margins around expander by 3 pixels on each side to make it easier
* libnautilus-extensions/nautilus-ctree.c (ctree_is_hot_spot): Expand margins around expander by 3 pixels on each side to make it easier to click the disclosure triangle (triangle will prelight when within range), to fix bug 4479 Fix bugs 4497 (Add configuration option to show only folders in tree view) and 2419 (Tree view should track "show hidden files" preference): * components/tree/nautilus-tree-view.c: (nautilus_tree_view_should_skip_file, nautilus_tree_view_insert_model_node, nautilus_tree_view_remove_model_node, nautilus_tree_view_update_model_node): Handle possibly filtering out hidden files, backup files or non-directories. (filtering_changed_callback, nautilus_tree_view_initialize): Initialize from and watch filtering preferences, reload whole tree when prefs change. (nautilus_tree_view_destroy): Stop watching filtering prefs. (reload_model_node, reload_whole_tree, expand_node_for_file, nautilus_tree_view_receive_dropped_icons): Update code for reloading the tree on expand/collapse etc. * components/tree/nautilus-tree-model.c (nautilus_tree_model_directory_files_added_callback): Check if we already have a node for each file before trying to create a new one. This was needed because otherwise chaning the preference settins mentioned above would result in crashes. * libnautilus-extensions/nautilus-file.h, libnautilus-extensions/nautilus-file.c: (nautilus_file_is_hidden_file, nautilus_file_is_backup_file, nautilus_file_should_show, filter_hidden_and_backup_partition_callback, nautilus_file_list_filter_hidden_and_backup): Move hidden file and backup file filtering logic here from fm-directory-view.c. * src/file-manager/fm-directory-view.c (queue_pending_files): Use `nautilus_file_list_filter_hidden_and_backup' to do filtering. * libnautilus-extensions/nautilus-global-preferences.h, libnautilus-extensions/nautilus-global-preferences.c (global_preferences_create_dialog, global_preferences_register): Add a new preference for showing only directories in the tree view. * libnautilus-extensions/nautilus-preferences-dialog.c: Make preferences dialog a bit bigger to accomodate the new setting. |
||
Andy Hertzfeld
|
0136867b0f |
fixed bug 3116, add preference for disabling sound preview
fixed bug 3116, add preference for disabling sound preview * libnautilus-extensions/nautilus-global-preferences.h: defined sound preview preference * libnautilus-extensions/nautilus-global-preferences.c: (global_preferences_create_dialog), (global_preferences_register): registered sound preview preference and added to speed tradeoffs * src/file-manager/fm-icon-view.c: (should_preview_sound), (icon_container_preview_callback): only preview sounds if the preference is set |
||
Andy Hertzfeld
|
d43dc92e49 |
at Bud's request, implemented bug 4127, add a preference to show or hide
at Bud's request, implemented bug 4127, add a preference to show or hide Nautilus' desktop. * libnautilus-extensions/nautilus-global-preferences.h: define NAUTILUS_PREFERENCES_SHOW_DESKTOP * libnautilus-extensions/nautilus-global-preferences.c: (global_preferences_create_dialog), (global_preferences_register): register the desktop preference and show the checkbox in the appearance section of preferences * src/nautilus-application.c: (nautilus_application_initialize), (nautilus_application_destroy), (check_for_and_run_as_super_user), (desktop_changed_callback): watch the desktop preference and show or hide the desktop window when it changes. * src/nautilus-main.c: (main): show the desktop at launch if the preference is set and it's not overriden by command-line options. |
||
Andy Hertzfeld
|
46c53fcda8 |
fixed bug 2814, move "built-in bookmarks" checkbox from the edit bookmarks
fixed bug 2814, move "built-in bookmarks" checkbox from the edit bookmarks window to preferences/navigation. * libnautilus-extensions/nautilus-global-preferences.c: (global_preferences_create_dialog), (global_preferences_register): added a checkbox to control the "hide built-in bookmarks" preference * libnautilus-extensions/nautilus-global-preferences.h: renamed preference path so the built-in bookmarks preference can be in the preferences window * src/nautilus-bookmarks-window.c: (create_bookmarks_window), (repopulate): removed the built-in bookmarks checkbox from the edit bookmarks window |
||
Andy Hertzfeld
|
f8618b63bb |
implemented sound process management using gconf to store the process ID
implemented sound process management using gconf to store the process ID of the currently playing sound, and switched sound previewing and part of the music view to use it. This also fixed a process leaking bug, as each time a sound preview terminated, it was leaving a zombie process behind. |
||
Darin Adler
|
99785dd779 |
More work on whittling the state machine down to size.
* README: libunicode, libglade, and eog are no longer required. * components/history/nautilus-history-view.c: (history_title_changed): * libnautilus/nautilus-view-component.idl: * libnautilus/nautilus-view.c: (impl_Nautilus_View_title_changed), (nautilus_view_initialize_class): * libnautilus/nautilus-view.h: * src/nautilus-view-frame.c: (nautilus_view_frame_title_changed): * src/nautilus-view-frame.h: Added title parameter for the title_changed function. * src/nautilus-view-frame.c: (nautilus_view_frame_report_load_complete): Got rid of extra emission of report_load_complete, which is handled by view_frame_loaded now. * libnautilus-extensions/nautilus-background.c: (nautilus_background_initialize_class): * libnautilus-extensions/nautilus-entry.c: (nautilus_entry_initialize_class): * libnautilus-extensions/nautilus-icon-text-item.c: (iti_class_init): * libnautilus-extensions/nautilus-list.c: (nautilus_list_initialize_class): * src/nautilus-bookmark-list.c: (nautilus_bookmark_list_initialize_class): * src/nautilus-navigation-bar.c: (nautilus_navigation_bar_initialize_class): * src/nautilus-search-bar-criterion.c: (nautilus_search_bar_criterion_initialize_class): * src/nautilus-sidebar.c: (nautilus_sidebar_initialize_class): * src/nautilus-switchable-navigation-bar.c: (nautilus_switchable_navigation_bar_initialize_class): Use GTK_RUN_LAST instead of GTK_RUN_FIRST. * libnautilus-extensions/nautilus-directory-background.c: * libnautilus-extensions/nautilus-link-set.c: * libnautilus-extensions/nautilus-link.c: * src/file-manager/fm-icon-text-window.c: * src/file-manager/fm-icon-view.c: * src/file-manager/fm-properties-window.c: * src/nautilus-complex-search-bar.c: * src/nautilus-link-set-window.c: * src/nautilus-simple-search-bar.c: * src/nautilus-switchable-search-bar.c: Add includes needed now that the #include <gnome.h> was removed from nautilus-global-preferences.h. * libnautilus-extensions/nautilus-string.h: * libnautilus-extensions/nautilus-string.c: (nautilus_strcmp_case_breaks_ties): Added function, like g_strcasecmp, but falls back on strcmp for strings that match case-insensitive-wise. (nautilus_istr_compare): Use nautilus_strcmp_case_breaks_ties instead of nautilus_strcasecmp. * libnautilus-extensions/nautilus-file.c: (nautilus_file_compare_by_name): Use nautilus_strcmp_case_breaks_ties instead of g_strcasecmp. (nautilus_file_compare_by_directory_name): Use nautilus_strcmp_case_breaks_ties instead of g_strcasecmp. (get_automatic_emblems_as_integer): Convert automatic emblems to integer form for simple sorting. (prepend_automatic_emblem_names): Separate out the code that puts on automatic emblem names, and make it put them first, before any keyword-based emblems. (nautilus_file_compare_by_emblems): Compare the automatic emblems first, using the integer form. (nautilus_file_compare_by_type): Use nautilus_strcmp_case_breaks_ties instead of nautilus_strcmp. (nautilus_file_compare_for_sort): Use nautilus_strcmp_case_breaks_ties instead of g_strcasecmp. (nautilus_file_compare_name): Use nautilus_strcmp_case_breaks_ties instead of g_strcasecmp. (nautilus_file_is_mime_type): Use nautilus_strcasecmp instead of nautilus_strcmp. (nautilus_file_get_emblem_names): Use prepend_automatic_emblem_names. (sort_keyword_list_and_remove_duplicates): Sort with nautilus_strcmp_case_breaks_ties instead of compare_emblem_names. Automatic emblem names are now dealt with elsewhere. * libnautilus-extensions/nautilus-icon-container.c: (compare_icons_by_name): Use nautilus_strcmp_case_breaks_ties instead of nautilus_strcasecmp. * libnautilus-extensions/nautilus-glib-extensions.c: (nautilus_g_str_list_sort): Use nautilus_str_compare. (nautilus_g_str_list_sort_case_insensitive): Use nautilus_istr_compare. * components/services/vault/command-line/main.c: (main): * test/test-nautilus-mime-actions-set.c: (str_to_action_type): Use g_strcasecmp, not strcasecmp, for portability. * libnautilus-extensions/nautilus-global-preferences.h: * libnautilus-extensions/nautilus-global-preferences.c: Removed _get_disabled_sidebar_panel_view_identifiers since the logic now removes any not in the enabled list instead. * libnautilus-extensions/nautilus-view-identifier.h: * libnautilus-extensions/nautilus-view-identifier.c: (nautilus_view_identifier_list_copy): New function. (nautilus_view_identifier_compare): Now sorts properly instead of returning 1 for any two identifiers that are !=. * nautilus-clean.sh: Removed unadorned gconfd now that it's ancient history and because it makes the script seem to fail all the time. * src/nautilus-window-manage-views.h: * src/nautilus-window-manage-views.c: (compute_title): Renamed to a shorter name since it's a local function. (update_title): Renamed to a shorter name since it's a local function and made it do nothing if the title is already correct. (nautilus_window_update_internals): Simplified code by using the new cached title. (nautilus_window_has_really_changed): Removed sidebar panel logic that is no longer needed. (nautilus_window_free_load_info): Remove some unused fields. (nautilus_window_open_location): Removed unused parameter. (nautilus_window_open_location_in_new_window): Removed unused parameter. (load_content_view): Renamed to shorter name since it's a local function. (handle_view_failure), (cancel_location_change), (load_view_for_new_location), (set_view_location_and_selection): Broke out big pieces of code used by the state machine. Soon we won't have a state machine at all, but we'll still need functions like these. (nautilus_window_update_state): Removed a lot of the code and broke the remaining bits into the above functions. (nautilus_window_set_state_info): Removed sidebar management code and some now-unused state variables. (nautilus_window_stop_loading): Moved this function in here and renamed it so the whole state machine is in one place. (nautilus_window_set_content_view): Moved this function in here and renamed it so the whole state machine is in one place. (compare_view_identifier_with_iid), (nautilus_window_set_sidebar_panels): Wrote new code to set up the sidebar panels based on a list of view identifiers, based on the code that was used before when preferences change. Moved here so the whole state machine is in one place. * src/nautilus-window-toolbars.c: (toolbar_stop_callback): Call the new function nautilus_window_stop_loading. * src/nautilus-window-private.h: * src/nautilus-window.h: * src/nautilus-window.c: (nautilus_window_initialize_class): Removed the "content_view" argument. (nautilus_window_goto_uri): Removed the view frame parameter from the open_location call. (nautilus_window_constructed): Set up sidebars based on preferences when the window is created. (nautilus_window_set_arg): Removed the "content_view" argument. (nautilus_window_get_arg): Removed the "content_view" argument. (view_menu_switch_views_callback): Call the new function nautilus_window_set_content_view. (chose_component_callback), Call the new function nautilus_window_set_content_view. (nautilus_window_open_location_callback): Removed the view frame parameter from the open_location call. (nautilus_window_open_location_in_new_window_callback): Removed the view frame parameter from the open_location_in_new_window call. (nautilus_window_connect_view): Don't connect to report_load_progress any more. The view frame now handles this for us. (nautilus_window_set_content_view_widget): Renamed this to avoid confusion with the new nautilus_window_set_content_view which is used to change content views, given a new view identifier. (update_sidebar_panels_from_preferences): Renamed and changed to use the new nautilus_window_set_sidebar_panels call. |
||
Gene Z. Ragan
|
7ebc507200 |
Work in progress on allowing the user to set a HTTP proxy.
2000-09-26 Gene Z. Ragan <gzr@eazel.com> Work in progress on allowing the user to set a HTTP proxy. * components/mozilla/nautilus-mozilla-content-view.c: (nautilus_mozilla_content_view_initialize): * libnautilus-extensions/nautilus-global-preferences.c: (global_preferences_create_dialog), (global_preferences_register): * libnautilus-extensions/nautilus-global-preferences.h: |
||
Darin Adler
|
1035b5ea66 |
Fixed bug 640 (icon cache never frees images (awaiting GdkPixbuf
fix)). Also took care of bug 3145 (zillions of 'main_loops != NULL' assertion failures when quitting) and bug 3138 (Some code in the icon factory is cut and pasted from elsewhere). And a few unrelated things that came up while I was busy working on these. * configure.in: Applied patch from Dan Winship to fix handling of CFLAGS and LDFLAGS. Fixes some missing quoting and other mistakes. * libnautilus-extensions/Makefile.am: * libnautilus-extensions/nautilus-icon-factory-private.h: * libnautilus-extensions/nautilus-thumbnails.c: * libnautilus-extensions/nautilus-thumbnails.h: Broke out the thumbnailing code into its own source file for clarity. * libnautilus-extensions/nautilus-directory.c: * libnautilus-extensions/nautilus-file-utilities.h: * libnautilus-extensions/nautilus-file-utilities.c: (nautilus_make_directory_and_parents): Moved nautilus_make_directory_and_parents into a place where the thumbnail code can share it instead of requiring its own copy. * libnautilus-extensions/nautilus-global-preferences.h: * libnautilus-extensions/nautilus-global-preferences.c: (destroy_global_prefs_dialog), (global_preferences_get_dialog), (nautilus_global_preferences_dialog_update), (nautilus_global_preferences_initialize): * libnautilus-extensions/nautilus-preferences.h: * libnautilus-extensions/nautilus-preferences.c: (preferences_initialize_if_needed), (preferences_shutdown): * src/nautilus-application.c: (nautilus_application_destroy): Changed code so that it cleans up with g_atexit instead of with an explicit shutdown call. This makes it sequence correctly with other atexit code. * libnautilus-extensions/nautilus-icon-canvas-item.h: * libnautilus-extensions/nautilus-icon-canvas-item.c: (nautilus_icon_canvas_item_destroy), (nautilus_icon_canvas_item_set_attach_points), (emblem_layout_next): * libnautilus-extensions/nautilus-icon-container.c: (nautilus_icon_container_update_icon): Added a Nautilus prefix to the EmblemAttachPoints typedef, since it's public. * libnautilus-extensions/nautilus-icon-factory.h: * libnautilus-extensions/nautilus-icon-factory.c: Changed the icon factory structure so that it will actually free pixbufs when done with them. Made some other small fixes to the icon factory in passing, including removing some redundant code and fixing the logic for getting custom icons and deleting the icon factory and g_atexit time. * src/file-manager/fm-icon-view.c: (play_file), (preview_sound): Restructured the logic for playing sound previews a little to get rid of compiler warnings and close some loopholes in the old code. * src/nautilus-main.c: (is_event_loop_needed), (quit_if_in_main_loop), (nautilus_gtk_main_quit_all), (event_loop_unregister), (nautilus_main_event_loop_register), (nautilus_main_is_event_loop_mainstay), (nautilus_main_event_loop_quit), (main): Fixed the main loop quitting logic so that it is a bit simpler and works with the gnome-vfs code that runs event handling after the last main loop is gone. |
||
John Sullivan
|
27eb8cbd20 |
Fixed bug 1563 (Optionally hide ~-suffix files created by emacs)
Fixed bug 2274 (Implement Empty Trash confirmation preference) * libnautilus-extensions/nautilus-global-preferences.h: define NAUTILUS_PREFERENCES_CONFIRM_TRASH and NAUTILUS_PREFERENCES_SHOW_BACKUP_FILES. * libnautilus-extensions/nautilus-global-preferences.c: (global_preferences_create_dialog): Put these two new preferences on the Directory Views page; rename it Folder Views. (global_preferences_register): Register default values for new preferences. * libnautilus-extensions/nautilus-preferences-dialog.c: Increase initial height of window to account for new preferences. There's an open bug about reorganizing the whole window for later. * libnautilus-extensions/nautilus-file-operations.c: (confirm_empty_trash): Don't confirm if preference says not to. * src/file-manager/fm-directory-view.c: (fm_directory_view_initialize), (fm_directory_view_destroy): Add & remove callbacks to monitor these two new preferences. (queue_pending_files): Take SHOW_BACKUP_FILES preference into account. (file_name_from_uri): New helper routine to save a little code duplication. (fm_directory_view_confirm_deletion): Use yes_no dialog instead of simple dialog to match other usage; improve dialog title. (confirm_delete_from_trash): New function, confirms deleting items from trash unless preference says not to bother. (fm_directory_view_trash_or_delete_files): Call confirm_delete_from_trash before deleting items from trash. (compute_menu_item_info): Do or don't add ellipses to "Empty Trash" and "Delete From Trash" depending on preference setting. (schedule_update_menus_callback): New function, simple wrapper for schedule_update_menus (called when CONFIRM_TRASH preference changes). (filtering_changed_callback): Renamed and slightly generalized from show_hidden_files_changed_callback, called when either the SHOW_HIDDEN_FILES or SHOW_BACKUP_FILES preference changes. |
||
John Sullivan
|
4b2c7d7269 |
Fixed unreported bug where the built-in bookmarks never
displayed the first time after visiting any directory, and reversed sense of the preference to avoid problems with defaults not working for global preferences. * libnautilus-extensions/nautilus-global-preferences.h: Changed preference from NAUTILUS_PREFERENCES_SHOW_BUILT_IN_BOOKMARKS to NAUTILUS_PREFERENCES_HIDE_BUILT_IN_BOOKMARKS * src/nautilus-bookmarks-window.c: (create_bookmarks_window), (synch_built_in_bookmarks_preference_and_checkbox): Updated for reversed preference. * src/nautilus-window-private.h: * src/nautilus-window-menus.c: (append_bookmark_to_menu), (refresh_bookmarks_menu), (nautilus_window_initialize_bookmarks_menu), (nautilus_window_remove_bookmarks_menu_callback), (refresh_bookmarks_menu_idle_callback), (schedule_refresh_bookmarks_menu): Updated for reversed preference. Also, deleted refresh_dynamic_bookmarks, which was broken (removed but didn't replace built-in bookmarks), and renamed *dynamic_bookmarks* -> *bookmarks_menu* to parallel names for go_menu calls. |
||
John Sullivan
|
1b18a65620 |
Fixed bug 1247 ("Edit Novice Settings" menu item
needs to be handled better) Now this menu item is enabled, and choosing it explains that you can't edited the Novice settings but offers to switch to Intermediate and let you edit those settings. * libnautilus-extensions/nautilus-user-level-manager.c, * libnautilus-extensions/nautilus-user-level-manager.h: Made the #defines for the user level ints public, so code elsewhere could use them rather than hardwiring a bunch of 0s, 1s, and 2s. * libnautilus-extensions/nautilus-caption-table.h: * libnautilus-extensions/nautilus-caption.h: * libnautilus-extensions/nautilus-font-picker.h: * libnautilus-extensions/nautilus-global-preferences.h: * libnautilus-extensions/nautilus-password-dialog.h: * libnautilus-extensions/nautilus-preference.h: * libnautilus-extensions/nautilus-preferences-box.h: * libnautilus-extensions/nautilus-preferences-dialog.h: * libnautilus-extensions/nautilus-preferences-group.h: * libnautilus-extensions/nautilus-preferences-item.h: * libnautilus-extensions/nautilus-preferences-pane.h: * libnautilus-extensions/nautilus-preferences-private.h: * libnautilus-extensions/nautilus-preferences.h: * libnautilus-extensions/nautilus-radio-button-group.h: * libnautilus-extensions/nautilus-string-picker.h: * libnautilus-extensions/nautilus-text-caption.h: Changed the closing BEGIN_GNOME_DECLS in these header files to END_GNOME_DECLS. * src/nautilus-window-menus.c: (get_user_level_string_for_display): New function, extracted from get_customize_user_level_string. Returns the user level string to be put into user messages or menu item names. (get_customize_user_level_string): Now calls get_user_level_string_for_display (switch_and_show_intermediate_settings_callback): New function, switches to intermediate level and displays the user level settings dialog. (user_level_customize_callback): If the current user level is NAUTILUS_USER_LEVEL_NOVICE, puts up a dialog telling the user that the Novice settings can't be changed, and asking them if they want to switch to Intermediate and edit those settings. (get_user_level_image), (user_level_changed_callback), (nautilus_window_initialize_menus), (convert_menu_path_to_user_level), (convert_user_level_to_menu_path): Use #defines for user levels instead of hardwiring integers. (switch_to_user_level): New function, extracted from user_level_menu_item_callback. Switches to a specified user level and updates menu items & title image appropriately. (user_level_menu_item_callback): Now calls switch_to_user_level. (update_user_level_menu_items): Don't desensitize the Edit Settings item at Novice user level anymore. |
||
John Sullivan
|
59cf543878 |
Converted more preferences to not be coupled to user level,
following up on Ramiro's change to make this possible. Note that some of your preferences might experience a one-time change after this checkout (most noticeably the sidebar width). * libnautilus-extensions/nautilus-global-preferences.c: (global_preferences_register): Removed default values for sidebar width. * libnautilus-extensions/nautilus-global-preferences.h: Renamed NAUTILUS_PREFERENCES_ICON_VIEW_TEXT_ATTRIBUTE_NAMES to NAUTILUS_PREFERENCES_ICON_CAPTIONS. Moved NAUTILUS_PREFERENCES_ICON_CAPTIONS, NAUTILUS_PREFERENCES_SHOW_BUILT_IN_BOOKMARKS, and NAUTILUS_PREFERENCES_SIDEBAR_WIDTH to the non-user-level-coupled section, and gave them full gconf paths. Added clarifying comment to NAUTILUS_PREFERENCES_SIDEBAR_PANELS_NAMESPACE. * src/file-manager/fm-directory-view.c: Removed mysterious semicolon that was the first character in the file. (fm_directory_view_initialize), (fm_directory_view_destroy): Update for name change of NAUTILUS_PREFERENCES_ICON_CAPTIONS. * src/file-manager/fm-icon-text-window.c: (changed_attributes_option_menu_callback), (create_icon_text_window), (fm_icon_text_window_destroy_callback), (fm_get_text_attribute_names_preference_or_default): Update for name change of NAUTILUS_PREFERENCES_ICON_CAPTIONS. * src/nautilus-window.c: (nautilus_window_initialize): Teensy comment clarification. |
||
Ramiro Estrugo
|
944750f0f5 |
Task 1229. Need support for preferences not coupled to user level.
* libnautilus-extensions/nautilus-global-preferences.c: (global_preferences_register): Add FIXME for the issue of setting default values for non user level specific preferences. * libnautilus-extensions/nautilus-global-preferences.h: Add blurb explaining preferences that are user level specific and those that arent. * libnautilus-extensions/nautilus-preferences.c: (preferences_hash_node_add_by_user_level_callbacks), (preferences_hash_node_add_callback), New functions to deal with callbacks for preferences that are coupled to the user level. (preferences_hash_node_check_changes_func), (preferences_make_make_gconf_key), (preferences_gconf_by_user_level_callback), (preferences_gconf_callback), (nautilus_preferences_add_callback), New functions to deal with callbacks for preferences that are NOT coupled to the user level. (nautilus_preferences_set_boolean), (nautilus_preferences_get_boolean), (nautilus_preferences_set_string_list), (nautilus_preferences_get_string_list), (nautilus_preferences_set_enum), (nautilus_preferences_get_enum), (nautilus_preferences_set), (nautilus_preferences_get): Add support for preferences that are not coupled to the user level. Compute gconf keys by taking the preference name into account. If it begins with a "/" (indicating it is fully qualified) then treat it as a regular gconf key and use it as is. Otherwise, use the user_level_manager to compute a key according to the current user level. * libnautilus-extensions/nautilus-preferences.h: Add documentation explaining the two different ways to specify preference names depending on whether they are user level specific or not. * src/nautilus-first-time-druid.c: (set_http_proxy): Use the non user level specific perferences support instead of poking gconf directly. |
||
John Sullivan
|
9ed21b403b |
Fixed bug 1653 (new menu layout). View menu now contains
Show/Hide items for tool bar, location bar, sidebar, and status bar. The preference now controls only what you get for new windows. Any future "menus aren't quite right" issues should be filed as new bugs. * libnautilus-extensions/nautilus-global-preferences.h: * libnautilus-extensions/nautilus-global-preferences.c: (global_preferences_create_dialog), (global_preferences_register): Renamed NAUTILUS_PREFERENCES_DISPLAY_SIDEBAR and its ilk to NAUTILUS_PREFERENCES_START_WITH_SIDEBAR since these preferences now only affect the initial appearance of new windows. Also, clarified the text that appears in the preferences window for these. * src/nautilus-window-menus.c: Removed a bunch of code #ifdeffed WINDOW_ITEMS_TEST since the functionality it partly implemented is now implemented for real. (view_menu_show_hide_sidebar_callback), (view_menu_show_hide_tool_bar_callback), (view_menu_show_hide_location_bar_callback), (view_menu_show_hide_status_bar_callback): New menu callback functions that toggle the visibility of the various views. (nautilus_window_update_show_hide_menu_items): New function, sets the text in the show/hide menu items based on current visibility. (nautilus_window_initialize_menus): Put the Show/Hide menu items in the menu. * src/nautilus-window-private.h: Add prototype for nautilus_window_update_show_hide_menu_items. * src/nautilus-window.h: Renamed statusbar_ctx -> status_bar_context_id and statusbar_clear_id -> status_bar_clear_id; renamed show/hide locationbar/toolbar/statusbar to use location_bar, tool_bar, and status_bar (GTK bad English usage notwithstanding); added prototypes for nautilus_window_sidebar_showing and its ilk. * src/nautilus-window.c: (nautilus_window_initialize), (nautilus_window_destroy): Removed monitoring & unmonitoring of DISPLAY_SIDEBAR-type preferences since changing these preferences now has no dynamic effect. (nautilus_window_clear_status), (nautilus_window_set_status), (nautilus_window_constructed): Fixed wordgroupingification of status_bar et al. (show_dock_item), (hide_dock_item): New functions to share code of show/hide location bar & tool bar functions; these call nautilus_window_update_show_hide_menu_items now also. (dock_item_showing): New function, tests visibility of named dock item. (nautilus_window_hide_location_bar), (nautilus_window_show_location_bar), (nautilus_window_hide_tool_bar), (nautilus_window_show_tool_bar): Use new code-sharing functions. (nautilus_window_location_bar_showing), (nautilus_window_tool_bar_showing), (nautilus_window_sidebar_showing), (nautilus_window_status_bar_showing): New functions to test visibility (nautilus_window_hide_sidebar), (nautilus_window_show_sidebar), (nautilus_window_hide_status_bar), (nautilus_window_show_status_bar): These call nautilus_window_update_show_hide_menu_items now. (nautilus_window_show): Updated for naming changes. * RENAMING: Noted that the evil one-word "toolbar" phrase is still rampant in Nautilus. |
||
Ramiro Estrugo
|
1429dbd30e |
Changed "anti_aliased_mode" to "smooth_graphics_mode" cause it much
* libnautilus-extensions/nautilus-global-preferences.c: (global_preferences_create_dialog), (global_preferences_register): * libnautilus-extensions/nautilus-global-preferences.h: * src/file-manager/fm-directory-view.c: (smooth_graphics_mode_changed_callback), (fm_directory_view_initialize), (fm_directory_view_destroy): * src/file-manager/fm-directory-view.h: * src/file-manager/fm-icon-view.c: (get_icon_images_callback), (fm_icon_view_smooth_graphics_mode_changed), (fm_icon_view_initialize_class), (fm_icon_view_update_smooth_graphics_mode), (create_icon_container): * src/nautilus-sidebar-title.c: (nautilus_sidebar_title_initialize), (nautilus_sidebar_title_destroy), (smooth_graphics_mode_changed_callback): Changed "anti_aliased_mode" to "smooth_graphics_mode" cause it much smoother. |