$OpenBSD: patch-panel_c,v 1.1 2010/04/27 20:05:05 jasper Exp $ Fix build with gtk+ 2.20. --- panel.c.orig Tue Apr 27 21:57:37 2010 +++ panel.c Tue Apr 27 21:59:39 2010 @@ -73,7 +73,7 @@ panel_set_wm_strut(panel *p) int i = 4; ENTER; - if (!GTK_WIDGET_MAPPED (p->topgwin)) + if (!gtk_widget_get_mapped (p->topgwin)) return; switch (p->edge) { case EDGE_LEFT: @@ -333,7 +333,7 @@ panel_style_set(GtkWidget *widget, GtkStyle *s, panel ENTER; gtk_rc_parse_string(transparent_rc); - if (GTK_WIDGET_REALIZED(widget)) + if (gtk_widget_get_realized(widget)) set_bg(widget, p); RET(); }