diff options
author | Diego Escalante Urrelo <diegoe@gnome.org> | 2009-12-05 03:34:01 +0800 |
---|---|---|
committer | Diego Escalante Urrelo <diegoe@gnome.org> | 2009-12-06 09:17:43 +0800 |
commit | 7df0ef5da7881342298485eb88241695603d447c (patch) | |
tree | 93457fb359d051cd1cb831717ecf95b10b1d1b9b /src/bookmarks | |
parent | 9cd23731cce78ed64191f41ea32815069600c79e (diff) | |
download | gsoc2013-epiphany-7df0ef5da7881342298485eb88241695603d447c.tar gsoc2013-epiphany-7df0ef5da7881342298485eb88241695603d447c.tar.gz gsoc2013-epiphany-7df0ef5da7881342298485eb88241695603d447c.tar.bz2 gsoc2013-epiphany-7df0ef5da7881342298485eb88241695603d447c.tar.lz gsoc2013-epiphany-7df0ef5da7881342298485eb88241695603d447c.tar.xz gsoc2013-epiphany-7df0ef5da7881342298485eb88241695603d447c.tar.zst gsoc2013-epiphany-7df0ef5da7881342298485eb88241695603d447c.zip |
Don't use deprecated GtkButton API
In 82a5da33 we removed usage of gtk_button_pressed and gtk_button_released
however replacing those for g_signal_emit calls of button-press-event and
button-release-event. This however caused a crash on middle clicking of
elements in the toolbar.
To fix this we use g_signal_emit with pressed and released signals, these
two are deprecated signals, though.
There doesn't seem to be a way to trigger button pressed/released animation
without the pressed/released *deprecated* signals or functions, so this is our
best solution for now.
Bug #603450
Diffstat (limited to 'src/bookmarks')
-rw-r--r-- | src/bookmarks/ephy-bookmark-action.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bookmarks/ephy-bookmark-action.c b/src/bookmarks/ephy-bookmark-action.c index 90af3b1fd..de59a143f 100644 --- a/src/bookmarks/ephy-bookmark-action.c +++ b/src/bookmarks/ephy-bookmark-action.c @@ -431,7 +431,7 @@ button_press_cb (GtkWidget *widget, { if (event->button == 2) { - gtk_button_pressed (GTK_BUTTON (widget)); + g_signal_emit_by_name (widget, "pressed"); } return FALSE; @@ -444,7 +444,7 @@ button_release_cb (GtkWidget *widget, { if (event->button == 2) { - gtk_button_released (GTK_BUTTON (widget)); + g_signal_emit_by_name (widget, "released"); } return FALSE; |