diff options
author | Federico Mena Quintero <federico@novell.com> | 2009-09-11 13:08:11 -0500 |
---|---|---|
committer | Benjamin Otte <otte@gnome.org> | 2009-10-15 22:06:18 +0200 |
commit | 90647c1a13e579e12410d175c0b2b0086e3b6fe4 (patch) | |
tree | bceaccc935d3b9f7582b5c1ee676d311853303d5 /gtk/gtkfilechooserdefault.c | |
parent | 0144521438f129c85b1b3ddebd52d89c63c3f841 (diff) | |
download | gtk+-90647c1a13e579e12410d175c0b2b0086e3b6fe4.tar.gz |
Comment that the column order needs to be kept in sync across two functions
Signed-off-by: Federico Mena Quintero <federico@novell.com>
Diffstat (limited to 'gtk/gtkfilechooserdefault.c')
-rw-r--r-- | gtk/gtkfilechooserdefault.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c index 2ffbbc5722..f6ea9d6d6c 100644 --- a/gtk/gtkfilechooserdefault.c +++ b/gtk/gtkfilechooserdefault.c @@ -4468,6 +4468,8 @@ create_file_list (GtkFileChooserDefault *impl) g_signal_connect (selection, "changed", G_CALLBACK (list_selection_changed), impl); + /* Keep the column order in sync with update_cell_renderer_attributes() */ + /* Filename column */ impl->list_name_column = gtk_tree_view_column_new (); @@ -10029,6 +10031,8 @@ update_cell_renderer_attributes (GtkFileChooserDefault *impl) always_sensitive = impl->action != GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER && impl->action != GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER; + /* Keep the following column numbers in sync with create_file_list() */ + /* name */ column = gtk_tree_view_get_column (GTK_TREE_VIEW (impl->browse_files_tree_view), 0); list = gtk_cell_layout_get_cells (GTK_CELL_LAYOUT (column)); |