2005-02-06 Rodney Dawes <dobey@novell.com>
* gnome-wp-capplet.c (wallpaper_properties_init): Force using the gtk+
backend for the file chooser since we don't support vfs yet
Fixes#154978
2005-02-06 Rodney Dawes <dobey@novell.com>
* gnome-wp-capplet.c (gnome_wp_color_changed): Change the API to use
the boolean argument to specify if we want to update gconf or not
Always get the colors for both primary and secondary and update the
thumbnail
Only set the keys in gconf if we have the update boolean argument
(gnome_wp_pcolor_changed): Removed this method, since we don't need
to differentiate between primary/secondary for updating the thumbnail
(gnome_wp_scolor_changed): When we change the color in the UI, we want
to update gconf, we use this method for both color picker buttons now
(gnome_wallpaper_properties_init): Use gnome_wp_scolor_changed for the
callback on both color picker button widgets now
Fixes#166486
2005-01-09 Rodney Dawes <dobey@novell.com>
* gnome-wp-capplet.[ch] (gnome_wp_update_preview): Add new callback
routine for when the preview widget in the file chooser needs an update
(wallpaper_properties_init): Set the preview widget in the file chooser
to a GtkImage object and connect to the update-preview signal for when
the selected file changes
- Based on patch from Sebastien Bacher <seb128@debian.org>
Fixes#139714
2005-01-08 Rodney Dawes <dobey@novell.com>
* gnome-wp-capplet.c (wallpaper_properties_init): Preload the directory
rather than nothing when adding directories for gconf notification
2005-01-08 Rodney Dawes <dobey@novell.com>
* background.desktop.in.in: Add %F to Exec command line
* gnome-wp-capplet.[ch] (gnome_wp_remove_wp): Check that the tree path
is not NULL before removing items from the list store
(gnome_wp_load_stuffs): Don't duplicate the code from
gnome_wp_add_image/gnome_wp_capplet_scroll_to_item here
Load any images we were passed on the command line, and free the
GSList that they were stored in after doing so
(gnome_wp_file_changed): Clean up to just call gnome_wp_add_image and
gnome_wp_capplet_scroll_to_item rather than duplicating the code
(wallpaper_properties_init): Take a poptContext argument now
Parse the poptContext into a GSList for loading the images from
(main): Use a clearer variable name for the GnomeProgram object
Get the poptContext from the GnomeProgram object and pass it through
to wallpaper_properties_init
Fixes#120720
2005-01-08 Rodney Dawes <dobey@novell.com>
* gnome-wp-capplet.c (wallpaper_properties_init): Fix the leaks
in the scaling type option menu creation correctly
2004-08-16 Rodney Dawes <dobey@novell.com>
* gnome-wp-capplet.c (wallpaper_properties_clicked):
Handle the GTK_RESPONSE_DELETE_EVENT case as well
Fixes#150273
2004-07-19 Rodney Dawes <dobey@novell.com>
* gnome-wp-item.c (gnome_wp_remove_wallpaper, gnome_wp_list_sort):
Free what we get with gtk_tree_model_get
Fixes#147403
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-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-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-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-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-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-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-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-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-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-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