Commit 21707f0d authored by Tristan Van Berkom's avatar Tristan Van Berkom
Browse files

* gladeui/glade-palette.c: Dont strdup the adaptor names in the local hash table (those

	  strings are constant data, no need to dup them).
parent 60d62a89
2011-01-21 Tristan Van Berkom <tristanvb@openismus.com>
* gladeui/glade-palette.c: Dont strdup the adaptor names in the local hash table (those
strings are constant data, no need to dup them).
2011-01-19 Tristan Van Berkom <tristanvb@openismus.com>
* plugins/gtk+/gtk+.xml.in: Remove GtkTreeSelection from the palette, it's only available
......
......@@ -331,7 +331,7 @@ glade_palette_new_item (GladePalette * palette, GladeWidgetAdaptor * adaptor)
gtk_widget_show (item);
g_hash_table_insert (palette->priv->button_table,
g_strdup (glade_widget_adaptor_get_name (adaptor)),
(gchar *)glade_widget_adaptor_get_name (adaptor),
item);
return item;
......@@ -638,8 +638,7 @@ glade_palette_init (GladePalette * palette)
priv = palette->priv = GLADE_PALETTE_GET_PRIVATE (palette);
priv->button_table = g_hash_table_new_full (g_str_hash, g_str_equal,
(GDestroyNotify)g_free, NULL);
priv->button_table = g_hash_table_new (g_str_hash, g_str_equal);
priv->item_appearance = GLADE_ITEM_ICON_ONLY;
priv->use_small_item_icons = FALSE;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment