From cfd67b23e1f172e3ea834b42805d04bc7b0013e8 Mon Sep 17 00:00:00 2001 From: rwst Date: Thu, 26 Jan 2006 11:05:07 +0000 Subject: [PATCH] conditionally (Gtk>=2.6) ellipsize status bar text --- src/widgets/desktop-widget.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/widgets/desktop-widget.cpp b/src/widgets/desktop-widget.cpp index b7832658f..311f93a1c 100644 --- a/src/widgets/desktop-widget.cpp +++ b/src/widgets/desktop-widget.cpp @@ -327,6 +327,9 @@ sp_desktop_widget_init (SPDesktopWidget *dtw) dtw->select_status_eventbox = gtk_event_box_new (); dtw->select_status = gtk_label_new (NULL); +#if GTK_MAJOR_VERSION == 2 && GTK_MINOR_VERSION >= 6 + gtk_label_set_ellipsize (GTK_LABEL(dtw->select_status), PANGO_ELLIPSIZE_END); +#endif gtk_misc_set_alignment (GTK_MISC (dtw->select_status), 0.0, 0.5); gtk_widget_set_size_request (dtw->select_status, 1, -1); // display the initial welcome message in the statusbar -- 2.30.2