Commit graph

812 commits

Author SHA1 Message Date
Bradford Hovinen
b83773c0f4 Map window before showing screensaver (close_preview): Unmap window after
2000-08-10  Bradford Hovinen  <hovinen@helixcode.com>

	* preview.c (show_preview): Map window before showing screensaver
	(close_preview): Unmap window after killing screensaver
2000-08-10 12:21:00 +00:00
Bradford Hovinen (Gdict maintainer)
c3827b78aa Added public interface get_screensaver_dir_list 2000-08-09 18:11:02 +00:00
Bradford Hovinen
caa9b7c95e Use get_screensaver_dir_list; iterate through all the directories listed
2000-08-09  Bradford Hovinen  <hovinen@helixcode.com>

	* preview.c (setup_path): Use get_screensaver_dir_list; iterate
	through all the directories listed in list; use g_getenv

	* rc-parse.c (get_screensaver_dir_list): Make public, cache
	return value
	(command_exists): Don't cache screensaver_dir_list
2000-08-09 18:10:15 +00:00
Bradford Hovinen
e92747cbc5 Implement. Get a list of possible directories where screensavers may be
2000-08-09  Bradford Hovinen  <hovinen@helixcode.com>

	* rc-parse.c (get_screensaver_dir_list): Implement. Get a list of
	possible directories where screensavers may be found by scanning
	the XScreensaver binary.
	(command_exists): Search through list of screensaver directories
	from get_screensaver_dir_list rather than using the hardcoded one
2000-08-09 16:16:40 +00:00
George Lebl
584545bb82 A new application registry. The parsing is based upon mime-info. The
Tue Aug 08 23:18:49 2000  George Lebl <jirka@5z.com>

	* libgnomevfs/Makefile.am,
	  libgnomevfs/gnome-vfs-application-registry.[ch]:
	  A new application registry.  The parsing is based upon
	  mime-info.  The interface completely hides any structures
	  and is based entierly on querying string keys.  Handles
	  user settings as a delta against the system settings.  Also
	  adds mime_types list support to the registry instead of this
	  being read from the keys file.

	* libgnomevfs/gnome-vfs-mime-handlers.[ch]
	  (gnome_vfs_mime_get_default_application)
	  (gnome_vfs_mime_get_short_list_applications)
	  (gnome_vfs_mime_get_all_applications)
	  (gnome_vfs_mime_extend_all_applications)
	  (gnome_vfs_mime_remove_from_all_applications)
	  (gnome_vfs_mime_application_new_from_id)
	  (application_known_to_be_nonexistent):
	  Use the application registry API internally.  Remove the
	  gnome_vfs_mime_define_application call as it doesn't
	  make any sesnse any more and is replaced by an application
	  registry call.  The all_applications calls now use the
	  registry api for all their work.

	* libgnomevfs/gnome-vfs-mime-info.c (load_mime_type_info_from):
	  Fix a bug where comments would only be ignored on the first
	  line which would add nonsense mime types if comments were
	  elsewhere in the file.

	* mime-type-capplet/nautilus-mime-type-capplet-dialogs.c
	  (add_new_application)
	  test/test-mime-handlers-set.c (main):
	  Use the application registry for adding new applications

	* data/mime/Makefile.am, data/mime/gnome-vfs.keys,
	  data/mime/gnome-vfs.applications,
	  data/mime/application-registry-hack.keys:
	  Remove the registry hack stuff, remove all_applications
	  stuff from gnome-vfs.keys and add the applications from
	  the registry hack to gnome-vfs.applications including
	  the mime types they read.
2000-08-09 06:23:46 +00:00
Maciej Stachowiak
fe894c6f20 Move include of sys/types.h above include of regex.h to fix building on
* mime-type-capplet/nautilus-mime-type-capplet.c: Move include of
	sys/types.h above include of regex.h to fix building on
	FreeBSD. Fix from Bill Huey <billh@gnuppy.monkey.org>.
