After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 671635 - ephy-history-window: Open pages in new tab on middle click
ephy-history-window: Open pages in new tab on middle click
Status: RESOLVED FIXED
Product: epiphany
Classification: Core
Component: General
unspecified
Other All
: Normal normal
: ---
Assigned To: Epiphany Maintainers
Epiphany Maintainers
Depends on:
Blocks: 537731
 
 
Reported: 2012-03-08 10:02 UTC by Claudio Saavedra
Modified: 2012-03-13 08:18 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
ephy-history-view: add row-middle-clicked signal (2.48 KB, patch)
2012-03-08 10:02 UTC, Claudio Saavedra
accepted-commit_now Details | Review
ephy-history-view: open pages in a new tab on middle click (2.07 KB, patch)
2012-03-08 10:02 UTC, Claudio Saavedra
accepted-commit_now Details | Review
ephy-history-view: add row-middle-clicked signal (4.98 KB, patch)
2012-03-09 17:02 UTC, Claudio Saavedra
committed Details | Review
ephy-history-view: open pages in a new tab on middle click (2.06 KB, patch)
2012-03-09 17:02 UTC, Claudio Saavedra
committed Details | Review

Description Claudio Saavedra 2012-03-08 10:02:04 UTC
This is a regression from previous history window, so let's bring it back.
Comment 1 Claudio Saavedra 2012-03-08 10:02:06 UTC
Created attachment 209236 [details] [review]
ephy-history-view: add row-middle-clicked signal
Comment 2 Claudio Saavedra 2012-03-08 10:02:09 UTC
Created attachment 209237 [details] [review]
ephy-history-view: open pages in a new tab on middle click

This was present in the old EphyNodeView history. Bring it back.
Comment 3 Xan Lopez 2012-03-09 13:42:35 UTC
Review of attachment 209236 [details] [review]:

::: lib/widgets/ephy-history-view.c
@@ +81,3 @@
       g_signal_emit_by_name (treeview, "popup_menu", &retval);
+    } else if (event->button == 2) {
+      g_signal_emit (G_OBJECT (treeview),

You don't need the cast here, I believe. And no braces for one line clauses.
Comment 4 Xan Lopez 2012-03-09 13:43:33 UTC
Review of attachment 209237 [details] [review]:

Looks good. Same comments about G_OBJECT and g_signal_connect :)
Comment 5 Claudio Saavedra 2012-03-09 17:02:03 UTC
Created attachment 209327 [details] [review]
ephy-history-view: add row-middle-clicked signal
Comment 6 Claudio Saavedra 2012-03-09 17:02:05 UTC
Created attachment 209328 [details] [review]
ephy-history-view: open pages in a new tab on middle click

This was present in the old EphyNodeView history. Bring it back.
Comment 7 Claudio Saavedra 2012-03-09 17:03:35 UTC
The first patch is changed, to take into account the concerns presented in bug 537731.
Comment 8 Xan Lopez 2012-03-12 19:15:59 UTC
Review of attachment 209327 [details] [review]:

OK, makes sense. Just a few nitpicks, but no need to upload the patch again.

::: lib/widgets/ephy-history-view.c
@@ +28,3 @@
 #include <gtk/gtk.h>
 
+static void ephy_history_view_finalize (GObject *object);

If you put finalize above class_init you don't really need to do this. Nitpick 1/2.

@@ +30,3 @@
+static void ephy_history_view_finalize (GObject *object);
+
+#define GET_PRIVATE(object) (G_TYPE_INSTANCE_GET_PRIVATE ((object), EPHY_TYPE_HISTORY_VIEW, EphyHistoryViewPrivate))

I know I'm an ass but let's use the full name of the macro, as usual, for consistency. Nitpick 2/2.

@@ +168,3 @@
   gtk_tree_selection_set_mode (selection, GTK_SELECTION_MULTIPLE);
+
+  self->priv->pressed_path = NULL;

And this is not really needed, memory is zeroed already. Nitpick 3/2 (wait...)
Comment 9 Xan Lopez 2012-03-12 19:16:44 UTC
Review of attachment 209328 [details] [review]:

OK.
Comment 10 Claudio Saavedra 2012-03-13 08:18:00 UTC
Attachment 209327 [details] pushed as 12c2338 - ephy-history-view: add row-middle-clicked signal
Attachment 209328 [details] pushed as f4ed0fb - ephy-history-view: open pages in a new tab on middle click