GitLab repository storage has been migrated to hashed layout. Please contact Infrastructure team if you notice any issues with repositories or hooks.

  1. 15 Mar, 2000 1 commit
    • Darin Adler's avatar
      Added additional data to icons so they can specify where the · bdf3c6c1
      Darin Adler authored
      	embedded text fits in each icon.
      
      	* icons/eazel/Makefile.am, icons/eazel/i-regular.xml: Added the
      	file to specify attributes of icons. Specifically added the
      	attribute that says there is space for embedded text in the
      	Eazel-theme regular icon.
      
      	* libnautilus/nautilus-icon-factory.h:
      	* libnautilus/nautilus-icon-factory.c:
      	(get_child_node_by_property), (get_themed_icon_file_path),
      	(get_icon_file_path), (nautilus_icon_factory_get_thumbnail_uri),
      	(load_specific_image), (load_image_for_scaling),
      	(get_image_from_cache), (load_image_scale_if_necessary),
      	(nautilus_icon_factory_get_pixbuf_for_icon),
      	(nautilus_icon_factory_get_pixbuf_for_file):
      	Added code to read a rectangle for the embedded text along with
      	the icon, cache it with the icon, scale it with the icon, and
      	return it to the caller along with the icon.
      
      	* libnautilus/nautilus-icons-view-icon-item.c:
      	(nautilus_icons_view_icon_item_initialize_class),
      	(nautilus_icons_view_icon_item_set_arg),
      	(nautilus_icons_view_icon_item_get_arg),
      	(nautilus_icons_view_icon_item_get_image),
      	(nautilus_icons_view_icon_item_set_image),
      	(nautilus_art_irect_to_gdk_rectangle),
      	(draw_mini_text), (draw_embedded_text),
      	(nautilus_icons_view_icon_item_draw):
      	Changed the code that draws the embedded text to respect the
      	text rectangle passed in. Changed the pixbuf setting to use a
      	function instead of the arg interface and take a text rectangle
      	along with the pixbuf.
      
      	* libnautilus/gnome-icon-container-dnd.c
      	(gnome_icon_container_dnd_begin_drag):
      	* libnautilus/gnome-icon-container.c:
      	(icon_get_actual_size): Got rid of callers who were using the arg
      	interface to get at the image of an icon
      	("NautilusIconsViewIconItem::pixbuf").
      
      	* src/file-manager/fm-directory-view-icons.c:
      	(get_icon_property_cb): Get rid of hard-coded rule that only
      	themes with eazel at the front of their names can display text
      	inside the icons.
      
      	* libnautilus/gnome-icon-container.c:
      	(icon_new): Fixed a bug where icons would be super-tiny if they
      	got too big, like if you entered a directory that was zoomed all
      	the way in.
      	(start_stretching), (ungrab_stretch_icon), (end_stretching),
      	(gnome_icon_container_show_stretch_handles): Added code to grab
      	the pointer while stretching an icon.
      	(item_event_cb): Added a return statement that John forgot when
      	he was editing. Without that, it was falling through to the next
      	case, which had the same effect anyway.
      	(update_icon): Pass the text rectangle through from the icon
      	factory to the icon canvas item, using the new call instead of the
      	old arg interface approach.
      
      	* components/help/.cvsignore: Added entries for
      	.la and .lo files.
      
      	* components/help/Makefile.am:
      	* components/help/hyperbola-nav-index.c:
      	* components/help/hyperbola-nav-search.c:
      	* libnautilus/nautilus-directory-private.h:
      	* libnautilus/nautilus-directory.c:
      	* src/nautilus-bookmarklist.c:
      	Fixed flags for gnome-xml
      	includes. Someone pointed out that you are supposed to include
      	these as "#include <tree.h>", not "#include <gnome-xml/tree.h>" so
      	I fixed our uses to work that way.
      
      	* libnautilus/nautilus-directory.c:
      	(nautilus_directory_get_file_metadata_node): Fixed code that was
      	destroying something allocated by gnome-xml with g_free instead
      	of xmlFree.
      
      	* libnautilus/nautilus-file.c:
      	(nautilus_file_get_keywords), (nautilus_file_set_keywords):
      	Fixed storage leak where we were getting a property and not freeing it.
      
      	* libnautilus/nautilus-default-file-icon.h:
      	* libnautilus/nautilus-default-file-icon.c:
      	* libnautilus/nautilus-icon-factory.c:
      	(load_image_for_scaling): Got rid of the global that tells whether
      	the default icon has an alpha channel -- it's not hardwired TRUE.
      bdf3c6c1
  2. 14 Mar, 2000 7 commits
  3. 13 Mar, 2000 8 commits
    • Darin Adler's avatar
      Fixed bug that caused a core dump when getting at the root directory · ec73da24
      Darin Adler authored
      	* libnautilus/nautilus-directory.c (nautilus_directory_get):
      	Fixed bug that caused a core dump when getting at the root
      	directory because all the '/' characters were stripped off
      	the URI.
      
      	* /src/file-manager/fm-directory-view.c:
      	* nautilus-widgets/nautilus-preferences.c:
      	Tiny formatting fixes.
      ec73da24
    • Maciej Stachowiak's avatar
      Connect to zoom_in and zoom_out singals of zoom control and view the zoom · 3b40873a
      Maciej Stachowiak authored
      	* src/ntl-window.c (nautilus_window_constructed): Connect to
      	zoom_in and zoom_out singals of zoom control and view the zoom in
      	such cases, when applicable.
      
      	* src/nautilus-zoom-control.c
      	(nautilus_zoom_control_class_initialize): Add zoom_in and zoom_out
      	signals.
      	(nautilus_zoom_control_reset_zoom_level): Quick hack to get some
      	semblance of sanity in view switching.
      
      	* file-manager/fm-directory-view.c: Add Zoomable interface; for
      	now only implement zoom_in and zoom_out methods.
      3b40873a
    • Maciej Stachowiak's avatar
      Added some comments. · bfaf42ec
      Maciej Stachowiak authored
      	* components/sample/nautilus-sample-content-view.c: Added some
      	comments.
      bfaf42ec
    • Elliot Lee's avatar
      Fix pointer <-> int conversion warnings. · e88dbf7f
      Elliot Lee authored
      
      
      * nautilus-widgets/nautilus-preferences.c, src/file-manager/fm-directory-view.c:
      Fix pointer <-> int conversion warnings.
      e88dbf7f
    • Darin Adler's avatar
      A quick cleanup pass on the NautilusStringList class: Changed uses of · fe7c58d2
      Darin Adler authored
      	* libnautilus/nautilus-string-list.h:
      	* libnautilus/nautilus-string-list.c:
      	A quick cleanup pass on the NautilusStringList class:
      	Changed uses of gchar to char, changed g_assert to g_return_if_fail
      	as appropriate. Fixed brace style to be emacs-friendly (open brace
      	on same line as if statement). Fixed spelling of delimiter.
      	Got rid of some unnecessary special cases for NULL and sped up
      	the _equal function be eliminating the redundant length check.
      	Changed the self-check so that it doesn't write a warning to the
      	log when it runs.
      fe7c58d2
    • Darin Adler's avatar
      Andy fixed a double-unref bug by removing an unref. The correct fix was to · 945b7f5c
      Darin Adler authored
      	* src/file-manager/fm-properties-window.c (create_properties_window):
      	Andy fixed a double-unref bug by removing an unref. The correct
      	fix was to add a ref. I rolled out his change and re-fixed the bug.
      945b7f5c
    • Ramiro Estrugo's avatar
      libnautilus/nautilus-global-preferences.c, Add a table of meta view iids · e58c19a4
      Ramiro Estrugo authored
      * libnautilus/nautilus-global-preferences.c,
      * libnautilus/nautilus-global-preferences.h:
      (nautilus_global_preferences_get_meta_view_iids) Add a table of
      meta view iids and a function to retrieve them.  This is a hack
      until we have better runtime detection of components.
      Add some better defaults for which meta views are shown.  By
      default none were shown.  Undo a previous gnome_config default
      hack.  There is now a better fix in place in the prefs code.
      
      * nautilus-widgets/nautilus-preferences.c:
      (nautilus_preferences_make_gnome_config_string) A new function to
      make a string as expected by gnome_config with a trailing default
      value.  Use this string to fetch the value of the preferences.
      
      * src/Makefile.am,
      src/ntl-prefs.c,
      src/ntl-prefs.h,
      src/nautilus-window-menus.c,
      src/nautilus.h:
      Retire ntl-prefs.c and ntl-prefs.h.  Remove these 2 from build and
      all references to them.
      
      * src/ntl-app.c:
      (nautilus_app_startup, nautilus_app_destroy) No need to call
      retired ntl-prefs functions.
      
      * src/ntl-uri-map.c:
      (add_meta_view_iids_from_preferences): New function.  Factor out
      meta iid setup code into one place.  Replace the static meta iid
      setup code with something that looks in preferences to see which
      meta views are enabled.  Next step is to make the meta view
      respond to pref changes.
      e58c19a4
    • Ramiro Estrugo's avatar
  4. 12 Mar, 2000 17 commits
  5. 11 Mar, 2000 4 commits
    • Darin Adler's avatar
      Fixed typo that broke all hit testing except for rubber band selection! · 374870d5
      Darin Adler authored
      	* libnautilus/nautilus-icons-view-icon-item.c
      	(nautilus_icons_view_icon_item_point):
      	Fixed typo that broke all hit testing except for rubber band
      	selection! (Sorry.)
      
      	* libnautilus/gnome-icon-container-dnd.c
      	(set_gnome_icon_list_selection, set_uri_list_selection),
      	libnautilus/gnome-icon-container-private.h,
      	libnautilus/gnome-icon-container.h,
      	libnautilus/gnome-icon-container.c
      	(gnome_icon_container_get_icon_uri,
      	gnome_icon_container_initialize_class, gnome_icon_container_new,
      	update_icon, gnome_icon_container_update,
      	gnome_icon_container_request_update),
      	src/file-manager/fm-directory-view-icons.c (create_icon_container,
      	get_icon_images_cb, get_icon_uri_cb, get_icon_text_cb,
      	get_icon_property_cb): Change code that used to use a separate
      	controller object to just use signals on the icon container
      	instead.
      
      	* libnautilus/nautilus-gtk-extensions.h,
      	libnautilus/nautilus-gtk-extensions.c,
      	src/file-manager/fm-directory-view.c: Add new signal marshal
      	functions as needed and changed the name of one of the old
      	functions.
      
      	* libnautilus/Makefile.am,
      	libnautilus/nautilus-icons-controller.h,
      	libnautilus/nautilus-icons-controller.c,
      	src/file-manager/Makefile.am,
      	src/file-manager/fm-icons-controller.h,
      	src/file-manager/fm-icons-controller.c: Removed the old controller
      	object, it was a bad idea.
      374870d5
    • Ramiro Estrugo's avatar
      Fix dumbass typo. · 42b61c2e
      Ramiro Estrugo authored
      42b61c2e
    • Ramiro Estrugo's avatar
      src/Makefile.am Moved prefs things to nautilus-widgets. Use · 00f9035c
      Ramiro Estrugo authored
      	* src/Makefile.am
      	Moved prefs things to nautilus-widgets.
      	Use alphabetization technology on the source list.
      
      	* src/nautilus-global-preferences.c,
      	  src/nautilus-global-preferences.h:
      	New files that to deal with preferences that are
      	global to nautilus.
      
      	* src/nautilus-window-menus.c:
      	Use the new preferences dialog.
      
      	* src/ntl-window-state.c:
      	Go to a different home directory based on the user level.
      	Commented off until andy makes a nice default home directory
      	for novice users.
      
      	* src/nautilus-prefs-box.c
      	  src/nautilus-prefs-box.h,
      	  src/nautilus-prefs-dialog.c,
      	  src/nautilus-prefs-dialog.h,
      	  src/nautilus-prefs-group-check.c,
      	  src/nautilus-prefs-group-check.h,
      	  src/nautilus-prefs-group-radio.c,
      	  src/nautilus-prefs-group-radio.h,
      	  src/nautilus-prefs-group.c,
      	  src/nautilus-prefs-group.h,
      	  src/nautilus-prefs-pane.c,
      	  src/nautilus-prefs-pane.h,
      	  src/ntl-prefs.c,
      	  src/ntl-prefs.h:
      	Moved prefs widegtry things to nautilus-widgets.
      00f9035c
    • Ramiro Estrugo's avatar
      Moved all the preference widetry to nautilus-widgets. · b9488278
      Ramiro Estrugo authored
      Added a test program for preferences (not built).
      Renamed files to user "preference" instead of "prefs".
      b9488278
  6. 10 Mar, 2000 3 commits
    • Darin Adler's avatar
      Fixed rubber banding to hit test with all the parts of the icon, not just · bddcc07d
      Darin Adler authored
      	* libnautilus/Makefile.am, libnautilus/gnome-icon-container-dnd.c
      	  (set_gnome_icon_list_selection,
      	  gnome_icon_container_dnd_begin_drag),
      	  libnautilus/gnome-icon-container.c (icon_is_in_region,
      	  start_stretching), libnautilus/nautilus-icons-view-icon-item.h,
      	  libnautilus/nautilus-icons-view-icon-item.c (hit_stretch_handle,
      	  hit_test_pixbuf, hit_test, nautilus_icons_view_icon_item_point,
      	  nautilus_icons_view_icon_item_get_icon_world_rectangle,
      	  nautilus_icons_view_icon_item_get_icon_rectangle,
      	  nautilus_icons_view_icon_item_get_icon_window_rectangle,
      	  nautilus_icons_view_icon_item_get_hit_stretch_handle,
      	  hit_stretch_handle,
      	  nautilus_icons_view_icon_item_hit_test_stretch_handles,
      	  nautilus_icons_view_icon_item_hit_test_rectangle):
      	Fixed rubber banding to hit test with all the parts of the icon,
      	not just the icon pixbuf itself. Did this by changing all the
      	internal hit testing to use rects instead of points. At the same
      	time changed the external interface to always use world
      	coordinates for clarity.
      
      	* libnautilus/nautilus-directory.c (compare_file_with_name),
      	libnautilus/nautilus-file.c (nautilus_file_set_keywords): Fixed
      	some void * problems that upset newer versions of GCC but not the
      	older one that I'm using.
      
      	* libnautilus/nautilus-gtk-extensions.h,
      	libnautilus/nautilus-gtk-extensions.c: Formatting and include
      	statements fix up.
      bddcc07d
    • Jonathan Blandford's avatar
      Avoid a bug where we get stuck grabs when you double click. · d21681ac
      Jonathan Blandford authored
      2000-03-10  Jonathan Blandford  <jrb@redhat.com>
      
      	* libnautilus/gnome-icon-container.c (button_press_event): Avoid a
      	bug where we get stuck grabs when you double click.
      d21681ac
    • Ramiro Estrugo's avatar
      Add nautilis-widgets to the tree. · 0932a669
      Ramiro Estrugo authored
      0932a669