1 /*
2 * @file inkscape-stock.h GTK+ Stock resources
3 *
4 * Authors:
5 * Robert Crosbie
6 *
7 * Copyright (C) 1999-2002 Authors
8 *
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 */
24 #include "gtk/gtkiconfactory.h"
26 #include "widgets/icon.h"
27 #include "ui/widget/panel.h"
29 void
30 inkscape_gtk_stock_init() {
31 static bool stock_initialized = false;
33 if (stock_initialized)
34 return;
36 // Ensure icon internal sizes get set up:
37 sp_icon_get_phys_size(GTK_ICON_SIZE_MENU);
39 // And also prepare the swatches.
40 Inkscape::UI::Widget::Panel::prep();
42 GtkIconFactory *icon_factory = gtk_icon_factory_new();
43 /* todo: Should we simply remove this file now that we're no longer
44 * calling gtk_icon_factory_add here? */
45 gtk_icon_factory_add_default(icon_factory);
47 stock_initialized = true;
48 }
50 /*
51 Local Variables:
52 mode:c++
53 c-file-style:"stroustrup"
54 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
55 indent-tabs-mode:nil
56 fill-column:99
57 End:
58 */
59 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :