summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2014-06-21 00:30:07 -0400
committerJasper St. Pierre <jstpierre@mecheye.net>2014-06-21 00:30:45 -0400
commit4a72563c7b801052f4291a4757bd1011946677b9 (patch)
tree5bf6317ce4425ad657df59fb6074f93c228c09f5
parent0ec00ffbb04796546785fcd4fa8df092b8564e43 (diff)
downloadgtk+-4a72563c7b801052f4291a4757bd1011946677b9.tar.gz
gtktrayicon-x11: Stop using set_double_buffered
There's nothing better we can do for this case, now that we always redirect drawing to a temporary pixmap. Maybe since this is already X11-specific code, we should just do everything with Xlib directly.
-rw-r--r--gtk/gtktrayicon-x11.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/gtk/gtktrayicon-x11.c b/gtk/gtktrayicon-x11.c
index 371cd0ed62..503d64b65b 100644
--- a/gtk/gtktrayicon-x11.c
+++ b/gtk/gtktrayicon-x11.c
@@ -355,27 +355,6 @@ gtk_tray_icon_draw (GtkWidget *widget,
cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE);
cairo_paint (cr);
}
- else
- {
- GdkRectangle clip;
-
- if (gdk_cairo_get_clip_rectangle (cr, &clip))
- {
- /* Clear to parent-relative pixmap
- * We need to use direct X access here because GDK doesn't know about
- * the parent realtive pixmap. */
- cairo_surface_flush (target);
-
- XClearArea (GDK_WINDOW_XDISPLAY (window),
- GDK_WINDOW_XID (window),
- clip.x, clip.y,
- clip.width, clip.height,
- False);
- cairo_surface_mark_dirty_rectangle (target,
- clip.x, clip.y,
- clip.width, clip.height);
- }
- }
if (GTK_WIDGET_CLASS (gtk_tray_icon_parent_class)->draw)
retval = GTK_WIDGET_CLASS (gtk_tray_icon_parent_class)->draw (widget, cr);
@@ -501,11 +480,6 @@ gtk_tray_icon_get_visual_property (GtkTrayIcon *icon)
icon->priv->manager_visual_rgba = FALSE;
}
- /* For the background-relative hack we use when we aren't
- * using a real RGBA visual, we can't be double-buffered
- */
- gtk_widget_set_double_buffered (GTK_WIDGET (icon), icon->priv->manager_visual_rgba);
-
if (type != None)
XFree (prop.prop);
}