Add base stock icons statically to save some memory

This commit is contained in:
Christian Dywan 2010-10-05 21:39:21 +02:00
parent 1e49e9f95c
commit a9406ab0ec

View file

@ -1333,7 +1333,7 @@ sokoke_register_stock_items (void)
gtk_icon_factory_add (factory, items[i].stock_id, icon_set);
gtk_icon_set_unref (icon_set);
}
gtk_stock_add ((GtkStockItem*)items, G_N_ELEMENTS (items));
gtk_stock_add_static ((GtkStockItem*)items, G_N_ELEMENTS (items));
gtk_icon_factory_add_default (factory);
g_object_unref (factory);