Commit graph

12 commits

Author SHA1 Message Date
jacob berkman
64a0eee134 fix improper use of guint as GType
2002-04-11  jacob berkman  <jacob@ximian.com>

	* (various files): fix improper use of guint as GType
2002-04-11 19:13:49 +00:00
Richard Hestilow
41b2652989 Initial GNOME2 port. ui-preferences is disabled until it is revamped for
2001-12-02  Richard Hestilow  <hestilow@ximian.com>

	* Initial GNOME2 port. ui-preferences is disabled until
	it is revamped for gconf, and mime-types will probably be
	permanently disabled though (no gmc).
2001-12-02 21:31:22 +00:00
Richard Hestilow
24c947b83c Remove a bunch of stuff from the old control-center.
2001-07-12  Richard Hestilow  <hestilow@ximian.com>

	* Makefile.am: Remove a bunch of stuff from the old control-center.

	* configure.in: Ditto.

	* capplets/Makefile.am: Ditto.

	* po/POTFILES.in: Ditto

	* autogen.sh: Look for the right directory structure.

	* capplets/file-types/Makefile.am: Compile the file-types-* files,
	not nautilus-mime-type-* files (they were renamed.)

	* capplets/file-types/*.c: Include the renamed headers.

	* capplets/file-types/libuuid/Makefile.am: Change $(GLIB_CFLAGS)
	to @GLIB_CFLAGS@ for pkg-config purposes.
2001-07-12 17:01:14 +00:00
Darin Adler
e7d9f82a0f Merge all changes from gnome-vfs-1 branch to HEAD. 2001-03-06 23:33:19 +00:00
Gene Z. Ragan
629002f4f0 Fix bug 4797, user can choose an icon anywhere on his filesystem to
2001-01-12  Gene Z. Ragan  <gzr@eazel.com>

	Fix bug 4797, user can choose an icon anywhere on his filesystem
	to associate it to a given mime type but the icon will not be used.

	* mime-type-capplet/nautilus-mime-type-icon-entry.c:
	(entry_changed), (ientry_destroy), (browse_clicked),
	(nautilus_mime_type_show_icon_selection),
	(nautilus_mime_type_icon_entry_init),
	(nautilus_mime_type_icon_entry_set_pixmap_subdir):
	Remove ability to navigate to directories outside of the
	shared pixmap path.
2001-01-13 04:14:59 +00:00
Mathieu Lacage
404ba40351 reviewed by: Sullivan
2000-11-17  Mathieu Lacage  <mathieu@eazel.com>

	reviewed by: Sullivan

	fix Bug 4768. Reported 3 bugs about separate issues: 4796, 4797, 4798.
	* data/mime/gnome-vfs.keys: change icon filenames to relative paths.
	* libgnomevfs/Makefile.am: add GNOME_VFS_PREFIX
	* libgnomevfs/gnome-vfs-mime-info.c: (gnome_vfs_mime_info_reload):
	add initialition code if the mime stuff is not initalized when doing
	a reload. This avoids a segfault.
	* libgnomevfs/gnome-vfs-utils.c: (hack_file_exists): new function
	copied from gnome-libs: prviously named g_file_exists.
	(gnome_vfs_icon_path_from_filename): new API function. It looks
	in GNOME_PATH to find the icons and defaults to the gnome-vfs prefix
	one. It accepts only relative paths and returns an absolute path.
	* libgnomevfs/gnome-vfs-utils.h: add prototype.
	* mime-type-capplet/nautilus-mime-type-capplet.c:
	(really_change_icon), changes the icon used by a mime type.
	(gil_icon_selected_cb): changes the icon when you double-click.
	(change_icon_clicked_cb_real): changes the icon when you click on ok.
	(change_icon_clicked): connect to the clicked and select_icon signals
	to know when the user has made up his mind about hte new icon.
	(nautilus_mime_type_capplet_update_info), spaces.
	(add_mime_clicked): spaces.
	(nautilus_mime_type_capplet_update_mime_list_icon): spaces.
	(capplet_get_icon_pixbuf): spaces.
	(populate_mime_list): spaces.
	* mime-type-capplet/nautilus-mime-type-icon-entry.c:
	(icon_selected_cb): spaces.
	(nautilus_mime_type_show_icon_selection): spaces.
	(nautilus_mime_type_icon_entry_get_relative_filename): new function.
	returns a relative filename instead of an abosulte one.
	* mime-type-capplet/nautilus-mime-type-icon-entry.h: add relative
	function prototype
2000-11-17 23:15:20 +00:00
Gene Z. Ragan
6b5e1f48ff Some more capplet work. The mime list now updates to reflect changes made
2000-11-13  Gene Z. Ragan  <gzr@eazel.com>

	Some more capplet work.  The mime list now updates
	to reflect changes made to the default action button
	and menu item list.

	* mime-type-capplet/nautilus-mime-type-capplet.c:
	(application_button_toggled), (viewer_button_toggled),
	(application_menu_activated), (component_menu_activated),
	(add_mime_clicked),
	(nautilus_mime_type_capplet_update_mime_list_icon),
	(update_mime_list_action), (populate_mime_list):

	* mime-type-capplet/nautilus-mime-type-icon-entry.c:
	(entry_changed):
	Fixed a case where a NULL widget would cause an assertion.
2000-11-13 23:33:57 +00:00
Gene Z. Ragan
9dbfae956e Fixed bug 3107, Setting na icon for a mime type does not work.
2000-11-13  Gene Z. Ragan  <gzr@eazel.com>

	Fixed bug 3107, Setting na icon for a mime type does not work.

	* mime-type-capplet/nautilus-mime-type-capplet.c:
	* mime-type-capplet/nautilus-mime-type-capplet.h:
	(nautilus_mime_type_capplet_update_mime_list_icon):
	New function that sets/updates the icon in the mime list.

	* mime-type-capplet/nautilus-mime-type-icon-entry.c:
	(icon_selected_cb), (nautilus_mime_type_show_icon_selection):
	Add call to new nautilus_mime_type_capplet_update_mime_list_icon
	function.
2000-11-13 19:16:38 +00:00
Gene Z. Ragan
9f9f159ffa Fixed bug 2839, setting icons for mime type is not remembered
2000-09-08  Gene Z. Ragan  <gzr@eazel.com>

	Fixed bug 2839, setting icons for mime type is not remembered

	* mime-type-capplet/nautilus-mime-type-capplet.c: (main),
	(init_mime_capplet), (nautilus_mime_type_capplet_update_info),
	(populate_mime_list),
	(nautilus_mime_type_capplet_get_selected_item_mime_type):
	Removed icon setting code callback from Change Icon button.

	* mime-type-capplet/nautilus-mime-type-icon-entry.c:
	(icon_selected_cb), (cancel_pressed), (gil_icon_selected_cb),
	(nautilus_mime_type_show_icon_selection):
	Added gnome-vfs icon setting code to OK button callback.
2000-09-08 23:58:53 +00:00
Gene Z. Ragan
10171a33d6 Fixed bug 2789, Need to cancel non-file drags in icon entry field.
2000-09-08  Gene Z. Ragan  <gzr@eazel.com>

	Fixed bug 2789, Need to cancel non-file drags in icon
	entry field.

	* mime-type-capplet/nautilus-mime-type-icon-entry.c:
	(drag_data_get):
2000-09-08 16:41:56 +00:00
John Sullivan
41b4f3f1f1 Wrote bugs for the last (for now) 18 unbugged FIXMEs.
* mime-type-capplet/nautilus-mime-type-icon-entry.c:
	(drag_data_get):
	* modules/bzip2-method.c: (do_get_file_info):
	* modules/extfs-method.c:
	* modules/file-method.c: (do_create_symbolic_link):
	* modules/ftp-method.c: (internal_get_file_info):
	* modules/gconf-method.c:
	* modules/gzip-method.c: (do_get_file_info):
	* modules/http-method.c: (process_propfind_propstat):
	* modules/translate-method.c: (tr_apply_default_mime_type),
	(tr_handle_exec), (tr_uri_translate):
	* test/test-shell.c: (do_info):
	* test/test-uri.c: (main):
2000-09-05 16:27:53 +00:00
Gene Z. Ragan
6ebefae27f New API to get and set icon data.
2000-07-14  Gene Z. Ragan  <gzr@eazel.com>

	* libgnomevfs/gnome-vfs-mime-handlers.c:
	* libgnomevfs/gnome-vfs-mime-handlers.h:
	(gnome_vfs_mime_get_icon), (gnome_vfs_mime_set_icon):
	New API to get and set icon data.

	* mime-type-capplet/Makefile.am:
	Added new file
	mime-type-capplet/nautilus-mime-type-icon-entry.c

	* mime-type-capplet/nautilus-mime-type-icon-entry.c:
	* mime-type-capplet/nautilus-mime-type-icon-entry.h:
	(nautilus_mime_type_icon_entry_get_type),
	(nautilus_mime_type_icon_entry_class_init), (entry_changed),
	(entry_activated), (setup_preview), (ientry_destroy),
	(browse_clicked), (icon_selected_cb), (cancel_pressed),
	(gil_icon_selected_cb), (nautilus_mime_type_show_icon_selection),
	(drag_data_received), (drag_data_get),
	(nautilus_mime_type_icon_entry_init),
	(nautilus_mime_type_icon_entry_new),
	(nautilus_mime_type_icon_entry_gnome_file_entry),
	(nautilus_mime_type_icon_entry_gnome_entry),
	(nautilus_mime_type_icon_entry_gtk_entry),
	(nautilus_mime_type_icon_entry_set_pixmap_subdir),
	(nautilus_mime_type_icon_entry_set_icon),
	(nautilus_mime_type_icon_entry_get_filename):
	New file.  This is a new verison of GnomeIconEntry.
	I am customizing it to look and bahve in a way that
	is compatible with Arlo's UI reccomendations.

	* mime-type-capplet/nautilus-mime-type-capplet.c:
	(mime_list_selected_row_callback), (icon_changed),
	(change_icon_clicked), (init_mime_capplet),
	(nautilus_mime_type_capplet_update_info), (populate_mime_list):
	More UI cleanups.  Removed GnomeIconEntry and replaced
	with new NautilusMimeTypeIconEntry.
2000-07-15 01:56:53 +00:00