From e9aac45cec4606ade432551f8da3cf33604de75d Mon Sep 17 00:00:00 2001 From: infirit Date: Thu, 27 Nov 2014 18:07:38 +0100 Subject: Fix build with GSEAL Use gdk_drag_context_list_targets for both Gtk+ versions. And use gdk_visual_get_depth instead of visual->depth --- accessx-status/applet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'accessx-status/applet.c') diff --git a/accessx-status/applet.c b/accessx-status/applet.c index b4603322..d4e39826 100644 --- a/accessx-status/applet.c +++ b/accessx-status/applet.c @@ -412,7 +412,7 @@ static GdkPixbuf* accessx_status_applet_get_glyph_pixbuf(AccessxStatusApplet* sa #if GTK_CHECK_VERSION (3, 0, 0) surface = gdk_window_create_similar_surface (gdk_get_default_root_window (), CAIRO_CONTENT_COLOR_ALPHA, w, h); #else - pixmap = gdk_pixmap_new(NULL, gdk_pixbuf_get_width(base), gdk_pixbuf_get_height(base), visual->depth); + pixmap = gdk_pixmap_new(NULL, gdk_pixbuf_get_width(base), gdk_pixbuf_get_height(base), gdk_visual_get_depth(visual)); #endif pango_context = gtk_widget_get_pango_context(widget); layout = pango_layout_new(pango_context); -- cgit v1.2.1