Package: gtkglextmm / 1.2.0-8

fix_ftbfs_gtk_2_20 Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Description: Fix FTBFS due to missing GdkSpanFunc definition
 .
 The sequence of #include directives is important - if gtk/gtkglwidget.h
 is included first, before widget.h, it includes gdk.h without undefing
 GDK_DISABLE_DEPRECATED - this leads to GdkSpanFunc not being defined
 and compilation errors. 
 The fix is to first include widget.h which includes the right gdkmm header
 which defines GDK_DISABLE_DEPRECATED before including gdk.h.
Forwarded: no
Bug-Ubuntu: http://launchpad.net/bugs/662572

Index: gtkglextmm-1.2.0/gtkglext/gtkmm/gl/widget.cc
===================================================================
--- gtkglextmm-1.2.0.orig/gtkglext/gtkmm/gl/widget.cc	2010-12-08 13:31:59.651270000 +0100
+++ gtkglextmm-1.2.0/gtkglext/gtkmm/gl/widget.cc	2010-12-08 13:32:10.871270000 +0100
@@ -17,10 +17,10 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA.
  */
 
-#include <gtk/gtkglwidget.h>
-
 #include "widget.h"
 
+#include <gtk/gtkglwidget.h>
+
 namespace Gtk
 {
   namespace GL