Commit graph

98 commits

Author SHA1 Message Date
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
Anders Carlsson
166fe70bd4 Plug leaks. Sigh.
2002-04-17  Anders Carlsson  <andersca@gnu.org>

	* preferences.c: (bg_preferences_finalize), (bg_preferences_load):
	Plug leaks. Sigh.
2002-04-17 20:32:48 +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
Anders Carlsson
6b0ec1bccc Warning fixes. 2002-03-20 14:31:58 +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
Darin Adler
6eff67c9f5 Use G_GNUC_FUNCTION so we're not gcc-specific.
* preferences.c: (bg_preferences_merge_entry):
	Use G_GNUC_FUNCTION so we're not gcc-specific.
2002-03-17 18:25:35 +00:00
Seth Nickell
06603e6de0 Add an enum type for specifying that we don't know the type (i.e. the key
* 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 09:24:06 +00:00
Seth Nickell
8e834c8342 Add an enum type for specifying that we don't know the type (i.e. the key
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.
2002-03-15 09:23:45 +00:00
Richard Hestilow
c10c6c06ce Committed new schemas patch.
2002-03-14  Richard Hestilow  <hestilow@ximian.com>

	* Committed new schemas patch.
2002-03-15 03:56:44 +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
Richard Hestilow
18e6eb221f Added.
2002-03-09  Richard Hestilow  <hestilow@ximian.com>

	* preview-file-selection.[ch]: Added.

	* Makefile.am: Compile preview-file-selection.c.

	* preferences.c (bg_preferences_init): Initialize adjust_opacity
	to FALSE.
2002-03-10 00:37:09 +00:00
Alexander Larsson
d4d99fea71 Save wallpaper-enabled too.
2002-03-03  Alexander Larsson  <alla@lysator.liu.se>

	* preferences.c (bg_preferences_save):
	Save wallpaper-enabled too.
2002-03-04 04:06:48 +00:00
Richard Hestilow
bc353d8335 Add function bg_preferences_save.
2002-02-22  Richard Hestilow  <hestilow@ximian.com>

	* preferences.[ch]: Add function bg_preferences_save.
2002-02-23 04:42:10 +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
533c0f416b Fix crash on NULL values from GConf 2002-02-05 11:13:58 +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
Richard Hestilow
e7be78a1bd Use libtool to create the static library, thus allowing shlibs to link to
2002-01-28  Richard Hestilow  <hestilow@ximian.com>

	* Makefile.am: Use libtool to create the static library, thus
	allowing shlibs to link to libbackground (needed for metatheme).
2002-01-28 22:40:28 +00:00
Laszlo Peter
a02d04c48b s/__FUNCTION__/G_GNUC_FUNCTION/ ditto ditto ditto change "test $x == y" to
2002-01-28  Laszlo Peter  <laca@ireland.sun.com>

	* archiver/location.c: s/__FUNCTION__/G_GNUC_FUNCTION/
	* capplets/common/capplet-util.c: ditto
	* capplets/common/capplet-util.h: ditto
	* libbackground/preferences.c: ditto
	* applets/common/wrapper-script.in: change "test $x == y" to
	  "test $x = y" for portability
2002-01-28 19:55:29 +00:00
Bradford Hovinen
3e7140488f Courtesy of Jean Schurger <jschurger@schurger.org>: Make sure the
2002-01-10  Bradford Hovinen  <hovinen@ximian.com>

	Courtesy of Jean Schurger <jschurger@schurger.org>:
	* preferences.c (bg_preferences_merge_entry): Make sure the
	wallpaper filename is non-NULL before doing anything with it
2002-01-10 19:45:08 +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
19d9454148 Use gconf_client rather than gconf_engine
2001-12-18  Bradford Hovinen  <hovinen@ximian.com>

	* preferences.c (preferences_load): Use gconf_client rather
	than gconf_engine
2001-12-18 16:40:15 +00:00
Bradford Hovinen
b78df6748e Update GConf keys to use /desktop/gnome/background
2001-12-18  Bradford Hovinen  <hovinen@ximian.com>

	* preferences.c: Update GConf keys to use /desktop/gnome/background
2001-12-18 16:18:00 +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
3504b0d5ab Use correct keys
2001-12-17  Bradford Hovinen  <hovinen@ximian.com>

	* preferences.c (preferences_merge_entry): Use correct keys
2001-12-17 18:23:47 +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
Gediminas Paulauskas
9f8ed1254f retrieve translation in utf-8 codeset. Do not setlocale (). remove intl.
2001-12-09  Gediminas Paulauskas <menesis@delfi.lt>

	* *.c (main): retrieve translation in utf-8 codeset. Do not
	setlocale ().
	* some Makefile.am (INCLUDES): remove intl.
	(..._LDADD): remove INTLLIBS
2001-12-09 12:23:40 +00:00
Gediminas Paulauskas
3f72d399ea silent war 2001-12-09 12:16:14 +00:00
Bradford Hovinen
3aa4e58a6b Initialize the error structure
2001-12-07  Bradford Hovinen  <hovinen@ximian.com>

	* preferences.c (preferences_load): Initialize the error
	structure
2001-12-07 19:56:51 +00:00
Bradford Hovinen
58d92fe12a Check if string is non-NULL
2001-12-07  Bradford Hovinen  <hovinen@ximian.com>

	* preferences.c (read_color_from_string): Check if string is
	non-NULL
2001-12-07 19:34:21 +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