Use gdk_window_set_background_pattern() to set parent-relative bakground

This commit is contained in:
Benjamin Otte 2010-08-15 14:37:58 +02:00
parent 20d1030823
commit 134683c9be
2 changed files with 1 additions and 2 deletions

View File

@ -483,7 +483,6 @@ gtk_handle_box_realize (GtkWidget *widget)
gtk_style_set_background (style, window, state);
gtk_style_set_background (style, priv->bin_window, state);
gtk_style_set_background (style, priv->float_window, state);
gdk_window_set_back_pixmap (window, NULL, TRUE);
}
static void

View File

@ -359,8 +359,8 @@ gtk_misc_realize (GtkWidget *widget)
window = gdk_window_new (gtk_widget_get_parent_window (widget), &attributes, attributes_mask);
gtk_widget_set_window (widget, window);
gdk_window_set_user_data (window, widget);
gdk_window_set_background_pattern (window, NULL);
gtk_widget_style_attach (widget);
gdk_window_set_back_pixmap (window, NULL, TRUE);
}
}