2000-08-09 06:19:30 +00:00
Robin Slomkowski
2a9d7416f5 nautilus-mime-type-icon-entry.h was forgotten 2000-08-08 21:34:56 +00:00
Bradford Hovinen (Gdict maintainer)
d9f43fff11 Added additional section on arithmetic expressions 2000-08-08 14:42:37 +00:00
Bradford Hovinen
164fe06c3f Added README
2000-08-07  Bradford Hovinen  <hovinen@helixcode.com>

	* screensavers/Makefile.am (EXTRA_DIST): Added README
2000-08-07 19:07:09 +00:00
Bradford Hovinen
122042e532 Allow values of multiple types
2000-08-07  Bradford Hovinen  <hovinen@helixcode.com>

	* expr.c: Allow values of multiple types

	* main.c (main): Don't initialize glade
2000-08-07 18:26:43 +00:00
Bradford Hovinen
148d8186a5 Free structures only if they were ever allocated
2000-08-07  Bradford Hovinen  <hovinen@helixcode.com>

	* screensaver-prefs-dialog.c (screensaver_prefs_dialog_destroy):
	Free structures only if they were ever allocated

	* selection-dialog.c (get_known_savers): Implement. Read the
	screensaver directory for a list of valid screensavers
	(place_screensaver_list): Use known_savers rather than XML data

	* preferences.c (screensaver_get_label): Implement. Copy from
	get_label in resources.c

	* prefs-widget.c (deselect_saver_cb): Toggle only if event was a
	mouse button press, not a keyboard press
	(prefs_widget_init): Change vertical size of preview window to 200
	(prefs_widget_init): Use a table for the buttons below the
	screensaver list
	(prefs_widget_init): Change label of edit button to Settings...
	(prefs_widget_init): Don't have description and preview frames
	expand, have selection frame expand

	* Makefile.am (screensaver_properties_capplet_LDADD): Don't link
	against glade
	(INCLUDES): Don't set glade compilation flags

	* screensaver-prefs-dialog.c (get_select_widget): Show menu item
	(populate_table): Don't skip hgroups that lack ids
	(place_number):
	(place_boolean): Attach items with GTK_FILL
	(get_check_button):
	(get_select_widget): Set object data to point back to dialog
	(populate_table): Pass dialog, remove extraneous arguments
	(get_check_button): Connect toggled signal from here
	(get_select_widget): Set data and connect activate signals from
	here
	(place_number): Set default from default attribute
	(get_spinbutton): Set step_increment, page_increment, and
	page_size on adjustment
	(get_spinbutton):
	(place_number): Set default to average of high and low if not
	supplied
	(get_argument_data): Add i18n support
	(read_boolean):
	(read_number):
	(read_select):
	(write_boolean):
	(write_number):
	(write_select): Check if id is NULL before trying to look up a node
	(screensaver_prefs_dialog_new): Make sure CLI arguments and XML
	data were read successfully before trying to build the widget
	(get_argument_data): Return pointer to document rather than root node
	(screensaver_prefs_dialog_new): Set argument_data from argument_doc
	(screensaver_prefs_dialog_class_init): Set parent_class
	(screensaver_prefs_dialog_destroy): Implement; free all structures
	(free_set_cb): Implement
	(write_number): Don't assume correct format on the output string;
	just replace the '%' with the appropriate argument
	(write_command_line): Free arg iff generated from number

2000-08-06  Bradford Hovinen  <hovinen@helixcode.com>

	* screensaver-prefs-dialog.c (get_screensaver_widget): Accept
	ScreensaverPrefsDialog as option
	(get_argument_data): Assume one file per screensaver
	(get_spinbutton):
	(get_check_button):
	(get_select_widget):
	(place_number):
	(place_boolean):
	(place_hgroup):
	(place_select):
	(populate_table): Implement
	(get_screensaver_widget): Rewrite to build screensaver config
	dialogs manually from the XML data
	(activate_option_cb):
	(toggle_check_cb): Pass dialog to set_widgets_sensitive
	(set_widgets_sensitive): Rewrite to use dialog->widget_db
	(write_boolean):
	(write_number):
	(write_select): Use widget_db
	(write_select):
	(write_command_line): Don't check no-output
	(write_command_line): Pass widget_db
	(read_boolean):
	(read_number):
	(read_select): Use widget_db
	(place_screensaver_properties): Pass dialog->widget_db to above
	functions
	(arg_mapping_exists): Use XML file rather than Glade definition
	(screensaver_prefs_dialog_new): Initialize settings_widget with
	the widget to be placed in the settings frame
	(place_screensaver_properties): Take xml node; process hgroups
	recursively
	(write_command_line): Process hgroups recursively
	(read_boolean):
	(read_number):
	(read_select): Check if set and set->value_widget are set before
	proceeding

	* screensaver-prefs-dialog.h (struct _PrefsDialogConfigOption):
	New structure
	(struct _ScreensaverPrefsDialog ): New member widget_db --
	key-value database of PrefsDialogConfigOptions indexed by id
	attribute from XML
