Commit 401c36b6 authored by Juan Pablo Ugarte's avatar Juan Pablo Ugarte

in list_stock_items() "gtk-" prefix must be prepended just once. otherwise

* gladeui/glade-builtins.c: in list_stock_items() "gtk-" prefix must be prepended just once.
  otherwise gtk items gets listed twice!

svn path=/trunk/; revision=1340
parent b702dbfa
2007-06-06 Juan Pablo Ugarte <juanpablougarte@gmail.com>
* gladeui/glade-builtins.c: in list_stock_items() "gtk-" prefix must be prepended just once.
otherwise gtk items gets listed twice!
* gladeui/glade-placeholder.[ch]: added packing action list to GladePlaceholder
* gladeui/glade-popup.c: added packing actions to placeholder popup
......
......@@ -110,7 +110,10 @@ list_stock_items (gboolean include_images)
values = g_array_append_val (values, value);
/* We want gtk+ stock items to appear first */
stock_prefixs = g_slist_prepend (stock_prefixs, g_strdup ("gtk-"));
if ((stock_prefixs && strcmp (stock_prefixs->data, "gtk-")) ||
stock_prefixs == NULL)
stock_prefixs = g_slist_prepend (stock_prefixs, g_strdup ("gtk-"));
for (p = stock_prefixs; p; p = g_slist_next (p))
{
prefix = p->data;
......
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