summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2011-06-06 19:40:35 +0200
committerBenjamin Otte <otte@redhat.com>2011-06-09 05:51:36 +0200
commit4dbeac9275b31a357f81eac09c375f2459bde597 (patch)
tree02519742fe75ab0967ef573da3fa5c8821141404
parenta64bc46c9e1938a4e783e24aa1627c60fa48d4d0 (diff)
downloadgtk+-4dbeac9275b31a357f81eac09c375f2459bde597.tar.gz
toolpalette: Remove composite support
It seems to be very broken wrt input handling, causing random icons to light up etc. So until this is fixed, better remove composite support. It only removes animations, so it's not a big loss for functionality.
-rw-r--r--gtk/gtktoolitemgroup.c6
-rw-r--r--gtk/gtktoolpalette.c33
2 files changed, 0 insertions, 39 deletions
diff --git a/gtk/gtktoolitemgroup.c b/gtk/gtktoolitemgroup.c
index 554bf8d92b..20981baa34 100644
--- a/gtk/gtktoolitemgroup.c
+++ b/gtk/gtktoolitemgroup.c
@@ -1207,7 +1207,6 @@ gtk_tool_item_group_realize (GtkWidget *widget)
GtkWidget *toplevel_window;
GdkWindow *window;
GdkWindowAttr attributes;
- GdkDisplay *display;
gint attributes_mask;
guint border_width;
GtkStyleContext *context;
@@ -1236,11 +1235,6 @@ gtk_tool_item_group_realize (GtkWidget *widget)
&attributes, attributes_mask);
gtk_widget_set_window (widget, window);
- display = gdk_window_get_display (window);
-
- if (gdk_display_supports_composite (display))
- gdk_window_set_composited (window, TRUE);
-
gdk_window_set_user_data (window, widget);
gtk_style_context_set_background (context, window);
diff --git a/gtk/gtktoolpalette.c b/gtk/gtktoolpalette.c
index be7dd8f36e..907c989c1c 100644
--- a/gtk/gtktoolpalette.c
+++ b/gtk/gtktoolpalette.c
@@ -696,38 +696,6 @@ gtk_tool_palette_size_allocate (GtkWidget *widget,
}
}
-static gboolean
-gtk_tool_palette_draw (GtkWidget *widget,
- cairo_t *cr)
-{
- GtkToolPalette *palette = GTK_TOOL_PALETTE (widget);
- GdkDisplay *display;
- GdkWindow *window;
- guint i;
-
- window = gtk_widget_get_window (widget);
-
- display = gdk_window_get_display (window);
-
- if (!gdk_display_supports_composite (display))
- return FALSE;
-
- cairo_push_group (cr);
-
- for (i = 0; i < palette->priv->groups->len; ++i)
- {
- GtkToolItemGroupInfo *info = g_ptr_array_index (palette->priv->groups, i);
- if (info->widget)
- _gtk_tool_item_group_paint (info->widget, cr);
- }
-
- cairo_pop_group_to_source (cr);
-
- cairo_paint (cr);
-
- return FALSE;
-}
-
static void
gtk_tool_palette_realize (GtkWidget *widget)
{
@@ -999,7 +967,6 @@ gtk_tool_palette_class_init (GtkToolPaletteClass *cls)
wclass->get_preferred_width = gtk_tool_palette_get_preferred_width;
wclass->get_preferred_height= gtk_tool_palette_get_preferred_height;
wclass->size_allocate = gtk_tool_palette_size_allocate;
- wclass->draw = gtk_tool_palette_draw;
wclass->realize = gtk_tool_palette_realize;
cclass->add = gtk_tool_palette_add;