2000-08-07 16:04:33 +00:00
Andraz Tori
8c5ee35a90 Updated Slovenian translation 2000-08-05 14:17:44 +00:00
Kjartan Maraas
d56e0017fd new script 2000-08-04 11:09:20 +00:00
Bradford Hovinen (Gdict maintainer)
516fb9087b Added my name to the list of maintainers 2000-08-03 15:33:44 +00:00
Gene Z. Ragan
f515abc9a8 Fixed bug 1837, The icon in the action list item should represent the item
2000-08-02  Gene Z. Ragan  <gzr@eazel.com>

	Fixed bug 1837, The icon in the action list item
	should represent the item in the list.

	* mime-type-capplet/nautilus-mime-type-capplet.c:
	(populate_mime_list):
	Load icon and display based on action.
2000-08-02 22:10:17 +00:00
Pablo Saratxaga
f88e8d52b4 updated Catalan file 2000-08-02 18:34:40 +00:00
Pablo Saratxaga
a2f21570bb updated Catalan file 2000-08-02 12:30:51 +00:00
Gene Z. Ragan
82353c4765 Fixed bug 1836, Description list item icon wrong.
2000-08-02  Gene Z. Ragan  <gzr@eazel.com>

	Fixed bug 1836, Description list item icon wrong.

	* mime-type-capplet/nautilus-mime-type-capplet.c:
	(populate_mime_list), (gdk_font_get_bold),
	Set up proper and scaled description column icon.

	(capplet_gdk_pixbuf_scale_to_fit):
	New function that scales an gdk-pixbuf to the requested
	width and height.  Copied from libnautilus.
2000-08-02 09:18:18 +00:00
Kjartan Maraas
dd7acf74d1 Updated Norwegian translation.
2000-08-02  Kjartan Maraas  <kmaraas@gnome.org>

	* no.po: Updated Norwegian translation.
2000-08-02 08:04:29 +00:00
Takayuki KUSANO
9f1288a2f4 Updated Japanese translation.
* ja.po: Updated Japanese translation.
2000-08-02 02:10:17 +00:00
Bradford Hovinen (Gdict maintainer)
5eeb2d20a6 New control center implementation 2000-08-01 20:22:57 +00:00
Bradford Hovinen (Gdict maintainer)
f743b85074 Added screensaver properties capplet 2000-07-31 20:07:10 +00:00
Bradford Hovinen (Gdict maintainer)
2830dc67b3 Added new screensaver properties capplet 2000-07-31 20:06:12 +00:00
Jonathan Blandford
7bd66b8744 remove myself 2000-07-31 17:44:45 +00:00
ERDI Gergo
7a747d9f01 changed oaf_server_info_attr_lookup calls to oaf_server_info_prop_lookup
2000-07-30  ERDI Gergo  <cactus@cactus.rulez.org>

* mime-type-capplet/nautilus-mime-type-capplet-dialogs.c
(name_from_oaf_server_info): changed oaf_server_info_attr_lookup
calls to oaf_server_info_prop_lookup
2000-07-30 18:30:39 +00:00
Gene Z. Ragan
4dcb4689ce New function to set the font of a widget to bold. These were borrowed from
2000-07-28  Gene Z. Ragan  <gzr@eazel.com>

	* mime-type-capplet/nautilus-mime-type-capplet.c:
	(init_mime_capplet), (pixmap_file), (gtk_widget_make_bold),
	(gtk_widget_set_font), (gtk_style_set_font), (gdk_font_get_bold):
	New function to set the font of a widget to bold.  These were
	borrowed from libnautilus-extensions.
