added gimp_help_id_quark() which is G_GNUC_CONST and a new macro

2004-05-03  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimphelpui.[ch]: added gimp_help_id_quark()
	which is G_GNUC_CONST and a new macro GIMP_HELP_ID as shortcut.

	* app/widgets/gimpactiongroup.c (gimp_action_group_add_*_actions):
	attach the help ID to the action using the new quark key. Call
	gtk_action_group_add_action() instead of the _with_accel() variant
	if the accel is the empty string (== if we explicitely want no
	accel even if the stock item specifies one). Fixes warning flood
	with GTK+ 2.4.1.
This commit is contained in:
Michael Natterer
2004-05-03 15:54:54 +00:00
committed by Michael Natterer
parent 311f033d34
commit 6e35e2333f
4 changed files with 115 additions and 20 deletions

View File

@ -53,6 +53,11 @@ void gimp_help_set_help_data (GtkWidget *widget,
void gimp_context_help (GtkWidget *widget);
#define GIMP_HELP_ID (gimp_help_id_quark ())
GQuark gimp_help_id_quark (void) G_GNUC_CONST;
G_END_DECLS
#endif /* __GIMP_HELP_UI_H__ */