Mon Jun 2 13:35:49 2003 Jonathan Blandford <jrb@redhat.com>
* preview-file-selection.c
(preview_file_selection_intelligent_scale): scaling fix. Patch
from Marcus Matèrn <marcus.matern@safecareab.com>, #113816
2002-07-27 Mark McLoughlin <mark@skynet.ie>
* configure.in: add check for gtk+ with multihead
support and define HAVE_GTK_MULTIHEAD if found.
2002-07-27 Mark McLoughlin <mark@skynet.ie>
Add support for rendering the wallpaper on
a particular physical screen.
* applier.[ch]:
(bg_applier_init): init screen and root_window.
(bg_applier_class_init), (bg_applier_set_prop),
(bg_applier_get_prop): add "screen" property.
(bg_applier_new_for_screen): implement.
(render_wallpaper), (render_to_screen),
(create_pixmap), (wallpaper_full_cover_p): use the
screen and root window information.
(make_root_pixmap): add a GdkScreen arg, actually
use the display we opened, use the correct root
window and not the default one
(set_root_pixmap): add a GdkScreen arg, use the
default display, use the correct root window.
2002-05-31 Damon Chaplin <damon@ximian.com>
* applier.c (bg_applier_apply_prefs): don't call set_root_pixmap() at
all if nautilus is running. It didn't do anything in this case anyway.
Removed the nice(20). A library function shouldn't do this. If
gnome-settings-daemon wants to be niced then it should do it in main()
or something like that.
(set_root_pixmap): do a final check to see if nautilus is running
before setting the pixmap.
Fixes part of #74311.
2002-05-21 jacob berkman <jacob@ximian.com>
* applier.c (render_to_screen): use a gc for the pixmap not the
root window
(bg_applier_get_preview_widget): don't create the pixmap until we
are realized
(make_root_pixmap): use gdk_get_display(), not getenv ("DISPLAY"),
and set the colormap for our GdkPixmap so we can draw on it
(preview_realized_cb): create the pixmap here, and set it on our
GtkImage
fixes#73496
2002-04-19 Jody Goldberg <jody@gnome.org>
http://bugzilla.gnome.org/show_bug.cgi?id=79149
* preferences.c (bg_preferences_clone) : fix leaks and use
gdk_color_free because some wiseguy thought GdkColours should use
memchunks.
(bg_preferences_load) : ditto.
(bg_preferences_merge_entry) : ditto.
(read_color_from_string) : ditto.
(bg_preferences_finalize) : ditto. clean out pointers to protect
against multiple calls.
2002-04-17 Rachel Hestilow <hestilow@ximian.com>
* applier.c (need_root_pixmap_p): Return TRUE if pixmap is NULL.
(create_pixmap): Only set pixmap if not already set.
2002-04-07 Rachel Hestilow <hestilow@ximian.com>
* applier.c (bg_applier_get_preview_widget): Connect to "realize"
on preview.
(preview_realized_cb): Added function to initialize preview pixmap.
2002-03-28 Richard Hestilow <hestilow@ximian.com>
* applier.c (MONITOR_CONTENTS_WIDTH, MONITOR_CONTENTS_HEIGHT):
Rename to _DEFAULT_WIDTH, _DEFAULT_HEIGHT.
(draw_disabled_message): Accept width and height as variables.
(bg_applier_class_init): Install props preview_width, preview_height.
(bg_applier_set_prop): Accept new size properties, only set to
default width/height on mode PREVIEW if uninitialized.
(bg_applier_new_at_size): Added.
(bg_applier_apply_prefs): Call draw_disabled_message with actual
width/height.
(bg_applier_get_preview_width): Create pixmap based on set size.
2002-03-26 Dave Camp <dave@ximian.com>
* applier.c: (bg_applier_init): Don't initialize
is_nautilus_running here (check it each time in appy_prefs).
(bg_applier_apply_prefs): Don't try to apply the background if
nautilus is running.
* preferences.c: (bg_preferences_load),
(bg_preferences_merge_entry), (read_wptype_from_string),
(read_color_from_string), (bg_preferences_get_wptype_as_string):
* preferences.h:
Add an enum type for specifying that we don't know the type (i.e. the
key was not available, or set to something invalid). Currently it
was using -1, which barfs with some compilers that set enums
to be uint.
2002-03-15 Seth Nickell <snickell@stanford.edu>
* preferences.c: (bg_preferences_load),
(bg_preferences_merge_entry), (read_wptype_from_string),
(read_color_from_string), (bg_preferences_get_wptype_as_string):
* preferences.h:
Add an enum type for specifying that we don't know the type (i.e. the
key was not available, or set to something invalid). Currently it
was using -1, which barfs with some compilers that set enums
to be uint.