2001-08-04 22:10:58 +08:00
|
|
|
/* LIBGIMP - The GIMP Library
|
|
|
|
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
|
|
|
|
*
|
|
|
|
* gimpstock.c
|
|
|
|
* Copyright (C) 2001 Michael Natterer <mitch@gimp.org>
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library 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
|
|
|
|
* Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the
|
|
|
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
* Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
#include <gtk/gtk.h>
|
|
|
|
#include <gtk/gtkiconfactory.h>
|
|
|
|
|
|
|
|
#include "gimpstock.h"
|
|
|
|
|
2002-03-14 02:07:25 +08:00
|
|
|
#include "themes/Default/images/gimp-stock-pixbufs.h"
|
2001-08-04 22:10:58 +08:00
|
|
|
|
|
|
|
#include "libgimp/libgimp-intl.h"
|
|
|
|
|
|
|
|
|
|
|
|
static GtkIconFactory *gimp_stock_factory = NULL;
|
|
|
|
|
|
|
|
|
|
|
|
static GtkIconSet *
|
2001-08-05 04:38:54 +08:00
|
|
|
sized_with_same_fallback_icon_set_from_inline (const guchar *inline_data,
|
|
|
|
GtkIconSize size)
|
2001-08-04 22:10:58 +08:00
|
|
|
{
|
|
|
|
GtkIconSource *source;
|
|
|
|
GtkIconSet *set;
|
|
|
|
GdkPixbuf *pixbuf;
|
|
|
|
|
|
|
|
source = gtk_icon_source_new ();
|
|
|
|
|
|
|
|
gtk_icon_source_set_size (source, size);
|
|
|
|
gtk_icon_source_set_size_wildcarded (source, FALSE);
|
|
|
|
|
2001-10-28 19:18:32 +08:00
|
|
|
pixbuf = gdk_pixbuf_new_from_inline (-1, inline_data, FALSE, NULL);
|
2001-08-04 22:10:58 +08:00
|
|
|
|
|
|
|
g_assert (pixbuf);
|
|
|
|
|
|
|
|
gtk_icon_source_set_pixbuf (source, pixbuf);
|
|
|
|
|
2001-12-29 21:26:29 +08:00
|
|
|
g_object_unref (G_OBJECT (pixbuf));
|
2001-08-04 22:10:58 +08:00
|
|
|
|
|
|
|
set = gtk_icon_set_new ();
|
|
|
|
|
|
|
|
gtk_icon_set_add_source (set, source);
|
|
|
|
|
2001-08-05 04:38:54 +08:00
|
|
|
gtk_icon_source_set_size_wildcarded (source, TRUE);
|
|
|
|
gtk_icon_set_add_source (set, source);
|
|
|
|
|
2001-08-04 22:10:58 +08:00
|
|
|
gtk_icon_source_free (source);
|
|
|
|
|
|
|
|
return set;
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
2001-08-05 04:38:54 +08:00
|
|
|
add_sized_with_same_fallback (GtkIconFactory *factory,
|
|
|
|
const guchar *inline_data,
|
|
|
|
GtkIconSize size,
|
|
|
|
const gchar *stock_id)
|
2001-08-04 22:10:58 +08:00
|
|
|
{
|
|
|
|
GtkIconSet *set;
|
|
|
|
|
2001-08-05 04:38:54 +08:00
|
|
|
set = sized_with_same_fallback_icon_set_from_inline (inline_data, size);
|
2001-08-04 22:10:58 +08:00
|
|
|
|
|
|
|
gtk_icon_factory_add (factory, stock_id, set);
|
|
|
|
|
|
|
|
gtk_icon_set_unref (set);
|
|
|
|
}
|
|
|
|
|
|
|
|
static GtkStockItem gimp_stock_items[] =
|
|
|
|
{
|
|
|
|
{ GIMP_STOCK_ANCHOR, N_("Anchor"), 0, 0, "gimp-libgimp" },
|
|
|
|
{ GIMP_STOCK_DUPLICATE, N_("Duplicate"), 0, 0, "gimp-libgimp" },
|
|
|
|
{ GIMP_STOCK_EDIT, N_("Edit"), 0, 0, "gimp-libgimp" },
|
2001-08-05 04:38:54 +08:00
|
|
|
{ GIMP_STOCK_LINKED, N_("Linked"), 0, 0, "gimp-libgimp" },
|
2001-08-04 22:10:58 +08:00
|
|
|
{ GIMP_STOCK_PASTE_AS_NEW, N_("Paste as New"), 0, 0, "gimp-libgimp" },
|
|
|
|
{ GIMP_STOCK_PASTE_INTO, N_("Paste Into"), 0, 0, "gimp-libgimp" },
|
|
|
|
{ GIMP_STOCK_RESET, N_("_Reset"), 0, 0, "gimp-libgimp" },
|
2001-11-10 00:54:56 +08:00
|
|
|
{ GIMP_STOCK_VISIBLE, N_("Visible"), 0, 0, "gimp-libgimp" },
|
|
|
|
|
2001-12-29 21:26:29 +08:00
|
|
|
{ GIMP_STOCK_HCHAIN, NULL, 0, 0, "gimp-libgimp" },
|
|
|
|
{ GIMP_STOCK_HCHAIN_BROKEN, NULL, 0, 0, "gimp-libgimp" },
|
|
|
|
{ GIMP_STOCK_VCHAIN, NULL, 0, 0, "gimp-libgimp" },
|
|
|
|
{ GIMP_STOCK_VCHAIN_BROKEN, NULL, 0, 0, "gimp-libgimp" },
|
|
|
|
|
|
|
|
{ GIMP_STOCK_SELECTION_REPLACE, NULL, 0, 0, "gimp-libgimp" },
|
|
|
|
{ GIMP_STOCK_SELECTION_ADD, NULL, 0, 0, "gimp-libgimp" },
|
|
|
|
{ GIMP_STOCK_SELECTION_SUBTRACT, NULL, 0, 0, "gimp-libgimp" },
|
|
|
|
{ GIMP_STOCK_SELECTION_INTERSECT, NULL, 0, 0, "gimp-libgimp" },
|
2002-02-28 01:10:42 +08:00
|
|
|
{ GIMP_STOCK_SELECTION_STROKE, NULL, 0, 0, "gimp-libgimp" },
|
2002-03-20 22:02:12 +08:00
|
|
|
{ GIMP_STOCK_SELECTION_TO_CHANNEL, NULL, 0, 0, "gimp-libgimp" },
|
2002-02-28 01:10:42 +08:00
|
|
|
{ GIMP_STOCK_SELECTION_TO_PATH, NULL, 0, 0, "gimp-libgimp" },
|
|
|
|
|
|
|
|
{ GIMP_STOCK_PATH_STROKE, NULL, 0, 0, "gimp-libgimp" },
|
2001-11-22 22:28:39 +08:00
|
|
|
|
2002-03-17 01:58:19 +08:00
|
|
|
{ GIMP_STOCK_CONVERT_RGB, NULL, 0, 0, "gimp-libgimp" },
|
|
|
|
{ GIMP_STOCK_CONVERT_GRAYSCALE, NULL, 0, 0, "gimp-libgimp" },
|
|
|
|
{ GIMP_STOCK_CONVERT_INDEXED, NULL, 0, 0, "gimp-libgimp" },
|
|
|
|
{ GIMP_STOCK_MERGE_DOWN, NULL, 0, 0, "gimp-libgimp" },
|
|
|
|
{ GIMP_STOCK_RESHOW_FILTER, NULL, 0, 0, "gimp-libgimp" },
|
|
|
|
{ GIMP_STOCK_ROTATE_90, NULL, 0, 0, "gimp-libgimp" },
|
|
|
|
{ GIMP_STOCK_ROTATE_180, NULL, 0, 0, "gimp-libgimp" },
|
|
|
|
{ GIMP_STOCK_ROTATE_270, NULL, 0, 0, "gimp-libgimp" },
|
|
|
|
{ GIMP_STOCK_RESIZE, NULL, 0, 0, "gimp-libgimp" },
|
|
|
|
{ GIMP_STOCK_SCALE, NULL, 0, 0, "gimp-libgimp" },
|
|
|
|
|
|
|
|
{ GIMP_STOCK_NAVIGATION, NULL, 0, 0, "gimp-libgimp" },
|
|
|
|
{ GIMP_STOCK_QMASK_OFF, NULL, 0, 0, "gimp-libgimp" },
|
|
|
|
{ GIMP_STOCK_QMASK_ON, NULL, 0, 0, "gimp-libgimp" },
|
|
|
|
|
2001-11-22 22:28:39 +08:00
|
|
|
{ GIMP_STOCK_TOOL_AIRBRUSH, NULL, 0, 0, "gimp-libgimp" },
|
|
|
|
{ GIMP_STOCK_TOOL_BEZIER_SELECT, NULL, 0, 0, "gimp-libgimp" },
|
|
|
|
{ GIMP_STOCK_TOOL_BLEND, NULL, 0, 0, "gimp-libgimp" },
|
|
|
|
{ GIMP_STOCK_TOOL_BLUR, NULL, 0, 0, "gimp-libgimp" },
|
|
|
|
{ GIMP_STOCK_TOOL_BRIGHTNESS_CONTRAST, NULL, 0, 0, "gimp-libgimp" },
|
|
|
|
{ GIMP_STOCK_TOOL_BUCKET_FILL, NULL, 0, 0, "gimp-libgimp" },
|
|
|
|
{ GIMP_STOCK_TOOL_BY_COLOR_SELECT, NULL, 0, 0, "gimp-libgimp" },
|
|
|
|
{ GIMP_STOCK_TOOL_CLONE, NULL, 0, 0, "gimp-libgimp" },
|
|
|
|
{ GIMP_STOCK_TOOL_COLOR_BALANCE, NULL, 0, 0, "gimp-libgimp" },
|
|
|
|
{ GIMP_STOCK_TOOL_COLOR_PICKER, NULL, 0, 0, "gimp-libgimp" },
|
|
|
|
{ GIMP_STOCK_TOOL_CROP, NULL, 0, 0, "gimp-libgimp" },
|
|
|
|
{ GIMP_STOCK_TOOL_CURVES, NULL, 0, 0, "gimp-libgimp" },
|
|
|
|
{ GIMP_STOCK_TOOL_DODGE, NULL, 0, 0, "gimp-libgimp" },
|
|
|
|
{ GIMP_STOCK_TOOL_ELLIPSE_SELECT, NULL, 0, 0, "gimp-libgimp" },
|
|
|
|
{ GIMP_STOCK_TOOL_ERASER, NULL, 0, 0, "gimp-libgimp" },
|
|
|
|
{ GIMP_STOCK_TOOL_FLIP, NULL, 0, 0, "gimp-libgimp" },
|
|
|
|
{ GIMP_STOCK_TOOL_FREE_SELECT, NULL, 0, 0, "gimp-libgimp" },
|
|
|
|
{ GIMP_STOCK_TOOL_FUZZY_SELECT, NULL, 0, 0, "gimp-libgimp" },
|
|
|
|
{ GIMP_STOCK_TOOL_HISTOGRAM, NULL, 0, 0, "gimp-libgimp" },
|
|
|
|
{ GIMP_STOCK_TOOL_HUE_SATURATION, NULL, 0, 0, "gimp-libgimp" },
|
|
|
|
{ GIMP_STOCK_TOOL_INK, NULL, 0, 0, "gimp-libgimp" },
|
|
|
|
{ GIMP_STOCK_TOOL_ISCISSORS, NULL, 0, 0, "gimp-libgimp" },
|
|
|
|
{ GIMP_STOCK_TOOL_LEVELS, NULL, 0, 0, "gimp-libgimp" },
|
|
|
|
{ GIMP_STOCK_TOOL_MEASURE, NULL, 0, 0, "gimp-libgimp" },
|
|
|
|
{ GIMP_STOCK_TOOL_MOVE, NULL, 0, 0, "gimp-libgimp" },
|
|
|
|
{ GIMP_STOCK_TOOL_PAINTBRUSH, NULL, 0, 0, "gimp-libgimp" },
|
|
|
|
{ GIMP_STOCK_TOOL_PATH, NULL, 0, 0, "gimp-libgimp" },
|
|
|
|
{ GIMP_STOCK_TOOL_PENCIL, NULL, 0, 0, "gimp-libgimp" },
|
|
|
|
{ GIMP_STOCK_TOOL_PERSPECTIVE, N_("Transform"), 0, 0, "gimp-libgimp" },
|
|
|
|
{ GIMP_STOCK_TOOL_POSTERIZE, NULL, 0, 0, "gimp-libgimp" },
|
|
|
|
{ GIMP_STOCK_TOOL_RECT_SELECT, NULL, 0, 0, "gimp-libgimp" },
|
|
|
|
{ GIMP_STOCK_TOOL_ROTATE, N_("Rotate"), 0, 0, "gimp-libgimp" },
|
|
|
|
{ GIMP_STOCK_TOOL_SCALE, N_("Scale"), 0, 0, "gimp-libgimp" },
|
|
|
|
{ GIMP_STOCK_TOOL_SHEAR, N_("Shear"), 0, 0, "gimp-libgimp" },
|
|
|
|
{ GIMP_STOCK_TOOL_SMUDGE, NULL, 0, 0, "gimp-libgimp" },
|
|
|
|
{ GIMP_STOCK_TOOL_TEXT, NULL, 0, 0, "gimp-libgimp" },
|
|
|
|
{ GIMP_STOCK_TOOL_THRESHOLD, NULL, 0, 0, "gimp-libgimp" },
|
|
|
|
{ GIMP_STOCK_TOOL_ZOOM, NULL, 0, 0, "gimp-libgimp" }
|
2001-08-06 00:07:02 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
static struct
|
|
|
|
{
|
|
|
|
const gchar *stock_id;
|
|
|
|
gconstpointer inline_data;
|
|
|
|
}
|
2001-11-10 00:54:56 +08:00
|
|
|
gimp_stock_button_pixbufs[] =
|
2001-08-06 00:07:02 +08:00
|
|
|
{
|
|
|
|
{ GIMP_STOCK_ANCHOR, stock_button_anchor },
|
|
|
|
{ GIMP_STOCK_DUPLICATE, stock_button_duplicate },
|
|
|
|
{ GIMP_STOCK_EDIT, stock_button_edit },
|
|
|
|
{ GIMP_STOCK_LINKED, stock_button_linked },
|
|
|
|
{ GIMP_STOCK_PASTE_AS_NEW, stock_button_paste_as_new },
|
|
|
|
{ GIMP_STOCK_PASTE_INTO, stock_button_paste_into },
|
2002-03-14 02:07:25 +08:00
|
|
|
{ GIMP_STOCK_RESET, stock_button_reset },
|
2001-08-06 00:07:02 +08:00
|
|
|
{ GIMP_STOCK_VISIBLE, stock_button_eye },
|
|
|
|
|
2001-12-29 21:26:29 +08:00
|
|
|
{ GIMP_STOCK_HCHAIN, stock_button_hchain },
|
|
|
|
{ GIMP_STOCK_HCHAIN_BROKEN, stock_button_hchain_broken },
|
|
|
|
{ GIMP_STOCK_VCHAIN, stock_button_vchain },
|
|
|
|
{ GIMP_STOCK_VCHAIN_BROKEN, stock_button_vchain_broken },
|
|
|
|
|
2001-11-21 11:54:09 +08:00
|
|
|
{ GIMP_STOCK_SELECTION_REPLACE, stock_button_selection_replace },
|
|
|
|
{ GIMP_STOCK_SELECTION_ADD, stock_button_selection_add },
|
|
|
|
{ GIMP_STOCK_SELECTION_SUBTRACT, stock_button_selection_subtract },
|
|
|
|
{ GIMP_STOCK_SELECTION_INTERSECT, stock_button_selection_intersect },
|
2002-02-28 01:10:42 +08:00
|
|
|
{ GIMP_STOCK_SELECTION_STROKE, stock_button_selection_stroke },
|
|
|
|
{ GIMP_STOCK_SELECTION_TO_PATH, stock_button_selection_to_path },
|
|
|
|
|
|
|
|
{ GIMP_STOCK_PATH_STROKE, stock_button_path_stroke },
|
2001-11-21 11:54:09 +08:00
|
|
|
|
2001-08-06 00:07:02 +08:00
|
|
|
{ GIMP_STOCK_TOOL_AIRBRUSH, stock_tool_button_airbrush },
|
|
|
|
{ GIMP_STOCK_TOOL_BEZIER_SELECT, stock_tool_button_bezier_select },
|
|
|
|
{ GIMP_STOCK_TOOL_BLEND, stock_tool_button_blend },
|
|
|
|
{ GIMP_STOCK_TOOL_BLUR, stock_tool_button_blur },
|
|
|
|
{ GIMP_STOCK_TOOL_BRIGHTNESS_CONTRAST, stock_tool_button_brightness_contrast },
|
|
|
|
{ GIMP_STOCK_TOOL_BUCKET_FILL, stock_tool_button_bucket_fill },
|
|
|
|
{ GIMP_STOCK_TOOL_BY_COLOR_SELECT, stock_tool_button_by_color_select },
|
|
|
|
{ GIMP_STOCK_TOOL_CLONE, stock_tool_button_clone },
|
|
|
|
{ GIMP_STOCK_TOOL_COLOR_BALANCE, stock_tool_button_color_balance },
|
|
|
|
{ GIMP_STOCK_TOOL_COLOR_PICKER, stock_tool_button_color_picker },
|
|
|
|
{ GIMP_STOCK_TOOL_CROP, stock_tool_button_crop },
|
|
|
|
{ GIMP_STOCK_TOOL_CURVES, stock_tool_button_curves },
|
|
|
|
{ GIMP_STOCK_TOOL_DODGE, stock_tool_button_dodge },
|
|
|
|
{ GIMP_STOCK_TOOL_ELLIPSE_SELECT, stock_tool_button_ellipse_select },
|
|
|
|
{ GIMP_STOCK_TOOL_ERASER, stock_tool_button_eraser },
|
|
|
|
{ GIMP_STOCK_TOOL_FLIP, stock_tool_button_flip },
|
|
|
|
{ GIMP_STOCK_TOOL_FREE_SELECT, stock_tool_button_free_select },
|
|
|
|
{ GIMP_STOCK_TOOL_FUZZY_SELECT, stock_tool_button_fuzzy_select },
|
|
|
|
{ GIMP_STOCK_TOOL_HISTOGRAM, stock_tool_button_histogram },
|
|
|
|
{ GIMP_STOCK_TOOL_HUE_SATURATION, stock_tool_button_hue_saturation },
|
|
|
|
{ GIMP_STOCK_TOOL_INK, stock_tool_button_ink },
|
|
|
|
{ GIMP_STOCK_TOOL_ISCISSORS, stock_tool_button_iscissors },
|
|
|
|
{ GIMP_STOCK_TOOL_LEVELS, stock_tool_button_levels },
|
|
|
|
{ GIMP_STOCK_TOOL_MEASURE, stock_tool_button_measure },
|
|
|
|
{ GIMP_STOCK_TOOL_MOVE, stock_tool_button_move },
|
|
|
|
{ GIMP_STOCK_TOOL_PAINTBRUSH, stock_tool_button_paintbrush },
|
|
|
|
{ GIMP_STOCK_TOOL_PATH, stock_tool_button_path },
|
|
|
|
{ GIMP_STOCK_TOOL_PENCIL, stock_tool_button_pencil },
|
|
|
|
{ GIMP_STOCK_TOOL_PERSPECTIVE, stock_tool_button_perspective },
|
|
|
|
{ GIMP_STOCK_TOOL_POSTERIZE, stock_tool_button_posterize },
|
|
|
|
{ GIMP_STOCK_TOOL_RECT_SELECT, stock_tool_button_rect_select },
|
|
|
|
{ GIMP_STOCK_TOOL_ROTATE, stock_tool_button_rotate },
|
|
|
|
{ GIMP_STOCK_TOOL_SCALE, stock_tool_button_scale },
|
|
|
|
{ GIMP_STOCK_TOOL_SHEAR, stock_tool_button_shear },
|
|
|
|
{ GIMP_STOCK_TOOL_SMUDGE, stock_tool_button_smudge },
|
|
|
|
{ GIMP_STOCK_TOOL_TEXT, stock_tool_button_text },
|
|
|
|
{ GIMP_STOCK_TOOL_THRESHOLD, stock_tool_button_threshold },
|
2002-02-07 22:21:23 +08:00
|
|
|
{ GIMP_STOCK_TOOL_ZOOM, stock_tool_button_zoom },
|
|
|
|
|
|
|
|
{ GIMP_STOCK_WILBER_EEK, stock_wilber_eek }
|
2001-08-04 22:10:58 +08:00
|
|
|
};
|
|
|
|
|
2001-11-10 00:54:56 +08:00
|
|
|
static struct
|
|
|
|
{
|
|
|
|
const gchar *stock_id;
|
|
|
|
gconstpointer inline_data;
|
|
|
|
}
|
|
|
|
gimp_stock_menu_pixbufs[] =
|
|
|
|
{
|
2002-03-20 22:02:12 +08:00
|
|
|
{ GIMP_STOCK_CONVERT_RGB, stock_menu_convert_rgb },
|
|
|
|
{ GIMP_STOCK_CONVERT_GRAYSCALE, stock_menu_convert_grayscale },
|
|
|
|
{ GIMP_STOCK_CONVERT_INDEXED, stock_menu_convert_indexed },
|
|
|
|
{ GIMP_STOCK_MERGE_DOWN, stock_menu_merge_down },
|
|
|
|
{ GIMP_STOCK_RESHOW_FILTER, stock_menu_reshow_filter },
|
|
|
|
{ GIMP_STOCK_ROTATE_90, stock_menu_rotate_90 },
|
|
|
|
{ GIMP_STOCK_ROTATE_180, stock_menu_rotate_180 },
|
|
|
|
{ GIMP_STOCK_ROTATE_270, stock_menu_rotate_270 },
|
|
|
|
{ GIMP_STOCK_RESIZE, stock_menu_resize },
|
|
|
|
{ GIMP_STOCK_SCALE, stock_menu_scale },
|
|
|
|
{ GIMP_STOCK_SELECTION_TO_CHANNEL, stock_menu_selection_to_channel },
|
|
|
|
|
|
|
|
{ GIMP_STOCK_NAVIGATION, stock_menu_navigation },
|
|
|
|
{ GIMP_STOCK_QMASK_OFF, stock_menu_qmask_off },
|
|
|
|
{ GIMP_STOCK_QMASK_ON, stock_menu_qmask_on }
|
2001-11-10 00:54:56 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2001-08-04 22:10:58 +08:00
|
|
|
void
|
|
|
|
gimp_stock_init (void)
|
|
|
|
{
|
|
|
|
static gboolean initialized = FALSE;
|
|
|
|
|
2001-08-06 00:07:02 +08:00
|
|
|
gint i;
|
|
|
|
|
2001-08-04 22:10:58 +08:00
|
|
|
if (initialized)
|
|
|
|
return;
|
|
|
|
|
|
|
|
gimp_stock_factory = gtk_icon_factory_new ();
|
|
|
|
|
2001-11-10 00:54:56 +08:00
|
|
|
for (i = 0; i < G_N_ELEMENTS (gimp_stock_button_pixbufs); i++)
|
2001-08-06 00:07:02 +08:00
|
|
|
{
|
|
|
|
add_sized_with_same_fallback (gimp_stock_factory,
|
2001-11-10 00:54:56 +08:00
|
|
|
gimp_stock_button_pixbufs[i].inline_data,
|
2001-08-06 00:07:02 +08:00
|
|
|
GTK_ICON_SIZE_BUTTON,
|
2001-11-10 00:54:56 +08:00
|
|
|
gimp_stock_button_pixbufs[i].stock_id);
|
|
|
|
}
|
|
|
|
|
|
|
|
for (i = 0; i < G_N_ELEMENTS (gimp_stock_menu_pixbufs); i++)
|
|
|
|
{
|
|
|
|
add_sized_with_same_fallback (gimp_stock_factory,
|
|
|
|
gimp_stock_menu_pixbufs[i].inline_data,
|
|
|
|
GTK_ICON_SIZE_MENU,
|
|
|
|
gimp_stock_menu_pixbufs[i].stock_id);
|
2001-08-06 00:07:02 +08:00
|
|
|
}
|
2001-08-04 22:10:58 +08:00
|
|
|
|
|
|
|
gtk_icon_factory_add_default (gimp_stock_factory);
|
|
|
|
|
|
|
|
gtk_stock_add_static (gimp_stock_items, G_N_ELEMENTS (gimp_stock_items));
|
|
|
|
|
|
|
|
initialized = TRUE;
|
|
|
|
}
|