[gtk+] filechooserentry: Don't use a magic number
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] filechooserentry: Don't use a magic number
- Date: Fri, 16 Dec 2011 19:11:19 +0000 (UTC)
commit edddb666a728ca31db3df723ae2ecb17d944c2ee
Author: Benjamin Otte <otte redhat com>
Date: Sat Nov 5 22:36:16 2011 +0100
filechooserentry: Don't use a magic number
... when we have a proper enum value for a column.
gtk/gtkfilechooserentry.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkfilechooserentry.c b/gtk/gtkfilechooserentry.c
index e102652..477439a 100644
--- a/gtk/gtkfilechooserentry.c
+++ b/gtk/gtkfilechooserentry.c
@@ -223,7 +223,7 @@ _gtk_file_chooser_entry_init (GtkFileChooserEntry *chooser_entry)
cell, TRUE);
gtk_cell_layout_add_attribute (GTK_CELL_LAYOUT (comp),
cell,
- "text", 0);
+ "text", DISPLAY_NAME_COLUMN);
g_signal_connect (comp, "match-selected",
G_CALLBACK (match_selected_callback), chooser_entry);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]