Use BONOBO_RET_EX rather than RETURN_IF_EX; remove the definition of the

2001-09-28  Bradford Hovinen  <hovinen@ximian.com>

	* preferences.c (preferences_load_from_bonobo_db):
	(preferences_load_from_bonobo_pbag): Use BONOBO_RET_EX rather than
	RETURN_IF_EX; remove the definition of the latter macro

	* applier.c (fill_gradient): Copied from control center 1.4.0
	(render_background): Create the pixbuf first and then pass to
	fill_gradient
	(render_to_screen): Use XLIB_RGB_DITHER_MAX rather than
	GDK_RGB_DITHER_NORMAL
This commit is contained in:
Bradford Hovinen 2001-09-28 21:05:16 +00:00 committed by Bradford Hovinen (Gdict maintainer)
parent 233eec9cca
commit 988e42c227
3 changed files with 30 additions and 22 deletions

View file

@ -230,8 +230,7 @@ applier_class_init (ApplierClass *class)
visual = gdk_window_get_visual (GDK_ROOT_PARENT ());
gdk_pixbuf_xlib_init_with_depth
(GDK_DISPLAY (), gdk_screen, visual->depth);
gdk_pixbuf_xlib_init_with_depth (GDK_DISPLAY (), gdk_screen, visual->depth);
}
}
@ -783,7 +782,7 @@ render_to_screen (Applier *applier, const Preferences *prefs)
applier->p->pixbuf_render_geom.y,
applier->p->pixbuf_render_geom.width,
applier->p->pixbuf_render_geom.height,
GDK_RGB_DITHER_MAX, 0, 0);
XLIB_RGB_DITHER_MAX, 0, 0);
} else {
if (applier->p->type == APPLIER_ROOT) {
gdk_color_alloc (gdk_window_get_colormap (GDK_ROOT_PARENT()), prefs->color1);