diff --git a/capplets/background/ChangeLog b/capplets/background/ChangeLog index ce3929643..cbfe6ca20 100644 --- a/capplets/background/ChangeLog +++ b/capplets/background/ChangeLog @@ -1,3 +1,14 @@ +2001-07-19 Bradford Hovinen + + * applier.c (get_geometry): Use vwidth and vheight rather than + dwidth and dheight when computing aspect ratio + (get_geometry): Adjust rwidth and rheight according to above change + + * preferences.c (preferences_changed): Disable auto-apply + + * background-properties.glade: Remove apply automatically check + button; change "More Solid" to "More Opaque" + 2001-07-17 Chema Celorio * start diff --git a/capplets/background/applier.c b/capplets/background/applier.c index 61954c2fb..661af289c 100644 --- a/capplets/background/applier.c +++ b/capplets/background/applier.c @@ -1126,21 +1126,21 @@ get_geometry (wallpaper_type_t wallpaper_type, GdkPixbuf *pixbuf, break; case WPTYPE_SCALED_ASPECT: - asp = (gdouble) gdk_pixbuf_get_width (pixbuf) / dwidth; + asp = (gdouble) gdk_pixbuf_get_width (pixbuf) / vwidth; - if (asp < (gdouble) gdk_pixbuf_get_height (pixbuf) / dheight) { + if (asp < (gdouble) gdk_pixbuf_get_height (pixbuf) / vheight) { asp = (gdouble) - gdk_pixbuf_get_height (pixbuf) / dheight; + gdk_pixbuf_get_height (pixbuf) / vheight; st = 1; } if (st) { - *rwidth = gdk_pixbuf_get_width (pixbuf) / asp; + *rwidth = gdk_pixbuf_get_width (pixbuf) / asp / vwidth * dwidth; *rheight = dheight; *xoffset = (dwidth - *rwidth) >> 1; *yoffset = 0; } else { - *rheight = gdk_pixbuf_get_height (pixbuf) / asp; + *rheight = gdk_pixbuf_get_height (pixbuf) / asp / vheight * dheight; *rwidth = dwidth; *xoffset = 0; *yoffset = (dheight - *rheight) >> 1; diff --git a/capplets/background/background-properties.glade b/capplets/background/background-properties.glade index 4d52772c8..6144b4d05 100644 --- a/capplets/background/background-properties.glade +++ b/capplets/background/background-properties.glade @@ -26,7 +26,7 @@ GtkTable prefs_widget - 4 + 3 2 False 5 @@ -252,34 +252,6 @@ Horizontal Gradient - - GtkCheckButton - auto_apply - True - - toggled - auto_apply_toggled_cb - Thu, 21 Dec 2000 19:52:25 GMT - - - False - True - - 0 - 2 - 3 - 4 - 0 - 0 - False - False - False - False - True - False - - - GtkFrame wallpaper_frame @@ -529,7 +501,7 @@ Stretched (change aspect ratio) GtkLabel label9 - + GTK_JUSTIFY_CENTER False 0.5 diff --git a/capplets/background/preferences.c b/capplets/background/preferences.c index c0dfe86d6..23dde9eb3 100644 --- a/capplets/background/preferences.c +++ b/capplets/background/preferences.c @@ -326,10 +326,12 @@ preferences_changed (Preferences *prefs) if (prefs->timeout_id) gtk_timeout_remove (prefs->timeout_id); +#if 0 if (prefs->auto_apply) prefs->timeout_id = gtk_timeout_add (2000, (GtkFunction) apply_timeout_cb, prefs); +#endif } applier_apply_prefs (applier, prefs, FALSE, TRUE);