Commit 51928a4a authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

derive GimpToolInfo from GimpViewable, it doesn't make sense for it to be

2004-05-24  Sven Neumann  <sven@gimp.org>

	* app/core/gimptoolinfo.[ch]: derive GimpToolInfo from
	GimpViewable, it doesn't make sense for it to be a GimpData.

	* app/widgets/gimptooloptionseditor.c
	(gimp_tool_options_editor_get_title): do not append " Options" to
	the tool name. Fixes bug #142280.
parent 673939f2
2004-05-24 Sven Neumann <sven@gimp.org>
* app/core/gimptoolinfo.[ch]: derive GimpToolInfo from
GimpViewable, it doesn't make sense for it to be a GimpData.
* app/widgets/gimptooloptionseditor.c
(gimp_tool_options_editor_get_title): do not append " Options" to
the tool name. Fixes bug #142280.
2004-05-24 Sven Neumann <sven@gimp.org>
* plug-ins/common/mblur.c: fixed range check of blur type
......
......@@ -60,7 +60,7 @@ static gchar * gimp_tool_info_get_description (GimpViewable *viewable,
gchar **tooltip);
static GimpDataClass *parent_class = NULL;
static GimpViewableClass *parent_class = NULL;
GType
......@@ -83,7 +83,7 @@ gimp_tool_info_get_type (void)
(GInstanceInitFunc) gimp_tool_info_init,
};
tool_info_type = g_type_register_static (GIMP_TYPE_DATA,
tool_info_type = g_type_register_static (GIMP_TYPE_VIEWABLE,
"GimpToolInfo",
&tool_info_info, 0);
}
......
......@@ -35,7 +35,7 @@ typedef struct _GimpToolInfoClass GimpToolInfoClass;
struct _GimpToolInfo
{
GimpData parent_instance;
GimpViewable parent_instance;
Gimp *gimp;
......@@ -61,7 +61,7 @@ struct _GimpToolInfo
struct _GimpToolInfoClass
{
GimpDataClass parent_class;
GimpViewableClass parent_class;
};
......
......@@ -281,7 +281,7 @@ gimp_tool_options_editor_get_title (GimpDocked *docked)
tool_info = gimp_context_get_tool (context);
return g_strdup_printf (_("%s Options"), tool_info->blurb);
return g_strdup (tool_info->blurb);
}
......
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