2000-07-28 23:07:34 +00:00
Fatih Demir
f0748b05f0 Added the Turkish entries for the mime-type-capplet.desktop 2000-07-24 11:41:32 +00:00
Pablo Saratxaga
babb844040 updated Greek file 2000-07-16 13:12:02 +00:00
Robert Brady
725ce49347 Updated British translation.
2000-07-15  Robert Brady  <rwb197@zepler.org>

	* en_GB.po: Updated British translation.
2000-07-15 18:09:58 +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
Mathieu Lacage
2c3cae6a9a yet agin a fix to make it compile in strange prefixes. 2000-07-15 01:14:56 +00:00
Valek Frob
d37fd8590e Updated translation from Kai Lahmann (kl@linuxfaqs.de). 2000-07-13 14:04:04 +00:00
Jorge Godoy
cd0cd8432b updated pt_BR translations 2000-07-12 16:25:55 +00:00
Gene Z. Ragan
b4ed38e4a0 Changed code to used renamed gnome_vfs_mime_extensions_list_free
2000-07-07  Gene Z. Ragan  <gzr@eazel.com>

	* libgnomevfs/gnome-vfs-mime-handlers.c:
	(gnome_vfs_mime_add_extension), (gnome_vfs_mime_remove_extension):
	Changed code to used renamed gnome_vfs_mime_extensions_list_free

	* libgnomevfs/gnome-vfs-mime-info.c:
	* libgnomevfs/gnome-vfs-mime-info.h:
	(gnome_vfs_mime_get_extensions_pretty_string):
	Return a list with period prepended, comma seperated items.

	(gnome_vfs_mime_extensions_list_free):
	Changed name form gnome_vfs_mime_extension_list_free

	* mime-type-capplet/nautilus-mime-type-capplet.c:
	(populate_extension_list), (init_mime_capplet),
	(nautilus_mime_type_capplet_update_info), (populate_mime_list),
	(create_mime_list_and_scroller):
	More exciting UI layout work and feature completion.
2000-07-08 00:57:36 +00:00
Andraz Tori
a0a3cbefca Updated Slovenian translation 2000-07-07 21:07:16 +00:00
Andraz Tori
bd456bc68e Added Slovenian translations 2000-07-07 17:20:05 +00:00
Gene Z. Ragan
663e79f17d Added sorting functionality to the column buttons. Enabled columns to
2000-07-06  Gene Z. Ragan  <gzr@eazel.com>

	* mime-type-capplet/nautilus-mime-type-capplet.c: (column_clicked),
	(create_mime_list_and_scroller):
	Added sorting functionality to the column buttons.  Enabled
	columns to respond to a click.  Clicking a column header
	toggles between ascending and descending sort for that column.
2000-07-07 04:30:42 +00:00
Robin Slomkowski
981826b3e4 Fixing Gene's mistake of adding a full path name to an .so for
linking.
2000-07-06 05:28:57 +00:00
Gene Z. Ragan
32577cacec More capplet work in progress. Modifying applet and code to support UI
2000-07-04  Gene Z. Ragan  <gzr@eazel.com>
	More capplet work in progress.  Modifying applet and code
	to support UI work done by Arlo.

	* libgnomevfs/gnome-vfs-mime-handlers.c:
	(gnome_vfs_mime_add_extension), (gnome_vfs_mime_remove_extension):
	API changes to support new layout.

	* libgnomevfs/gnome-vfs-mime-info.c:
	* libgnomevfs/gnome-vfs-mime-info.h:
	(gnome_vfs_mime_get_extensions_list),
	(gnome_vfs_mime_get_extensions_string):
	API changes to support new layout.

	* mime-type-capplet/Makefile.am:
	Added dependency to GdkPixbuf.

	* mime-type-capplet/nautilus-mime-type-capplet-dialogs.c:
	(show_edit_components_dialog), (add_new_application),
	(show_new_application_window), (show_edit_application_window):
	API changes to support new layout.

	* mime-type-capplet/nautilus-mime-type-capplet.c:
	* mime-type-capplet/nautilus-mime-type-capplet.h:
	(populate_extension_list), (extension_list_deselected),
	(application_button_toggled), (viewer_button_toggled),
	(icon_changed), (init_mime_capplet),
	(nautilus_mime_type_capplet_update_info),
	(populate_application_menu), (populate_viewer_menu),
	(edit_default_clicked),
	(nautilus_mime_type_capplet_update_application_info),
	(nautilus_mime_type_capplet_update_viewer_info),
	(insert_mime_vals_into_clist), (create_mime_list_and_scroller),
	(nautilus_mime_type_capplet_get_selected_item_mime_type),
	(make_path), (pixmap_file):
	API changes to support new layout.
