Commit graph

25196 commits

Author SHA1 Message Date
Elliot Lee 5eff8c584d Testbed for UIHandler usage. Better error checking, support UIHandler
* components/history/ntl-history-view.c: Testbed for UIHandler usage.
* src/ntl-*view*.c: Better error checking, support UIHandler usage.
* src/ntl-window-msgs.c: Better error checking.
* src/ntl-window.c: Better error checking, plus move menu creation so that UIHandler
usage is easier.
1999-12-22 20:35:04 +00:00
Elliot Lee c1b5430908 Allow passing initial URL on cmdline.
Allow passing initial URL on cmdline.

Try to make web browser work.
1999-12-22 19:02:50 +00:00
Elliot Lee 4994722e58 Add request_progress_change notification
1999-12-21  Elliot Lee  <sopwith@redhat.com>

* idl/nautilus.idl, libnautilus/ntl-view-client.[ch], src/ntl-window*.[ch],
src/ntl-view-frame-svr.c: Add request_progress_change notification

* src/ntl-view-*: Fix/finish various mjs changes: Do the component type abstraction
properly, lose ntl-view-frame-svr.h, add ntl-view-private.h, add various component type
implementations.

* src/ntl-view-frame-svr.h: Add 'extern' so everyone doesn't get their own vepv
variable.
1999-12-21 20:01:42 +00:00
Elliot Lee 11a469a473 Add 'extern' so everyone doesn't get their own vepv variable.
* src/ntl-view-frame-svr.h: Add 'extern' so everyone doesn't get their
  own vepv variable.
