Commit graph

843 commits

Author SHA1 Message Date
Mathieu Lacage
00a08a542a fixes bugs 1119 and 1839
2000-08-31  Mathieu Lacage  <mathieu@eazel.com>

	fixes bugs 1119 and 1839

	* data/mime/gnome-vfs.keys: add a mime type for testing.
	* libgnomevfs/gnome-vfs-mime-handlers.c:
	(gnome_vfs_mime_get_default_action_type),
	(gnome_vfs_mime_edit_user_file_full),
	(gnome_vfs_mime_add_extension), (gnome_vfs_mime_remove_extension):
	update to API changes below. move saving code to gnome-vfs-mime-info.c
	* libgnomevfs/gnome-vfs-mime-info.c: (does_string_contains_caps),
	(context_new), (context_destroy_and_unlink), (language_level),
	(context_add_key), (load_mime_type_info_from),
	(load_mime_list_info_from), (mime_info_load), (mime_list_load),
	(load_mime_type_info), (gnome_vfs_mime_init),
	(gnome_vfs_mime_info_clear), (gnome_vfs_mime_info_shutdown),
	(gnome_vfs_mime_freeze), (gnome_vfs_mime_thaw),
	(gnome_vfs_mime_set_value), (gnome_vfs_mime_get_value),
	(gnome_vfs_mime_keys_list_free), (gnome_vfs_mime_get_key_list),
	(gnome_vfs_mime_get_program), (gnome_vfs_mime_get_program_name),
	(gnome_vfs_mime_get_description), (str_cmp_callback),
	(gnome_vfs_mime_get_extensions_list),
	(gnome_vfs_mime_get_extensions_string),
	(gnome_vfs_mime_get_extensions_pretty_string),
	(gnome_vfs_mime_extensions_list_free), (gnome_vfs_mime_get_test),
	(gnome_vfs_mime_get_composetyped),
	(gnome_vfs_mime_get_copiousoutput),
	(gnome_vfs_mime_get_needsterminal), (get_key_name),
	(gnome_vfs_get_registered_mime_types),
	(gnome_vfs_mime_registered_mime_type_list_free),
	(gnome_vfs_mime_set_registered_type_key),
	(write_back_mime_user_file_context_callback),
	(write_back_mime_user_file_callback), (write_back_mime_user_file),
	(write_back_keys_user_file_context_callback),
	(write_back_keys_user_file_callback), (write_back_keys_user_file):
	Basically, make it work. update copyright.
	* libgnomevfs/gnome-vfs-mime-info.h: change some API.
	* mime-type-capplet/nautilus-mime-type-capplet.c: update to new API.
	(nautilus_mime_type_capplet_update_info), (populate_mime_list):
	* test/Makefile.am: add tests.
	* test/test-mime-info.c: (main): actual tests.
2000-08-31 07:04:59 +00:00
Bradford Hovinen
f4f9184388 Add XML cflags/libs
2000-08-23  Bradford Hovinen  <hovinen@helixcode.com>

	* capplets/wm-properties/Makefile.am (INCLUDES):
	(wm_properties_capplet_LDADD): Add XML cflags/libs

	* capplets/wm-properties/wm-properties-capplet.c (do_get_xml):
	(do_set_xml): Implement
	(main): Call do_{get|set}_xml() on --get and --set

	* capplets/wm-properties/wm-list.c (wm_read_from_xml):
	(wm_list_read_from_xml):
	(wm_write_to_xml):
	(wm_list_write_to_xml): Implement
2000-08-23 14:29:23 +00:00
Kenneth Christiansen
379d3e137b Translations from Keld
achtung/po/da.po balsa/po/da.po bonobo/po/da.po
bug-buddy/po/da.po control-center/po/da.po dia/po/da.po
dr-genius/po/da.po eog/po/da.po evolution/po/da.po
gconf/po/da.po gedit/po/da.po gernel/po/da.po
gnome-db/po/da.po gnome-iconedit/po/da.po gnome-utils/po/da.po
gnome-vfs/po/da.po gnumeric/po/da.po gtranslator/po/da.po
guppi3/po/da.po mc/po/da.po nautilus/po/da.po oaf/po/da.po
pan/po/da.po sodipodi/po/da.po
2000-08-20 17:21:39 +00:00
Andraz Tori
6cf03c8c03 Updated Slovenian translation 2000-08-20 16:53:41 +00:00
Pablo Saratxaga
3cff36b768 updated Greek & Spanish files 2000-08-20 10:40:17 +00:00
Kenneth Christiansen
715cc5c73c Translations from Keld
achtung/po/da.po bonobo/po/da.po control-center/po/da.po
dia/po/da.po eog/po/da.po evolution/po/da.po gernel/po/da.po
ggv/po/da.po gimp/po/da.po gnome-iconedit/po/da.po
gnumeric/po/da.po nautilus/po/da.po rp3/po/da.po
2000-08-19 22:16:59 +00:00
Kjartan Maraas
347a2f9af4 Updated Norwegian translation.
2000-08-19  Kjartan Maraas  <kmaraas@gnome.org>

	* no.po: Updated Norwegian translation.
