Commit graph

20923 commits

Author SHA1 Message Date
Elliot Lee a3b4de8a61 Support multiple view types (Nautilus/View, GNOME/Control,
* 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.
1999-12-19 06:25:35 +00:00
Havoc Pennington f401968b58 new function, loads icons from a given directory - don't get too excited,
1999-12-19  Havoc Pennington  <hp@pobox.com>

	* src/file-manager/desktop-canvas.c
		(desktop_canvas_load_desktop_icons): new function, loads
icons
	from a given directory - don't get too excited, it doesn't yet
		_display_ any icons!

			* src/file-manager/desktop-canvas.h: Add directory
list field.

	* src/file-manager/Makefile.am (gnome_desktop_SOURCES): Add
		fm-directory-list.[hc]
			(libntl_file_manager_la_SOURCES): add fm_directory_list.[hc]

				* src/file-manager/fm-directory-list.h, fm-directory-list.c:
					New files, the non-GUI portion of a
directory listing. Handles
	loading the dir listing and the icons.
1999-12-19 06:25:35 +00:00
Havoc Pennington 62eb9ba4be Add inline RGB data for default icon. (fm_icon_cache_load_icon): only ref
1999-12-20  Havoc Pennington  <hp@redhat.com>

* src/file-manager/fm-icon-cache.c: Add inline RGB data for
default icon.
(fm_icon_cache_load_icon): only
ref the pixbuf if it exists
(fm_icon_cache_new): add a new fallback special icon set
(fm_icon_cache_load_icon): load fallback if the icon name is ""
1999-12-19 05:48:58 +00:00
Havoc Pennington 37c6d861b0 sync with home - ChangeLog coming later.
This just makes the global icon cache accessible from outside FMDirectoryView.
1999-12-19 05:48:58 +00:00
Elliot Lee ffb63adc81 Support multiple view types (Nautilus/View, GNOME/Control,
* 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.
1999-12-18 02:35:48 +00:00
Maciej Stachowiak 48159840ba Added up, reload, home, stop toolbar buttons. Stop is not implemented yet.
* src/ntl-window.c, src/ntl-window-msgs.c: Added up, reload, home,
stop toolbar buttons. Stop is not implemented yet. Up needs more
thought with respect to various protocols.

* src/ntl-window.c, src/ntl-window.h: Added calls to allow/disallow
some of the toolbar operations.
1999-12-18 02:35:48 +00:00
Havoc Pennington b22bfa642b set the mini icon. (nautilus_window_class_init): init parent_class and
1999-12-17  Havoc Pennington  <hp@redhat.com>

* src/ntl-window.c (nautilus_window_realize): set the mini icon.
(nautilus_window_class_init): init parent_class and install
realize method

* src/ntl-miniicon.c: new files, to set mini icon
1999-12-17 18:00:31 +00:00
Elliot Lee edc7a195a4 Fix warnings Try (unsuccessfully) to get proper icon reflow by calling
* 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.
1999-12-17 03:06:48 +00:00
Elliot Lee 6d4ffeff2a Support multiple view types (Nautilus/View, GNOME/Control,
* 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.
1999-12-17 03:06:48 +00:00
Elliot Lee 6945c4c70f Fix warnings Try (unsuccessfully) to get proper icon reflow by calling
* 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.
1999-12-17 03:06:48 +00:00
Havoc Pennington 618f98bc1a return if the icon being set is NULL. This may be fixing a symptom rather
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.
1999-12-17 03:06:47 +00:00
Elliot Lee c4a26bb2d3 Support multiple view types (Nautilus/View, GNOME/Control,
* 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.
1999-12-17 03:06:47 +00:00
Elliot Lee 3fd51644ab Fix warnings Try (unsuccessfully) to get proper icon reflow by calling
* 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.
1999-12-17 03:06:47 +00:00
John Sullivan 4e06f3a887 Fixed evil // comments I added earlier; Added beginnings of Bookmarks menu. 1999-12-17 02:11:21 +00:00
Havoc Pennington 8ebbd3a628 lookup signum before it's first used.
1999-12-16  Havoc Pennington  <hp@redhat.com>

* src/ntl-window-state.c (nautilus_window_save_state): lookup
signum before it's first used.

* src/file-manager/desktop-layout.c: new layout module, not yet
done

* src/file-manager/desktop-canvas.c (desktop_canvas_init): Create
the right-click menu.

* src/file-manager/desktop-menu.c (desktop_menu_new): New module
to stick the right-click menu code in
1999-12-17 01:37:12 +00:00
Maciej Stachowiak 7048ea0af4 Enabled multiple main windows and new window menu entry. In the
process replaced url with uri where appropriate and added
nautilus_window_get_requested_uri accessor.
1999-12-17 01:03:09 +00:00
Maciej Stachowiak b7dd3b28a6 Put meta-views on the right. 1999-12-16 23:10:22 +00:00
Darin Adler 04b3c26530 Added new graphics routines.
Tried to make clicking on a file work better.
1999-12-16 22:45:54 +00:00
Elliot Lee e97c47c231 Now works. Duplicate the URI being requested, since we don't know what the
* components/history/ntl-history-view.c: Now works.
* src/ntl-uri-map.c: Duplicate the URI being requested, since we
don't know what the lifetime of the original value will be.
* src/ntl-window.c: Use the paned instead of hbox, use create_menus_with_data instead.
* src/file-manager: Misc warning fixes.
* src/gtkscrollframe.c: Try to get rid of scrollbar chopping.
1999-12-16 22:11:49 +00:00
John Sullivan 9e591b009a Fixed bug where Back button failed due to lack of data pointer. Also
added a bunch of not-yet-implemented standard menus and menu items.
1999-12-16 21:33:06 +00:00
Maciej Stachowiak 42c3b5d301 Quiet some warnings. 1999-12-16 21:08:40 +00:00
Havoc Pennington 4838d5fa4e warning fixes
1999-12-16  Havoc Pennington  <hp@redhat.com>

* src/file-manager/gnome-desktop.c (main): warning fixes

* src/file-manager/desktop-canvas.c
(desktop_canvas_update_background): start actually honoring
background settings.

* src/file-manager/fm-icon-cache.c: add copyright and Emacs magic.

* src/file-manager/fm-icon-cache.h (fm_icon_cache_get_icon): Run
egtk-format-protos on these prototypes, add copyright and Emacs magic
1999-12-16 21:04:03 +00:00
Havoc Pennington e0138e85e5 Added API for controlling the background, so we can connect that to the
1999-12-16  Havoc Pennington  <hp@redhat.com>

* src/file-manager/desktop-canvas.h: Added API for controlling the
background, so we can connect that to the IDL interface.

* src/file-manager/desktop-canvas.h: New file

* src/file-manager/desktop-window.h: tweaks

* idl/gnome-desktop.idl: Change BackgroundInfo to not be a union.
1999-12-16 20:39:12 +00:00
Elliot Lee 7a2e0e0361 Support multiple view types (Nautilus/View, GNOME/Control,
* 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.
1999-12-16 20:39:11 +00:00
Havoc Pennington eda20db829 Added API for controlling the background, so we can connect that to the
1999-12-16  Havoc Pennington  <hp@redhat.com>

* src/file-manager/desktop-canvas.h: Added API for controlling the
background, so we can connect that to the IDL interface.

* src/file-manager/desktop-canvas.h: New file

* src/file-manager/desktop-window.h: tweaks

* idl/gnome-desktop.idl: Change BackgroundInfo to not be a union.
1999-12-16 20:39:11 +00:00
John Sullivan cdbead7e78 Changed a recently-introduced assertion to a warning, and temporarily
allowed warnings to be non-fatal even when NAUTILUS_DEBUG is defined.
This allows us to continue working on Nautilus until the vfs problem
about directory iterating is fixed.
1999-12-16 18:23:11 +00:00
Elliot Lee b46c91c1ea Change assertion to warning
Change assertion to warning
1999-12-16 17:57:11 +00:00
Havoc Pennington 48075f6ff4 IDL for desktop (this is an external API that apps can use) 1999-12-16 17:42:49 +00:00
Elliot Lee c7382d0df3 Translate strings.
1999-12-16  Elliot Lee  <sopwith@redhat.com>

	* components/help/hyperbola-nav-tree.c: Translate strings.

	* components/history/ntl-history-view.c: Bug fixes, use API
 	function for setting meta-view label.

	* libnautilus/ntl-meta-view-client.[ch]:
 	s/meta_view_set_label/meta_view_client_set_label/

	* src/ntl-uri-map.c: Use history view instead of help view as the
 	default meta view for now.

	* src/ntl-window.c: As per the comment that was removed from
 	ntl-window.c, gnome_app_install_menu_hints() needs to be called
 	_after_ statusbar creation

	* src/file-manager/fm-directory-view.c: Add more debugging assertions
	and messages.
1999-12-16 07:49:40 +00:00
Elliot Lee 4587bbee6e make it compile 1999-12-16 02:38:06 +00:00
John Sullivan faecc8f6b5 Rearranged toolbar & location bar; added rudiments of menu bar. 1999-12-16 00:53:55 +00:00
Elliot Lee 2161e0fee8 Warning fixes throughout. Use $(WERROR) in Makefiles to get -Werror.
* Warning fixes throughout.
* Use $(WERROR) in Makefiles to get -Werror.
1999-12-16 00:43:12 +00:00
Darin Adler 5797b1bf7a Fixed some warnings. 1999-12-16 00:02:40 +00:00
Elliot Lee a4a7dc95ac Turn on compilation of hyperbola component. Compile and run. Create & set
* components/Makefile.am: Turn on compilation of hyperbola component.
* components/help/*: Compile and run.
* libnautilus/ntl-meta-view-client.c: Create & set the property bag if it doesn't exist.
* src/ntl-uri-map.c: Load the hyperbola nav tree component as a test meta view.
* src/ntl-view.c: Fill in NULL fields with empty strings, so that ORBit doesn't segfault.
* src/ntl-window-msgs.c: When creating new meta views, they should
be meta views and not content views (cut & paste error).
* src/file-manager/fm-directory-view.c: Don't redisplay every time a new entry comes in.
1999-12-15 23:47:34 +00:00
Darin Adler 0dee7ad32e Changed warning switches. Fixed bugs found when opening an icon and
using the history buttons. Improved selection info display in status bar.
1999-12-15 21:55:17 +00:00
Andy Hertzfeld 84ae5f6492 made the initial path be the user's home directory.
made the initial path be the user's home directory.
1999-12-15 20:08:25 +00:00
Elliot Lee c37abc45b0 Clean up --enable-* args slightly.
Clean up --enable-* args slightly.
1999-12-15 19:59:05 +00:00
Elliot Lee 8c729d0d10 Add --enable-more-warnings and --enable-fatal-warnings switches. Add
* configure.in: Add --enable-more-warnings and --enable-fatal-warnings switches.
* src/ntl-uri-map.c: Add comment about functionality-in-waiting.
1999-12-15 19:07:14 +00:00
Darin Adler e66ad3393a Rolled out my change. I was confused. Elliot had this fixed
already but I forgot to "make install".
1999-12-15 18:51:32 +00:00
Darin Adler 7d7defac6c Fixed overflow problem caused by gint16 local variable. 1999-12-15 18:39:11 +00:00
Darin Adler e445831a3d Fixed callback that caused bad cast when a URL was typed in. 1999-12-15 17:48:29 +00:00
Darin Adler 92eedb52f7 Changed to compile with the latest gnome-vfs. 1999-12-15 17:37:22 +00:00
Elliot Lee 75c39c67c1 Fix size_allocate.
* libnautilus/gtkscrollframe.c: Fix size_allocate.
1999-12-15 17:12:41 +00:00
Maciej Stachowiak ee886b6331 a const char* can't be passed where a gchar* is expected.
* src/ntl-uri-map.c (nautilus_navinfo_new): a const char* can't be
	passed where a gchar* is expected.
1999-12-15 04:08:36 +00:00
Darin Adler 025cf15b76 Turned on more warnings; fixed all warnings. 1999-12-15 03:09:45 +00:00
Elliot Lee 7eaca0a83f Support multiple view types (Nautilus/View, GNOME/Control,
* 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.
1999-12-15 03:09:45 +00:00
Darin Adler 8192bfe83f Turned on more warnings; fixed all warnings. 1999-12-15 03:09:45 +00:00
Elliot Lee e524839fd4 Add misc docs.
Add misc docs.
1999-12-15 01:32:28 +00:00
Elliot Lee 80bfd80a13 Restructure the whole NautilusWindow code for sanity's sake.
* src/*.c: Restructure the whole NautilusWindow code for sanity's sake.

* src/ntl-uri-map.[ch]: Instead of just passing in various pieces of information about
  the old URL, pass in the Nautilus_NavigationInfo that has to be kept around anyways.

* idl/nautilus.idl: Allow a selection to be multiple URI's.
1999-12-15 00:57:04 +00:00
Elliot Lee 8585f2c462 Support multiple view types (Nautilus/View, GNOME/Control,
* 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.
1999-12-15 00:57:03 +00:00