diff options
| author | Ralf Stephan <ralf@ark.in-berlin.de> | 2006-01-26 10:28:49 +0000 |
|---|---|---|
| committer | rwst <rwst@users.sourceforge.net> | 2006-01-26 10:28:49 +0000 |
| commit | 358aaee2a8826933049e2a4d9c09efbf5ebe291c (patch) | |
| tree | 032f9b9ae1e5b131c2fef835df7cd369e59d5cde /src | |
| parent | Cleanup. (diff) | |
| download | inkscape-358aaee2a8826933049e2a4d9c09efbf5ebe291c.tar.gz inkscape-358aaee2a8826933049e2a4d9c09efbf5ebe291c.zip | |
conditionally (Gtk>=2.6) ellipsize status bar text
(bzr r33)
Diffstat (limited to 'src')
| -rw-r--r-- | src/ui/view/edit-widget.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ui/view/edit-widget.cpp b/src/ui/view/edit-widget.cpp index 5139f8ebf..b86a5d3f9 100644 --- a/src/ui/view/edit-widget.cpp +++ b/src/ui/view/edit-widget.cpp @@ -28,6 +28,7 @@ #endif #include <gtk/gtkwindow.h> +#include <gtk/gtkversion.h> #include <gtkmm/radioaction.h> #include <gtkmm/menubar.h> #include <gtkmm/messagedialog.h> @@ -1156,7 +1157,9 @@ 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 - //_select_status.property_ellipsize() = Pango::ELLIPSIZE_END; +#if GTK_MAJOR_VERSION == 2 && GTK_MINOR_VERSION >= 6 + _select_status.property_ellipsize() = Pango::ELLIPSIZE_END; +#endif _select_status.set_size_request (1, -1); _statusbar.pack_start (_select_status, true, true, 0); |
