Code

use alternative form of Gtk version check,
authorrwst <rwst@users.sourceforge.net>
Sun, 29 Jan 2006 09:49:54 +0000 (09:49 +0000)
committerrwst <rwst@users.sourceforge.net>
Sun, 29 Jan 2006 09:49:54 +0000 (09:49 +0000)
trying to remove compile error on test box

src/ui/view/edit-widget.cpp

index b86a5d3f9f79261b6ca8bd6284ecff58f4f56c8c..71838c5776ea70f820be6933c90923426ab286d4 100644 (file)
@@ -35,6 +35,7 @@
 #include <gtkmm/stock.h>
 #include <gtkmm/accelmap.h>
 #include <gtkmm/separator.h>
+#include <gtkmm/base.h>
 
 #include "macros.h"
 #include "path-prefix.h"
@@ -1157,7 +1158,7 @@ EditWidget::initStatusbar()
     _select_status.property_yalign() = 0.5;
     _select_status.set_markup (_("<b>Welcome to Inkscape!</b> Use shape or freehand tools to create objects; use selector (arrow) to move or transform them."));
     // include this again with Gtk+-2.6
-#if GTK_MAJOR_VERSION == 2 && GTK_MINOR_VERSION >= 6
+#if GTK_VERSION_GE(2,6)
     _select_status.property_ellipsize() = Pango::ELLIPSIZE_END;
 #endif
     _select_status.set_size_request (1, -1);