2000-08-19 19:20:51 +00:00
Bradford Hovinen
5245e70454 Add XML cflags/libs
2000-08-18  Bradford Hovinen  <hovinen@helixcode.com>

	* capplets/keyboard-properties/Makefile.am (INCLUDES):
	(keyboard_properties_LDADD): Add XML cflags/libs

	* capplets/keyboard-properties/keyboard-properties.c
	(keyboard_read_from_xml):
	(keyboard_write_to_xml):
	(do_get_xml):
	(do_set_xml): Implement
	(main): Invoke do_get_xml() and do_set_xml() on --get and --set
2000-08-18 21:29:08 +00:00
Bradford Hovinen
10d433675f Only do combo box stuff if no_gui flag is not set (edit_read): If no_gui
2000-08-18  Bradford Hovinen  <hovinen@helixcode.com>

	* capplets/gnome-edit-properties/gnome-edit-properties.c
	(edit_read): Only do combo box stuff if no_gui flag is not set
	(edit_read): If no_gui flag set, search through possible_editors
	manually and set original_info.name that way

	* capplets/gnome-edit-properties/Makefile.am (INCLUDES):
	(gnome_edit_properties_capplet_LDADD): Add XML cflags/libs

	* capplets/gnome-edit-properties/gnome-edit-properties.c
	(edit_read_from_xml):
	(edit_write_to_xml):
	(do_get_xml):
	(do_set_xml): Implement
	(main): Call do_get_xml/do_set_xml when --get and --set passed

	* capplets/bell-properties/bell-properties.c (read_from_xml):
	Check if root node is correct before reading
2000-08-18 20:12:38 +00:00
Bradford Hovinen
1d7053c55a Added XML cflags/libs
2000-08-18  Bradford Hovinen  <hovinen@helixcode.com>

	* capplets/bell-properties/Makefile.am (INCLUDES):
	(bell_properties_capplet_LDADD): Added XML cflags/libs

	* capplets/bell-properties/bell-properties.c (do_get_xml):
	(do_set_xml): Implement.
	(main): Call above functions on --get and --set
	(read_from_xml):
	(write_to_xml): Implement
2000-08-18 19:32:01 +00:00
Bradford Hovinen
dd169482d6 Check for putenv and setenv and set appropriate macros in config.h
2000-08-18  Bradford Hovinen  <hovinen@helixcode.com>

	* configure.in: Check for putenv and setenv and set appropriate
	macros in config.h

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

	* preview.c (setup_path): Use setenv only when available, try to
	use putenv otherwise
2000-08-18 19:13:07 +00:00
Bradford Hovinen
890a61a575 Call do_set_xml and do_get_xml when --get or --set detected
2000-08-18  Bradford Hovinen  <hovinen@helixcode.com>

	* capplets/background-properties/app-background.c (main): Call
	do_set_xml and do_get_xml when --get or --set detected

	* capplets/background-properties/property-background.c
	(background_read_from_xml):
	(background_write_to_xml): Implement. Read/write XML snapshot of
	the system's current state
	(get_color): Implement. Read a color represented as a string and
	fill in a GdkColor structure
	(do_get_xml):
	(do_set_xml): Implement. Do operations required for a --get and
	--set, respectively

	* capplets/background-properties/Makefile.am (INCLUDES): Add XML_CFLAGS
	(background_properties_capplet_LDADD): Add GNOME_XML_LIB
2000-08-18 18:51:01 +00:00
Kai Lahmann
825346ef93 Updated German translation 2000-08-18 17:31:06 +00:00
Stanislav Brabec
87f2fbb3e6 Fix building in separate directory. 2000-08-17 19:20:50 +00:00
Valek Frob
fa01b686b4 Updated russian translation. 2000-08-17 18:23:29 +00:00
Christopher R. Gabriel
8a8918de8d updated italian translation 2000-08-17 16:11:58 +00:00
Bradford Hovinen
e8f3f6efef Added missing entries stored in gnome-config rather than .xscreensaver
2000-08-16  Bradford Hovinen  <hovinen@helixcode.com>

	* preferences.c (preferences_write_xml):
	(preferences_read_xml): Added missing entries stored in
	gnome-config rather than .xscreensaver
	(screensaver_read_xml): Disable screensaver by default
	(preferences_write_xml): Cast values to ints before passing to
	g_strdup_printf
