[gtk+/rendering-cleanup: 102/141] testgtk: No need to set a custom colourmap here
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/rendering-cleanup: 102/141] testgtk: No need to set a custom colourmap here
- Date: Mon, 13 Sep 2010 23:53:29 +0000 (UTC)
commit 33463bec7029030289adc7d2ebecb04896a9fda4
Author: Benjamin Otte <otte redhat com>
Date: Sat Aug 28 17:35:47 2010 +0200
testgtk: No need to set a custom colourmap here
tests/testgtk.c | 9 ---------
1 files changed, 0 insertions(+), 9 deletions(-)
---
diff --git a/tests/testgtk.c b/tests/testgtk.c
index 2080687..68cb7d7 100644
--- a/tests/testgtk.c
+++ b/tests/testgtk.c
@@ -425,8 +425,6 @@ create_composited_window (GtkWidget *widget)
if (!window)
{
GtkWidget *event, *button;
- GdkScreen *screen;
- GdkColormap *rgba;
GdkColor red;
/* make the widgets */
@@ -442,13 +440,6 @@ create_composited_window (GtkWidget *widget)
gdk_color_parse ("red", &red);
gtk_widget_modify_bg (window, GTK_STATE_NORMAL, &red);
- /* set the colourmap for the event box.
- * must be done before the event box is realised.
- */
- screen = gtk_widget_get_screen (event);
- rgba = gdk_screen_get_rgba_colormap (screen);
- gtk_widget_set_colormap (event, rgba);
-
/* set our event box to have a fully-transparent background
* drawn on it. currently there is no way to simply tell gtk
* that "transparency" is the background colour for a widget.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]