From a36798e997fcb33270d0a21da2f3dbf23c0dec4d Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Fri, 30 Jan 2004 22:10:31 +0000 Subject: [PATCH] added the scrolled window to the GimpToolOptionsEditor struct. 2004-01-30 Michael Natterer * 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. --- ChangeLog | 8 ++++++++ app/widgets/gimptooloptionseditor.c | 5 ++++- app/widgets/gimptooloptionseditor.h | 1 + 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 7afc79cf18..d06dd10a67 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2004-01-30 Michael Natterer + + * 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 * plug-ins/helpbrowser/dialog.c: map the Home button to diff --git a/app/widgets/gimptooloptionseditor.c b/app/widgets/gimptooloptionseditor.c index 84e46f76f4..db58454d84 100644 --- a/app/widgets/gimptooloptionseditor.c +++ b/app/widgets/gimptooloptionseditor.c @@ -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 { diff --git a/app/widgets/gimptooloptionseditor.h b/app/widgets/gimptooloptionseditor.h index 69b09fafbd..f01ef79ad8 100644 --- a/app/widgets/gimptooloptionseditor.h +++ b/app/widgets/gimptooloptionseditor.h @@ -42,6 +42,7 @@ struct _GimpToolOptionsEditor Gimp *gimp; + GtkWidget *scrolled_window; GtkWidget *options_vbox; GtkWidget *save_button;