2000-08-16 23:00:31 +00:00
Bradford Hovinen
d24a6c7b67 Add support for --get and --set to cap_options (gnome_capplet_init): Add
2000-08-16  Bradford Hovinen  <hovinen@helixcode.com>

	* capplet-widget.c: Add support for --get and --set to cap_options
	(gnome_capplet_init): Add return values 3 for --get and 4 for --set

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

	* rc-parse.c (write_screensaver_list): Don't try to write string
	if the screensaver has no command line

	* main.c (main): Register Popt table containing get and set
	options; call do_get_xml and do_set_xml when necessary
	(do_get_xml):
	(do_set_xml): Implement
2000-08-16 22:40:02 +00:00
Bradford Hovinen
a92e2e6423 Remove extraneous precondition check (read_command_line): Rewrote to
2000-08-16  Bradford Hovinen  <hovinen@helixcode.com>

	* screensaver-prefs-dialog.c (get_select_widget): Remove
	extraneous precondition check
	(read_command_line): Rewrote to support quoted strings in the
	command line

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

	* screensaver-prefs-dialog.c (write_command_line): Use flag free_v
	to determine whether to free data; add support for strings
	(write_string): Implement. Analagous to write_*
	(populate_table): Add support for strings
	(place_entry):
	(get_entry): Implement
	(place_screensaver_properties): Add support for strings
	(read_string): Implement
	(read_select):
	(write_select): Skip over nodes that don't have id attributes
2000-08-16 15:31:08 +00:00
Kjartan Maraas
18f71b3815 Updated Norwegian translation.
2000-08-15  Kjartan Maraas  <kmaraas@gnome.org>

	* no.po: Updated Norwegian translation.
2000-08-15 20:05:31 +00:00
Kai Lahmann
cb4edce326 Updated German translation 2000-08-14 19:54:04 +00:00
Bradford Hovinen (Gdict maintainer)
755dfdbe04 Added missing extract-labels.c 2000-08-14 15:04:00 +00:00
Bradford Hovinen (Gdict maintainer)
c5fc7bcce3 Added missing glade file 2000-08-14 15:03:09 +00:00
Bradford Hovinen (Gdict maintainer)
e1fd517e64 Added missing preferences.[ch] 2000-08-14 15:02:55 +00:00
Bradford Hovinen (Gdict maintainer)
7437ead3c6 Fixed some distribution problems 2000-08-14 14:56:27 +00:00
Valek Frob
2e35c02fca Updated russian translation. Fixed POTFILES.in. 2000-08-12 12:16:33 +00:00
Bradford Hovinen (Gdict maintainer)
1cda85f92d Update Makefile.am's for capplets to use libcapplet/ directory
Rewrote most of gnomecc
2000-08-11 19:17:30 +00:00
Bradford Hovinen
6b4d87b2fe Remove extraneous whitespace and replace tabs with spaces
2000-08-10  Bradford Hovinen  <hovinen@helixcode.com>

	* resources.c (screensaver_get_desc_from_xrdb): Remove extraneous
	whitespace and replace tabs with spaces
2000-08-10 15:34:00 +00:00
Bradford Hovinen
ce4b140d24 Added ant.xml, bsod.xml, compass.xml, and flag.xml (courtesy of James
2000-08-10  Bradford Hovinen  <hovinen@helixcode.com>

	* screensavers/Makefile.am (Screensavers_DATA): Added ant.xml,
	bsod.xml, compass.xml, and flag.xml (courtesy of James Antill
	<james@and.org>)
2000-08-10 14:51:00 +00:00
Bradford Hovinen
f03d61be34 Fix memory leak (read_select): Disable all widgets associated with
2000-08-10  Bradford Hovinen  <hovinen@helixcode.com>

	* screensaver-prefs-dialog.c (write_command_line): Fix memory leak
	(read_select): Disable all widgets associated with unselected
	nodes before enabling those associated with selected one
	(read_select): Don't iterate through menu items
	(read_number): Don't crash if person used bad argument
2000-08-10 14:38:31 +00:00
Bradford Hovinen
ffc4063431 Have string -> boolean conversion always convert to FALSE
2000-08-10  Bradford Hovinen  <hovinen@helixcode.com>

	* expr.c (int_parse_atom): Have string -> boolean conversion
	always convert to FALSE
	(int_parse_factor): Set result to boolean TRUE when symbol of
	value 1 encountered.
2000-08-10 13:15:25 +00:00
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