diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2004-03-24 04:23:48 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2004-03-24 04:23:48 +0800 |
commit | 071b7d464acbead0230c3835766f27fd39ca05e7 (patch) | |
tree | 6d45d27dbaae6abd30a00d9a3ce51b340f74000b | |
parent | fc35d884b50c7e8b0ff48e6124b8bc55cf9d7ce5 (diff) | |
download | gsoc2013-epiphany-071b7d464acbead0230c3835766f27fd39ca05e7.tar gsoc2013-epiphany-071b7d464acbead0230c3835766f27fd39ca05e7.tar.gz gsoc2013-epiphany-071b7d464acbead0230c3835766f27fd39ca05e7.tar.bz2 gsoc2013-epiphany-071b7d464acbead0230c3835766f27fd39ca05e7.tar.lz gsoc2013-epiphany-071b7d464acbead0230c3835766f27fd39ca05e7.tar.xz gsoc2013-epiphany-071b7d464acbead0230c3835766f27fd39ca05e7.tar.zst gsoc2013-epiphany-071b7d464acbead0230c3835766f27fd39ca05e7.zip |
Make the "Go" button actually work. Thanks to aes for alerting us to this
2004-03-23 Christian Persch <chpe@cvs.gnome.org>
* src/ephy-go-action.c: (connect_proxy), (disconnect_proxy),
(ephy_go_action_class_init):
Make the "Go" button actually work. Thanks to aes for alerting us to
this problem.
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | src/ephy-go-action.c | 23 |
2 files changed, 31 insertions, 0 deletions
@@ -1,3 +1,11 @@ +2004-03-23 Christian Persch <chpe@cvs.gnome.org> + + * src/ephy-go-action.c: (connect_proxy), (disconnect_proxy), + (ephy_go_action_class_init): + + Make the "Go" button actually work. Thanks to aes for alerting us to + this problem. + 2004-03-23 Adam Hooper <adamh@cvs.gnome.org> * doc/reference/Makefile.am: diff --git a/src/ephy-go-action.c b/src/ephy-go-action.c index 92c62c0f2..bf8ec1d2f 100644 --- a/src/ephy-go-action.c +++ b/src/ephy-go-action.c @@ -80,6 +80,27 @@ create_tool_item (GtkAction *action) } static void +connect_proxy (GtkAction *action, + GtkWidget *proxy) +{ + GTK_ACTION_CLASS (parent_class)->connect_proxy (action, proxy); + + g_signal_connect_object (GTK_BIN (proxy)->child, "clicked", + G_CALLBACK (gtk_action_activate), action, + G_CONNECT_SWAPPED); +} + +static void +disconnect_proxy (GtkAction *action, + GtkWidget *proxy) +{ + g_signal_handlers_disconnect_by_func + (proxy, G_CALLBACK (gtk_action_activate), action); + + GTK_ACTION_CLASS (parent_class)->disconnect_proxy (action, proxy); +} + +static void ephy_go_action_class_init (EphyGoActionClass *class) { GtkActionClass *action_class = GTK_ACTION_CLASS (class); @@ -87,4 +108,6 @@ ephy_go_action_class_init (EphyGoActionClass *class) parent_class = g_type_class_peek_parent (class); action_class->create_tool_item = create_tool_item; + action_class->connect_proxy = connect_proxy; + action_class->disconnect_proxy = disconnect_proxy; } |