![](https://secure.gravatar.com/avatar/ad7c76b9aa8758315397d0dfb15fc222.jpg?s=120&d=mm&r=g)
On Jan 5, 2011, at 6:00 AM, Alexander Wright wrote:
svg-view.cpp:116:28: error: ‘gdk_cursor_unref’ was not declared in this scope svg-view.cpp: In member function ‘virtual void SPSVGView::mouseout()’: svg-view.cpp:122:70: error: ‘GTK_WIDGET’ was not declared in this scope svg-view.cpp:122:85: error: ‘gdk_window_set_cursor’ was not declared in this scope make[3]: *** [svg-view.o] Error 1
Adding #include <gtk/gtk.h> to svg-view.cpp and widgets/sp-color-wheel- selector.cpp fixes the problem.
In general, good practice is to include only the smallest set of headers that a .cpp file will be consuming. Avoiding "kitchen sink" headers brings many advantages including code clarity, better modularity and encapsulation, faster compile times, etc.
It appears that GTK might be moving away from this. Although adding <gtk/gtk.h> might help 'unbreak' a compile, I'd see if a few explicit additions can help. (BTW, this is a perfect example of problems due to one include file including other include files).
Given that the GTK_WIDGET macro is not defined, try adding <gtk/gtkwidget.h> as an include. For the GDK_HAND2 macro, try adding #include <gdk/gdkcursor.h>