Commit graph

44 commits

Author SHA1 Message Date
Kjartan Maraas
49601b934d GCC4 build issues.
2005-06-10  Kjartan Maraas  <kmaraas@gnome.org>

	* applier.c: (render_wallpaper), (is_nautilus_running): GCC4
	build issues.
2005-06-10 18:49:06 +00:00
Sebastien Bacher
581c37e2bb Cleanup of gconf and a few other things, patch from Kjartan Maraas
2005-05-22  Sebastien Bacher  <seb128@debian.org>

        * ChangeLog capplets/about-me/e-image-chooser.c
        capplets/accessibility/at-properties/at-startup-session.h
        capplets/accessibility/keyboard/accessibility-keyboard.c
        capplets/background/gnome-wp-info.c
        capplets/common/gconf-property-editor.c
        capplets/common/gnome-theme-apply.c
        capplets/default-applications/gnome-default-applications-properties.c
        capplets/keybindings/gnome-keybinding-properties.c
        capplets/keyboard/gnome-keyboard-properties.c
        capplets/mouse/gnome-mouse-properties.c
        capplets/network/gnome-network-preferences.c
        capplets/sound/sound-properties-capplet.c
        capplets/theme-switcher/gnome-theme-details.c
        capplets/theme-switcher/gnome-theme-manager.c
        capplets/ui-properties/gnome-ui-properties.c
        capplets/windows/gnome-window-properties.c
        gnome-settings-daemon/factory.c
        gnome-settings-daemon/gnome-settings-accessibility-keyboard.c
        gnome-settings-daemon/gnome-settings-background.c
        gnome-settings-daemon/gnome-settings-daemon.c
        gnome-settings-daemon/gnome-settings-daemon.h
        gnome-settings-daemon/gnome-settings-font.c
        gnome-settings-daemon/gnome-settings-keybindings.c
        gnome-settings-daemon/gnome-settings-keybindings.h
        gnome-settings-daemon/gnome-settings-keyboard-xkb.c
        gnome-settings-daemon/gnome-settings-keyboard.c
        gnome-settings-daemon/gnome-settings-locate-pointer.h
        gnome-settings-daemon/gnome-settings-mouse.c
        gnome-settings-daemon/gnome-settings-multimedia-keys.c
        gnome-settings-daemon/gnome-settings-screensaver.c
        gnome-settings-daemon/gnome-settings-sound.c
        gnome-settings-daemon/gnome-settings-xmodmap.c
        gnome-settings-daemon/gnome-settings-xrdb.c
        gnome-settings-daemon/gnome-settings-xsettings.c
        libbackground/applier.c libbackground/applier.h
        libbackground/preferences.c libsounds/sound-properties.c
        libsounds/sound-view.h libwindow-settings/gnome-wm-manager.c
        libwindow-settings/metacity-window-manager.c
        typing-break/drw-break-window.c typing-break/drw-utils.h
        typing-break/drwright.c vfs-methods/fontilus/font-view.c
        vfs-methods/themus/themus-theme-applier.c:
        Cleanup of gconf and a few other things,
        patch from Kjartan Maraas <kmaraas@gnome.org> (Closes: #301945).
2005-05-22 15:46:45 +00:00
Richard Hoelscher
227d0296d6 Remove egg_pixbuf_new_from_file_at_size, using the gtk+-2.6 function for
2005-05-08  Richard Hoelscher  <rah@rahga.com>

	* applier.c (refresh_render): Remove egg_pixbuf_new_from_file_at_size,
	using the gtk+-2.6 function for this instead.

	Fixes #169757
2005-05-08 20:49:45 +00:00
Rodney Dawes
331f5ad61c Remove all references to #ifdef HAVE_GTK_MULTIHEAD Patch from Kjartan
2004-06-27  Rodney Dawes  <dobey@novell.com>

	* applier.c: Remove all references to #ifdef HAVE_GTK_MULTIHEAD
	Patch from Kjartan Maraas <kmaraas@gnome.org>

	Fixes #142749
2004-06-28 03:39:56 +00:00
Jody Goldberg
7e9ba7df7c nautilus imports this code
nautilus uses #&@#$& -Werror
2004-04-08 20:39:56 +00:00
Jody Goldberg
12350223af disable translation until after gnome-2-6 branch
2004-04-08  Jody Goldberg <jody@gnome.org>

	* libbackground/applier.c (egg_pixbuf_new_from_file_at_size) :
	  disable translation until after gnome-2-6 branch
2004-04-08 17:13:42 +00:00
Chris Lahey
ab3bfd09ba Made this delay by a tenth of a second. This seems to make it not reload
2004-03-11  Chris Lahey  <clahey@rigger.boston.ximian.com>

	* gnome-settings-background.c (applier_idle): Made this delay by a
	tenth of a second.  This seems to make it not reload the
	background more than once.

2004-03-12  Chris Lahey  <clahey@rigger.boston.ximian.com>

	* applier.c (refresh_render): Move the image reload into a separate function.
	(size_changed_cb): Handle screen resolution changes.

2004-03-11  Chris Lahey  <clahey@rigger.boston.ximian.com>

	* applier.c (bg_applier_apply_prefs): If the image is going to be
	scaled or stretched, load it at the size it's going to be
	displayed.
	(need_wallpaper_load_p): If the wallpaper type changed, unless it
	changed between TILED and CENTERED, we need to reload the image.
2004-04-07 04:46:27 +00:00
Pasupathi Duraisamy
5d62e0441b Fixes bogus GC creation. patch from Anders Carlsson <andersca@gnu.org>
2003-04-07  Pasupathi Duraisamy <pasupathi.duraisamy@wipro.com>

        * applier.c (set_root_pixmap): Fixes bogus GC creation.
        patch from Anders Carlsson <andersca@gnu.org>
2003-04-07 05:55:13 +00:00
Kjartan Maraas
f3517c9712 Fix a typo in a comment.
2003-02-16  Kjartan Maraas  <kmaraas@gnome.org>

	* applier.c: Fix a typo in a comment.
2003-02-16 16:07:45 +00:00
jacob berkman
fc7396ec43 fixes for building with gdk 2.0
2002-07-29  jacob berkman  <jacob@ximian.com>

	* applier.c (set_root_pixmap):
	(make_root_pixmap): fixes for building with gdk 2.0
2002-07-29 15:13:08 +00:00
Mark McLoughlin
13e1dd836d add check for gtk+ with multihead support and define HAVE_GTK_MULTIHEAD if
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-07-28 19:09:02 +00:00
Jody Goldberg
2fe0927aa1 How did that happen 2002-06-26 19:19:46 +00:00
Jody Goldberg
e15d737a93 http://bugzilla.gnome.org/show_bug.cgi?id=85224 clamp to avoid underflow
2002-06-18  Jody Goldberg <jody@gnome.org>

	http://bugzilla.gnome.org/show_bug.cgi?id=85224
	* applier.c (render_wallpaper) : clamp to avoid underflow
2002-06-26 03:29:17 +00:00
Damon Chaplin
d185c631b2 don't call set_root_pixmap() at all if nautilus is running. It didn't do
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-31 19:58:02 +00:00
jacob berkman
50b3bfe107 use a gc for the pixmap not the root window
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-05-21 22:13:38 +00:00
jacob berkman
5dcefd353d don't spew a warning when files can't be loaded (helps fix #76993)
2002-05-16  jacob berkman  <jacob@ximian.com>

	* applier.c (bg_applier_apply_prefs): don't spew a warning when
	files can't be loaded (helps fix #76993)
2002-05-16 22:21:25 +00:00
Rachel Hestilow
c5f228b8ea Return TRUE if pixmap is NULL. (create_pixmap): Only set pixmap if not
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-18 05:54:18 +00:00
jacob berkman
64a0eee134 fix improper use of guint as GType
2002-04-11  jacob berkman  <jacob@ximian.com>

	* (various files): fix improper use of guint as GType
2002-04-11 19:13:49 +00:00
Rachel Hestilow
b87c01cc34 Connect to "realize" on preview. (preview_realized_cb): Added function to
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-04-08 01:53:50 +00:00
Richard Hestilow
454800152e Only set size for preview modes.
2002-03-28  Richard Hestilow  <hestilow@ximian.com>

	* applier.c (bg_applier_set_prop): Only set size for preview modes.
2002-03-29 05:15:05 +00:00
Richard Hestilow
efea7f9c12 Rename to _DEFAULT_WIDTH, _DEFAULT_HEIGHT. (draw_disabled_message): Accept
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-29 04:59:00 +00:00
Dave Camp
8f172b308d Don't initialize is_nautilus_running here (check it each time in
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.
2002-03-26 18:53:49 +00:00
Richard Hestilow
be50597a25 Link to common.la and not common.a.
2002-03-19  Richard Hestilow  <hestilow@ximian.com>

	* configure.in (COMMON_LIBS): Link to common.la and not common.a.
2002-03-20 03:30:11 +00:00
Lauris Kaplinski
0335c74339 Fixed carsh on keypresses in icon view, added item activation on enter 2002-03-10 15:04:22 +00:00
Bradford Hovinen
f81c1a2a30 Only add the timeout for cleanup if we are in a root renderer; we don't
2002-02-17  Bradford Hovinen  <hovinen@ximian.com>

	* applier.c (bg_applier_apply_prefs): Only add the timeout for
	cleanup if we are in a root renderer; we don't need it for
	preview
2002-02-17 22:49:30 +00:00
Bradford Hovinen
8d1236a2d2 We need to reload the wallpaper pixbuf if it is enabled and not loaded
2002-02-17  Bradford Hovinen  <hovinen@ximian.com>

	* applier.c (need_wallpaper_load_p): We need to reload the
	wallpaper pixbuf if it is enabled and not loaded
	(cleanup_cb): Free bg_applier->p->pixbuf too
2002-02-17 22:46:45 +00:00
Bradford Hovinen
323e20bead We don't need a root pixmap if neither a wallpaper nor a gradient is
2002-02-17  Bradford Hovinen  <hovinen@ximian.com>

	* applier.c (need_root_pixmap_p): We don't need a root pixmap if
	neither a wallpaper nor a gradient is enabled
	(render_to_screen): Use set_back_pixmap/set_background when just
	setting a color with a root applier
	(need_root_pixmap_p): If the last preferences structure had
	neither gradient nor wallpaper enabled, we need a new root pixmap
2002-02-17 20:34:33 +00:00
Lauris Kaplinski
1eef9d7561 Replaced all deprecated methods except 2 GtkCTree instances with gnome-2
alternatives.
2002-02-13 16:52:18 +00:00
Rachel Hestilow
a6e8bdd1c3 oops 2002-02-12 06:26:36 +00:00
Richard Hestilow
31ac49063f Committed instant-apply patch sans background.
2002-02-11  Richard Hestilow  <hestilow@ximian.com>

	* Committed instant-apply patch sans background.
2002-02-12 06:16:11 +00:00
Rachel Hestilow
42c170078b Reverting changes back to hovinen's pre-seth-ui setup. 2002-02-11 04:13:39 +00:00
Richard Hestilow
96d7f7d1a8 Add "timeout" field. (bg_apply_cleanup_cb): Added.
2002-02-07  Richard Hestilow  <hestilow@ximian.com>

	* applier.c (BGApplierPrivate): Add "timeout" field.
	(bg_apply_cleanup_cb): Added.
	(bg_applier_apply_prefs): Add/reset timeout for cleanup function
	if we load a pixbuf.
2002-02-07 06:15:03 +00:00
Lauris Kaplinski
35e192827a Lot of little fixes to make it to compile without most of the deprecated stuff 2002-02-04 17:48:43 +00:00
Seth Nickell
5fe3e40279 Read control center directory structure out of GnomeVFS instead of
2002-01-28  Seth Nickell  <snickell@stanford.edu>

	* control-center/capplet-dir.c: (capplet_new), (capplet_dir_new),
	(capplet_dir_entry_destroy), (read_entries),
	(get_root_capplet_dir):
	* control-center/capplet-dir.h:

	Read control center directory structure out of GnomeVFS instead of
	directly off the disk.

	Also deal with pixmaps more uniformly, and properly load them
	out of PREFIX/share/pixmaps when they aren't an absolute path.

	* capplets/desktop-links/Sawfish/appearance-properties.desktop.in:
	* capplets/desktop-links/Sawfish/bindings-properties.desktop.in:
	* capplets/desktop-links/Sawfish/focus-properties.desktop.in:
	* capplets/desktop-links/Sawfish/match-properties.desktop.in:
	* capplets/desktop-links/Sawfish/maximize-properties.desktop.in:
	* capplets/desktop-links/Sawfish/meta-properties.desktop.in:
	* capplets/desktop-links/Sawfish/misc-properties.desktop.in:
	* capplets/desktop-links/Sawfish/move-properties.desktop.in:
	* capplets/desktop-links/Sawfish/placement-properties.desktop.in:
	* capplets/desktop-links/Sawfish/sound-properties.desktop.in:
	* capplets/desktop-links/Sawfish/workspace-properties.desktop.in:
	* capplets/ui-properties/behavior.desktop.in.in:

	Add a Categories Field.

	* capplets/desktop-links/Makefile.am:
	* capplets/desktop-links/Sawfish/Makefile.am:
	* capplets/file-types/Makefile.am:
	* capplets/theme-switcher/Makefile.am:
	* capplets/ui-properties/Makefile.am:
	* control-center/Gnome.directory.in.in:
	* control-center/Makefile.am:

	Install directory files into PREFIX/share/gnome/vfolders, the standard
	vfolder description location.
2002-01-29 04:48:25 +00:00
Bradford Hovinen
064dac63c0 Disable the wallpaper if we couldn't load it (bg_applier_apply_prefs):
2001-12-20  Bradford Hovinen  <hovinen@ximian.com>

	* applier.c (bg_applier_apply_prefs): Disable the wallpaper if we
	couldn't load it
	(bg_applier_apply_prefs): Create a clone of the preferences
	structure first and work off of that
	(wallpaper_full_cover_p): Return FALSE if the wallpaper pixbuf is NULL
2001-12-20 20:47:43 +00:00
Bradford Hovinen
ec0401e89e Eliminate compiler warnings
2001-12-20  Bradford Hovinen  <hovinen@ximian.com>

	* applier.c: Eliminate compiler warnings
2001-12-20 20:17:28 +00:00
Bradford Hovinen
02397e55aa Put gnome-settings-daemon after libbackgrounds
2001-12-20  Bradford Hovinen  <hovinen@ximian.com>

	* Makefile.am (SUBDIRS): Put gnome-settings-daemon after
	libbackgrounds

	* background-properties-capplet.c: Update

	* capplets/background/Makefile.am: Update

	* background.desktop.in.in (Exec): Update

	* mouse.desktop.in.in (Exec): Update

	* capplets/keyboard/Makefile.am: Update

	* keyboard.desktop.in.in (Exec): Update

	* mouse.desktop.in.in (Exec): Update

	* gnome-settings-background.c: Update

	* applier.[ch]: Rename applier to bg_applier to avoid possible
	namespace collision
2001-12-20 15:46:08 +00:00
Bradford Hovinen
a2b2b7932a Rename preferences to bg_preferences to avoid possible namespace collision
2001-12-20  Bradford Hovinen  <hovinen@ximian.com>

	* libbackground/preferences.[ch]: Rename preferences to
	bg_preferences to avoid possible namespace collision

	* All: Update to reflect the above
2001-12-20 14:24:56 +00:00
Bradford Hovinen
d69facaef6 Set the pixmap_id correctly if pixmap is NULL or -1.
2001-12-17  Bradford Hovinen  <hovinen@ximian.com>

	* applier.c (set_root_pixmap): Set the pixmap_id correctly if
	pixmap is NULL or -1.
2001-12-17 20:47:24 +00:00
Bradford Hovinen
182743f90e s/gtk_object_destroy/g_object_unref/
2001-12-17  Bradford Hovinen  <hovinen@ximian.com>

	* applier.c (applier_apply_prefs):
	s/gtk_object_destroy/g_object_unref/
2001-12-17 18:17:25 +00:00
Bradford Hovinen
933f9f190d Make sure the pixmap is masked correctly
2001-12-17  Bradford Hovinen  <hovinen@ximian.com>

	* applier.c (applier_get_preview_widget): Make sure the pixmap is
	masked correctly
2001-12-17 17:03:42 +00:00
Bradford Hovinen
215f0ebb20 Construct the GC before using it
2001-12-07  Bradford Hovinen  <hovinen@ximian.com>

	* applier.c (applier_get_preview_widget): Construct the GC
	before using it
2001-12-07 17:35:00 +00:00
Bradford Hovinen
d2042f6fa9 Initialize object_class properly before using it; install property after
2001-12-07  Bradford Hovinen  <hovinen@ximian.com>

	* applier.c (applier_class_init): Initialize object_class properly
	before using it; install property after {get|set}_property are set
2001-12-07 17:28:09 +00:00
Bradford Hovinen (Gdict maintainer)
669a1e2f3a Removed background rendering code from the background capplet and moved it
to a separate static library.
2001-12-06 23:53:58 +00:00
Renamed from capplets/background/applier.c (Browse further)