summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2001-05-25 22:08:53 +0000
committerHavoc Pennington <hp@src.gnome.org>2001-05-25 22:08:53 +0000
commite05472202d7b911e260dd90b59374e8c9a05c18e (patch)
tree5c5a846480a292f340c378fb0198746a42688f10 /demos
parentfe14698f7fcd99426cf1a1b4e0e07404430e9b37 (diff)
downloadgtk+-e05472202d7b911e260dd90b59374e8c9a05c18e.tar.gz
fix so that default icons are created if you call gtk_stock_list_ids()
2001-05-25 Havoc Pennington <hp@redhat.com> * gtk/gtkiconfactory.c: fix so that default icons are created if you call gtk_stock_list_ids() * demos/gtk-demo/stock_browser.c (create_model): sort stock items in list
Diffstat (limited to 'demos')
-rw-r--r--demos/gtk-demo/stock_browser.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/demos/gtk-demo/stock_browser.c b/demos/gtk-demo/stock_browser.c
index e48c216112..33120fe6dc 100644
--- a/demos/gtk-demo/stock_browser.c
+++ b/demos/gtk-demo/stock_browser.c
@@ -1,10 +1,13 @@
/* Stock Item/Icon Browser
*
* This source code for this demo doesn't demonstrate anything
- * particularly useful in applications, it just lets you scan the
- * available stock icons and stock items.
+ * particularly useful in applications. The purpose of the "demo" is
+ * just to provide a handy place to browse the available stock icons
+ * and stock items.
*/
+#include <string.h>
+
#include <gtk/gtk.h>
static GtkWidget *window = NULL;
@@ -134,6 +137,7 @@ create_model (void)
store = gtk_list_store_new_with_types (1, STOCK_ITEM_INFO_TYPE);
ids = gtk_stock_list_ids ();
+ ids = g_slist_sort (ids, (GCompareFunc) strcmp);
tmp_list = ids;
while (tmp_list != NULL)
{