mirror of https://github.com/GNOME/gimp.git
marked new strings for translation.
2004-03-04 Sven Neumann <sven@gimp.org> * app/config/gimprc-blurbs.h: marked new strings for translation. * libgimpwidgets/gimpstock.h: added #defines for missing icons. This allows us to replace them later without changing the API. * app/gui/dialogs-constructors.c * app/gui/dialogs-menu.c * app/gui/gradient-editor-commands.c * app/gui/image-menu.c * app/gui/toolbox-menu.c * app/tools/gimppaintoptions-gui.c * app/tools/gimptextoptions.c * app/widgets/gimppaletteeditor.c: use the new stock icon names instead of abusing GTK+ and GIMP tool stock icons. * app/gui/preferences-dialog.c (prefs_dialog_new): added icons to the new check buttons.
This commit is contained in:
parent
08ca217eca
commit
e21dc0ee93
|
@ -84,7 +84,7 @@ gradient_editor_left_color_cmd_callback (GtkWidget *widget,
|
|||
editor->color_notebook =
|
||||
color_notebook_new (GIMP_VIEWABLE (gradient),
|
||||
_("Left Endpoint Color"),
|
||||
GIMP_STOCK_TOOL_BLEND,
|
||||
GIMP_STOCK_GRADIENT,
|
||||
_("Gradient Segment's Left Endpoint Color"),
|
||||
GTK_WIDGET (editor),
|
||||
global_dialog_factory,
|
||||
|
@ -201,7 +201,7 @@ gradient_editor_right_color_cmd_callback (GtkWidget *widget,
|
|||
editor->color_notebook =
|
||||
color_notebook_new (GIMP_VIEWABLE (gradient),
|
||||
_("Right Endpoint Color"),
|
||||
GIMP_STOCK_TOOL_BLEND,
|
||||
GIMP_STOCK_GRADIENT,
|
||||
_("Gradient Segment's Right Endpoint Color"),
|
||||
GTK_WIDGET (editor),
|
||||
global_dialog_factory,
|
||||
|
@ -523,7 +523,7 @@ gradient_editor_replicate_cmd_callback (GtkWidget *widget,
|
|||
dialog =
|
||||
gimp_viewable_dialog_new (GIMP_VIEWABLE (GIMP_DATA_EDITOR (editor)->data),
|
||||
title, "gimp-gradient-segment-replicate",
|
||||
GIMP_STOCK_TOOL_BLEND, desc,
|
||||
GIMP_STOCK_GRADIENT, desc,
|
||||
GTK_WIDGET (editor),
|
||||
gimp_standard_help_func,
|
||||
GIMP_HELP_GRADIENT_EDITOR_REPLICATE,
|
||||
|
@ -629,7 +629,7 @@ gradient_editor_split_uniformly_cmd_callback (GtkWidget *widget,
|
|||
dialog =
|
||||
gimp_viewable_dialog_new (GIMP_VIEWABLE (GIMP_DATA_EDITOR (editor)->data),
|
||||
title, "gimp-gradient-segment-split-uniformly",
|
||||
GIMP_STOCK_TOOL_BLEND, desc,
|
||||
GIMP_STOCK_GRADIENT, desc,
|
||||
GTK_WIDGET (editor),
|
||||
gimp_standard_help_func,
|
||||
GIMP_HELP_GRADIENT_EDITOR_SPLIT_UNIFORM,
|
||||
|
|
|
@ -276,7 +276,7 @@ dialogs_brush_list_view_new (GimpDialogFactory *factory,
|
|||
|
||||
return dialogs_dockable_new (view,
|
||||
_("Brushes"), NULL,
|
||||
GIMP_STOCK_TOOL_PAINTBRUSH,
|
||||
GIMP_STOCK_BRUSH,
|
||||
GIMP_HELP_BRUSH_DIALOG);
|
||||
}
|
||||
|
||||
|
@ -296,7 +296,7 @@ dialogs_pattern_list_view_new (GimpDialogFactory *factory,
|
|||
|
||||
return dialogs_dockable_new (view,
|
||||
_("Patterns"), NULL,
|
||||
GIMP_STOCK_TOOL_BUCKET_FILL,
|
||||
GIMP_STOCK_PATTERN,
|
||||
GIMP_HELP_PATTERN_DIALOG);
|
||||
}
|
||||
|
||||
|
@ -316,7 +316,7 @@ dialogs_gradient_list_view_new (GimpDialogFactory *factory,
|
|||
|
||||
return dialogs_dockable_new (view,
|
||||
_("Gradients"), NULL,
|
||||
GIMP_STOCK_TOOL_BLEND,
|
||||
GIMP_STOCK_GRADIENT,
|
||||
GIMP_HELP_GRADIENT_DIALOG);
|
||||
}
|
||||
|
||||
|
@ -336,7 +336,7 @@ dialogs_palette_list_view_new (GimpDialogFactory *factory,
|
|||
|
||||
return dialogs_dockable_new (view,
|
||||
_("Palettes"), NULL,
|
||||
GTK_STOCK_SELECT_COLOR,
|
||||
GIMP_STOCK_PALETTE,
|
||||
GIMP_HELP_PALETTE_DIALOG);
|
||||
}
|
||||
|
||||
|
@ -355,7 +355,7 @@ dialogs_font_list_view_new (GimpDialogFactory *factory,
|
|||
|
||||
return dialogs_dockable_new (view,
|
||||
_("Fonts"), NULL,
|
||||
GTK_STOCK_SELECT_FONT,
|
||||
GIMP_STOCK_FONT,
|
||||
GIMP_HELP_FONT_DIALOG);
|
||||
}
|
||||
|
||||
|
@ -392,7 +392,7 @@ dialogs_buffer_list_view_new (GimpDialogFactory *factory,
|
|||
|
||||
return dialogs_dockable_new (view,
|
||||
_("Buffers"), NULL,
|
||||
GTK_STOCK_PASTE,
|
||||
GIMP_STOCK_BUFFER,
|
||||
GIMP_HELP_BUFFER_DIALOG);
|
||||
}
|
||||
|
||||
|
@ -483,7 +483,7 @@ dialogs_brush_grid_view_new (GimpDialogFactory *factory,
|
|||
|
||||
return dialogs_dockable_new (view,
|
||||
_("Brushes"), NULL,
|
||||
GIMP_STOCK_TOOL_PAINTBRUSH,
|
||||
GIMP_STOCK_BRUSH,
|
||||
GIMP_HELP_BRUSH_DIALOG);
|
||||
}
|
||||
|
||||
|
@ -503,7 +503,7 @@ dialogs_pattern_grid_view_new (GimpDialogFactory *factory,
|
|||
|
||||
return dialogs_dockable_new (view,
|
||||
_("Patterns"), NULL,
|
||||
GIMP_STOCK_TOOL_BUCKET_FILL,
|
||||
GIMP_STOCK_PATTERN,
|
||||
GIMP_HELP_PATTERN_DIALOG);
|
||||
}
|
||||
|
||||
|
@ -523,7 +523,7 @@ dialogs_gradient_grid_view_new (GimpDialogFactory *factory,
|
|||
|
||||
return dialogs_dockable_new (view,
|
||||
_("Gradients"), NULL,
|
||||
GIMP_STOCK_TOOL_BLEND,
|
||||
GIMP_STOCK_GRADIENT,
|
||||
GIMP_HELP_GRADIENT_DIALOG);
|
||||
}
|
||||
|
||||
|
@ -543,7 +543,7 @@ dialogs_palette_grid_view_new (GimpDialogFactory *factory,
|
|||
|
||||
return dialogs_dockable_new (view,
|
||||
_("Palettes"), NULL,
|
||||
GTK_STOCK_SELECT_COLOR,
|
||||
GIMP_STOCK_PALETTE,
|
||||
GIMP_HELP_PALETTE_DIALOG);
|
||||
}
|
||||
|
||||
|
@ -562,7 +562,7 @@ dialogs_font_grid_view_new (GimpDialogFactory *factory,
|
|||
|
||||
return dialogs_dockable_new (view,
|
||||
_("Fonts"), NULL,
|
||||
GTK_STOCK_SELECT_FONT,
|
||||
GIMP_STOCK_FONT,
|
||||
GIMP_HELP_FONT_DIALOG);
|
||||
}
|
||||
|
||||
|
@ -599,7 +599,7 @@ dialogs_buffer_grid_view_new (GimpDialogFactory *factory,
|
|||
|
||||
return dialogs_dockable_new (view,
|
||||
_("Buffers"), NULL,
|
||||
GTK_STOCK_PASTE,
|
||||
GIMP_STOCK_BUFFER,
|
||||
GIMP_HELP_BUFFER_DIALOG);
|
||||
}
|
||||
|
||||
|
@ -879,7 +879,7 @@ dialogs_brush_editor_get (GimpDialogFactory *factory,
|
|||
|
||||
return dialogs_dockable_new (GTK_WIDGET (brush_editor),
|
||||
_("Brush Editor"), NULL,
|
||||
GIMP_STOCK_TOOL_PAINTBRUSH,
|
||||
GIMP_STOCK_BRUSH,
|
||||
GIMP_HELP_BRUSH_EDITOR_DIALOG);
|
||||
}
|
||||
|
||||
|
@ -910,7 +910,7 @@ dialogs_gradient_editor_get (GimpDialogFactory *factory,
|
|||
|
||||
return dialogs_dockable_new (GTK_WIDGET (gradient_editor),
|
||||
_("Gradient Editor"), NULL,
|
||||
GIMP_STOCK_TOOL_BLEND,
|
||||
GIMP_STOCK_GRADIENT,
|
||||
GIMP_HELP_GRADIENT_EDITOR_DIALOG);
|
||||
}
|
||||
|
||||
|
@ -941,7 +941,7 @@ dialogs_palette_editor_get (GimpDialogFactory *factory,
|
|||
|
||||
return dialogs_dockable_new (GTK_WIDGET (palette_editor),
|
||||
_("Palette Editor"), NULL,
|
||||
GTK_STOCK_SELECT_COLOR,
|
||||
GIMP_STOCK_PALETTE,
|
||||
GIMP_HELP_PALETTE_EDITOR_DIALOG);
|
||||
}
|
||||
|
||||
|
|
|
@ -724,6 +724,36 @@ prefs_check_button_add (GObject *config,
|
|||
return button;
|
||||
}
|
||||
|
||||
static GtkWidget *
|
||||
prefs_check_button_add_with_icon (GObject *config,
|
||||
const gchar *property_name,
|
||||
const gchar *label,
|
||||
const gchar *stock_id,
|
||||
GtkBox *vbox)
|
||||
{
|
||||
GtkWidget *button;
|
||||
GtkWidget *hbox;
|
||||
GtkWidget *image;
|
||||
|
||||
button = gimp_prop_check_button_new (config, property_name, label);
|
||||
if (!button)
|
||||
return NULL;
|
||||
|
||||
hbox = gtk_hbox_new (FALSE, 6);
|
||||
gtk_box_pack_start (vbox, hbox, FALSE, FALSE, 0);
|
||||
gtk_widget_show (hbox);
|
||||
|
||||
image = gtk_image_new_from_stock (stock_id, GTK_ICON_SIZE_BUTTON);
|
||||
gtk_misc_set_padding (GTK_MISC (image), 2, 2);
|
||||
gtk_box_pack_start (GTK_BOX (hbox), image, FALSE, FALSE, 0);
|
||||
gtk_widget_show (image);
|
||||
|
||||
gtk_box_pack_start (GTK_BOX (hbox), button, TRUE, TRUE, 0);
|
||||
gtk_widget_show (button);
|
||||
|
||||
return button;
|
||||
}
|
||||
|
||||
static GtkWidget *
|
||||
prefs_color_button_add (GObject *config,
|
||||
const gchar *property_name,
|
||||
|
@ -1381,25 +1411,15 @@ prefs_dialog_new (Gimp *gimp,
|
|||
vbox2 = prefs_frame_new (_("Paint Options Shared Between Tools"),
|
||||
GTK_CONTAINER (vbox), FALSE);
|
||||
|
||||
prefs_check_button_add (object, "global-brush",
|
||||
_("_Brush"),
|
||||
GTK_BOX (vbox2));
|
||||
prefs_check_button_add (object, "global-pattern",
|
||||
_("_Pattern"),
|
||||
GTK_BOX (vbox2));
|
||||
prefs_check_button_add (object, "global-gradient",
|
||||
_("_Gradient"),
|
||||
GTK_BOX (vbox2));
|
||||
|
||||
/* Disabled, because they are not yet useful */
|
||||
#if 0
|
||||
prefs_check_button_add (object, "global-palette",
|
||||
_("Pa_lette"),
|
||||
GTK_BOX (vbox2));
|
||||
prefs_check_button_add (object, "global-font",
|
||||
_("_Font"),
|
||||
GTK_BOX (vbox2));
|
||||
#endif
|
||||
prefs_check_button_add_with_icon (object, "global-brush",
|
||||
_("_Brush"), GIMP_STOCK_BRUSH,
|
||||
GTK_BOX (vbox2));
|
||||
prefs_check_button_add_with_icon (object, "global-pattern",
|
||||
_("_Pattern"), GIMP_STOCK_PATTERN,
|
||||
GTK_BOX (vbox2));
|
||||
prefs_check_button_add_with_icon (object, "global-gradient",
|
||||
_("_Gradient"), GIMP_STOCK_GRADIENT,
|
||||
GTK_BOX (vbox2));
|
||||
|
||||
|
||||
/*******************************/
|
||||
|
|
|
@ -276,7 +276,7 @@ dialogs_brush_list_view_new (GimpDialogFactory *factory,
|
|||
|
||||
return dialogs_dockable_new (view,
|
||||
_("Brushes"), NULL,
|
||||
GIMP_STOCK_TOOL_PAINTBRUSH,
|
||||
GIMP_STOCK_BRUSH,
|
||||
GIMP_HELP_BRUSH_DIALOG);
|
||||
}
|
||||
|
||||
|
@ -296,7 +296,7 @@ dialogs_pattern_list_view_new (GimpDialogFactory *factory,
|
|||
|
||||
return dialogs_dockable_new (view,
|
||||
_("Patterns"), NULL,
|
||||
GIMP_STOCK_TOOL_BUCKET_FILL,
|
||||
GIMP_STOCK_PATTERN,
|
||||
GIMP_HELP_PATTERN_DIALOG);
|
||||
}
|
||||
|
||||
|
@ -316,7 +316,7 @@ dialogs_gradient_list_view_new (GimpDialogFactory *factory,
|
|||
|
||||
return dialogs_dockable_new (view,
|
||||
_("Gradients"), NULL,
|
||||
GIMP_STOCK_TOOL_BLEND,
|
||||
GIMP_STOCK_GRADIENT,
|
||||
GIMP_HELP_GRADIENT_DIALOG);
|
||||
}
|
||||
|
||||
|
@ -336,7 +336,7 @@ dialogs_palette_list_view_new (GimpDialogFactory *factory,
|
|||
|
||||
return dialogs_dockable_new (view,
|
||||
_("Palettes"), NULL,
|
||||
GTK_STOCK_SELECT_COLOR,
|
||||
GIMP_STOCK_PALETTE,
|
||||
GIMP_HELP_PALETTE_DIALOG);
|
||||
}
|
||||
|
||||
|
@ -355,7 +355,7 @@ dialogs_font_list_view_new (GimpDialogFactory *factory,
|
|||
|
||||
return dialogs_dockable_new (view,
|
||||
_("Fonts"), NULL,
|
||||
GTK_STOCK_SELECT_FONT,
|
||||
GIMP_STOCK_FONT,
|
||||
GIMP_HELP_FONT_DIALOG);
|
||||
}
|
||||
|
||||
|
@ -392,7 +392,7 @@ dialogs_buffer_list_view_new (GimpDialogFactory *factory,
|
|||
|
||||
return dialogs_dockable_new (view,
|
||||
_("Buffers"), NULL,
|
||||
GTK_STOCK_PASTE,
|
||||
GIMP_STOCK_BUFFER,
|
||||
GIMP_HELP_BUFFER_DIALOG);
|
||||
}
|
||||
|
||||
|
@ -483,7 +483,7 @@ dialogs_brush_grid_view_new (GimpDialogFactory *factory,
|
|||
|
||||
return dialogs_dockable_new (view,
|
||||
_("Brushes"), NULL,
|
||||
GIMP_STOCK_TOOL_PAINTBRUSH,
|
||||
GIMP_STOCK_BRUSH,
|
||||
GIMP_HELP_BRUSH_DIALOG);
|
||||
}
|
||||
|
||||
|
@ -503,7 +503,7 @@ dialogs_pattern_grid_view_new (GimpDialogFactory *factory,
|
|||
|
||||
return dialogs_dockable_new (view,
|
||||
_("Patterns"), NULL,
|
||||
GIMP_STOCK_TOOL_BUCKET_FILL,
|
||||
GIMP_STOCK_PATTERN,
|
||||
GIMP_HELP_PATTERN_DIALOG);
|
||||
}
|
||||
|
||||
|
@ -523,7 +523,7 @@ dialogs_gradient_grid_view_new (GimpDialogFactory *factory,
|
|||
|
||||
return dialogs_dockable_new (view,
|
||||
_("Gradients"), NULL,
|
||||
GIMP_STOCK_TOOL_BLEND,
|
||||
GIMP_STOCK_GRADIENT,
|
||||
GIMP_HELP_GRADIENT_DIALOG);
|
||||
}
|
||||
|
||||
|
@ -543,7 +543,7 @@ dialogs_palette_grid_view_new (GimpDialogFactory *factory,
|
|||
|
||||
return dialogs_dockable_new (view,
|
||||
_("Palettes"), NULL,
|
||||
GTK_STOCK_SELECT_COLOR,
|
||||
GIMP_STOCK_PALETTE,
|
||||
GIMP_HELP_PALETTE_DIALOG);
|
||||
}
|
||||
|
||||
|
@ -562,7 +562,7 @@ dialogs_font_grid_view_new (GimpDialogFactory *factory,
|
|||
|
||||
return dialogs_dockable_new (view,
|
||||
_("Fonts"), NULL,
|
||||
GTK_STOCK_SELECT_FONT,
|
||||
GIMP_STOCK_FONT,
|
||||
GIMP_HELP_FONT_DIALOG);
|
||||
}
|
||||
|
||||
|
@ -599,7 +599,7 @@ dialogs_buffer_grid_view_new (GimpDialogFactory *factory,
|
|||
|
||||
return dialogs_dockable_new (view,
|
||||
_("Buffers"), NULL,
|
||||
GTK_STOCK_PASTE,
|
||||
GIMP_STOCK_BUFFER,
|
||||
GIMP_HELP_BUFFER_DIALOG);
|
||||
}
|
||||
|
||||
|
@ -879,7 +879,7 @@ dialogs_brush_editor_get (GimpDialogFactory *factory,
|
|||
|
||||
return dialogs_dockable_new (GTK_WIDGET (brush_editor),
|
||||
_("Brush Editor"), NULL,
|
||||
GIMP_STOCK_TOOL_PAINTBRUSH,
|
||||
GIMP_STOCK_BRUSH,
|
||||
GIMP_HELP_BRUSH_EDITOR_DIALOG);
|
||||
}
|
||||
|
||||
|
@ -910,7 +910,7 @@ dialogs_gradient_editor_get (GimpDialogFactory *factory,
|
|||
|
||||
return dialogs_dockable_new (GTK_WIDGET (gradient_editor),
|
||||
_("Gradient Editor"), NULL,
|
||||
GIMP_STOCK_TOOL_BLEND,
|
||||
GIMP_STOCK_GRADIENT,
|
||||
GIMP_HELP_GRADIENT_EDITOR_DIALOG);
|
||||
}
|
||||
|
||||
|
@ -941,7 +941,7 @@ dialogs_palette_editor_get (GimpDialogFactory *factory,
|
|||
|
||||
return dialogs_dockable_new (GTK_WIDGET (palette_editor),
|
||||
_("Palette Editor"), NULL,
|
||||
GTK_STOCK_SELECT_COLOR,
|
||||
GIMP_STOCK_PALETTE,
|
||||
GIMP_HELP_PALETTE_EDITOR_DIALOG);
|
||||
}
|
||||
|
||||
|
|
|
@ -94,17 +94,17 @@ GimpItemFactoryEntry dialogs_menu_entries[] =
|
|||
ADD_TAB (N_("/Add Tab/Colo_rs"), "gimp-color-editor",
|
||||
GIMP_STOCK_DEFAULT_COLORS, GIMP_HELP_COLOR_DIALOG),
|
||||
ADD_TAB (N_("/Add Tab/Brus_hes"), "gimp-brush-grid",
|
||||
GIMP_STOCK_TOOL_PAINTBRUSH, GIMP_HELP_BRUSH_DIALOG),
|
||||
GIMP_STOCK_BRUSH, GIMP_HELP_BRUSH_DIALOG),
|
||||
ADD_TAB (N_("/Add Tab/P_atterns"), "gimp-pattern-grid",
|
||||
GIMP_STOCK_TOOL_BUCKET_FILL, GIMP_HELP_PATTERN_DIALOG),
|
||||
GIMP_STOCK_PATTERN, GIMP_HELP_PATTERN_DIALOG),
|
||||
ADD_TAB (N_("/Add Tab/_Gradients"), "gimp-gradient-list",
|
||||
GIMP_STOCK_TOOL_BLEND, GIMP_HELP_GRADIENT_DIALOG),
|
||||
GIMP_STOCK_GRADIENT, GIMP_HELP_GRADIENT_DIALOG),
|
||||
ADD_TAB (N_("/Add Tab/Pal_ettes"), "gimp-palette-list",
|
||||
GTK_STOCK_SELECT_COLOR, GIMP_HELP_PALETTE_DIALOG),
|
||||
GIMP_STOCK_PALETTE, GIMP_HELP_PALETTE_DIALOG),
|
||||
ADD_TAB (N_("/Add Tab/_Fonts"), "gimp-font-list",
|
||||
GTK_STOCK_SELECT_FONT, GIMP_HELP_FONT_DIALOG),
|
||||
GIMP_STOCK_FONT, GIMP_HELP_FONT_DIALOG),
|
||||
ADD_TAB (N_("/Add Tab/_Buffers"), "gimp-buffer-list",
|
||||
GTK_STOCK_PASTE, GIMP_HELP_BUFFER_DIALOG),
|
||||
GIMP_STOCK_BUFFER, GIMP_HELP_BUFFER_DIALOG),
|
||||
|
||||
MENU_SEPARATOR ("/Add Tab/---"),
|
||||
|
||||
|
|
|
@ -84,7 +84,7 @@ gradient_editor_left_color_cmd_callback (GtkWidget *widget,
|
|||
editor->color_notebook =
|
||||
color_notebook_new (GIMP_VIEWABLE (gradient),
|
||||
_("Left Endpoint Color"),
|
||||
GIMP_STOCK_TOOL_BLEND,
|
||||
GIMP_STOCK_GRADIENT,
|
||||
_("Gradient Segment's Left Endpoint Color"),
|
||||
GTK_WIDGET (editor),
|
||||
global_dialog_factory,
|
||||
|
@ -201,7 +201,7 @@ gradient_editor_right_color_cmd_callback (GtkWidget *widget,
|
|||
editor->color_notebook =
|
||||
color_notebook_new (GIMP_VIEWABLE (gradient),
|
||||
_("Right Endpoint Color"),
|
||||
GIMP_STOCK_TOOL_BLEND,
|
||||
GIMP_STOCK_GRADIENT,
|
||||
_("Gradient Segment's Right Endpoint Color"),
|
||||
GTK_WIDGET (editor),
|
||||
global_dialog_factory,
|
||||
|
@ -523,7 +523,7 @@ gradient_editor_replicate_cmd_callback (GtkWidget *widget,
|
|||
dialog =
|
||||
gimp_viewable_dialog_new (GIMP_VIEWABLE (GIMP_DATA_EDITOR (editor)->data),
|
||||
title, "gimp-gradient-segment-replicate",
|
||||
GIMP_STOCK_TOOL_BLEND, desc,
|
||||
GIMP_STOCK_GRADIENT, desc,
|
||||
GTK_WIDGET (editor),
|
||||
gimp_standard_help_func,
|
||||
GIMP_HELP_GRADIENT_EDITOR_REPLICATE,
|
||||
|
@ -629,7 +629,7 @@ gradient_editor_split_uniformly_cmd_callback (GtkWidget *widget,
|
|||
dialog =
|
||||
gimp_viewable_dialog_new (GIMP_VIEWABLE (GIMP_DATA_EDITOR (editor)->data),
|
||||
title, "gimp-gradient-segment-split-uniformly",
|
||||
GIMP_STOCK_TOOL_BLEND, desc,
|
||||
GIMP_STOCK_GRADIENT, desc,
|
||||
GTK_WIDGET (editor),
|
||||
gimp_standard_help_func,
|
||||
GIMP_HELP_GRADIENT_EDITOR_SPLIT_UNIFORM,
|
||||
|
|
|
@ -986,7 +986,7 @@ GimpItemFactoryEntry image_menu_entries[] =
|
|||
GIMP_HELP_PATH_DIALOG, NULL },
|
||||
{ { N_("/Dialogs/Inde_xed Palette"), NULL,
|
||||
dialogs_create_dockable_cmd_callback, 0,
|
||||
"<StockItem>", GTK_STOCK_SELECT_COLOR },
|
||||
"<StockItem>", GIMP_STOCK_INDEXED_PALETTE },
|
||||
"gimp-indexed-palette",
|
||||
GIMP_HELP_INDEXED_PALETTE_DIALOG, NULL },
|
||||
{ { N_("/Dialogs/Histogra_m"), NULL,
|
||||
|
@ -1019,32 +1019,32 @@ GimpItemFactoryEntry image_menu_entries[] =
|
|||
GIMP_HELP_COLOR_DIALOG, NULL },
|
||||
{ { N_("/Dialogs/Brus_hes"), "<control><shift>B",
|
||||
dialogs_create_dockable_cmd_callback, 0,
|
||||
"<StockItem>", GIMP_STOCK_TOOL_PAINTBRUSH },
|
||||
"<StockItem>", GIMP_STOCK_BRUSH },
|
||||
"gimp-brush-grid|gimp-brush-list",
|
||||
GIMP_HELP_BRUSH_DIALOG, NULL },
|
||||
{ { N_("/Dialogs/P_atterns"), "<control><shift>P",
|
||||
dialogs_create_dockable_cmd_callback, 0,
|
||||
"<StockItem>", GIMP_STOCK_TOOL_BUCKET_FILL },
|
||||
"<StockItem>", GIMP_STOCK_PATTERN },
|
||||
"gimp-pattern-grid|gimp-pattern-list",
|
||||
GIMP_HELP_PATTERN_DIALOG, NULL },
|
||||
{ { N_("/Dialogs/_Gradients"), "<control>G",
|
||||
dialogs_create_dockable_cmd_callback, 0,
|
||||
"<StockItem>", GIMP_STOCK_TOOL_BLEND },
|
||||
"<StockItem>", GIMP_STOCK_GRADIENT },
|
||||
"gimp-gradient-list|gimp-gradient-grid",
|
||||
GIMP_HELP_GRADIENT_DIALOG, NULL },
|
||||
{ { N_("/Dialogs/Pal_ettes"), "<control>P",
|
||||
dialogs_create_dockable_cmd_callback, 0,
|
||||
"<StockItem>", GTK_STOCK_SELECT_COLOR },
|
||||
"<StockItem>", GIMP_STOCK_PALETTE },
|
||||
"gimp-palette-list|gimp-palette-grid",
|
||||
GIMP_HELP_PALETTE_DIALOG, NULL },
|
||||
{ { N_("/Dialogs/_Fonts"), NULL,
|
||||
dialogs_create_dockable_cmd_callback, 0,
|
||||
"<StockItem>", GTK_STOCK_SELECT_FONT },
|
||||
"<StockItem>", GIMP_STOCK_FONT },
|
||||
"gimp-font-list|gimp-font-grid",
|
||||
GIMP_HELP_FONT_DIALOG, NULL },
|
||||
{ { N_("/Dialogs/_Buffers"), "foo",
|
||||
dialogs_create_dockable_cmd_callback, 0,
|
||||
"<StockItem>", GTK_STOCK_PASTE },
|
||||
"<StockItem>", GIMP_STOCK_BUFFER },
|
||||
"gimp-buffer-list|gimp-buffer-grid",
|
||||
GIMP_HELP_BUFFER_DIALOG, NULL },
|
||||
|
||||
|
|
|
@ -724,6 +724,36 @@ prefs_check_button_add (GObject *config,
|
|||
return button;
|
||||
}
|
||||
|
||||
static GtkWidget *
|
||||
prefs_check_button_add_with_icon (GObject *config,
|
||||
const gchar *property_name,
|
||||
const gchar *label,
|
||||
const gchar *stock_id,
|
||||
GtkBox *vbox)
|
||||
{
|
||||
GtkWidget *button;
|
||||
GtkWidget *hbox;
|
||||
GtkWidget *image;
|
||||
|
||||
button = gimp_prop_check_button_new (config, property_name, label);
|
||||
if (!button)
|
||||
return NULL;
|
||||
|
||||
hbox = gtk_hbox_new (FALSE, 6);
|
||||
gtk_box_pack_start (vbox, hbox, FALSE, FALSE, 0);
|
||||
gtk_widget_show (hbox);
|
||||
|
||||
image = gtk_image_new_from_stock (stock_id, GTK_ICON_SIZE_BUTTON);
|
||||
gtk_misc_set_padding (GTK_MISC (image), 2, 2);
|
||||
gtk_box_pack_start (GTK_BOX (hbox), image, FALSE, FALSE, 0);
|
||||
gtk_widget_show (image);
|
||||
|
||||
gtk_box_pack_start (GTK_BOX (hbox), button, TRUE, TRUE, 0);
|
||||
gtk_widget_show (button);
|
||||
|
||||
return button;
|
||||
}
|
||||
|
||||
static GtkWidget *
|
||||
prefs_color_button_add (GObject *config,
|
||||
const gchar *property_name,
|
||||
|
@ -1381,25 +1411,15 @@ prefs_dialog_new (Gimp *gimp,
|
|||
vbox2 = prefs_frame_new (_("Paint Options Shared Between Tools"),
|
||||
GTK_CONTAINER (vbox), FALSE);
|
||||
|
||||
prefs_check_button_add (object, "global-brush",
|
||||
_("_Brush"),
|
||||
GTK_BOX (vbox2));
|
||||
prefs_check_button_add (object, "global-pattern",
|
||||
_("_Pattern"),
|
||||
GTK_BOX (vbox2));
|
||||
prefs_check_button_add (object, "global-gradient",
|
||||
_("_Gradient"),
|
||||
GTK_BOX (vbox2));
|
||||
|
||||
/* Disabled, because they are not yet useful */
|
||||
#if 0
|
||||
prefs_check_button_add (object, "global-palette",
|
||||
_("Pa_lette"),
|
||||
GTK_BOX (vbox2));
|
||||
prefs_check_button_add (object, "global-font",
|
||||
_("_Font"),
|
||||
GTK_BOX (vbox2));
|
||||
#endif
|
||||
prefs_check_button_add_with_icon (object, "global-brush",
|
||||
_("_Brush"), GIMP_STOCK_BRUSH,
|
||||
GTK_BOX (vbox2));
|
||||
prefs_check_button_add_with_icon (object, "global-pattern",
|
||||
_("_Pattern"), GIMP_STOCK_PATTERN,
|
||||
GTK_BOX (vbox2));
|
||||
prefs_check_button_add_with_icon (object, "global-gradient",
|
||||
_("_Gradient"), GIMP_STOCK_GRADIENT,
|
||||
GTK_BOX (vbox2));
|
||||
|
||||
|
||||
/*******************************/
|
||||
|
|
|
@ -168,32 +168,32 @@ GimpItemFactoryEntry toolbox_menu_entries[] =
|
|||
GIMP_HELP_COLOR_DIALOG, NULL },
|
||||
{ { N_("/File/Dialogs/Brus_hes"), "<control><shift>B",
|
||||
dialogs_create_dockable_cmd_callback, 0,
|
||||
"<StockItem>", GIMP_STOCK_TOOL_PAINTBRUSH },
|
||||
"<StockItem>", GIMP_STOCK_BRUSH },
|
||||
"gimp-brush-grid",
|
||||
GIMP_HELP_BRUSH_DIALOG, NULL },
|
||||
{ { N_("/File/Dialogs/P_atterns"), "<control><shift>P",
|
||||
dialogs_create_dockable_cmd_callback, 0,
|
||||
"<StockItem>", GIMP_STOCK_TOOL_BUCKET_FILL },
|
||||
"<StockItem>", GIMP_STOCK_PATTERN },
|
||||
"gimp-pattern-grid",
|
||||
GIMP_HELP_PATTERN_DIALOG, NULL },
|
||||
{ { N_("/File/Dialogs/_Gradients"), "<control>G",
|
||||
dialogs_create_dockable_cmd_callback, 0,
|
||||
"<StockItem>", GIMP_STOCK_TOOL_BLEND },
|
||||
"<StockItem>", GIMP_STOCK_GRADIENT },
|
||||
"gimp-gradient-list|gimp-gradient-grid",
|
||||
GIMP_HELP_GRADIENT_DIALOG, NULL },
|
||||
{ { N_("/File/Dialogs/Pal_ettes"), "<control>P",
|
||||
dialogs_create_dockable_cmd_callback, 0,
|
||||
"<StockItem>", GTK_STOCK_SELECT_COLOR },
|
||||
"<StockItem>", GIMP_STOCK_PALETTE },
|
||||
"gimp-palette-list|gimp-palette-list",
|
||||
GIMP_HELP_PALETTE_DIALOG, NULL },
|
||||
{ { N_("/File/Dialogs/_Fonts"), NULL,
|
||||
dialogs_create_dockable_cmd_callback, 0,
|
||||
"<StockItem>", GTK_STOCK_SELECT_FONT },
|
||||
"<StockItem>", GIMP_STOCK_FONT },
|
||||
"gimp-font-list|gimp-font-grid",
|
||||
GIMP_HELP_FONT_DIALOG, NULL },
|
||||
{ { N_("/File/Dialogs/_Buffers"), "foo",
|
||||
dialogs_create_dockable_cmd_callback, 0,
|
||||
"<StockItem>", GTK_STOCK_PASTE },
|
||||
"<StockItem>", GIMP_STOCK_BUFFER },
|
||||
"gimp-buffer-list|gimp-buffer-grid",
|
||||
GIMP_HELP_BUFFER_DIALOG, NULL },
|
||||
|
||||
|
|
|
@ -986,7 +986,7 @@ GimpItemFactoryEntry image_menu_entries[] =
|
|||
GIMP_HELP_PATH_DIALOG, NULL },
|
||||
{ { N_("/Dialogs/Inde_xed Palette"), NULL,
|
||||
dialogs_create_dockable_cmd_callback, 0,
|
||||
"<StockItem>", GTK_STOCK_SELECT_COLOR },
|
||||
"<StockItem>", GIMP_STOCK_INDEXED_PALETTE },
|
||||
"gimp-indexed-palette",
|
||||
GIMP_HELP_INDEXED_PALETTE_DIALOG, NULL },
|
||||
{ { N_("/Dialogs/Histogra_m"), NULL,
|
||||
|
@ -1019,32 +1019,32 @@ GimpItemFactoryEntry image_menu_entries[] =
|
|||
GIMP_HELP_COLOR_DIALOG, NULL },
|
||||
{ { N_("/Dialogs/Brus_hes"), "<control><shift>B",
|
||||
dialogs_create_dockable_cmd_callback, 0,
|
||||
"<StockItem>", GIMP_STOCK_TOOL_PAINTBRUSH },
|
||||
"<StockItem>", GIMP_STOCK_BRUSH },
|
||||
"gimp-brush-grid|gimp-brush-list",
|
||||
GIMP_HELP_BRUSH_DIALOG, NULL },
|
||||
{ { N_("/Dialogs/P_atterns"), "<control><shift>P",
|
||||
dialogs_create_dockable_cmd_callback, 0,
|
||||
"<StockItem>", GIMP_STOCK_TOOL_BUCKET_FILL },
|
||||
"<StockItem>", GIMP_STOCK_PATTERN },
|
||||
"gimp-pattern-grid|gimp-pattern-list",
|
||||
GIMP_HELP_PATTERN_DIALOG, NULL },
|
||||
{ { N_("/Dialogs/_Gradients"), "<control>G",
|
||||
dialogs_create_dockable_cmd_callback, 0,
|
||||
"<StockItem>", GIMP_STOCK_TOOL_BLEND },
|
||||
"<StockItem>", GIMP_STOCK_GRADIENT },
|
||||
"gimp-gradient-list|gimp-gradient-grid",
|
||||
GIMP_HELP_GRADIENT_DIALOG, NULL },
|
||||
{ { N_("/Dialogs/Pal_ettes"), "<control>P",
|
||||
dialogs_create_dockable_cmd_callback, 0,
|
||||
"<StockItem>", GTK_STOCK_SELECT_COLOR },
|
||||
"<StockItem>", GIMP_STOCK_PALETTE },
|
||||
"gimp-palette-list|gimp-palette-grid",
|
||||
GIMP_HELP_PALETTE_DIALOG, NULL },
|
||||
{ { N_("/Dialogs/_Fonts"), NULL,
|
||||
dialogs_create_dockable_cmd_callback, 0,
|
||||
"<StockItem>", GTK_STOCK_SELECT_FONT },
|
||||
"<StockItem>", GIMP_STOCK_FONT },
|
||||
"gimp-font-list|gimp-font-grid",
|
||||
GIMP_HELP_FONT_DIALOG, NULL },
|
||||
{ { N_("/Dialogs/_Buffers"), "foo",
|
||||
dialogs_create_dockable_cmd_callback, 0,
|
||||
"<StockItem>", GTK_STOCK_PASTE },
|
||||
"<StockItem>", GIMP_STOCK_BUFFER },
|
||||
"gimp-buffer-list|gimp-buffer-grid",
|
||||
GIMP_HELP_BUFFER_DIALOG, NULL },
|
||||
|
||||
|
|
|
@ -168,32 +168,32 @@ GimpItemFactoryEntry toolbox_menu_entries[] =
|
|||
GIMP_HELP_COLOR_DIALOG, NULL },
|
||||
{ { N_("/File/Dialogs/Brus_hes"), "<control><shift>B",
|
||||
dialogs_create_dockable_cmd_callback, 0,
|
||||
"<StockItem>", GIMP_STOCK_TOOL_PAINTBRUSH },
|
||||
"<StockItem>", GIMP_STOCK_BRUSH },
|
||||
"gimp-brush-grid",
|
||||
GIMP_HELP_BRUSH_DIALOG, NULL },
|
||||
{ { N_("/File/Dialogs/P_atterns"), "<control><shift>P",
|
||||
dialogs_create_dockable_cmd_callback, 0,
|
||||
"<StockItem>", GIMP_STOCK_TOOL_BUCKET_FILL },
|
||||
"<StockItem>", GIMP_STOCK_PATTERN },
|
||||
"gimp-pattern-grid",
|
||||
GIMP_HELP_PATTERN_DIALOG, NULL },
|
||||
{ { N_("/File/Dialogs/_Gradients"), "<control>G",
|
||||
dialogs_create_dockable_cmd_callback, 0,
|
||||
"<StockItem>", GIMP_STOCK_TOOL_BLEND },
|
||||
"<StockItem>", GIMP_STOCK_GRADIENT },
|
||||
"gimp-gradient-list|gimp-gradient-grid",
|
||||
GIMP_HELP_GRADIENT_DIALOG, NULL },
|
||||
{ { N_("/File/Dialogs/Pal_ettes"), "<control>P",
|
||||
dialogs_create_dockable_cmd_callback, 0,
|
||||
"<StockItem>", GTK_STOCK_SELECT_COLOR },
|
||||
"<StockItem>", GIMP_STOCK_PALETTE },
|
||||
"gimp-palette-list|gimp-palette-list",
|
||||
GIMP_HELP_PALETTE_DIALOG, NULL },
|
||||
{ { N_("/File/Dialogs/_Fonts"), NULL,
|
||||
dialogs_create_dockable_cmd_callback, 0,
|
||||
"<StockItem>", GTK_STOCK_SELECT_FONT },
|
||||
"<StockItem>", GIMP_STOCK_FONT },
|
||||
"gimp-font-list|gimp-font-grid",
|
||||
GIMP_HELP_FONT_DIALOG, NULL },
|
||||
{ { N_("/File/Dialogs/_Buffers"), "foo",
|
||||
dialogs_create_dockable_cmd_callback, 0,
|
||||
"<StockItem>", GTK_STOCK_PASTE },
|
||||
"<StockItem>", GIMP_STOCK_BUFFER },
|
||||
"gimp-buffer-list|gimp-buffer-grid",
|
||||
GIMP_HELP_BUFFER_DIALOG, NULL },
|
||||
|
||||
|
|
|
@ -141,7 +141,7 @@ gimp_paint_options_gui (GimpToolOptions *tool_options)
|
|||
GIMP_PREVIEW_SIZE_SMALL, 1,
|
||||
dialog_factory,
|
||||
"gimp-brush-grid|gimp-brush-list",
|
||||
GIMP_STOCK_TOOL_PAINTBRUSH,
|
||||
GIMP_STOCK_BRUSH,
|
||||
_("Open the brush selection dialog"));
|
||||
|
||||
gimp_table_attach_aligned (GTK_TABLE (table), 0, table_row++,
|
||||
|
@ -158,7 +158,7 @@ gimp_paint_options_gui (GimpToolOptions *tool_options)
|
|||
GIMP_PREVIEW_SIZE_SMALL, 1,
|
||||
dialog_factory,
|
||||
"gimp-pattern-grid|gimp-pattern-list",
|
||||
GIMP_STOCK_TOOL_BUCKET_FILL,
|
||||
GIMP_STOCK_PATTERN,
|
||||
_("Open the pattern selection dialog"));
|
||||
|
||||
gimp_table_attach_aligned (GTK_TABLE (table), 0, table_row++,
|
||||
|
@ -182,7 +182,7 @@ gimp_paint_options_gui (GimpToolOptions *tool_options)
|
|||
GIMP_PREVIEW_SIZE_LARGE, 1,
|
||||
dialog_factory,
|
||||
"gimp-gradient-list|gimp-gradient-grid",
|
||||
GIMP_STOCK_TOOL_BLEND,
|
||||
GIMP_STOCK_GRADIENT,
|
||||
_("Open the gradient selection dialog"));
|
||||
|
||||
/* use smaller previews for the popup */
|
||||
|
|
|
@ -309,7 +309,7 @@ gimp_text_options_gui (GimpToolOptions *tool_options)
|
|||
GIMP_PREVIEW_SIZE_SMALL, 1,
|
||||
dialog_factory,
|
||||
"gimp-font-list|gimp-font-grid",
|
||||
GTK_STOCK_SELECT_FONT,
|
||||
GIMP_STOCK_FONT,
|
||||
_("Open the font selection dialog"));
|
||||
|
||||
gimp_table_attach_aligned (GTK_TABLE (table), 0, row++,
|
||||
|
|
|
@ -1076,7 +1076,7 @@ palette_editor_edit_clicked (GtkWidget *widget,
|
|||
editor->color_notebook =
|
||||
color_notebook_new (GIMP_VIEWABLE (palette),
|
||||
_("Edit Palette Color"),
|
||||
GTK_STOCK_SELECT_COLOR,
|
||||
GIMP_STOCK_PALETTE,
|
||||
_("Edit Color Palette Entry"),
|
||||
GTK_WIDGET (editor),
|
||||
toplevel_factory,
|
||||
|
|
|
@ -224,6 +224,16 @@ G_BEGIN_DECLS
|
|||
#define GIMP_STOCK_TEXTURE "gimp-texture"
|
||||
|
||||
|
||||
/* missing icons: */
|
||||
|
||||
#define GIMP_STOCK_BRUSH GIMP_STOCK_TOOL_PAINTBRUSH
|
||||
#define GIMP_STOCK_BUFFER GTK_STOCK_PASTE
|
||||
#define GIMP_STOCK_FONT GTK_STOCK_SELECT_FONT
|
||||
#define GIMP_STOCK_GRADIENT GIMP_STOCK_TOOL_BLEND
|
||||
#define GIMP_STOCK_PALETTE GTK_STOCK_SELECT_COLOR
|
||||
#define GIMP_STOCK_PATTERN GIMP_STOCK_TOOL_BUCKET_FILL
|
||||
|
||||
|
||||
void gimp_stock_init (void);
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue