added the scrolled window to the GimpToolOptionsEditor struct.

2004-01-30  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimptooloptionseditor.[ch]: added the scrolled
	window to the GimpToolOptionsEditor struct.

	(gimp_tool_options_editor_tool_changed): set the active tool's
	help ID on the scrolled window. Fixes bug #132969.
This commit is contained in:
Michael Natterer 2004-01-30 22:10:31 +00:00 committed by Michael Natterer
parent 85d95a5e5a
commit a36798e997
3 changed files with 13 additions and 1 deletions

View file

@ -1,3 +1,11 @@
2004-01-30 Michael Natterer <mitch@gimp.org>
* app/widgets/gimptooloptionseditor.[ch]: added the scrolled
window to the GimpToolOptionsEditor struct.
(gimp_tool_options_editor_tool_changed): set the active tool's
help ID on the scrolled window. Fixes bug #132969.
2004-01-30 Sven Neumann <sven@gimp.org>
* plug-ins/helpbrowser/dialog.c: map the Home button to

View file

@ -177,7 +177,7 @@ gimp_tool_options_editor_init (GimpToolOptionsEditor *editor)
editor);
g_free (str);
scrolled_win = gtk_scrolled_window_new (NULL, NULL);
editor->scrolled_window = scrolled_win = gtk_scrolled_window_new (NULL, NULL);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled_win),
GTK_POLICY_AUTOMATIC,
GTK_POLICY_AUTOMATIC);
@ -498,6 +498,9 @@ gimp_tool_options_editor_tool_changed (GimpContext *context,
gtk_widget_show (options_gui);
editor->visible_tool_options = tool_info->tool_options;
gimp_help_set_help_data (editor->scrolled_window, NULL,
tool_info->help_id);
}
else
{

View file

@ -42,6 +42,7 @@ struct _GimpToolOptionsEditor
Gimp *gimp;
GtkWidget *scrolled_window;
GtkWidget *options_vbox;
GtkWidget *save_button;