Commit graph

14 commits

Author SHA1 Message Date
Rodney Dawes
5048e133c5 Remove the #if checks for GTK+ 2.3.0 and get rid of the compatibility code
2004-04-27  Rodney Dawes  <dobey@ximian.com>

	* gnome-wp-capplet.c (gnome_wp_file_open_dialog):
	(wallpaper_properties_init): Remove the #if checks for GTK+ 2.3.0 and
	get rid of the compatibility code for building against 2.2
2004-04-28 01:13:59 +00:00
Rodney Dawes
335d84f09b Use the more correct "Add Wallpaper" term for the file chooser window
2004-04-24  Rodney Dawes  <dobey@ximian.com>

	* gnome-wp-capplet.c (wallpaper_properties_init): Use the more correct
	"Add Wallpaper" term for the file chooser window title

	Fixes #135084
2004-04-24 17:08:09 +00:00
Rodney Dawes
e55a044b54 Use g_utf8_collate to sort the descriptions, rather than a strcmp, so that
2004-04-10  Rodney Dawes  <dobey@ximian.com>

	* gnome-wp-capplet.c (gnome_wp_list_sort): Use g_utf8_collate to sort
	the descriptions, rather than a strcmp, so that we follow the locale
	settings for LC_COLLATE

	Fixes #139517
2004-04-10 21:15:36 +00:00
Rodney Dawes
f8bf27b4bc Rever the previous patch to Fix #135084 as it breaks string freeze
2004-04-08  Rodney Dawes  <dobey@ximian.com>

	* gnome-wp-capplet.c (wallpaper_properties_init): Rever the previous
	patch to Fix #135084 as it breaks string freeze
2004-04-08 20:45:21 +00:00
Rodney Dawes
3d66a947a7 Change file chooser dialog title to say "Add Wallpaper" instead of "Add
2004-04-05  Rodney Dawes  <dobey@ximian.com>

	* gnome-wp-capplet.c (wallpaper_properties_init): Change file chooser
	dialog title to say "Add Wallpaper" instead of "Add Wallpapers"

	Fixes #135084
2004-04-05 21:37:03 +00:00
Rodney Dawes
00006d7745 Regenerate the thumbnail in the list when we change scaling type now
2004-04-05  Rodney Dawes  <dobey@ximian.com>

	* gnome-wp-capplet.c (gnome_wp_scale_type_changed): Regenerate the
	thumbnail in the list when we change scaling type now
	(wallpaper_properties_init): Add GtkFileFilter support (needs love)
	TreeView is buggy, so we need to not set the vertical-separator
	style property for it
	* gnome-wp-item.c: Include <config.h> and <gnome.h> here
	(collect_save_options): Add a function to set all of the pixbuf options
	for the thumbnail pixbuf properly, so we can save them back out
	(gnome_wp_item_get_thumbnail): Fix up the code to
	generate the thumbnails for the list a bit, so that we have sexy
	thumbnails that look exactly like how the image would, on-screen
	Initialize all of the width/height variables to 0
	Add a new pixbuf variable for loading the original image to get the
	dimensions of it, so we can do thumbnailing more properly
	Use a LIST_IMAGE_WIDTH define, for the width of the images in the list
	Just return the bgpixbuf if we are creating the "No Wallpaper" thumb
	Save the thumbnail back out with the dimensions for the original image
	If our image is smaller than the list thumbnail, then just use 1.0 as
	the ratio for scaling the image for tiling/etc...
	Use the new API to do scaling inside the center/tile functions
	Reload the thumbnail pixbuf after generating it with the thumbnail
	system, so that we get all of the pixbuf options set correctly
	* gnome-wp-item.h (GnomeWPItem): store the original image's width
	and height in the item, so we can avoid reopening the original image
	every time we generate the thumbnail, on systems where the thumbnail
	doesn't contain the appropriate information
	* gnome-wp-utils.c (gnome_wp_pixbuf_tile):
	(gnome_wp_pixbuf_center): Add API to do the scaling inside these calls

	Fixes #136691
2004-04-05 21:32:02 +00:00
Rodney Dawes
98fa7158e5 Select the added image, and change the scaling type to "wallpaper" if it
2004-03-04  Rodney Dawes  <dobey@ximian.com>

	* gnome-wp-capplet.c (gnome_wp_add_image): Select the added image, and
	change the scaling type to "wallpaper" if it is "none" (#136228)

	Fixes #136228
2004-03-05 04:27:57 +00:00
Rodney Dawes
e7928dbfa4 Split out real image adding code into a separate call
2004-02-29  Rodney Dawes  <dobey@ximian.com>

	* gnome-wp-capplet.c (gnome_wp_add_image): Split out real image adding
	code into a separate call
	(gnome_wp_add_images):
	(gnome_wp_file_open_dialog):
	(gnome_wp_properties_init): Add support for GtkFileChooser (#135317)
	(bg_properties_dragged_image): Fix re-addition of deleted images
	* gnome-wp-capplet.h: Store the filesel widget in GnomeWPCapplet
	* gnome-wp-item.c: Fix warning about gnome_vfs_mime_get_description

	Fixes #135317
2004-03-01 04:09:06 +00:00
Mark McLoughlin
d9885e685f update help links to point to user-guide.xml
2004-02-12  Mark McLoughlin  <mark@skynet.ie>

        * capplets/display/main.c: (cb_dialog_response):
        * capplets/localization/gnome-localization-properties.c:
        (dialog_response): update help links to point to user-guide.xml
2004-02-12 14:23:03 +00:00
Rodney Dawes
035c34ab99 Convert the main dialog UI to glade
2004-02-04  Rodney Dawes  <dobey@ximian.com>

	* Makefile.am:
	* gnome-background-properties.glade:
	* gnome-wp-capplet.[ch]: Convert the main dialog UI to glade
2004-02-05 00:31:48 +00:00
Rodney Dawes
28010e25e8 Use "Desktop Background" as name and change the Comment line to a verb
2004-02-04  Rodney Dawes  <dobey@ximian.com>

	* background.desktop.in: Use "Desktop Background" as name and change
	  the Comment line to a verb phrase as per the HIG
	* gnome-wp-capplet.c (gnome_wp_load_stuffs): Fix a little bug so that
	  opening the capplet with "No Wallpaper" set, actually works
	  (wallpaper_properties_init): "Desktop Background Preferences"
2004-02-04 22:04:14 +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
2d2222aba1 Enable the Help button (#131286)
2004-01-18  Rodney Dawes  <dobey@ximian.com>

	* gnome-wp-capplet.c: Enable the Help button (#131286)
2004-01-18 21:11:45 +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