+
+#define PIXBUF_NEW_FROM_FILE(FILE) \
+ gdk_pixbuf_new_from_file (relocate (PKGDATADIR "/" FILE), 0)
+
+
+void
+create_icon_factory (void)
+{
+ GtkIconFactory *factory = gtk_icon_factory_new ();
+
+ GtkIconSet *icon_set;
+
+ GdkPixbuf *pixbuf;
+
+ pixbuf = PIXBUF_NEW_FROM_FILE ("value-labels.png");
+ icon_set = gtk_icon_set_new_from_pixbuf (pixbuf);
+ g_object_unref (pixbuf);
+ gtk_icon_factory_add ( factory, "pspp-value-labels", icon_set);
+
+ pixbuf = PIXBUF_NEW_FROM_FILE ("weight-cases.png");
+ icon_set = gtk_icon_set_new_from_pixbuf (pixbuf);
+ g_object_unref (pixbuf);
+ gtk_icon_factory_add ( factory, "pspp-weight-cases", icon_set);
+
+ pixbuf = PIXBUF_NEW_FROM_FILE ("goto-variable.png");
+ icon_set = gtk_icon_set_new_from_pixbuf (pixbuf);
+ g_object_unref (pixbuf);
+ gtk_icon_factory_add ( factory, "pspp-goto-variable", icon_set);
+
+ pixbuf = PIXBUF_NEW_FROM_FILE ("insert-variable.png");
+ icon_set = gtk_icon_set_new_from_pixbuf (pixbuf);
+ g_object_unref (pixbuf);
+ gtk_icon_factory_add ( factory, "pspp-insert-variable", icon_set);
+
+ pixbuf = PIXBUF_NEW_FROM_FILE ("insert-case.png");
+ icon_set = gtk_icon_set_new_from_pixbuf (pixbuf);
+ g_object_unref (pixbuf);
+ gtk_icon_factory_add ( factory, "pspp-insert-case", icon_set);
+
+ pixbuf = PIXBUF_NEW_FROM_FILE ("split-file.png");
+ icon_set = gtk_icon_set_new_from_pixbuf (pixbuf);
+ g_object_unref (pixbuf);
+ gtk_icon_factory_add ( factory, "pspp-split-file", icon_set);
+
+ pixbuf = PIXBUF_NEW_FROM_FILE ("select-cases.png");
+ icon_set = gtk_icon_set_new_from_pixbuf (pixbuf);
+ g_object_unref (pixbuf);
+ gtk_icon_factory_add ( factory, "pspp-select-cases", icon_set);
+
+ pixbuf = PIXBUF_NEW_FROM_FILE ("recent-dialogs.png");
+ icon_set = gtk_icon_set_new_from_pixbuf (pixbuf);
+ g_object_unref (pixbuf);
+ gtk_icon_factory_add ( factory, "pspp-recent-dialogs", icon_set);
+
+
+
+ gtk_icon_factory_add_default (factory);
+}
+