Commit 21ff206f authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

manually add the icons to the color picker buttons instead of abusing the

2006-01-31  Sven Neumann  <sven@gimp.org>

	* app/tools/gimplevelstool.c (gimp_levels_tool_color_picker_new):
	manually add the icons to the color picker buttons instead of
	abusing the stock-id property. Fixes bug #325745.
parent 45c9e43f
2006-01-31 Sven Neumann <sven@gimp.org>
* app/tools/gimplevelstool.c (gimp_levels_tool_color_picker_new):
manually add the icons to the color picker buttons instead of
abusing the stock-id property. Fixes bug #325745.
2006-01-31 Michael Natterer <mitch@gimp.org>
* autogen.sh: s/head -1/head -n 1/ (spotted by brix).
......
......@@ -295,6 +295,7 @@ gimp_levels_tool_color_picker_new (GimpLevelsTool *tool,
guint value)
{
GtkWidget *button;
GtkWidget *image;
const gchar *stock_id;
const gchar *help;
......@@ -317,11 +318,14 @@ gimp_levels_tool_color_picker_new (GimpLevelsTool *tool,
}
button = g_object_new (GTK_TYPE_TOGGLE_BUTTON,
"label", stock_id,
"use-stock", TRUE,
"draw-indicator", FALSE,
NULL);
image = gtk_image_new_from_stock (stock_id, GTK_ICON_SIZE_BUTTON);
gtk_misc_set_padding (GTK_MISC (image), 2, 2);
gtk_container_add (GTK_CONTAINER (button), image);
gtk_widget_show (image);
gimp_help_set_help_data (button, help, NULL);
g_object_set_data (G_OBJECT (button),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment