summaryrefslogtreecommitdiff
path: root/libnautilus-private/nautilus-background.c
diff options
context:
space:
mode:
authorGeorge Lebl <jirka@5z.com>2001-01-06 01:26:05 +0000
committerGeorge Lebl <jirka@src.gnome.org>2001-01-06 01:26:05 +0000
commite2003d2bc2e00f6c198217d09f33058f6e46b53c (patch)
tree407ff16d7e2173ee05763e216f401c3ede57c716 /libnautilus-private/nautilus-background.c
parentfc7e2e82ad6db3a4a871553298a96fd9b1035b51 (diff)
downloadnautilus-e2003d2bc2e00f6c198217d09f33058f6e46b53c.tar.gz
Darin saw this patch and says it should not destroy the world if I apply
Fri Jan 05 20:28:43 2001 George Lebl <jirka@5z.com> Darin saw this patch and says it should not destroy the world if I apply it. Fixes: 3988 * libnautilus-extensions/nautilus-background.c (nautilus_background_draw_flat_box): Unset the mask on the bg_gc from the style, not to leave the gc in a bad state * libnautilus-extentions/nautilus-list.c (nautilus_list_style_set) (unref_gcs) (unref_a_gc) (nautilus_list_initialize_class) (nautilus_list_destroy) (nautilus_gdk_gc_copy) (nautilus_list_realize) (make_gcs_and_colors) (nautilus_list_unrealize): Follow the theme by recopying the gcs after a theme was changed. Also do more sanity setting when copying the gcs, just to be on the very safe side. * src/nautilus-theme-selector.c (theme_style_set_callback) (setup_font_sizes_for_row) (setup_font_sizes_for_all_rows) (clear_style_for_all_rows) (nautilus_theme_selector_initialize) (add_theme): Follow the current theme by binding to the style_set signal and redoing the style stuff so that we don't get garbage and other fun on changing of gtk theme.
Diffstat (limited to 'libnautilus-private/nautilus-background.c')
-rw-r--r--libnautilus-private/nautilus-background.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libnautilus-private/nautilus-background.c b/libnautilus-private/nautilus-background.c
index b407e4e82..a69836078 100644
--- a/libnautilus-private/nautilus-background.c
+++ b/libnautilus-private/nautilus-background.c
@@ -1224,6 +1224,8 @@ nautilus_background_draw_flat_box (GtkStyle *style,
nautilus_gdk_window_update_sizes (window, &width, &height);
nautilus_background_draw_to_drawable (background, window, gc, 0, 0, width, height, widget->allocation.width, widget->allocation.height);
+ if (area)
+ gdk_gc_set_clip_rectangle (gc, NULL);
}
static GtkStyleClass *