mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-07 17:20:07 +00:00
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
This commit is contained in:
parent
82c14f6f45
commit
d84a4acbb7
@ -1,3 +1,8 @@
|
||||
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]
|
||||
|
@ -1,3 +1,8 @@
|
||||
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]
|
||||
|
@ -1,3 +1,8 @@
|
||||
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]
|
||||
|
@ -1,3 +1,8 @@
|
||||
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]
|
||||
|
@ -1,3 +1,8 @@
|
||||
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]
|
||||
|
@ -1,3 +1,8 @@
|
||||
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]
|
||||
|
@ -1,3 +1,8 @@
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user