diff options
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); |