2000-07-05 04:35:04 +00:00
Eskil Heyn Olsen
b3b5ced6ce Making gnome-vfs rpm'able 2000-07-03 22:18:15 +00:00
Andraz Tori
c4835a68de Updated Slovenian translation 2000-06-27 23:02:32 +00:00
Michael Meeks
fae278e88a add libgnomevfs
2000-06-27  Michael Meeks  <michael@helixcode.com>

	* mime-type-capplet/Makefile.am (INCLUDES): add libgnomevfs
2000-06-27 16:12:02 +00:00
Andraz Tori
7e19452441 Updated Slovenian translation 2000-06-27 08:24:04 +00:00
Andraz Tori
5c77bcd4c5 Updated Slovenian translation 2000-06-25 16:13:07 +00:00
Andraz Tori
1d0671ed1f Added Slovenian translations 2000-06-24 23:52:34 +00:00
Fatih Demir
0910a65b24 Made a working taregt in the Makefile.am for the mime-ytpe-capplets 2000-06-24 10:01:15 +00:00
Andraz Tori
ab2726e3bb Added Slovenian translations 2000-06-23 20:17:59 +00:00
Gene Z. Ragan
7f3302d6b8 Fixed bug #581. Ui for specifying whether applicaition can open multiple
2000-06-22  Gene Z. Ragan  <gzr@eazel.com>

	Fixed bug #581.  Ui for specifying whether applicaition
	can open multiple files at once.

	* libgnomevfs/gnome-vfs-mime-handlers.c:
	* libgnomevfs/gnome-vfs-mime-handlers.h:
	(gnome_vfs_mime_define_application):
	Added const char * argument for mime type.  Removed placeholder
	mime type.

	* mime-type-capplet/nautilus-mime-type-capplet-dialogs.c:
	(populate_default_applications_list),
	(populate_default_components_box),
	(initialize_edit_applications_dialog), (add_new_application),
	(show_new_application_window), (show_edit_application_window):
	Modified edit applicaiton list dialog to use a GtkList with
	embedded check buttons and labels.  This allows single list items
	to be selected so that individual items can be edited or deleted.

	* test/test-mime-handlers-set.c: (main):
	Fixed call to gnome_vfs_mime_define_application to use
	new argument.
2000-06-22 23:36:29 +00:00
Gene Z. Ragan
6a7fb3c737 Clean up work on layout of capplet dialogs.
000-06-22  Gene Z. Ragan  <gzr@eazel.com>

	* mime-type-capplet/nautilus-mime-type-capplet-dialogs.c:
	(show_new_application_window), (show_edit_application_window):
	Clean up work on layout of capplet dialogs.
2000-06-22 18:59:42 +00:00
Gene Z. Ragan
459de31d65 Fixed bug #1434, Fix alignment of widgets in main capplet view.
2000-06-21  Gene Z. Ragan  <gzr@eazel.com>

	Fixed bug #1434, Fix alignment of widgets in main capplet view.

	* mime-type-capplet/nautilus-mime-type-capplet.c:
	(init_mime_capplet):
	Replaced use of multiple pack boxes with a table.  Things
	look much better now.
2000-06-22 01:48:29 +00:00