summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2005-07-07 20:31:05 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2005-07-07 20:31:05 +0000
commit4cf8eb0e91cb033c158708a605d15265c4ef0750 (patch)
treea5c8b246dd95975e0c5d6b17d32490bd2d0c36b1 /docs
parent5a997f0f37b8ecf340f887659366802c14afea46 (diff)
downloadgdk-pixbuf-4cf8eb0e91cb033c158708a605d15265c4ef0750.tar.gz
Corrections. (#309718, Tim-Philipp Müller)
2005-07-07 Matthias Clasen <mclasen@redhat.com> * gtk/migrating-GtkIconView.sgml: Corrections. (#309718, Tim-Philipp Müller)
Diffstat (limited to 'docs')
-rw-r--r--docs/reference/ChangeLog5
-rw-r--r--docs/reference/gtk/migrating-GtkIconView.sgml18
2 files changed, 14 insertions, 9 deletions
diff --git a/docs/reference/ChangeLog b/docs/reference/ChangeLog
index 1ffdb2353..20210ec9c 100644
--- a/docs/reference/ChangeLog
+++ b/docs/reference/ChangeLog
@@ -1,3 +1,8 @@
+2005-07-07 Matthias Clasen <mclasen@redhat.com>
+
+ * gtk/migrating-GtkIconView.sgml: Corrections.
+ (#309718, Tim-Philipp Müller)
+
2005-07-06 Matthias Clasen <mclasen@redhat.com>
* gdk/tmpl/general.sgml: Point to GdkEventGrabBroken
diff --git a/docs/reference/gtk/migrating-GtkIconView.sgml b/docs/reference/gtk/migrating-GtkIconView.sgml
index 5f307126b..d571dc0b2 100644
--- a/docs/reference/gtk/migrating-GtkIconView.sgml
+++ b/docs/reference/gtk/migrating-GtkIconView.sgml
@@ -48,19 +48,19 @@
};
void
- fill_model (GtkListStore *model)
+ fill_model (GtkListStore *store)
{
GtkTreeIter iter;
GdkPixbuf *pixbuf;
- gtk_list_store_append (model, &amp;iter);
+ gtk_list_store_append (store, &amp;iter);
pixbuf = gdk_pixbuf_new_from_file ("file1.png", NULL);
- gtk_list_store_set (model, &amp;iter, PIXBUF_COLUMN, pixbuf, TEXT_COLUMN, "Icon 1", -1);
+ gtk_list_store_set (store, &amp;iter, PIXBUF_COLUMN, pixbuf, TEXT_COLUMN, "Icon 1", -1);
g_object_unref (pixbuf);
- gtk_list_store_append (model, &amp;iter);
+ gtk_list_store_append (store, &amp;iter);
pixbuf = gdk_pixbuf_new_from_file ("file2.png", NULL);
- gnome_icon_list_append (icon_list, PIXBUF_COLUMN, pixbuf, TEXT_COLUMN, "Icon 2", -1);
+ gtk_list_store_set (store, &amp;iter, PIXBUF_COLUMN, pixbuf, TEXT_COLUMN, "Icon 2", -1);
g_object_unref (pixbuf);
/* more icons ... */
@@ -70,7 +70,7 @@
main (int argc, char *argv[])
{
GtkWidget *icon_view;
- GtkTreeModel *model;
+ GtkListStore *store;
gtk_init (&amp;argc, &amp;argv);
@@ -78,13 +78,13 @@
/* construct the GtkIconView */
icon_view = gtk_icon_view_new (<!-- -->);
- model = gtk_list_store_new (3, GDK_TYPE_PIXBUF, G_TYPE_STRING, G_TYPE_POINTER);
+ store = gtk_list_store_new (3, GDK_TYPE_PIXBUF, G_TYPE_STRING, G_TYPE_POINTER);
gtk_icon_view_set_pixbuf_column (GTK_ICON_VIEW (icon_view), PIXBUF_COLUMN);
gtk_icon_view_set_text_column (GTK_ICON_VIEW (icon_view), TEXT_COLUMN);
- gtk_icon_view_set_model GTK_ICON_VIEW (icon_view), model);
+ gtk_icon_view_set_model (GTK_ICON_VIEW (icon_view), GTK_TREE_MODEL (store));
- fill_model (model);
+ fill_model (store);
/* ... */
}