summaryrefslogtreecommitdiff
path: root/gtkglextmm/fix_ftbfs_gtk_2_20.patch
blob: 1755f93e36e7f010dcf1dcc12ab22a608121c6c6 (plain)
    1 Description: Fix FTBFS due to missing GdkSpanFunc definition
    2  .
    3  The sequence of #include directives is important - if gtk/gtkglwidget.h
    4  is included first, before widget.h, it includes gdk.h without undefing
    5  GDK_DISABLE_DEPRECATED - this leads to GdkSpanFunc not being defined
    6  and compilation errors. 
    7  The fix is to first include widget.h which includes the right gdkmm header
    8  which defines GDK_DISABLE_DEPRECATED before including gdk.h.
    9 Forwarded: no
   10 Bug-Ubuntu: http://launchpad.net/bugs/662572
   11 
   12 Index: gtkglextmm-1.2.0/gtkglext/gtkmm/gl/widget.cc
   13 ===================================================================
   14 --- gtkglextmm-1.2.0.orig/gtkglext/gtkmm/gl/widget.cc	2010-12-08 13:31:59.651270000 +0100
   15 +++ gtkglextmm-1.2.0/gtkglext/gtkmm/gl/widget.cc	2010-12-08 13:32:10.871270000 +0100
   16 @@ -17,10 +17,10 @@
   17   * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA.
   18   */
   19  
   20 -#include <gtk/gtkglwidget.h>
   21 -
   22  #include "widget.h"
   23  
   24 +#include <gtk/gtkglwidget.h>
   25 +
   26  namespace Gtk
   27  {
   28    namespace GL

Generated by cgit