forked from AuroraMiddleware/gtk
Make disconnect work for toolitems.
2003-09-07 Matthias Clasen <maclas@gmx.de> * gtk/gtkaction.c (disconnect_proxy): Make disconnect work for toolitems.
This commit is contained in:
parent
7db084ec5b
commit
0a79e5e3be
@ -1,3 +1,8 @@
|
||||
2003-09-07 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkaction.c (disconnect_proxy): Make disconnect work
|
||||
for toolitems.
|
||||
|
||||
2003-09-06 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkaction.c (gtk_action_connect_proxy): Disconnect from
|
||||
|
@ -1,3 +1,8 @@
|
||||
2003-09-07 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkaction.c (disconnect_proxy): Make disconnect work
|
||||
for toolitems.
|
||||
|
||||
2003-09-06 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkaction.c (gtk_action_connect_proxy): Disconnect from
|
||||
|
@ -1,3 +1,8 @@
|
||||
2003-09-07 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkaction.c (disconnect_proxy): Make disconnect work
|
||||
for toolitems.
|
||||
|
||||
2003-09-06 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkaction.c (gtk_action_connect_proxy): Disconnect from
|
||||
|
@ -1,3 +1,8 @@
|
||||
2003-09-07 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkaction.c (disconnect_proxy): Make disconnect work
|
||||
for toolitems.
|
||||
|
||||
2003-09-06 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkaction.c (gtk_action_connect_proxy): Disconnect from
|
||||
|
@ -1,3 +1,8 @@
|
||||
2003-09-07 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkaction.c (disconnect_proxy): Make disconnect work
|
||||
for toolitems.
|
||||
|
||||
2003-09-06 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkaction.c (gtk_action_connect_proxy): Disconnect from
|
||||
|
@ -657,11 +657,6 @@ static void
|
||||
disconnect_proxy (GtkAction *action,
|
||||
GtkWidget *proxy)
|
||||
{
|
||||
static guint notify_id = 0;
|
||||
|
||||
if (!notify_id)
|
||||
notify_id = g_signal_lookup ("notify", G_TYPE_OBJECT);
|
||||
|
||||
g_object_set_data (G_OBJECT (proxy), "gtk-action", NULL);
|
||||
|
||||
/* remove proxy from list of proxies */
|
||||
@ -688,12 +683,14 @@ disconnect_proxy (GtkAction *action,
|
||||
G_CALLBACK (gtk_action_sync_label),
|
||||
proxy);
|
||||
|
||||
gtk_menu_item_set_accel_path (GTK_MENU_ITEM (proxy), NULL);
|
||||
if (GTK_IS_MENU_ITEM (widget))
|
||||
gtk_menu_item_set_accel_path (GTK_MENU_ITEM (widget), NULL);
|
||||
|
||||
/* toolbar button specific synchronisers ... */
|
||||
g_signal_handlers_disconnect_by_func (action,
|
||||
G_CALLBACK (gtk_action_sync_short_label),
|
||||
proxy);
|
||||
|
||||
g_signal_handlers_disconnect_by_func (proxy,
|
||||
G_CALLBACK (gtk_action_create_menu_proxy),
|
||||
action);
|
||||
|
Loading…
Reference in New Issue
Block a user