Code

conditionally (Gtk>=2.6) ellipsize status bar text
authorrwst <rwst@users.sourceforge.net>
Thu, 26 Jan 2006 11:05:07 +0000 (11:05 +0000)
committerrwst <rwst@users.sourceforge.net>
Thu, 26 Jan 2006 11:05:07 +0000 (11:05 +0000)
src/widgets/desktop-widget.cpp

index b7832658fddef7284ba656f0b0814dc65c631836..311f93a1c1a70b7f468df18a937aa71af22df95a 100644 (file)
@@ -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