openbsd-ports/x11/gtkglext/patches/patch-examples_pixmap-mixed_c
jasper 7274a9d821 - "unbreak" with the latest gtk2. gtkglext itself would compile fine, but
apps linking to it would get the undefined GTK_WIDGET_* errors.

ok steven@ (MAINTAINER)
2010-04-28 07:11:31 +00:00

16 lines
564 B
Plaintext

$OpenBSD: patch-examples_pixmap-mixed_c,v 1.1 2010/04/28 07:11:31 jasper Exp $
Fix build with gtk2 2.20.
--- examples/pixmap-mixed.c.orig Tue Apr 27 23:42:21 2010
+++ examples/pixmap-mixed.c Tue Apr 27 23:42:37 2010
@@ -154,7 +154,7 @@ expose_event (GtkWidget *widget,
gpointer data)
{
gdk_draw_drawable (widget->window,
- widget->style->fg_gc[GTK_WIDGET_STATE (widget)],
+ widget->style->fg_gc[gtk_widget_get_state (widget)],
pixmap,
event->area.x, event->area.y,
event->area.x, event->area.y,