[gtk+] gtk3-demo: Fix up toolpalette demo
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gtk3-demo: Fix up toolpalette demo
- Date: Tue, 13 May 2014 10:26:35 +0000 (UTC)
commit d292245659a86602b5e1d74a58ac28b1ac0e9b36
Author: Matthias Clasen <mclasen redhat com>
Date: Tue May 13 06:15:56 2014 -0400
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.
demos/gtk-demo/toolpalette.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/demos/gtk-demo/toolpalette.c b/demos/gtk-demo/toolpalette.c
index 9accab5..1f5bf9b 100644
--- a/demos/gtk-demo/toolpalette.c
+++ b/demos/gtk-demo/toolpalette.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]