Fix compilation (#135278, Padraig O'Briain).

2004-02-24  Anders Carlsson  <andersca@gnome.org>

	* gtk/gtkfilechooserdefault.c: (shortcuts_insert_separator):
	Fix compilation (#135278, Padraig O'Briain).
This commit is contained in:
Anders Carlsson 2004-02-24 11:48:13 +00:00 committed by Anders Carlsson
parent 03d4027ff7
commit 0cc7bb4f20
6 changed files with 42 additions and 17 deletions

View File

@ -1,3 +1,8 @@
2004-02-24 Anders Carlsson <andersca@gnome.org>
* gtk/gtkfilechooserdefault.c: (shortcuts_insert_separator):
Fix compilation (#135278, Padraig O'Briain).
2004-02-24 Anders Carlsson <andersca@gnome.org>
* gtk/gtkfilechooserdefault.c: (shortcuts_append_desktop):

View File

@ -1,3 +1,8 @@
2004-02-24 Anders Carlsson <andersca@gnome.org>
* gtk/gtkfilechooserdefault.c: (shortcuts_insert_separator):
Fix compilation (#135278, Padraig O'Briain).
2004-02-24 Anders Carlsson <andersca@gnome.org>
* gtk/gtkfilechooserdefault.c: (shortcuts_append_desktop):

View File

@ -1,3 +1,8 @@
2004-02-24 Anders Carlsson <andersca@gnome.org>
* gtk/gtkfilechooserdefault.c: (shortcuts_insert_separator):
Fix compilation (#135278, Padraig O'Briain).
2004-02-24 Anders Carlsson <andersca@gnome.org>
* gtk/gtkfilechooserdefault.c: (shortcuts_append_desktop):

View File

@ -1,3 +1,8 @@
2004-02-24 Anders Carlsson <andersca@gnome.org>
* gtk/gtkfilechooserdefault.c: (shortcuts_insert_separator):
Fix compilation (#135278, Padraig O'Briain).
2004-02-24 Anders Carlsson <andersca@gnome.org>
* gtk/gtkfilechooserdefault.c: (shortcuts_append_desktop):

View File

@ -1,3 +1,8 @@
2004-02-24 Anders Carlsson <andersca@gnome.org>
* gtk/gtkfilechooserdefault.c: (shortcuts_insert_separator):
Fix compilation (#135278, Padraig O'Briain).
2004-02-24 Anders Carlsson <andersca@gnome.org>
* gtk/gtkfilechooserdefault.c: (shortcuts_append_desktop):

View File

@ -914,6 +914,23 @@ remove_bookmark_cb (GtkFileChooserDefault *impl, gpointer data)
gtk_file_path_free (path);
}
/* Inserts the bookmarks separator node */
static void
shortcuts_insert_separator (GtkFileChooserDefault *impl)
{
GtkTreeIter iter;
gtk_list_store_insert (impl->shortcuts_model, &iter,
shortcuts_get_index (impl, SHORTCUTS_SEPARATOR));
gtk_list_store_set (impl->shortcuts_model, &iter,
SHORTCUTS_COL_PIXBUF, NULL,
SHORTCUTS_COL_PIXBUF_VISIBLE, FALSE,
SHORTCUTS_COL_NAME, NULL,
SHORTCUTS_COL_PATH, NULL,
-1);
}
/* Creates the GtkTreeStore used as the shortcuts model */
/* Updates the list of bookmarks */
static void
shortcuts_add_bookmarks (GtkFileChooserDefault *impl)
@ -939,23 +956,6 @@ shortcuts_add_bookmarks (GtkFileChooserDefault *impl)
}
}
/* Inserts the bookmarks separator node */
static void
shortcuts_insert_separator (GtkFileChooserDefault *impl)
{
GtkTreeIter iter;
gtk_list_store_insert (impl->shortcuts_model, &iter,
shortcuts_get_index (impl, SHORTCUTS_SEPARATOR));
gtk_list_store_set (impl->shortcuts_model, &iter,
SHORTCUTS_COL_PIXBUF, NULL,
SHORTCUTS_COL_PIXBUF_VISIBLE, FALSE,
SHORTCUTS_COL_NAME, NULL,
SHORTCUTS_COL_PATH, NULL,
-1);
}
/* Creates the GtkTreeStore used as the shortcuts model */
static void
create_shortcuts_model (GtkFileChooserDefault *impl)
{