1999-12-21 16:36:28 +00:00
Maciej Stachowiak d48f0ba962 Er, missed it. 1999-12-21 03:59:29 +00:00
Maciej Stachowiak 1fed79d7ee Remove request_* calls from public API (they are just an implementation
* src/ntl-view.h: Remove request_* calls from public API (they are
	just an implementation detail of the fact that NautilusView
	implements a Nautilus:ViewFrame CORBA server - the nautilus app
	should not need to call these).

	* src/ntl-view.c: Split all the three way conditional stuff out so
	there is a separate function for each branch of the condition. Not
	a big win yet, but will provide opportunities for more
	refactoring.

	* src/ntl-view-frame-svr.c, ntl-view-frame-svr.h: Move
	implementation of Nautilus:ViewFrame CORBA server here as much as
	possible.
	* src/ntl-view.c: Remove it from here.
	* src/nautilus.h: #include ntl-view-frame-svr.h
	* src/Makefile.am: add ntl-view-frame-svr.[ch] to build.

	* src/ntl-window.c: Add myself to About box (pout).
1999-12-21 03:59:11 +00:00
Maciej Stachowiak 9c9fbb1c48 components/html/ntl-web-browser.c: Fix warnings. 1999-12-21 02:41:41 +00:00
Elliot Lee 78353a733d Add gratuitous "About" box.
Add gratuitous "About" box.
1999-12-21 01:47:28 +00:00
Elliot Lee 82c184431b Add HTML component to build. Make process die when all objects have been
* configure.in, components/Makefile.am: Add HTML component to build.
* components/help/hyperbola-main.c, components/history/ntl-history-view.c: Make process die when
  all objects have been destroyed.
* components/history/ntl-history-view.c: Bug fixes.
* components/html/*.[ch]: Copy glibwww over, write new NautilusViewClient for HTML browsing.
* src/ntl-uri-map.c: Cleanup, and use ntl_web_browser as default HTML display engine.
* src/ntl-view.c: Try to handle Bonobo views for data display.
1999-12-20 23:59:08 +00:00
John Sullivan 27cef034fa The bookmarks menu is now limping along. Add Bookmark works, and the items that
are added work properly. But Edit Bookmarks is still insensitive, so there's no
way to remove items (except by quitting, because the items aren't yet saved and
restored across sessions).
1999-12-20 23:33:36 +00:00
Havoc Pennington d0cfc25efb indentation cleanup 1999-12-20 19:20:20 +00:00
Havoc Pennington 2fad83e469 Check in today's fooling around. I guess I'll drop this line of development
for now though, waiting on the new icon view.

1999-12-19  Havoc Pennington  <hp@pobox.com>

	* src/file-manager/desktop-window.c (desktop_window_realize): turn
		on window decorations for debugging
			(desktop_window_init): debug comment-out the
no-resize policy

	* src/file-manager/desktop-layout.c (desktop_layout_arrange):
		fool with layout routines

				* src/file-manager/desktop-canvas.c
					(desktop_canvas_size_allocate):
debugging border to detect layout screwups

	* src/file-manager/desktop-item.c (icon_realize): set the canvas
		item, oops.
1999-12-19 07:44:16 +00:00
Havoc Pennington 62748a9c8b Hmm, it sort of does something.
1999-12-19  Havoc Pennington  <hp@pobox.com>

	* src/file-manager/desktop-layout.c: don't do an arrangement
		on every change

			* src/file-manager/desktop-canvas.c
				(desktop_canvas_load_desktop_icons): connect
to finished_load and
	arrange the icons when we get it. This is a temporary hack,
		because the DesktopLayout engine isn't progressive yet.

			* src/file-manager/fm-directory-list.c
				(fm_directory_list_class_init): add a
finished_load signal

	* src/file-manager/desktop-window.c (desktop_window_init): for
		now, don't fill the whole screen so we can see gdb.

			* src/file-manager/desktop-item.c: Move user data
accessors into
	the .c file, these are private.
1999-12-19 07:44:16 +00:00
Havoc Pennington a82b8a9b18 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 07:44:15 +00:00
Havoc Pennington a1832aff91 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-19 07:44:15 +00:00
Elliot Lee 964b702302 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 07:44:15 +00:00
Havoc Pennington 31a15e17b5 Check in today's fooling around. I guess I'll drop this line of development
for now though, waiting on the new icon view.

1999-12-19  Havoc Pennington  <hp@pobox.com>

	* src/file-manager/desktop-window.c (desktop_window_realize): turn
		on window decorations for debugging
			(desktop_window_init): debug comment-out the
no-resize policy

	* src/file-manager/desktop-layout.c (desktop_layout_arrange):
		fool with layout routines

				* src/file-manager/desktop-canvas.c
					(desktop_canvas_size_allocate):
debugging border to detect layout screwups

	* src/file-manager/desktop-item.c (icon_realize): set the canvas
		item, oops.
1999-12-19 07:44:15 +00:00
Havoc Pennington 75207a4109 Hmm, it sort of does something.
1999-12-19  Havoc Pennington  <hp@pobox.com>

	* src/file-manager/desktop-layout.c: don't do an arrangement
		on every change

			* src/file-manager/desktop-canvas.c
				(desktop_canvas_load_desktop_icons): connect
to finished_load and
	arrange the icons when we get it. This is a temporary hack,
		because the DesktopLayout engine isn't progressive yet.

			* src/file-manager/fm-directory-list.c
				(fm_directory_list_class_init): add a
finished_load signal

	* src/file-manager/desktop-window.c (desktop_window_init): for
		now, don't fill the whole screen so we can see gdb.

			* src/file-manager/desktop-item.c: Move user data
accessors into
	the .c file, these are private.
1999-12-19 07:44:15 +00:00
Havoc Pennington 4c1e7b0338 Hack out the fm-directory-list dependent stuff, I forgot to cvs add and
it's at home. This change should be reverted tonight.
1999-12-19 06:47:22 +00:00
Havoc Pennington a4015a4f9e all compiling again 1999-12-19 06:47:22 +00:00
Havoc Pennington 5e2d0909ff forgot these things 1999-12-19 06:44:28 +00:00
Havoc Pennington 8e279e3c50 sync with home, may not compile, will fix momentarily
1999-12-17  Havoc Pennington  <hp@redhat.com>

        * src/file-manager/fm-directory-view.c: Change to use
	        get_current_icon_cache() (it wasn't ever freeing the icon
cache anyway)

        * src/file-manager/fm-icon-cache.c (fm_get_current_icon_cache):
	        function to get a global icon cache, we will share this throughout
		        the program.
1999-12-19 06:42:54 +00:00
Havoc Pennington 26f7c8b110 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
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