summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* tweaked the transparency and timeout values.post-1_0_9Andy Hertzfeld2001-04-053-4/+10
| | | | | | * libnautilus-extensions/nautilus-icon-canvas-item.c: (create_annotation), (nautilus_icon_canvas_item_set_note_state): tweaked the transparency and timeout values.
* improved the note sizing, by actually measuring the text and adjusting forAndy Hertzfeld2001-04-055-52/+100
| | | | | | | | | | | | * libnautilus-extensions/nautilus-canvas-note-item.c: (nautilus_canvas_note_item_set_note_text), (draw_item_aa_text), (nautilus_canvas_note_item_draw): improved the note sizing, by actually measuring the text and adjusting for the canvas scale factor. * libnautilus-extensions/nautilus-icon-canvas-item.c: (hit_test): made hit-testing prefer emblems when they overlap the icon, since they're visually on top.
* if there is no annotation text, delete the annotation.Andy Hertzfeld2001-04-055-6/+77
| | | | | | | | | | | * libnautilus-extensions/nautilus-annotation.c: (nautilus_annotation_add_annotation): if there is no annotation text, delete the annotation. * libnautilus-extensions/nautilus-icon-canvas-item.c: (create_annotation): changed the annotation color/transparency to be more saturated, as specified by Arlo.
* fixed the partial drawing problems in aa-mode plus other tweaks.Andy Hertzfeld2001-04-045-24/+108
| | | | | | | | | | | | | | | | * libnautilus-extensions/nautilus-canvas-note-item.c: (update_item_bounding_box), (draw_item_aa_text), (nautilus_canvas_note_item_update): fixed the partial drawing problems in aa-mode plus other tweaks. * libnautilus-extensions/nautilus-icon-canvas-item.c: (nautilus_icon_canvas_item_initialize), (remove_annotation), (create_annotation_timeout_callback), (nautilus_icon_canvas_item_set_note_state), (nautilus_icon_canvas_item_event): made annotations appear only if you linger over the emblem for at least one second.
* some more work at making the annotations show up properly, but there'sAndy Hertzfeld2001-04-035-74/+140
| | | | | | | | | | | | | | | | * libnautilus-extensions/nautilus-canvas-note-item.c: (get_bounds), (update_item_bounding_box), (nautilus_canvas_note_item_set_note_text), (nautilus_canvas_note_item_set_arg), (nautilus_canvas_note_item_get_arg), (nautilus_canvas_note_item_translate), (nautilus_canvas_note_item_bounds), (nautilus_canvas_note_item_draw), (nautilus_canvas_note_item_point), (nautilus_canvas_note_item_update): * libnautilus-extensions/nautilus-canvas-note-item.h: some more work at making the annotations show up properly, but there's still more to do.
* restored the annotation preferences that was inadvertently left out ofAndy Hertzfeld2001-04-033-0/+77
| | | | | | | * libnautilus-extensions/nautilus-global-preferences.c: (global_preferences_create_dialog): restored the annotation preferences that was inadvertently left out of yesterday's merge.
* merged with HEAD to create the post-1_0_9 branch.Andy Hertzfeld2001-04-0373-351/+34404
| | | | | | | merged with HEAD to create the post-1_0_9 branch. The annotation preferences got disabled since the preference stuff changed alot; I'll fix that soon.
* added a way for sidebar views to specify small images that are displayedAndy Hertzfeld2001-04-0110-37/+431
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | added a way for sidebar views to specify small images that are displayed in their tab for notification purposes. Used that to make the notes component indicate if a note is present or not. * components/notes/nautilus-notes.c: (get_bonobo_properties), (set_bonobo_properties), (load_note_text_from_metadata), (done_with_file), (notes_load_metainfo), (notify_listeners_if_changed), (notes_save_metainfo), (do_destroy), (notes_get_indicator_image), (make_notes_view): added a property bag to the notes component to provide a tab_image property, and made it notify the listeners when the note text changes. * icons/Makefile.am: * icons/note-indicator.png: new notes indicator image from Arlo. * src/nautilus-sidebar-tabs.c: (tab_item_destroy), (pixbuf_composite), (draw_one_tab_plain), (draw_one_tab_themed), (get_tab_width), (draw_or_layout_all_tabs), (nautilus_sidebar_tabs_expose), (nautilus_sidebar_tabs_update_tab_item), (get_tab_item_from_view), (nautilus_sidebar_tabs_update_all_indicators), (nautilus_sidebar_tabs_update_indicator), (tab_indicator_changed_callback), (nautilus_sidebar_tabs_connect_view): * src/nautilus-sidebar-tabs.h: made the sidebar tabs hook up to the nautilus_view's tab_image property and use it to display a notification image in the tab if necessary. * src/nautilus-sidebar.c: (view_loaded_callback), (nautilus_sidebar_add_panel): connect the sidebar tabs to a newly added view, once the view is loaded. * src/nautilus-view-frame.c: (nautilus_view_frame_get_control): * src/nautilus-view-frame.h: added nautilus_view_frame_get_control so view properties can be accessed by the sidebar.
* Restore the "dance." It was needed after all to deal with situations whenRamiro Estrugo2001-04-013-4/+34
| | | | | | | | * src/nautilus-sidebar.c: (toggle_sidebar_panel): Restore the "dance." It was needed after all to deal with situations when the display become out of whack with the number of running sidebar panels, for example when a panel crashes. Added a comment to this effect as well.
* When the constrained interger values are change, we need to update theRamiro Estrugo2001-03-315-8/+29
| | | | | | | | | | | | | | | | | * libnautilus-extensions/nautilus-preferences-item.c: (nautilus_preferences_item_set_constrained_integer_values): When the constrained interger values are change, we need to update the displayed value as well, otherwise the very first time the preferences dialogs shows, the selected entry will be wrong. * libnautilus-extensions/nautilus-preferences.c: (preferences_key_make_for_getter): Fix for bug 7939 - preference value not set at Intermediate level when defined at Novice and visible at Advanced. The problem was that when a preference is not visible and it does not have a default for the current user_level, then the default value was 0. The fix was to do is to find the closest (lowest) user_level with a good default and use that.
* New functions. Move sidebar and sidebar panel specific code usedRamiro Estrugo2001-03-3117-494/+794
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* Fix a bug introduced by my last checkin. No longer need to remove callbackRamiro Estrugo2001-03-315-36/+26
| | | | | | | | | | * src/nautilus-window.c: (nautilus_window_initialize), (nautilus_window_destroy): Fix a bug introduced by my last checkin. No longer need to remove callback for builtin bookmark menu, as this is done automatically. This was causing a preferences critical. Also changed the other preference callback to be automatically removed.
* Use _while_alive for the preferences callback to avoid potential problem.Ramiro Estrugo2001-03-313-38/+96
| | | | | | | | | | | | | | | | * src/nautilus-window-menus.c: (nautilus_window_initialize_bookmarks_menu): Use _while_alive for the preferences callback to avoid potential problem. (update_user_level_menu_item), (user_level_changed_callback), (nautilus_window_initialize_menus_part_1): Fix bug 6615 - Holding open Preferences menu blocks user-level menu item changes. The user level menu items where getting out of whack if more that 1 NautilusWindow existed at the time of a user level change. The fix was to keep track of user level changes and update the menu items when needed. Also a tiny function renaming to make its function clearer.
* Fix bug 7952 - configure.in reference to mozilla source is wrong. UpdateRamiro Estrugo2001-03-313-6/+14
| | | | | | | | | * configure.in: Fix bug 7952 - configure.in reference to mozilla source is wrong. Update the Url to reflect reality. * README: Small tweak to the Mozilla requirements documentation.
* If the preferences dialog is currently selecting a pane, then make sureRamiro Estrugo2001-03-315-36/+80
| | | | | | | | | | | | | | * libnautilus-extensions/nautilus-preferences-box.c: (preferences_box_select_pane), (preferences_box_category_list_recreate), (nautilus_preferences_box_new), (nautilus_preferences_box_find_pane): If the preferences dialog is currently selecting a pane, then make sure that pane gets selected again (if visible) after a user level change. * libnautilus-extensions/nautilus-preferences-box.h: Small paramater name tweaking.
* New function to update the showing state of the item depending onRamiro Estrugo2001-03-319-84/+110
| | | | | | | | | | | | | | | | | | | | | | | | * libnautilus-extensions/nautilus-preferences-item.h: * libnautilus-extensions/nautilus-preferences-item.c: (nautilus_preferences_item_update_showing): New function to update the showing state of the item depending on preferences visibility. (preferences_item_construct), (preferences_item_value_changed_callback), (preferences_item_create_enum), (preferences_item_update_displayed_value): Make update_displayed_value private. It no longer needs to be called by the parent container. Since preference items now get updated by value changed callbacks. * libnautilus-extensions/nautilus-preferences-group.c: (nautilus_preferences_group_update): No need to update the showing state of the items over here. Simpy call the new preferences item function to do this. * libnautilus-extensions/nautilus-preferences-dialog.c: (nautilus_preferences_dialog_initialize), (nautilus_preferences_dialog_destroy): Have the callback automatically removed. Small style tweaking.
* reviewed by: John Harper <jsh@eazel.com>Ramiro Estrugo2001-03-313-2/+123
| | | | | | | | | | | | | | | | | * libnautilus-extensions/nautilus-preferences-item.c: (preferences_item_value_changed_callback), (preferences_item_create_enum), (preferences_item_create_short_enum), (preferences_item_create_boolean), (preferences_item_create_editable_string), (preferences_item_create_editable_integer), (preferences_item_create_constrained_integer), (preferences_item_create_font), (preferences_item_create_smooth_font): Add value changed callbacks for the preference associated with each item. In this callback, we update the diplay value of the item. This way, regardless of when and where the preference values change, the preferences dialog will always be up to date.
* Remove a rogue printf I left in by accident.Ramiro Estrugo2001-03-313-4/+6
| | | | | | * libnautilus-extensions/nautilus-preferences-item.c: (preferences_item_update_constrained_integer): Remove a rogue printf I left in by accident.
* Changed from Mike Fleming to hide the proxy authentication preferencesRamiro Estrugo2001-03-317-16/+45
| | | | | | | | | | | | | | | | | | | * libnautilus-extensions/nautilus-global-preferences.c: Changed from Mike Fleming to hide the proxy authentication preferences when the "Use Proxy" preference is FALSE. * libnautilus-extensions/nautilus-preferences-group.c: (nautilus_preferences_group_add_item): Change the item packing parameters so that items will be sized to their natural sizes. Otherwise they fill the avaialable space and screw up the usage of control preferences to properly hide items and have everything update accordingly. * libnautilus-extensions/nautilus-preferences-pane.c: (preferences_pane_control_preference_changed_callback): Force a queue resize when the pane is updated so that empty space resulting from controlled preferences items being hidden will go away.
* New functions to make this data structure more useful and easier to use.Ramiro Estrugo2001-03-317-90/+512
| | | | | | | | | | | | | | | | | | | | * libnautilus-extensions/nautilus-enumeration.h: * libnautilus-extensions/nautilus-enumeration.c: (nautilus_enumeration_new_from_tokens), (nautilus_enumeration_get_entry_position), (nautilus_enumeration_get_value_position), (nautilus_enumeration_get_entries), (nautilus_self_check_enumeration): New functions to make this data structure more useful and easier to use. Also added self checks. * libnautilus-extensions/nautilus-preferences-item.c: (preferences_item_destroy), (preferences_item_update_constrained_integer), (constrained_integer_changed_callback), (nautilus_preferences_item_set_constrained_integer_values): Use a NautilusEnumeration instead of maintaing 2 lists of entries and values ourselves. Makes this code a little bit simpler.
* update saved copy of notes when writing metadataMike Engber2001-03-312-1/+7
| | | | | * components/notes/nautilus-notes.c: (notes_save_metainfo): update saved copy of notes when writing metadata
* fix leakMike Engber2001-03-312-0/+7
| | | | | | * components/notes/nautilus-notes.c: (load_note_text_from_metadata): fix leak
* reviewed by: John Sullivan <sullivan@eazel.com>Michael Fleming2001-03-315-22/+104
| | | | | | | | | | | | | | | | | | | | 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:
* reviewed by: Mike Fleming <mfleming@eazel.com>Ramiro Estrugo2001-03-317-48/+103
| | | | | | | | | | | | | | | | | | | * libnautilus-extensions/nautilus-global-preferences.c: (global_preferences_create_dialog), (global_preferences_populate_pane): No need to explicitly add pane update callbacks for control preference. These happen automatically as needed now. * libnautilus-extensions/nautilus-preferences-pane.h: * libnautilus-extensions/nautilus-preferences-pane.c: (nautilus_preferences_pane_destroy), (nautilus_preferences_pane_find_group), (preferences_pane_control_preference_changed_callback), (nautilus_preferences_pane_add_control_preference): New function to add control preferences to the pane. For each unique control preference, a callback will be added to update the pane so that control actions (such as hiding or showing items) can take place as needed.
* reviewed by: John Sullivan <sullivan@eazel.com>Ramiro Estrugo2001-03-3110-134/+440
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * components/text/nautilus-text-view.c: (merge_bonobo_menu_items): Add a FIXME for a bug. * libnautilus-extensions/nautilus-gconf-extensions.h: * libnautilus-extensions/nautilus-gconf-extensions.c: (nautilus_gconf_get_value), (nautilus_gconf_value_is_equal), (nautilus_gconf_value_free): New convenience functions for using GConf values directly. * libnautilus-extensions/nautilus-gdk-font-extensions.c: Remove a FIXME for a bug i fixed recently. * libnautilus-extensions/nautilus-preferences.c: (preferences_callback_entry_invoke_function), (preferences_entry_invoke_callbacks_if_needed), (preferences_something_changed_notice), (preferences_global_table_check_changes_function), (preferences_entry_update_cached_value), (preferences_entry_ensure_gconf_connection), (preferences_callback_entry_free_func), (preferences_entry_free), (preferences_global_table_insert): Fix bug 5875 - Preference callbacks should only trigger when values change. The problem was twofold. First, when the user level changed, we would invoke all callbacks regardless of whether the value had changed or not. Second, when a GConf value changed notice triggered, we would invoke the corresponding Nautilus preference callback regardless of whether the value according to Nautilus changed or not. The fact that Nautilus preferences have a visibility attribute means that even if the GConf value changes, they may have a different value (a default due to high visibility for example)
* Removed bogus return_if_fail.John Sullivan2001-03-316-62/+57
| | | | | | | | | | | | | | | | | | | | | | | * libnautilus-extensions/nautilus-preferences.c: (update_auto_integer_or_boolean): Removed bogus return_if_fail. * libnautilus-extensions/nautilus-icon-container.c: (nautilus_icon_container_initialize_class): Set up auto-storage variable for click policy preference. (button_press_event): Use auto-storage variable instead of calling nautilus_preferences_get. * src/file-manager/fm-directory-view.c: (fm_directory_view_initialize_class): Set up auto-storage variables for three preferences checked elsewhere in this class. (open_alternate_callback), (open_location), (confirm_delete_directly), (confirm_delete_from_trash), (fm_directory_view_activate_files): Use auto-storage variables instead of calling nautilus_preferences_get. (confirm_trash_changed_callback), (enable_delete_changed_callback): Removed these functions. (real_update_menus): Removed code setting up callbacks to update static variables when the preference changed. The auto-storage variables have the same effect with much less code.
* Ensure notes have actually changed, by comparing to a copy of the oldMike Engber2001-03-302-14/+24
| | | | | | | | * components/notes/nautilus-notes.c: (load_note_text_from_metadata), (done_with_file), (notes_load_metainfo), (notes_save_metainfo): Ensure notes have actually changed, by comparing to a copy of the old value, before responding to change signals.
* reviewed by: the toad that lives under my tableEskil Heyn Olsen2001-03-308-3/+209
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-03-30 Eskil Heyn Olsen <eskil@eazel.com> reviewed by: the toad that lives under my table * components/services/trilobite/Makefile.am: Build utils/ * components/services/trilobite/helper/eazel-helper.c: (main): Added ability to launch a start-medusa script. * components/services/trilobite/libtrilobite/trilobite-root-helper. h: * components/services/trilobite/libtrilobite/trilobite-root-helper. c: (trilobite_root_helper_run): Added a enum for a start-medusa command. * components/services/trilobite/utils/Makefile.am: * components/services/trilobite/utils/eazel-helper-test.c: (get_password_dude), (main): Added a program to test root helper, for educational reasons mostly. * configure.in: Added components/services/trilobite/utils/Makefile
* reviewed by: Darin Adler <darin@eazel.com>John Sullivan2001-03-3015-184/+904
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed bug 7913 (fm_get_text_attribute_names_preference should cache preference value for speed) Fixed bug 7914 (nautilus_icon_canvas_item_initialize should cache smooth_font for speed) Added a new way to stay up-to-date with the value of a preference: you register a (typically global) variable with a particular preference, and the preferences machinery updates its value automatically whenever the preference changes. This is a replacement for using nautilus_preferences_get (and _get_integer and _get_boolean) repeatedly, and is much more efficient. We might eventually replace all the callers of _get_xxx with calls to this, and remove those calls entirely. I deployed this in the two specific cases Pavel found with profiling (bugs 7913 & 7914) and some more places. I'll deploy it in more places still later. * libnautilus-extensions/nautilus-preferences.h: * libnautilus-extensions/nautilus-preferences.c: (update_auto_string), (update_auto_integer_or_boolean): New helper functions to update an individual auto-storage variable. (preferences_entry_update_auto_storage): New function, updates all auto-storage variables for a particular preference. (preferences_something_changed_notice): update auto-storage variables before calling callbacks. (preferences_entry_ensure_gconf_connection): New function, extracted from preferences_entry_add_callback. (preferences_entry_add_callback): Now calls extracted function. (preferences_entry_add_auto_storage): New function, adds a single auto-storage variable for a given preference. (preferences_entry_check_remove_connection): New function, extracted from preferences_entry_remove_callback. (preferences_entry_remove_callback): Now calls extracted function. (preferences_entry_remove_auto_storage): New function, removes a single auto-storage variable for a given preference. (preferences_entry_free): Free the auto-storage list. (nautilus_preferences_add_auto_string), (nautilus_preferences_add_auto_integer), (nautilus_preferences_add_auto_boolean), (nautilus_preferences_remove_auto_string), (nautilus_preferences_remove_auto_integer), (nautilus_preferences_remove_auto_boolean): Public cover functions for the three basic types of auto-storage variables. (nautilus_preferences_remove_callback): Fixed small bug where this function would unnecessarily add an entry before removing it. * libnautilus-extensions/nautilus-font-factory.c: (nautilus_font_factory_get_font_from_preferences): Reworked to use auto-storage variable. * libnautilus-extensions/nautilus-global-preferences.c: (nautilus_global_preferences_initialize): Set up auto-storage variables for icon view & default smooth font preferences. (global_preferences_get_smooth_font), (global_preferences_get_smooth_bold_font): Changed to take font file name instead of preferences name. (nautilus_global_preferences_get_icon_view_smooth_font), (nautilus_global_preferences_get_default_smooth_font), (nautilus_global_preferences_get_default_smooth_bold_font): Use auto-storage variables. * libnautilus-extensions/nautilus-icon-canvas-item.c: (nautilus_icon_canvas_item_initialize_class): Set up auto-storage variable for click policy preference. (in_single_click_mode): Use auto-storage variable. * libnautilus-extensions/nautilus-icon-factory.c: (should_display_image_file_as_itself): Use auto-storage variable for thumbnail policy. * src/file-manager/fm-icon-text-window.c: (fm_get_text_attribute_names_preference): Use auto-storage variable for icon captions. * src/file-manager/fm-icon-view.c: (should_preview_sound): Use auto-storage variable for sound-preview preference. (fm_icon_view_initialize_class): Set up auto-storage variable for sound-preview preference.
* reviewed by: Pavel Cisler <pavel@eazel.com>Darin Adler2001-03-304-43/+81
| | | | | | | | | | | | * libnautilus-extensions/nautilus-file-operations.c: (sync_transfer_callback): Don't send out notifications in the case where we did a no-op move on top of self. (nautilus_file_operations_copy_move): Get rid of code that complains about move on top of self, since that's no longer considered an error. * configure.in: We require the new gnome-vfs now because we need the code that handles move to self better.
* reviewed by: Darin Adler <darin@eazel.com>Pavel Cisler2001-03-305-30/+485
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-03-29 Pavel Cisler <pavel@eazel.com> reviewed by: Darin Adler <darin@eazel.com> * libnautilus-extensions/nautilus-gdk-font-extensions.c: (nautilus_string_ellipsize_start): Rework to only measure one character width at a time when zeroing in on the right width. * libnautilus-extensions/nautilus-gdk-font-extensions.c: (nautilus_string_ellipsize_end), (nautilus_string_ellipsize_middle), * libnautilus-extensions/nautilus-gdk-font-extensions.h: Add nautilus_string_ellipsize_middle and nautilus_string_ellipsize_end. * libnautilus-extensions/nautilus-gdk-font-extensions.c: (nautilus_self_check_ellipsize), (nautilus_self_check_ellipsize_start), (nautilus_self_check_ellipsize_middle), (nautilus_self_check_ellipsize_end), (nautilus_self_check_gdk_font_extensions): Add test cases for the new calls.
* Comment out call to gnome_canvas_set_dither because it no longer serves aMike Engber2001-03-3011-206/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | * libnautilus-extensions/nautilus-background-canvas-group.c: Comment out call to gnome_canvas_set_dither because it no longer serves a useful purpose and it removes our dependancy on using a gnome-libs > 1.2.8 - bug 7922. (nautilus_background_canvas_group_initialize_common): * libnautilus-extensions/nautilus-background.c: (nautilus_background_destroy): * libnautilus-extensions/nautilus-background.h: * libnautilus-extensions/nautilus-directory-background.c: (theme_image_path_to_uri), (nautilus_file_background_get_default_settings_for_theme), (nautilus_file_background_get_default_settings), (nautilus_file_background_read_desktop_settings), (nautilus_file_background_write_desktop_settings), (nautilus_file_background_write_desktop_default_settings), (nautilus_file_background_matches_default_settings), (nautilus_file_background_is_set), (background_changed_callback), (initialize_background_from_settings): * src/nautilus-sidebar.c: (background_settings_changed_callback), (nautilus_sidebar_update_appearance): Remove combine mode from nautilus-background. It no longer serves any purpose (background always draw dithered now) - bug 2190 & 5516.
* Added missing \n characters to some long lines in the first time druidDarin Adler2001-03-292-9/+15
| | | | | | * de.po: Added missing \n characters to some long lines in the first time druid indexing messages to fix wide druid window.
* reviewed by: John Sullivan <sullivan@eazel.com>Darin Adler2001-03-297-39/+75
| | | | | | | | | | | | | | | | | | | | | | Fix bug 7915 (update_font called repeatedly causes slowdown). Fix black line on right side of icon view that I introduced when I was doing the cut/copy/paste work. * libnautilus-extensions/nautilus-label.h: * libnautilus-extensions/nautilus-label.c: (nautilus_label_set_text): Add a boolean result to tell whether the label text was changed for the convenience of callers who want to do work only if it changes. * src/nautilus-sidebar-title.c: (update_title): Only call update_font if the title changed. * src/file-manager/fm-directory-view.c: (real_realize): Set background to the normal background from the style. Now we see a gray background again instead of a black one. (fm_directory_view_initialize_class): Set scrollbar_spacing to 0 since the extra 3 pixels don't do us any good.
* reviewed by: Darin Adler <darin@eazel.com>John Sullivan2001-03-293-2/+17
| | | | | | | | | Josh noticed that the special "thumbnail is loading" icon was no longer used. Darin and I found the problem. * libnautilus-extensions/nautilus-icon-factory.c: (nautilus_icon_factory_get_icon_for_file): Store URI rather than local path for special "loading" image.
* some translations......Gediminas Paulauskas2001-03-291-1158/+1237
|
* reviewed by: John Sullivan <sullivan@eazel.com>Darin Adler2001-03-293-52/+119
| | | | | | | | | | | | | | | | | | | Fix bug where failed sidebar panel still shows up in the sidebar menu. * src/nautilus-sidebar.c: (get_page_iid): New function, shared by old and new code. (nautilus_sidebar_active_panel_matches_id_or_is_damaged): New name, uses get_page_iid. (nautilus_sidebar_hide_active_panel_if_matches): Call by new name. (any_panel_matches_id): New function. (toggle_sidebar_panel): Use presence in the sidebar to decide what to do, rather than using the previous setting of the preference. (nautilus_sidebar_add_panel_items): Use the presence of items in the sidebar to decide which items get checked, rather than using the preference settings. (nautilus_sidebar_add_panel), (nautilus_sidebar_remove_panel): Get rid of erroneous use of _().
* reviewed by: Darin Adler <darin@eazel.com>John Sullivan2001-03-293-6/+15
| | | | | | | * libnautilus-extensions/nautilus-global-preferences.c: At TigerT's suggestion, changed default thumbnail image limit from 1 MB to 3 MB to cover the range of most current digital cameras.
* Removed CVS merge thingyJosh Barrow2001-03-291-1/+0
| | | | Removed CVS merge thingy
* reviewed by: Darin Adler <darin@eazel.com>Mike Engber2001-03-292-0/+64
| | | | | | | | | | | reviewed by: Darin Adler <darin@eazel.com> * components/notes/nautilus-notes.c: (schedule_save_callback), (cancel_pending_save), (schedule_save), (set_note_text_from_metadata), (done_with_file), (notes_save_metainfo), (on_changed), (make_notes_view): Notes now saves changes after a timeout instead of waiting until focus change - bug 6884.
* reviewed by: Darin Adler <darin@eazel.com>John Sullivan2001-03-297-8/+52
| | | | | | | | | | | | | | Fixed bug 7921 ("Up" should select folder you came from) * src/nautilus-window-manage-views.h: * src/nautilus-window-manage-views.c: (nautilus_window_open_location_with_selection): New private-to-nautilus-window call, just calls existing private call open_location with the right parameters. * src/nautilus-window.c: (nautilus_window_go_up): Set current location as selection when going up.
* reviewed by: Ramiro Estrugo <ramiro@eazel.com>John Sullivan2001-03-299-30/+164
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* reviewed by: John Sullivan <sullivan@eazel.com>Darin Adler2001-03-296-72/+460
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A change to reduce the number of orphaned processes when Nautilus is not terminated cleanly. This is an architecture problem, and this hack only partly addresses it. Add code to NautilusViewFrame, NautilusView, and NautilusThrobber to destroy components when the corresponding widgets are destroyed. Since X destroys windows when processes go away, this tells us immediately when processes disappear. This does not help in the case where Nautilus happens to die after creating a component, but before attaching the widget to its parent. This is not a complete solution to the orphaned processes problem because of 2 other categories of orphaned processes: 1) the adapter factory 2) non-NautilusView components, which won't get the advantage of this fix because it's in Nautilus (a fix could go into Bonobo, or into each component) * libnautilus/nautilus-bonobo-workarounds.h: * libnautilus/nautilus-bonobo-workarounds.c: (set_gone_flag), (nautilus_bonobo_object_force_destroy), (object_is_gone), (remote_check_data_free), (remote_check_timed_callback), (remote_check_destroy_callback), (nautilus_bonobo_object_call_when_remote_object_disappears), (force_destroy_cover), (nautilus_bonobo_object_force_destroy_when_owner_disappears): New code, implementing the machinery to notice when remote objects go away and to self-destruct when they do. Also code that does the timeout that used to be in NautilusViewFrame. * libnautilus/nautilus-view.c: (widget_destroyed_callback), (nautilus_view_construct_from_bonobo_control): Connect to the widget's destroy signal, and self-destruct when it happens. * components/throbber/nautilus-throbber.c: (nautilus_throbber_destroy), (null_pointer_callback), (nautilus_throbber_initialize): Destroy the BonoboControl when the throbber (a widget) is destroyed. Requires noticing when the control goes away (the old code just had a stale pointer to it). * src/nautilus-view-frame.c: (destroy_view), (nautilus_view_frame_destroy), (view_frame_failed_callback), (queue_view_frame_failed), (view_frame_failed_cover), (check_socket_gone_idle_callback), (check_socket_gone_callback), (attach_view): Use the new machinery instead of doing it ourselves, but sadly had to add some fairly complex code to catch the case where the socket is destroyed because the plug is gone.
* Fix build bustage -- missed one of the "pr" -> "per" things.Robey Pointer2001-03-292-1/+8
| | | | | | | * components/services/install/command-line/eazel-test-softcat.c: (main): Fix build bustage -- missed one of the "pr" -> "per" things.
* reviewed by: Darin Adler <darin@eazel.com>John Harper2001-03-299-385/+355
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-03-28 John Harper <jsh@eazel.com> reviewed by: Darin Adler <darin@eazel.com> Re-fixed bug 6820 (directory sort order is different in tree view): * components/tree/nautilus-tree-view.c: realized that I can get the tree model node directly from the row's data pointer, there's no need to map the row to a node (which is a linear operation). Also, cache the clist->tree-view mapping to avoid a call to gtk_object_data_get each comparison (create_tree): enabled the custom comparison function Work to share more drawing code between NautilusList and NautilusCTree: * libnautilus-extensions/nautilus-ctree.c (get_cell_style, draw_cell_pixbuf): deleted. Use similarly named nautilus_list_ functions instead (draw_row): only draw the special tree pixbuf if `height > 0'. This fixes a weird clipping bug * libnautilus-extensions/nautilus-list.c (get_cell_style, draw_cell_pixbuf): renamed as nautilus_list_X Ensure that the list view fetches the correct icons (i.e. special anti-aliased images if the view is in smooth mode) * libnautilus-extensions/nautilus-list.c (nautilus_list_is_anti_aliased): new function * src/file-manager/fm-list-view.c (fm_list_view_update_smooth_graphics_mode): call update_icons (fm_list_view_get_emblem_pixbufs_for_file, install_row_images): pass the correct aa mode to the icon factory Draw tree-view icons in smooth mode when appropriate: * components/tree/nautilus-tree-view.c (update_smooth_graphics_mode, smooth_graphics_mode_changed_callback): new functions. As yet they don't refetch all icons when the smooth preference changes.. Fixed the bug introduced recently where the tree gets a title bar: * libnautilus-extensions/nautilus-list.c (nautilus_list_realize): don't turn on titles * src/file-manager/fm-list-view.c (create_list): set the CLIST_SHOW_TITLES flag
* reviewed by: Darin Adler <darin@eazel.com>Mike Engber2001-03-292-18/+71
| | | | | | | | | reviewed by: Darin Adler <darin@eazel.com> * components/notes/nautilus-notes.c: (set_note_text_from_metadata), (done_with_file), (notes_load_metainfo), (notes_save_metainfo), (do_destroy): Notes updates text on metadata changes - bug 4422.
* reviewed by: Eskil Heyn Olsen <eskil@eazel.com>Robey Pointer2001-03-288-69/+104
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | who glanced at it before passing out * components/services/install/lib/eazel-install-logic2.c: (dedupe_foreach_depends): Backport a fix for deduping from the branch. (This may fix some bugs related to deduping suites; to be honest, nobody remembers what this patch was originally supposed to do.) * components/services/install/lib/eazel-install-object.c: (eazel_install_initialize): * components/services/install/lib/eazel-package-system-types.c: * components/services/install/lib/eazel-softcat-private.h: * components/services/install/lib/eazel-softcat.h: Change 'eazel_softcat_set_packages_pr_query' to 'eazel_softcat_set_packages_per_query' because I just can't see one extra letter making a difference in a function name that long anyway. * components/services/install/lib/eazel-softcat.c: (eazel_softcat_initialize), (eazel_softcat_set_packages_per_query), (eazel_softcat_get_info), (eazel_softcat_get_info_plural): Backport a fix for suites from the branch. This caused wrong error messages for the case where a suite contained only one package (which is currently nearly 99% of all suites in softcat). Adam noticed this a few days ago. * nautilus-installer/src/installer.c: (report_unusual_errors): Fix a trivial FIXME. These should be the last of the patches that need to be backported from the 1.0 branch.
* Added a (bool)packagedata_is_suite call which checks if the suite_id fieldEskil Heyn Olsen2001-03-285-9/+48
| | | | | | | | | | | | | | | | | | * components/services/install/lib/eazel-package-system-types.h: * components/services/install/lib/eazel-package-system-types.c: (flatten_packagedata_dependency_tree), (packagedata_list_prune), (packagedata_is_suite): Added a (bool)packagedata_is_suite call which checks if the suite_id field is actually a suite or something else. * components/services/install/lib/eazel-install-logic2.c: (prune_failed_packages_helper), (get_softcat_info), (post_check), (check_dependencies_foreach), (do_dep_check_internal), (check_no_two_packages_has_same_file), (check_conflicts_against_already_installed_packages): * components/services/install/lib/eazel-install-protocols.c: (eazel_install_fetch_package): Use the packagedata_is_suite call.
* reviewed by: Darin Adler <darin@eazel.com>Jason Leach2001-03-283-2/+10
| | | | | | | | | | 2001-03-28 Jason Leach <jasonleach@usa.net> reviewed by: Darin Adler <darin@eazel.com> * libnautilus-extensions/nautilus-directory-private.h: builddir != srcdir fix by changing #include "nautilus-idle-queue.h" to #include <libnautilus/nautilus-idle-queue.h>.
* reviewed by: Eli Goldberg <eli@eazel.com>John Sullivan2001-03-283-14/+23
| | | | | | | * libnautilus-extensions/nautilus-global-preferences.c: Tweaked wording of font & font size preferences. They're still a little awkward, but I think mostly in ways that reflect their actual use, which is still a little awkward.