Commit d84a4acb authored by Kristian Rietveld's avatar Kristian Rietveld Committed by Kristian Rietveld

Anders Carlsson suggested to use G_N_ELEMENTS here

Fri Oct 26 18:27:11 2001  Kristian Rietveld  <kristian@planet.nl>

        * demos/gtk-demo/list_store.c (create_model): Anders
        Carlsson suggested to use G_N_ELEMENTS here
parent 82c14f6f
Fri Oct 26 18:27:11 2001 Kristian Rietveld <kristian@planet.nl>
* demos/gtk-demo/list_store.c (create_model): Anders
Carlsson suggested to use G_N_ELEMENTS here
2001-10-26 Sven Neumann <sven@gimp.org>
* gtk/gtkbutton.[ch]
......
Fri Oct 26 18:27:11 2001 Kristian Rietveld <kristian@planet.nl>
* demos/gtk-demo/list_store.c (create_model): Anders
Carlsson suggested to use G_N_ELEMENTS here
2001-10-26 Sven Neumann <sven@gimp.org>
* gtk/gtkbutton.[ch]
......
Fri Oct 26 18:27:11 2001 Kristian Rietveld <kristian@planet.nl>
* demos/gtk-demo/list_store.c (create_model): Anders
Carlsson suggested to use G_N_ELEMENTS here
2001-10-26 Sven Neumann <sven@gimp.org>
* gtk/gtkbutton.[ch]
......
Fri Oct 26 18:27:11 2001 Kristian Rietveld <kristian@planet.nl>
* demos/gtk-demo/list_store.c (create_model): Anders
Carlsson suggested to use G_N_ELEMENTS here
2001-10-26 Sven Neumann <sven@gimp.org>
* gtk/gtkbutton.[ch]
......
Fri Oct 26 18:27:11 2001 Kristian Rietveld <kristian@planet.nl>
* demos/gtk-demo/list_store.c (create_model): Anders
Carlsson suggested to use G_N_ELEMENTS here
2001-10-26 Sven Neumann <sven@gimp.org>
* gtk/gtkbutton.[ch]
......
Fri Oct 26 18:27:11 2001 Kristian Rietveld <kristian@planet.nl>
* demos/gtk-demo/list_store.c (create_model): Anders
Carlsson suggested to use G_N_ELEMENTS here
2001-10-26 Sven Neumann <sven@gimp.org>
* gtk/gtkbutton.[ch]
......
Fri Oct 26 18:27:11 2001 Kristian Rietveld <kristian@planet.nl>
* demos/gtk-demo/list_store.c (create_model): Anders
Carlsson suggested to use G_N_ELEMENTS here
2001-10-26 Sven Neumann <sven@gimp.org>
* gtk/gtkbutton.[ch]
......
......@@ -45,7 +45,6 @@ static Bug data[] =
{ TRUE, 50939, "Normal", "Add shift clicking to GtkTextView" },
{ FALSE, 6112, "Enhancement","netscape-like collapsable toolbars" },
{ FALSE, 1, "Normal", "First bug :=)" },
{ 0, 0, NULL, NULL }
};
static GtkTreeModel *
......@@ -63,7 +62,7 @@ create_model (void)
G_TYPE_STRING);
/* add data to the list store */
while (data[i].number)
for (i = 0; i < G_N_ELEMENTS (data); i++)
{
gtk_list_store_append (store, &iter);
gtk_list_store_set (store, &iter,
......@@ -72,7 +71,6 @@ create_model (void)
COLUMN_SEVERITY, data[i].severity,
COLUMN_DESCRIPTION, data[i].description,
-1);
i++;
}
return GTK_TREE_MODEL (store);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment