Commit graph

11 commits

Author SHA1 Message Date
Rodney Dawes
9042303784 Fix compile warning for syslangs declaration Wrap g_get_language_names in
2005-01-10  Rodney Dawes  <dobey@novell.com>

	* gnome-wp-xml.c (gnome_wp_xml_load_xml):
	Fix compile warning for syslangs declaration
	Wrap g_get_language_names in #if GLIB_CHECK_VERSION as it is 2.6 API
2005-01-10 15:46:00 +00:00
Thomas Wood
35037d76ec Load translated XML description elements if available
2005-01-08  Thomas Wood  <thos@gnome.org>

	* gnome-wp-xml.c (gnome_wp_xml_load_xml): Load translated XML
	description elements if available

	Fixes #160700
2005-01-09 01:21:07 +00:00
Rodney Dawes
418952b21a Change the description to use "W pixels x H pixels" and ngettext for each
2004-12-10  Rodney Dawes  <dobey@novell.com>

	* gnome-wp-item.c (gnome_wp_item_update_description):
	Change the description to use "W pixels x H pixels" and ngettext for
	each individual part, instead of just "W x H pixels" (#151425)

	* gnome-wp-xml.c (gnome_wp_xml_load_xml): Don't duplicate check to
	make sure that the root element is not NULL
2004-12-11 03:52:09 +00:00
Rodney Dawes
1be7aa7de7 Check that the colors aren't NULL before calling gdk_color_free
2004-09-22  Rodney Dawes  <dobey@novell.com>

	* gnome-wp-item.c (gnome_wp_item_free):
	Check that the colors aren't NULL before calling gdk_color_free

	* gnome-wp-xml.c (gnome_wp_xml_load_xml):
	Check that the item isn't already listed, before we try to add
	the wallpaper to the list
	(gnome_wp_xml_load_list): Load XML files from the correct directory
2004-09-22 15:07:01 +00:00
Rodney Dawes
4d87d80f3e Update copyright info to have correct years (2003-2004)
2004-06-28  Rodney Dawes  <dobey@novell.com>

	* *.[ch]: Update copyright info to have correct years (2003-2004)

	* gnome-wp-capplet.c (gnome_wp_capplet_scroll_to_item):
	Abstract this code out so that we don't have to duplicated it every
	time we want to scroll to a particular item in the list

	(gnome_wp_add_image): Update this to return the new item that we
	created, and don't scroll to or set as the wallpaper, every time we
	call this function
	Use the new gnome_wp_item_new () call to create items

	(gnome_wp_add_images): Change the API to not use the files argument
	any longer, as we don't need it without the GTK+ 2.2 compat code
	Add all the items to the list and select the last one when finished

	(gnome_wp_file_open_dialog): Update to not pass in the files argument
	to gnome_wp_add_images () and free the GSList of filenames

	(bg_add_multiple_files): merge this code into the normal callback for
	when images are dragged to the dialog

	(bg_properties_dragged_image): Don't check if the list is more than
	1 or not here, and always call gnome_wp_add_images () with the full
	list that we are given
	Convert the GList of GnomeVFSURIs that we get from gnome-vfs to a
	GSList of char * uris to pass into gnome_wp_add_images ()

	(gnome_wp_load_stuffs, gnome_wp_file_changed):
	Use the new gnome_wp_capplet_scroll_to_item () and gnome_wp_item_new ()
	API calls instead of duplicating code

	* gnome-wp-capplet.h: Remove the GConf key path defines from here

	* gnome-wp-item.[ch]: Add the gnome_wp_item_new () call to create the
	GnomeWPItem structure for storing wallpapers in

	* gnome-wp-utils.h: Put the GConf key path defines in here

	* gnome-wp-xml.c (gnome_wp_load_legacy): Use the gnome_wp_item_new ()
	call to create items from the old legacy (XD2 capplet) list file
2004-06-28 18:51:21 +00:00
Rodney Dawes
19c8dc6001 Check that the file exists, and continue through the loop if it doesn't
2004-02-24  Rodney Dawes  <dobey@ximian.com>

	* gnome-wp-xml.c (gnome_wp_oad_legacy): Check that the file exists,
	and continue through the loop if it doesn't (#135251)

	Fixes #135251
2004-02-24 19:49:58 +00:00
Rodney Dawes
5e266cc532 Switch the binary name to gnome-background-properties, Based on patch from
2004-02-01  Rodney Dawes  <dobey@ximian.com>

	* Makefile.am: Switch the binary name to gnome-background-properties,
	  Based on patch from Seth Nickell
	* background.desktop.in: Use gnome-background-properties here also,
	  based on patch from Seth Nickell
	* gnome-wp-capplet.c: Fix a bug where you can't re-add a wallpaper
	  after you remove it
	  Use the new gnome_wp_item_update_description () call
	  Use a GConfChangeSet to change the gconf keys, based on a patch
	  from Seth Nickell
	  Select the first item in the list ("No Wallpaper") when the wallpaper
	  is removed, based on a patch from Seth Nickell
	  Do the rc string parsing before creating the window, and change some
	  defaults so we can fix the spacing between widgets and the border
	  Fix spacing between widgets and window border
	* gnome-wp-item.[ch]: Add update_description function to clean up
	  code, based on patch from Seth Nickell
	  Fix a crash when trying to thumbnail very wide images that are very
	  short, while trying to maintain aspect ratio
	* gnome-wp-xml.c: Use backgrounds.xml instead of wp-list.xml, and
	  migrate the old wp-list.xml over if backgrounds.xml doesn't exist
	  yet, based on patch from Seth Nickell
2004-02-01 20:57:47 +00:00
Rodney Dawes
144005a19b Fix previous change to use gnome_wp_item_free () instead of g_free (), and
2004-01-12  Rodney Dawes  <dobey@ximian.com>

	* gnome-wp-xml.c (gnome_wp_load_legacy): Fix previous change to
	use gnome_wp_item_free () instead of g_free (), and fix tab width
2004-01-13 20:17:51 +00:00
Diego Gonzalez
c8c2cd5023 don't crash if we could not get the file information.
2004-01-12  Diego Gonzalez <diego@pemas.net>

	* gnome-wp-xml.c (gnome_wp_load_legacy): don't crash if we could
	  not get the file information.
2004-01-12 19:32:43 +00:00
Jody Goldberg
55a692788a As long as we're hard coding the path hard code it in only one place.
2004-01-12  Jody Goldberg <jody@gnome.org>

	* Makefile.am : As long as we're hard coding the path hard code it in
	  only one place.  Passing in datadir then adding the magic subdir in
	  C then building in Makefile seems unnecessary.
	  Use GNOMECC_CAPPLETS_*
2004-01-12 06:35:57 +00:00
Rodney Dawes
2e428e7746 Update for new capplet Update Name/Comment/Exec entries
2004-01-12  Rodney Dawes  <dobey@ximian.com>

	* Makefile.am: Update for new capplet
	* background.desktop.in: Update Name/Comment/Exec entries
	* gnome-wp-capplet.[ch]:
	* gnome-wp-info.[ch]:
	* gnome-wp-item.[ch]:
	* gnome-wp-utils.[ch]:
	* gnome-wp-xml.[ch]: Add new capplet code to CVS
2004-01-12 05:10:40 +00:00