summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-11-27 18:07:38 +0100
committerinfirit <[email protected]>2014-11-27 18:18:11 +0100
commite9aac45cec4606ade432551f8da3cf33604de75d (patch)
tree13bd725dcb187fed89c089e145827624671f5464
parenta6aeef4928c66eac01019067767ce8483885ef7e (diff)
downloadmate-applets-e9aac45cec4606ade432551f8da3cf33604de75d.tar.bz2
mate-applets-e9aac45cec4606ade432551f8da3cf33604de75d.tar.xz
Fix build with GSEAL
Use gdk_drag_context_list_targets for both Gtk+ versions. And use gdk_visual_get_depth instead of visual->depth
-rw-r--r--accessx-status/applet.c2
-rw-r--r--trashapplet/src/trashapplet.c4
2 files changed, 1 insertions, 5 deletions
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);
diff --git a/trashapplet/src/trashapplet.c b/trashapplet/src/trashapplet.c
index c159a93f..104fd10c 100644
--- a/trashapplet/src/trashapplet.c
+++ b/trashapplet/src/trashapplet.c
@@ -314,11 +314,7 @@ trash_applet_drag_motion (GtkWidget *widget,
GList *target;
/* refuse drops of panel applets */
-#if GTK_CHECK_VERSION (3, 0, 0)
for (target = gdk_drag_context_list_targets (context); target; target = target->next)
-#else
- for (target = context->targets; target; target = target->next)
-#endif
{
const char *name = gdk_atom_name (target->data);