themes/Default/images/stock-all-16.png

2002-08-22  Michael Natterer  <mitch@gimp.org>

	* themes/Default/images/stock-all-16.png
	* themes/Default/images/stock-none-16.png
	* themes/Default/images/stock-grow-16.png
	* themes/Default/images/stock-shrink-16.png: new icons from Jimmac.

	* themes/Default/images/Makefile.am
	* themes/Default/imagerc
	* libgimpwidgets/gimpstock.[ch]: added them to the stock system.

	* app/gui/menus.c: use them.

	* app/widgets/gimpselectioneditor.[ch]: use the icons and added
	a "Save to Channel" button.
This commit is contained in:
Michael Natterer 2002-08-22 16:24:44 +00:00 committed by Michael Natterer
parent 48e27f1d51
commit 464f61829a
13 changed files with 96 additions and 15 deletions

View File

@ -1,3 +1,19 @@
2002-08-22 Michael Natterer <mitch@gimp.org>
* themes/Default/images/stock-all-16.png
* themes/Default/images/stock-none-16.png
* themes/Default/images/stock-grow-16.png
* themes/Default/images/stock-shrink-16.png: new icons from Jimmac.
* themes/Default/images/Makefile.am
* themes/Default/imagerc
* libgimpwidgets/gimpstock.[ch]: added them to the stock system.
* app/gui/menus.c: use them.
* app/widgets/gimpselectioneditor.[ch]: use the icons and added
a "Save to Channel" button.
2002-08-22 Sven Neumann <sven@gimp.org>
* tools/pdbgen/pdb/gimprc.pdb

View File

@ -448,11 +448,13 @@ static GimpItemFactoryEntry image_entries[] =
NULL,
"select/invert.html", NULL },
{ { N_("/Select/All"), "<control>A",
select_all_cmd_callback, 0 },
select_all_cmd_callback, 0,
"<StockItem>", GIMP_STOCK_ALL },
NULL,
"select/all.html", NULL },
{ { N_("/Select/None"), "<control><shift>A",
select_none_cmd_callback, 0 },
select_none_cmd_callback, 0,
"<StockItem>", GIMP_STOCK_NONE },
NULL,
"select/none.html", NULL },
{ { N_("/Select/Float"), "<control><shift>L",
@ -471,11 +473,13 @@ static GimpItemFactoryEntry image_entries[] =
NULL,
"select/sharpen.html", NULL },
{ { N_("/Select/Shrink..."), NULL,
select_shrink_cmd_callback, 0 },
select_shrink_cmd_callback, 0,
"<StockItem>", GIMP_STOCK_SHRINK },
NULL,
"select/dialogs/shrink_selection.html", NULL },
{ { N_("/Select/Grow..."), NULL,
select_grow_cmd_callback, 0 },
select_grow_cmd_callback, 0,
"<StockItem>", GIMP_STOCK_GROW },
NULL,
"select/dialogs/grow_selection.html", NULL },
{ { N_("/Select/Border..."), "<control><shift>B",

View File

@ -448,11 +448,13 @@ static GimpItemFactoryEntry image_entries[] =
NULL,
"select/invert.html", NULL },
{ { N_("/Select/All"), "<control>A",
select_all_cmd_callback, 0 },
select_all_cmd_callback, 0,
"<StockItem>", GIMP_STOCK_ALL },
NULL,
"select/all.html", NULL },
{ { N_("/Select/None"), "<control><shift>A",
select_none_cmd_callback, 0 },
select_none_cmd_callback, 0,
"<StockItem>", GIMP_STOCK_NONE },
NULL,
"select/none.html", NULL },
{ { N_("/Select/Float"), "<control><shift>L",
@ -471,11 +473,13 @@ static GimpItemFactoryEntry image_entries[] =
NULL,
"select/sharpen.html", NULL },
{ { N_("/Select/Shrink..."), NULL,
select_shrink_cmd_callback, 0 },
select_shrink_cmd_callback, 0,
"<StockItem>", GIMP_STOCK_SHRINK },
NULL,
"select/dialogs/shrink_selection.html", NULL },
{ { N_("/Select/Grow..."), NULL,
select_grow_cmd_callback, 0 },
select_grow_cmd_callback, 0,
"<StockItem>", GIMP_STOCK_GROW },
NULL,
"select/dialogs/grow_selection.html", NULL },
{ { N_("/Select/Border..."), "<control><shift>B",

View File

@ -73,6 +73,8 @@ static void gimp_selection_editor_all_clicked (GtkWidget *widget,
GimpSelectionEditor *editor);
static void gimp_selection_editor_none_clicked (GtkWidget *widget,
GimpSelectionEditor *editor);
static void gimp_selection_editor_save_clicked (GtkWidget *widget,
GimpSelectionEditor *editor);
static gboolean gimp_selection_preview_button_press(GtkWidget *widget,
GdkEventButton *bevent,
@ -192,7 +194,7 @@ gimp_selection_editor_init (GimpSelectionEditor *selection_editor)
selection_editor->all_button =
gimp_editor_add_button (GIMP_EDITOR (selection_editor),
GTK_STOCK_ADD,
GIMP_STOCK_ALL,
_("Select All"), NULL,
G_CALLBACK (gimp_selection_editor_all_clicked),
NULL,
@ -200,12 +202,20 @@ gimp_selection_editor_init (GimpSelectionEditor *selection_editor)
selection_editor->none_button =
gimp_editor_add_button (GIMP_EDITOR (selection_editor),
GTK_STOCK_REMOVE,
GIMP_STOCK_NONE,
_("Select None"), NULL,
G_CALLBACK (gimp_selection_editor_none_clicked),
NULL,
selection_editor);
selection_editor->save_button =
gimp_editor_add_button (GIMP_EDITOR (selection_editor),
GIMP_STOCK_SELECTION_TO_CHANNEL,
_("Save Selection to Channel"), NULL,
G_CALLBACK (gimp_selection_editor_save_clicked),
NULL,
selection_editor);
gtk_widget_set_sensitive (GTK_WIDGET (selection_editor), FALSE);
}
@ -367,6 +377,16 @@ gimp_selection_editor_none_clicked (GtkWidget *widget,
}
}
static void
gimp_selection_editor_save_clicked (GtkWidget *widget,
GimpSelectionEditor *editor)
{
if (editor->gimage)
{
gimp_image_mask_save (editor->gimage);
}
}
static gboolean
gimp_selection_preview_button_press (GtkWidget *widget,
GdkEventButton *bevent,

View File

@ -46,6 +46,7 @@ struct _GimpSelectionEditor
GtkWidget *invert_button;
GtkWidget *all_button;
GtkWidget *none_button;
GtkWidget *save_button;
guint idle_render_id;
};

View File

@ -113,6 +113,10 @@ static GtkStockItem gimp_stock_items[] =
{ GIMP_STOCK_CONVERT_GRAYSCALE, NULL, 0, 0, "gimp14-libgimp" },
{ GIMP_STOCK_CONVERT_INDEXED, NULL, 0, 0, "gimp14-libgimp" },
{ GIMP_STOCK_INVERT, NULL, 0, 0, "gimp14-libgimp" },
{ GIMP_STOCK_ALL, NULL, 0, 0, "gimp14-libgimp" },
{ GIMP_STOCK_NONE, NULL, 0, 0, "gimp14-libgimp" },
{ GIMP_STOCK_GROW, NULL, 0, 0, "gimp14-libgimp" },
{ GIMP_STOCK_SHRINK, NULL, 0, 0, "gimp14-libgimp" },
{ GIMP_STOCK_MERGE_DOWN, NULL, 0, 0, "gimp14-libgimp" },
{ GIMP_STOCK_LAYER_TO_IMAGESIZE, NULL, 0, 0, "gimp14-libgimp" },
{ GIMP_STOCK_PLUGIN, NULL, 0, 0, "gimp14-libgimp" },
@ -257,6 +261,10 @@ gimp_stock_menu_pixbufs[] =
{ GIMP_STOCK_CONVERT_GRAYSCALE, stock_convert_grayscale_16 },
{ GIMP_STOCK_CONVERT_INDEXED, stock_convert_indexed_16 },
{ GIMP_STOCK_INVERT, stock_invert_16 },
{ GIMP_STOCK_ALL, stock_all_16 },
{ GIMP_STOCK_NONE, stock_none_16 },
{ GIMP_STOCK_GROW, stock_grow_16 },
{ GIMP_STOCK_SHRINK, stock_shrink_16 },
{ GIMP_STOCK_MERGE_DOWN, stock_merge_down_16 },
{ GIMP_STOCK_LAYER_TO_IMAGESIZE, stock_layer_to_imagesize_16 },
{ GIMP_STOCK_PLUGIN, stock_plugin_16 },

View File

@ -60,6 +60,10 @@ G_BEGIN_DECLS
#define GIMP_STOCK_CONVERT_GRAYSCALE "gimp-convert-grayscale"
#define GIMP_STOCK_CONVERT_INDEXED "gimp-convert-indexed"
#define GIMP_STOCK_INVERT "gimp-invert"
#define GIMP_STOCK_ALL "gimp-all"
#define GIMP_STOCK_NONE "gimp-none"
#define GIMP_STOCK_GROW "gimp-grow"
#define GIMP_STOCK_SHRINK "gimp-shrink"
#define GIMP_STOCK_MERGE_DOWN "gimp-merge-down"
#define GIMP_STOCK_LAYER_TO_IMAGESIZE "gimp-layer-to-imagesize"
#define GIMP_STOCK_PLUGIN "gimp-plugin"

View File

@ -48,11 +48,6 @@ style "gimp-icons"
{ "images/stock-info-24.png", *, *, "gtk-button" },
{ "images/stock-info-24.png", *, *, * },
}
stock["gimp-invert"] =
{
{ "images/stock-invert-16.png", *, *, "gtk-button" },
{ "images/stock-invert-24.png", *, *, * },
}
stock["gimp-linked"] =
{
{ "images/stock-linked-16.png", *, *, "gtk-button" },
@ -140,6 +135,31 @@ style "gimp-icons"
{ "images/stock-convert-indexed-16.png", *, *, "gtk-menu" },
{ "images/stock-convert-indexed-16.png", *, *, * }
}
stock["gimp-invert"] =
{
{ "images/stock-invert-16.png", *, *, "gtk-button" },
{ "images/stock-invert-16.png", *, *, * },
}
stock["gimp-all"] =
{
{ "images/stock-all-16.png", *, *, "gtk-button" },
{ "images/stock-all-16.png", *, *, * },
}
stock["gimp-none"] =
{
{ "images/stock-none-16.png", *, *, "gtk-button" },
{ "images/stock-none-16.png", *, *, * },
}
stock["gimp-grow"] =
{
{ "images/stock-grow-16.png", *, *, "gtk-button" },
{ "images/stock-grow-16.png", *, *, * },
}
stock["gimp-shrink"] =
{
{ "images/stock-shrink-16.png", *, *, "gtk-button" },
{ "images/stock-shrink-16.png", *, *, * },
}
stock["gimp-merge-down"] =
{
{ "images/stock-merge-down-16.png", *, *, "gtk-menu" },

View File

@ -67,6 +67,10 @@ STOCK_MENU_IMAGES = \
stock-convert-indexed-16.png \
stock-convert-rgb-16.png \
stock-invert-16.png \
stock-all-16.png \
stock-none-16.png \
stock-grow-16.png \
stock-shrink-16.png \
stock-merge-down-16.png \
stock-layer-to-imagesize-16.png \
stock-plugin-16.png \

Binary file not shown.

After

Width:  |  Height:  |  Size: 140 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 213 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 243 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 215 B