- 10 Feb, 2000 1 commit
-
-
Darin Adler authored
container. Straightened out the use of various coordinate systems and bounds calculations and removed much unused code inherited from the GdkPixbuf canvas item class that Andy cloned our code from. Changed the class so it doesn't scale icons any more -- we leave that to the icon factory so the scaled icons can be cached. * libnautilus/gnome-icon-container-dnd.c: * libnautilus/gnome-icon-container-private.h: * libnautilus/gnome-icon-container.c: * libnautilus/nautilus-icons-view-icon-item.c: * libnautilus/nautilus-icons-view-icon-item.h: Made extensive changes to the icon item class, including getting rid of the "x", "y", "width", and "height" attributes, adding a new "font" attribute, changing the "label" attribute name to "text" to be more consistent with other canvas items, simplifying the update logic for now (we can recomplicate it later if need be), changing the pixbuf to have a fixed size in pixels instead of being scaled with the pixels_per_unit and changing the pixbuf when we change zoom levels, and other misc. cleanup. (nautilus_icons_view_icon_item_get_arg): Fixed bug for "label" which would return a non-strdup'd piece of text. (draw_or_measure_text_box): Fixed bug where width of the selection box would be based on the length of the last line of text, not the widest, and extra GCs would be created for each line of text. * libnautilus/nautilus-icons-controller.h: * libnautilus/nautilus-icons-controller.c: (nautilus_icons_controller_get_icon_image): * src/file-manager/fm-icons-controller.c: (fm_icons_controller_get_icon_image): Changed the interface so that the icons controller specifies the icon as a NautilusScalableIcon instead of a GdkPixbuf. This lets the icon container get the appropriate icon for size as it zooms. * libnautilus/gdk-extensions.h: * libnautilus/gdk-extensions.c: (nautilus_gdk_font_equal): Added a version of gdk_font_equal that works with NULL for the font. Maybe we need a naming scheme for these NULL-tolerant variations on basic calls. * src/ntl-uri-map.c: (nautilus_navinfo_free): * src/ntl-window-msgs.c: (nautilus_window_change_location_2): Fixed a NULL dereference that would happen when @navi was NULL. * libnautilus/nautilus-directory.c: (nautilus_directory_try_to_read_metafile): Fixed error handling for case when gnome_vfs_read fails. Fixed error handling for case where metafile_info.size won't fit into a size_t. Switched back to g_malloc instead of g_alloca, since the size of a file might be too big for the stack. In the long run, we will feed the file data directly to the XML code, so this is a bit temporary. Removed the assert that Elliot added to help track down the giant files sizes coming from gnome-vfs; the failure in g_malloc will be easy to debug, unlike the failure in g_alloca. (The assert was added without a ChangeLog entry.)
-
- 08 Feb, 2000 1 commit
-
-
John Sullivan authored
menu items; first (primitive) cut at UI for choosing which text to display beneath icons, will improve soon.
-
- 04 Feb, 2000 1 commit
-
-
John Sullivan authored
levels. Currently the pattern is hardwired; next I'll make it configurable.
-
- 03 Feb, 2000 1 commit
-
-
John Sullivan authored
levels.
-
- 31 Jan, 2000 4 commits
-
-
Darin Adler authored
-
Darin Adler authored
cleanup on the icon container, and I am checking in some of that before the stretching is implemented. * libnautilus/gnome-icon-container-private.h: * libnautilus/gnome-icon-container.c: (icon_is_in_region): Got rid of width and height stored in each icon. * libnautilus/gnome-icon-container.c: A lot of cleanup, including getting rid of the icon_get_text_bounding_box function. * libnautilus/gnome-icon-container.c: (gnome_icon_container_begin_stretch): (gnome_icon_container_stretch): (gnome_icon_container_end_stretch): (button_release_event): (motion_notify_event): (handle_icon_button_press): First cut at adding stretching hooks in button handlers. * libnautilus/nautilus-icons-view-icon-item.c: (nautilus_icons_view_draw_text_box): Rewrote to fix bug with position of text when it's too long for a single line. * libnautilus/nautilus-glib-extensions.h: Added a macro named NAUTILUS_G_N_ELEMENTS. src/ntl-index-panel.c: src/explorer-location-bar.c: libnautilus/gtkflist.c: Used the NAUTILUS_G_N_ELEMENTS macro.
-
Andy Hertzfeld authored
made the keyboard selection rectangle work again, not as a separate canvas item like it used to be, but as an attribute drawn by the icon item.
-
Darin Adler authored
* nautilus-icons-view-icon-item.c: (nautilus_icons_view_draw_text_box): Changed it to not attempt to create a GC just to measure the text. This makes it work when the widget is not realized. * nautilus-icons-view-icon-item.h: nautilus-icons-view-icon-item.c: gnome-icon-container-dnd.c: (nautilus_icons_view_icon_item_center_offset): Changed the parameter type to NautilusIconsViewIconItem. * fm-directory-view.c: (stop_load): (fm_directory_view_load_uri): Fixed code so that if you stop loading more than once, or stop before you even start, it won't send extra progress requests to the Nautilus shell or call stop_monitoring extra times on the NautilusDirectory object. * nautilus-icons-view-icon-item.h: nautilus-icons-view-icon-item.c: gnome-icon-container-dnd.c: Quick cleanup of the new NautilusIconsViewIconItem class. * libnautilus/gdk-extensions.c: libnautilus/gnome-icon-container-dnd.c: libnautilus/gnome-icon-container.c: libnautilus/gtkflist.c: libnautilus/nautilus-background-canvas-group.c: libnautilus/nautilus-background.c: libnautilus/nautilus-debug.c: libnautilus/nautilus-default-file-icon.c: libnautilus/nautilus-directory.c: libnautilus/nautilus-icon-factory.c: libnautilus/nautilus-icons-controller.c: libnautilus/nautilus-icons-view-icon-item.c: libnautilus/nautilus-lib-self-check-functions.c: libnautilus/nautilus-self-checks.c: libnautilus/nautilus-string.c: src/explorer-location-bar.c: src/file-manager/dfos-corba.c: src/file-manager/dfos-xfer-progress-dialog.c: src/file-manager/dfos-xfer.c: src/file-manager/dfos.c: src/file-manager/fm-directory-view-icons.c: src/file-manager/fm-directory-view-list.c: src/file-manager/fm-directory-view.c: src/file-manager/fm-icons-controller.c: src/file-manager/fm-main.c: src/nautilus-self-check-functions.c: src/ntl-index-panel.c: Got rid of #ifdef HAVE_CONFIG_H. Elliot says that we must always include <config.h>, but there's no reason to include that ifdef since we don't plan on building without a <config.h> ever.
-
- 30 Jan, 2000 1 commit
-
-
Andy Hertzfeld authored
made fonts scale according to zoom level enabled/disabled zoom items in context menu as necessary
-
- 28 Jan, 2000 1 commit
-
-
John Sullivan authored
storage leaks.
-
- 27 Jan, 2000 2 commits
-
-
Andy Hertzfeld authored
hooked up zooming to the background context menu
-
Darin Adler authored
* libnautilus/gnome-icon-container.c: (icon_select): Fixed a bug that was causing some icons to not get selected or unselected properly due to strangeness of bit fields. * libnautilus/gnome-progressive-loader.h: libnautilus/gnome-progressive-loader.c: libnautilus/Makefile.am: Got rid of GnomeProgressiveLoader. We're not going to use it. * RENAMING: Andy added a new file that matched RENAMING, but then I changed my mind about a renaming, spawning yet more renaming! * src/file-manager/fm-directory-view-icons.c: Just tiny reformatting.
-
- 26 Jan, 2000 2 commits
-
-
Elliot Lee authored
* libnautilus/Makefile.am: Link to $(BONOBO_LIBS) * libnautilus/gnome-icon-container.c: Include <string.h> to get prototype for memset.
-
Maciej Stachowiak authored
* components/help/hyperbola-main.c, components/help/hyperbola-nav-tree.c, components/history/ntl-history-view.c, components/html/main.c, components/html/ntl-web-browser.c, components/websearch/ntl-web-search.c, idl/nautilus.idl, libnautilus/gnome-icon-container.c, libnautilus/gnome-progressive-loader.c, libnautilus/gnome-progressive-loader.h, libnautilus/libnautilus.h, libnautilus/ntl-content-view-frame.c, libnautilus/ntl-meta-view-frame.c, libnautilus/ntl-view-frame.c, libnautilus/ntl-view-frame.h, src/nautilus.h, src/ntl-index-panel.c, src/ntl-view-bonobo-control.c, src/ntl-view-bonobo-subdoc.c, src/ntl-view-frame-svr.c, src/ntl-view-nautilus.c, src/ntl-view-private.h, src/ntl-view.c, src/ntl-view.h, src/ntl-window.c, src/ntl-window.h, src/file-manager/dfos-corba.h, src/file-manager/dfos-xfer.c, src/file-manager/dfos-xfer.h, src/file-manager/fm-main.c: Build with the recent Bonobo global renaming, and Havoc's changes. A patch from Kjartan Maraas <kmaraas@online.no> and scripts from Nat Friedman <nat@helixcode.com> were a very helpful starting point.
-
- 25 Jan, 2000 2 commits
-
-
Darin Adler authored
* libnautilus/gnome-icon-container-dnd.c: (create_selection_shadow): (set_gnome_icon_list_selection): (get_gnome_icon_list_selection): (gnome_icon_container_receive_dropped_icons): Redid drag code so that it will work if there are multiple windows involved, although we still don't handle copies. Changed selection to include the width and height of the icon, and to hold the top left of the icon. * libnautilus/gnome-icon-container-private.h: libnautilus/gnome-icon-container.c: (move_icon): (gnome_icon_container_move_icon): Made move_icon visible to the DnD code, and added a raise boolean so it could move and icon and bring it to the front. (gnome_icon_container_get_icon_by_uri): (gnome_icon_container_select_list_unselect_others): Added new functions for use by DnD code. * libnautilus/gnome-icon-container-private.h: libnautilus/gnome-icon-container.c: (handle_icon_button_press): Got rid of unused drag_x_offset and drag_y_offset. * libnautilus/gnome-icon-container.c: (icon_select): (icon_toggle_selected): (select_icon): (select_one_unselect_others): (toggle_icon): (unselect_all_but_one): (unselect_all): (rubberband_select_in_cell): (kbd_move_to): (kbd_space): (linger_select_timeout_cb): (handle_icon_button_press): (gnome_icon_container_select_all): (gnome_icon_container_unselect_all): Cleaned up selection logic and made it simpler. * libnautilus/gnome-icon-container.h: libnautilus/gnome-icon-container.c: (gnome_icon_container_xlate_selected): Got rid of unused function. * libnautilus/nautilus-self-checks.h: libnautilus/nautilus-self-checks.c: (nautilus_self_checks_failed): (nautilus_exit_if_self_checks_failed): src/ntl-main.c: (main): Added blank lines before and after the first and last failed checks when at least one check fails. * src/ntl-view.c: (nautilus_view_destroy): Removed a straggler message. (I hope Elliot's not still using it.) * RENAMING: Some new name ideas.
-
Andy Hertzfeld authored
icons are now drawn with a custom canvas item instead of with a group. This is a first cut, it doesn't work at non-unity scale factors plus other small problems.
-
- 24 Jan, 2000 2 commits
-
-
Darin Adler authored
ask questions and perform actions, even though only the FMDirectoryViewIcons knows how to answer the questions and perform the actions. Replaced use of nautilus_file_get_info with specific accessors for various file info. * libnautilus/Makefile.am: libnautilus/nautilus-icons-controller.h: libnautilus/nautilus-icons-controller.c: libnautilus/gnome-icon-container-private.h: libnautilus/gnome-icon-container.h: libnautilus/gnome-icon-container.c: (icon_new_pixbuf): (gnome_icon_container_new): (gnome_icon_container_add): (gnome_icon_container_add_auto): Added NautilusIconsController, an interface provided so that the file manager can connect the icons up with the file code. This is all so we can keep the view/controller separation. This eliminates the need to pass around the icon name all the time, so the signals have changed to not take the icon name as a parameter. * src/file-manager/Makefile.am: src/file-manager/fm-icons-controller.c: src/file-manager/fm-icons-controller.h: Added FMIconsController, the actual controller used by the file manager instance of GnomeIconContainer. src/file-manager/fm-directory-view-icons.c: (create_icon_container): (add_icon_if_already_positioned): (add_icon_at_free_position): (icon_container_activate_cb): (fm_directory_view_icons_icon_moved_cb): Create and use the FMIconController. * libnautilus/gnome-icon-container-private.h: libnautilus/gnome-icon-container-dnd.c: (set_gnome_icon_list_selection): (set_uri_list_selection): libnautilus/gnome-icon-container.c: (gnome_icon_container_set_base_uri): src/file-manager/fm-directory-view-icons.c: (set_up_base_uri): (fm_directory_view_icons_begin_loading): Get rid of the old base_uri technique for handling drags. Instead the icon controller supplies URIs for icons when requested. * RENAMING: Proposed that we use NautilusIconsView as the new name for GnomeIconContainer instead of NautilusIconContainer. * libnautilus/gnome-icon-container-private.h: libnautilus/gnome-icon-container.h: libnautilus/gnome-icon-container.c: (gnome_icon_container_initialize): (handle_icon_enter_notify): (handle_icon_leave_notify): Renamed browser mode to linger selection mode. * libnautilus/gnome-icon-container-private.h: libnautilus/gnome-icon-container.h: libnautilus/gnome-icon-container.c: (icon_configure): (icon_position): (change_icon_mode): (gnome_icon_container_initialize): (gnome_icon_container_set_icon_mode): (gnome_icon_container_get_icon_mode): src/file-manager/fm-directory-view-icons.c: (fm_directory_view_icons_initialize): Got rid of icon mode, since we won't be using it. * libnautilus/gnome-icon-container-dnd.c: (get_gnome_icon_list_selection): Changed geometry parsing so it will not ignore extra characters after the numeric geometry. (gnome_icon_container_receive_dropped_icons): The code here tried to work when dragging icons between windows, but the implementation was actually only good within the same window, so I modified it to check for that case. * libnautilus/gnome-icon-container-dnd.c: (create_selection_shadow): (set_gnome_icon_list_selection): libnautilus/gnome-icon-container.c: (icon_position): Renamed GNOME_ICON_CONTAINER_ICON_XOFFSET to GNOME_ICON_CONTAINER_ICON_X_OFFSET and GNOME_ICON_CONTAINER_ICON_YOFFSET to GNOME_ICON_CONTAINER_ICON_Y_OFFSET. We use an underscore between words in identifiers. * libnautilus/gnome-icon-container.c: (destroy): Added code to remove timeouts and idles when the container is destroyed. * libnautilus/nautilus-directory.h: libnautilus/nautilus-directory.c: (nautilus_file_get_info): Get rid of the direct call to get GnomeVFSFileInfo. All info is accessed through individual functions. (nautilus_file_get_size): (nautilus_file_get_type): (nautilus_file_get_mime_type): (nautilus_file_is_executable): (nautilus_file_is_symbolic_link): Added new accessor functions as needed. src/file-manager/fm-directory-view.c: (display_selection_info): src/file-manager/fm-icon-cache.c: (fm_icon_cache_get_icon_set_for_file): (fm_icon_cache_get_icon_for_file): Change code to use the accessors instead of get_info. * libnautilus/nautilus-gtk-macros.h: (NAUTILUS_ASSIGN_MUST_OVERRIDE_SIGNAL): Changed macro to take a class pointer of the right type instead of taking both a casting macro name and a class pointer. src/file-manager/fm-directory-view.c: (fm_directory_view_initialize_class): Changed existing uses of macro to match. * src/file-manager/Makefile.am: src/file-manager/fm-icon-cache.c: src/file-manager/fm-default-file-icon.h: src/file-manager/fm-default-file-icon.c: Moved the default icon into its own file.
-
John Sullivan authored
activation on single-click when modifying the selection.
-
- 21 Jan, 2000 2 commits
-
-
Darin Adler authored
* libnautilus/Makefile.am: libnautilus/gnome-icon-container-layout.c: libnautilus/gnome-icon-container-layout.h: libnautilus/gnome-icon-container.c: libnautilus/gnome-icon-container.h: src/file-manager/fm-directory-view-icons.c: src/file-manager/fm-directory-view-icons.h: Got rid of the GnomeIconContainerLayout. This was the old mechanism for saving and loading icon positions and we have a better signal-based one. Also made the new mechanism work more the way that Ettore had intended to make the layout work, where all the icons that have preassigned positions get positioned first, then the ones that are auto positioned. In the long run, we'll need something a bit fancier. * libnautilus/gnome-icon-container-dnd.c: libnautilus/gnome-icon-container.c: libnautilus/gnome-icon-container.h: libnautilus/gnome-icon-container-private.h: Change the priv pointer to be named details to match what we use in other places in Nautilus.
-
Andy Hertzfeld authored
disabled the pernicious call to relayout in size_allocate, at least temporarily
-
- 20 Jan, 2000 1 commit
-
-
Darin Adler authored
* src/gnome-icon-container.c: (gnome_icon_container_xlate_selected): Fixed a bug where dragging an icon would cause the "kbd_selected" icon to scroll into view. Just passed FALSE instead of TRUE for "schedule_visibility". * libnautilus/nautilus-background.c: (nautilus_background_draw_flat_box): Tiny change, to fit our style rule against initializing.
-
- 19 Jan, 2000 4 commits
-
-
Darin Adler authored
and read in when you visit a directory. But the code then immediately re-lays out the icons, so the position is lost! * src/file-manager/fm-directory-view-icons.c: (fm_directory_view_icons_icon_moved_cb): (fm_directory_view_icons_initialize): (add_container_icon): Save icon position when an icon is moved. Get icon position when an icon is first created. * libnautilus/nautilus-directory.c: (nautilus_directory_get_metadata_from_node): (nautilus_directory_get_metadata): (nautilus_directory_create_metafile_tree_root): (nautilus_directory_get_metadata): (nautilus_directory_set_metadata): (nautilus_directory_get_file_metadata): (nautilus_directory_set_file_metadata): Added the routines to get and set metadata for individual files. * libnautilus/nautilus-string.h: libnautilus/nautilus-string.c: (nautilus_eat_strcmp): (nautilus_string_to_int): (nautilus_eat_string_to_int): Made new string functions that free the existing strings, and a function to convert an int to a string. * libnautilus/gnome-icon-container.h: libnautilus/gnome-icon-container.c: (move_icon): (class_init): (handle_icon_button_press): Added context_click_background and icon_moved signals, and renamed context_click to context_click_icon. * configure.in: Turned -Wunused back on. I had to turn -W off, but I think it's worth it.
-
Darin Adler authored
on the icon view. * libnautilus/gnome-icon-container-dnd.h: libnautilus/gnome-icon-container-dnd.c: (gnome_icon_container_position_shadow): (drag_data_received_cb): (gnome_icon_container_ensure_drag_data): (drag_motion_cb): (drag_drop_cb): (gnome_icon_container_receive_dropped_icons): (gnome_icon_container_free_drag_data): (drag_leave_cb): Added support for receiving dropped colors to change the background of a GnomeIconContainer. * src/file-manager/fm-directory-view-icons.c: (fm_directory_view_icons_initialize_class): (fm_directory_view_icons_clear): (fm_directory_view_icons_background_changed_cb): Added code to load and save the background color from metadata. * libnautilus/gdk-extensions.c: (nautilus_gradient_new): Changed nautilus_gradient_new to handle NULLs in the same way that the rest of the gradient functions do instead of NULL being an illegal input value. * src/file-manager/fm-directory-view.h: src/file-manager/fm-directory-view.c: (fm_directory_view_initialize): (fm_directory_view_destroy): (fm_directory_view_get_model): (fm_directory_view_load_uri): Added a NautilusDirectory object to each directory view, accessed by subclasses with a call to fm_directory_view_get_model. * libnautilus/nautilus-gtk-extensions.h: libnautilus/nautilus-gtk-extensions.c: (gnome_icon_container_dropped_icon_feedback): (nautilus_gdk_selection_data_copy_deep): Added deep versions of these GtkSelectionData functions. * libnautilus/nautilus-gtk-macros.h: (NAUTILUS_DEFINE_GET_TYPE_FUNCTION): (NAUTILUS_DEFINE_CLASS_BOILERPLATE): Added definition and initialization of the parent_class global to NAUTILUS_DEFINE_GET_TYPE_FUNCTION and renamed it to NAUTILUS_DEFINE_CLASS_BOILERPLATE. * libnautilus/nautilus-background-canvas-group: (nautilus_background_canvas_group_initialize_class): libnautilus/nautilus-background.c: (nautilus_background_initialize_class): libnautilus/nautilus-directory.c: (nautilus_directory_initialize_class): src/ntl-index-panel.c: (nautilus_index_panel_initialize_class): src/file-manager/fm-directory-view-icons.c: (fm_directory_view_icons_initialize_class): src/file-manager/fm-directory-view-list.c: (fm_directory_view_list_initialize_class): src/file-manager/fm-directory-view.c: (fm_directory_view_initialize_class): Take advantage of the new NAUTILUS_DEFINE_CLASS_BOILERPLATE and get rid of existing code to set up parent_class. * libnautilus/gnome-icon-container-dnd.h: libnautilus/gnome-icon-container-dnd.c: libnautilus/gnome-icon-container-layout.h: libnautilus/gnome-icon-container-layout.c: libnautilus/gnome-icon-container.c: Minimized includes.
-
Andy Hertzfeld authored
made icons centered with respect to the text
-
Andy Hertzfeld authored
don't activate files if the button was held down for too long
-
- 18 Jan, 2000 1 commit
-
-
Miguel de Icaza authored
2000-01-18 Miguel de Icaza <miguel@gnu.org> * libnautilus/gnome-icon-container.c (handle_icon_button_press): Initialize before using.
-
- 17 Jan, 2000 2 commits
-
-
Andy Hertzfeld authored
made dragging work right by rendering a pixbuf to a pixmap and mask to pass to the gtk dragging machinery.
-
Andy Hertzfeld authored
made single-click open work made dragging to desktop work
-
- 11 Jan, 2000 1 commit
-
-
Maciej Stachowiak authored
* libnautilus/gnome-icon-container.c (handle_icon_button_press): Reorder code so "context_click" is actually emitted on a button 3 press.
-
- 06 Jan, 2000 3 commits
-
-
Elliot Lee authored
Fix previous commit.
-
Elliot Lee authored
Relayout when size changes.
-
Elliot Lee authored
* libnautilus/gnome-icon-container.c: Eliminate gratuitous scroll bars.
-
- 03 Jan, 2000 1 commit
-
-
Elliot Lee authored
2000-01-03 Elliot Lee <sopwith@redhat.com> Update copyright notices.
-
- 17 Dec, 1999 3 commits
-
-
Havoc Pennington authored
1999-12-20 Havoc Pennington <hp@redhat.com> * libnautilus/gnome-icon-container.c (set_kbd_current): return if the icon being set is NULL. This may be fixing a symptom rather than a problem.
-
Elliot Lee authored
* src/ntl-*.[ch]: Support multiple view types (Nautilus/View, GNOME/Control, GNOME/Embeddable) * src/ntl-window.[ch]: Add nautilus_window_get_uih() * idl/*.idl: Reindent.
-
Elliot Lee authored
* libnautilus/{gdk-extensions.c,gnome-icon-container.c}: Fix warnings * libnautilus/gnome-icon-container.c: Try (unsuccessfully) to get proper icon reflow by calling icon_grid_resize() instead of icon_grid_set_visible_width(), in size_allocate(). * src/*.*: Add ntl-app.[ch]. * src/file-manager/desktop-*.c: Fix warnings. * src/file-manager/fm-directory-view.c: Remove incorrect warning, allow turning off use of icon_layout altogether.
-
- 15 Dec, 1999 2 commits
-
-
Darin Adler authored
using the history buttons. Improved selection info display in status bar.
-
Darin Adler authored
-
- 13 Dec, 1999 1 commit
-
-
Elliot Lee authored
* libnautils/g*.[ch]: Switch from imlib to pixbuf. * src/file-manager: Import from gnome-fm. * idl/nautilus.idl: Add a 'main_window' attribute on a ViewFrame, so that views can talk to the main window.
-
- 13 Nov, 1999 1 commit
-
-
Ettore Perazzoli authored
request and receive data for inline images.
-