diff --git a/lib/widgets/ephy-history-view.c b/lib/widgets/ephy-history-view.c
index 27d45ae..860d688 100644
--- a/lib/widgets/ephy-history-view.c
+++ b/lib/widgets/ephy-history-view.c
@@ -118,7 +118,6 @@ ephy_history_view_button_release (GtkWidget *treeview,
       g_signal_emit (view, signals[ROW_MIDDLE_CLICKED], 0, path);
     gtk_tree_path_free (path);
   }
-
   return FALSE;
 }
 
@@ -141,7 +140,8 @@ ephy_history_view_class_init (EphyHistoryViewClass *klass)
 
   object_class->finalize = ephy_history_view_finalize;
   widget_class->button_press_event = ephy_history_view_button_press;
-  widget_class->button_release_event = ephy_history_view_button_release;
+  g_signal_connect (G_OBJECT (klass), "button-release-event",
+    G_CALLBACK (ephy_history_view_button_release), NULL);
 
   signals[ROW_MIDDLE_CLICKED] = g_signal_new ("row-middle-clicked",
                                               G_OBJECT_CLASS_TYPE (klass),
