app/core/gimpcontext.c app/core/gimpimage.c app/paint-funcs/paint-funcs.c
2006-04-06 Sven Neumann <sven@gimp.org> * app/core/gimpcontext.c * app/core/gimpimage.c * app/paint-funcs/paint-funcs.c * app/widgets/gimpcontrollerkeyboard.c * app/widgets/gimpcontrollerwheel.c * app/widgets/gimpcursor.c * app/widgets/gimpdockable.c * app/widgets/gimpdockbook.c * app/widgets/gimpdockseparator.c * libgimp/gimpbrushselect.c * libgimp/gimpfontselect.c * libgimp/gimpgradientselect.c * libgimp/gimppaletteselect.c * libgimp/gimppatternselect.c * libgimpwidgets/gimpchainbutton.c * libgimpwidgets/gimpcolorscales.c * libgimpwidgets/gimpcolorselect.c * libgimpwidgets/gimppickbutton.c * libgimpwidgets/gimpstock.c: sprinkled some const qualifiers.
This commit is contained in:

committed by
Sven Neumann

parent
6f8f925c69
commit
37da566934
@ -48,7 +48,7 @@ G_DEFINE_TYPE (GimpChainButton, gimp_chain_button, GTK_TYPE_TABLE);
|
||||
|
||||
static guint gimp_chain_button_signals[LAST_SIGNAL] = { 0 };
|
||||
|
||||
static const gchar *gimp_chain_stock_items[] =
|
||||
static const gchar * const gimp_chain_stock_items[] =
|
||||
{
|
||||
GIMP_STOCK_HCHAIN,
|
||||
GIMP_STOCK_HCHAIN_BROKEN,
|
||||
|
@ -114,9 +114,12 @@ gimp_color_scales_init (GimpColorScales *scales)
|
||||
GSList *group;
|
||||
gint i;
|
||||
|
||||
static gdouble slider_initial_vals[] = { 0, 0, 0, 0, 0, 0, 0 };
|
||||
static gdouble slider_max_vals[] = { 360, 100, 100, 255, 255, 255, 100 };
|
||||
static gdouble slider_incs[] = { 30, 10, 10, 16, 16, 16, 10 };
|
||||
static const gdouble slider_initial_vals[] =
|
||||
{ 0, 0, 0, 0, 0, 0, 0 };
|
||||
static const gdouble slider_max_vals[] =
|
||||
{ 360, 100, 100, 255, 255, 255, 100 };
|
||||
static const gdouble slider_incs[] =
|
||||
{ 30, 10, 10, 16, 16, 16, 10 };
|
||||
|
||||
/* don't needs the toggles for our own operation */
|
||||
selector->toggles_visible = FALSE;
|
||||
|
@ -197,7 +197,7 @@ G_DEFINE_TYPE (GimpColorSelect, gimp_color_select, GIMP_TYPE_COLOR_SELECTOR);
|
||||
|
||||
#define parent_class gimp_color_select_parent_class
|
||||
|
||||
static ColorSelectFillUpdateProc update_procs[] =
|
||||
static const ColorSelectFillUpdateProc update_procs[] =
|
||||
{
|
||||
color_select_update_hue,
|
||||
color_select_update_saturation,
|
||||
|
@ -157,7 +157,7 @@ gimp_pick_button_new (void)
|
||||
#define DROPPER_X_HOT 2
|
||||
#define DROPPER_Y_HOT 16
|
||||
|
||||
static guchar dropper_bits[] =
|
||||
static const guchar dropper_bits[] =
|
||||
{
|
||||
0xff, 0x8f, 0x01, 0xff, 0x77, 0x01, 0xff, 0xfb, 0x00, 0xff, 0xf8, 0x00,
|
||||
0x7f, 0xff, 0x00, 0xff, 0x7e, 0x01, 0xff, 0x9d, 0x01, 0xff, 0xd8, 0x01,
|
||||
@ -166,7 +166,7 @@ static guchar dropper_bits[] =
|
||||
0xff, 0xff, 0x01
|
||||
};
|
||||
|
||||
static guchar dropper_mask[] =
|
||||
static const guchar dropper_mask[] =
|
||||
{
|
||||
0x00, 0x70, 0x00, 0x00, 0xf8, 0x00, 0x00, 0xfc, 0x01, 0x00, 0xff, 0x01,
|
||||
0x80, 0xff, 0x01, 0x00, 0xff, 0x00, 0x00, 0x7f, 0x00, 0x80, 0x3f, 0x00,
|
||||
@ -178,9 +178,9 @@ static guchar dropper_mask[] =
|
||||
static GdkCursor *
|
||||
make_cursor (void)
|
||||
{
|
||||
GdkCursor *cursor;
|
||||
GdkColor bg = { 0, 0xffff, 0xffff, 0xffff };
|
||||
GdkColor fg = { 0, 0x0000, 0x0000, 0x0000 };
|
||||
GdkCursor *cursor;
|
||||
const GdkColor bg = { 0, 0xffff, 0xffff, 0xffff };
|
||||
const GdkColor fg = { 0, 0x0000, 0x0000, 0x0000 };
|
||||
|
||||
GdkPixmap *pixmap =
|
||||
gdk_bitmap_create_from_data (NULL,
|
||||
|
@ -108,7 +108,7 @@ add_sized_with_same_fallback (GtkIconFactory *factory,
|
||||
}
|
||||
|
||||
|
||||
static GtkStockItem gimp_stock_items[] =
|
||||
static const GtkStockItem gimp_stock_items[] =
|
||||
{
|
||||
{ GIMP_STOCK_ANCHOR, N_("Anchor"), 0, 0, LIBGIMP_DOMAIN },
|
||||
{ GIMP_STOCK_CENTER, N_("C_enter"), 0, 0, LIBGIMP_DOMAIN },
|
||||
@ -445,7 +445,7 @@ gimp_stock_button_pixbufs[] =
|
||||
{ GIMP_STOCK_VIDEO, stock_video_24 }
|
||||
};
|
||||
|
||||
static struct
|
||||
static const struct
|
||||
{
|
||||
const gchar *stock_id;
|
||||
gconstpointer inline_data;
|
||||
@ -600,7 +600,7 @@ gimp_stock_menu_pixbufs[] =
|
||||
{ GIMP_STOCK_JOIN_BEVEL, stock_join_bevel_16 }
|
||||
};
|
||||
|
||||
static struct
|
||||
static const struct
|
||||
{
|
||||
const gchar *stock_id;
|
||||
gconstpointer inline_data;
|
||||
@ -621,7 +621,7 @@ gimp_stock_dnd_pixbufs[] =
|
||||
{ GIMP_STOCK_FLOATING_SELECTION, stock_floating_selection_32 }
|
||||
};
|
||||
|
||||
static struct
|
||||
static const struct
|
||||
{
|
||||
const gchar *stock_id;
|
||||
gconstpointer inline_data;
|
||||
@ -652,7 +652,7 @@ gimp_stock_dialog_pixbufs[] =
|
||||
{ GIMP_STOCK_TEXTURE, stock_texture_64 }
|
||||
};
|
||||
|
||||
static struct
|
||||
static const struct
|
||||
{
|
||||
const gchar *stock_id;
|
||||
gconstpointer inline_data_ltr;
|
||||
|
Reference in New Issue
Block a user