diff options
author | Claudio Saavedra <csaavedra@igalia.com> | 2010-06-21 14:05:28 +0300 |
---|---|---|
committer | Claudio Saavedra <csaavedra@igalia.com> | 2010-06-21 14:13:39 +0300 |
commit | 9617109822e582ed948195be00dbdc5fd5ed9e34 (patch) | |
tree | a2abab74b9b75401c49eed6943c5de88b9e3d7ce /examples/hildon-touch-selector-example.c | |
parent | e5920a452c2a3ba9267b8e9aef2350ee67dd5791 (diff) |
Do not add items that don't have a icon to the touchselector examples
The newly added hildon stock items don't have a corresponding icon, so
they shouldn't be added to the touchselector in these examples.
Diffstat (limited to 'examples/hildon-touch-selector-example.c')
-rw-r--r-- | examples/hildon-touch-selector-example.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/examples/hildon-touch-selector-example.c b/examples/hildon-touch-selector-example.c index 996c5fe..21104f9 100644 --- a/examples/hildon-touch-selector-example.c +++ b/examples/hildon-touch-selector-example.c @@ -66,9 +66,11 @@ create_selector () for (item = icon_list; item; item = g_slist_next (item)) { GtkTreeIter iter; gchar *label = item->data; - - gtk_list_store_append (store_icons, &iter); - gtk_list_store_set (store_icons, &iter, 0, label, -1); + if (gtk_style_lookup_icon_set (gtk_widget_get_style (selector), + label)) { + gtk_list_store_append (store_icons, &iter); + gtk_list_store_set (store_icons, &iter, 0, label, -1); + } g_free (label); } g_slist_free (icon_list); |