mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 03:10:09 +00:00
gtk3-demo: Fix up toolpalette demo
The demo appears pretty broken, because some icons are not fitting well in the grid. Just skip the problematic icons.
This commit is contained in:
parent
9b4668c82c
commit
d292245659
@ -656,6 +656,9 @@ load_icon_items (GtkToolPalette *palette)
|
||||
GtkWidget *group = gtk_tool_item_group_new (context);
|
||||
gtk_container_add (GTK_CONTAINER (palette), group);
|
||||
|
||||
if (g_strcmp0 (context, "Animations") == 0)
|
||||
continue;
|
||||
|
||||
g_message ("Got context '%s'", context);
|
||||
icon_names = gtk_icon_theme_list_icons (icon_theme, context);
|
||||
icon_names = g_list_sort (icon_names, (GCompareFunc) strcmp);
|
||||
@ -665,6 +668,9 @@ load_icon_items (GtkToolPalette *palette)
|
||||
GtkToolItem *item;
|
||||
gchar *id = ll->data;
|
||||
|
||||
if (g_strcmp0 (id, "emblem-desktop") == 0)
|
||||
continue;
|
||||
|
||||
g_message ("Got id '%s'", id);
|
||||
|
||||
item = gtk_tool_button_new (NULL, NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user