/* stock_icons.c generated by valac 0.36.3, the Vala compiler
 * generated from stock_icons.vala, do not modify */

/*
 * This file is part of LaTeXila.
 *
 * Copyright © 2012 Sébastien Wilmet
 *
 * LaTeXila is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * LaTeXila is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with LaTeXila.  If not, see <http://www.gnu.org/licenses/>.
 *
 * Author: Sébastien Wilmet
 */
/* Add some icons to the stock icons, so it can be used e.g. in menus.*/
/* See also:*/
/* data/images/stock-icons/stock-icons.gresource.xml*/

#include <glib.h>
#include <glib-object.h>
#include <stdlib.h>
#include <string.h>
#include <gtk/gtk.h>

#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _gtk_icon_set_unref0(var) ((var == NULL) ? NULL : (var = (gtk_icon_set_unref (var), NULL)))
#define _gtk_icon_source_free0(var) ((var == NULL) ? NULL : (var = (gtk_icon_source_free (var), NULL)))



void stock_icons_register_stock_icons (void);
void stock_icons_add_theme_icon_to_stock (const gchar* icon_name);


void stock_icons_register_stock_icons (void) {
	stock_icons_add_theme_icon_to_stock ("accent0");
	stock_icons_add_theme_icon_to_stock ("accent1");
	stock_icons_add_theme_icon_to_stock ("accent2");
	stock_icons_add_theme_icon_to_stock ("accent3");
	stock_icons_add_theme_icon_to_stock ("accent4");
	stock_icons_add_theme_icon_to_stock ("accent5");
	stock_icons_add_theme_icon_to_stock ("accent6");
	stock_icons_add_theme_icon_to_stock ("accent7");
	stock_icons_add_theme_icon_to_stock ("accent8");
	stock_icons_add_theme_icon_to_stock ("accent9");
	stock_icons_add_theme_icon_to_stock ("accent10");
	stock_icons_add_theme_icon_to_stock ("accent11");
	stock_icons_add_theme_icon_to_stock ("accent12");
	stock_icons_add_theme_icon_to_stock ("accent13");
	stock_icons_add_theme_icon_to_stock ("accent14");
	stock_icons_add_theme_icon_to_stock ("accent15");
	stock_icons_add_theme_icon_to_stock ("badbox");
	stock_icons_add_theme_icon_to_stock ("blackboard");
	stock_icons_add_theme_icon_to_stock ("bold");
	stock_icons_add_theme_icon_to_stock ("character-size");
	stock_icons_add_theme_icon_to_stock ("compile_dvi");
	stock_icons_add_theme_icon_to_stock ("compile_pdf");
	stock_icons_add_theme_icon_to_stock ("compile_ps");
	stock_icons_add_theme_icon_to_stock ("completion_cmd");
	stock_icons_add_theme_icon_to_stock ("delimiters-left");
	stock_icons_add_theme_icon_to_stock ("delimiters-right");
	stock_icons_add_theme_icon_to_stock ("gray-square");
	stock_icons_add_theme_icon_to_stock ("italic");
	stock_icons_add_theme_icon_to_stock ("list-description");
	stock_icons_add_theme_icon_to_stock ("list-enumerate");
	stock_icons_add_theme_icon_to_stock ("list-item");
	stock_icons_add_theme_icon_to_stock ("list-itemize");
	stock_icons_add_theme_icon_to_stock ("math-frac");
	stock_icons_add_theme_icon_to_stock ("math-nth-root");
	stock_icons_add_theme_icon_to_stock ("math-square-root");
	stock_icons_add_theme_icon_to_stock ("math-subscript");
	stock_icons_add_theme_icon_to_stock ("math-superscript");
	stock_icons_add_theme_icon_to_stock ("math");
	stock_icons_add_theme_icon_to_stock ("mathaccent0");
	stock_icons_add_theme_icon_to_stock ("mathaccent1");
	stock_icons_add_theme_icon_to_stock ("mathaccent2");
	stock_icons_add_theme_icon_to_stock ("mathaccent3");
	stock_icons_add_theme_icon_to_stock ("mathaccent4");
	stock_icons_add_theme_icon_to_stock ("mathaccent5");
	stock_icons_add_theme_icon_to_stock ("mathaccent6");
	stock_icons_add_theme_icon_to_stock ("mathaccent7");
	stock_icons_add_theme_icon_to_stock ("mathaccent8");
	stock_icons_add_theme_icon_to_stock ("mathaccent9");
	stock_icons_add_theme_icon_to_stock ("mathaccent10");
	stock_icons_add_theme_icon_to_stock ("mathcal");
	stock_icons_add_theme_icon_to_stock ("mathfrak");
	stock_icons_add_theme_icon_to_stock ("references");
	stock_icons_add_theme_icon_to_stock ("roman");
	stock_icons_add_theme_icon_to_stock ("sans_serif");
	stock_icons_add_theme_icon_to_stock ("sectioning");
	stock_icons_add_theme_icon_to_stock ("slanted");
	stock_icons_add_theme_icon_to_stock ("small_caps");
	stock_icons_add_theme_icon_to_stock ("symbol_arrows");
	stock_icons_add_theme_icon_to_stock ("symbol_delimiters");
	stock_icons_add_theme_icon_to_stock ("symbol_greek");
	stock_icons_add_theme_icon_to_stock ("symbol_misc_math");
	stock_icons_add_theme_icon_to_stock ("symbol_misc_text");
	stock_icons_add_theme_icon_to_stock ("symbol_operators");
	stock_icons_add_theme_icon_to_stock ("symbol_relations");
	stock_icons_add_theme_icon_to_stock ("table");
	stock_icons_add_theme_icon_to_stock ("tree_chapter");
	stock_icons_add_theme_icon_to_stock ("tree_label");
	stock_icons_add_theme_icon_to_stock ("tree_paragraph");
	stock_icons_add_theme_icon_to_stock ("tree_part");
	stock_icons_add_theme_icon_to_stock ("tree_section");
	stock_icons_add_theme_icon_to_stock ("tree_subsection");
	stock_icons_add_theme_icon_to_stock ("tree_subsubsection");
	stock_icons_add_theme_icon_to_stock ("tree_todo");
	stock_icons_add_theme_icon_to_stock ("typewriter");
	stock_icons_add_theme_icon_to_stock ("underline");
	stock_icons_add_theme_icon_to_stock ("latexila-dvi");
	stock_icons_add_theme_icon_to_stock ("view_log");
	stock_icons_add_theme_icon_to_stock ("latexila-pdf");
	stock_icons_add_theme_icon_to_stock ("latexila-ps");
}


void stock_icons_add_theme_icon_to_stock (const gchar* icon_name) {
	GtkIconSource* icon_source = NULL;
	GtkIconSource* _tmp0_;
	const gchar* _tmp1_;
	GtkIconSet* icon_set = NULL;
	GtkIconSet* _tmp2_;
	GtkIconFactory* icon_factory = NULL;
	GtkIconFactory* _tmp3_;
	const gchar* _tmp4_;
	g_return_if_fail (icon_name != NULL);
	_tmp0_ = gtk_icon_source_new ();
	icon_source = _tmp0_;
	_tmp1_ = icon_name;
	gtk_icon_source_set_icon_name (icon_source, _tmp1_);
	_tmp2_ = gtk_icon_set_new ();
	icon_set = _tmp2_;
	gtk_icon_set_add_source (icon_set, icon_source);
	_tmp3_ = gtk_icon_factory_new ();
	icon_factory = _tmp3_;
	_tmp4_ = icon_name;
	gtk_icon_factory_add (icon_factory, _tmp4_, icon_set);
	gtk_icon_factory_add_default (icon_factory);
	_g_object_unref0 (icon_factory);
	_gtk_icon_set_unref0 (icon_set);
	_gtk_icon_source_free0 (icon_source);
}



