[nautilus] Don't allow multiline filenames
- From: William Jon McCann <mccann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] Don't allow multiline filenames
- Date: Thu, 30 Aug 2012 20:46:33 +0000 (UTC)
commit 94967e5af444b46ba3fb915c77785b7d85e7c39e
Author: William Jon McCann <jmccann redhat com>
Date: Thu Aug 30 15:46:32 2012 -0400
Don't allow multiline filenames
https://bugzilla.gnome.org/show_bug.cgi?id=683059
src/nautilus-floating-bar.c | 1 +
src/nautilus-list-view.c | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-floating-bar.c b/src/nautilus-floating-bar.c
index e37a81a..4298dca 100644
--- a/src/nautilus-floating-bar.c
+++ b/src/nautilus-floating-bar.c
@@ -234,6 +234,7 @@ nautilus_floating_bar_constructed (GObject *obj)
w = gtk_label_new (NULL);
gtk_label_set_ellipsize (GTK_LABEL (w), PANGO_ELLIPSIZE_END);
+ gtk_label_set_single_line_mode (GTK_LABEL (w), TRUE);
gtk_box_pack_start (GTK_BOX (box), w, FALSE, FALSE, 0);
g_object_set (w,
"margin-top", 2,
diff --git a/src/nautilus-list-view.c b/src/nautilus-list-view.c
index 289912c..6ebd34c 100644
--- a/src/nautilus-list-view.c
+++ b/src/nautilus-list-view.c
@@ -1507,6 +1507,7 @@ create_and_set_up_tree_view (NautilusListView *view)
view->details->file_name_cell = (GtkCellRendererText *)cell;
g_object_set (cell,
"ellipsize", PANGO_ELLIPSIZE_END,
+ "single-paragraph-mode", TRUE,
"xpad", 5,
NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]