for consistency, use return_if_no_widget() instead of

2005-02-03  Michael Natterer  <mitch@gimp.org>

	* app/actions/help-commands.c (help_context_help_cmd_callback):
	for consistency, use return_if_no_widget() instead of
	action_data_get_widget()
This commit is contained in:
Michael Natterer 2005-02-03 19:27:56 +00:00 committed by Michael Natterer
parent ebf67a2003
commit 0185153282
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2005-02-03 Michael Natterer <mitch@gimp.org>
* app/actions/help-commands.c (help_context_help_cmd_callback):
for consistency, use return_if_no_widget() instead of
action_data_get_widget()
2005-02-03 Michael Natterer <mitch@gimp.org>
* app/dialogs/image-scale-dialog.c (image_scale_dialog_new): use

View File

@ -39,8 +39,8 @@ void
help_context_help_cmd_callback (GtkAction *action,
gpointer data)
{
GtkWidget *widget = action_data_get_widget (data);
GtkWidget *widget;
return_if_no_widget (widget, data);
if (widget)
gimp_context_help (widget);
gimp_context_help (widget);
}