Fix notify::label emmision in GtkMenuItem

Emit notify::label in GtkMenuItem also when label is changed through GtkAction.

Refactor GtkMenuItem and remove duplicated code for GtkLabel creation. Reset
the accel-widget back to the GtkMenuItem itself when there is no action related
to the GtkMenuItem anymore.

Add test for notify::label emmisions.

Fixes bug 612574 - GtkMenuItem does not emit notify::label when label is
changed through GtkAction.
This commit is contained in:
Jan Arne Petersen
2010-03-11 15:40:55 +01:00
parent e8c0920494
commit 63c21edab7
3 changed files with 116 additions and 12 deletions

View File

@ -91,4 +91,8 @@ TEST_PROGS += expander
expander_SOURCES = expander.c
expander_LDADD = $(progs_ldadd)
TEST_PROGS += action
action_SOURCES = action.c
action_LDADD = $(progs_ldadd)
-include $(top_srcdir)/git.mk