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 710542 - Create a find toolbar to each tab
Create a find toolbar to each tab
Status: RESOLVED FIXED
Product: epiphany
Classification: Core
Component: Interface
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Epiphany Maintainers
Epiphany Maintainers
: 706940 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2013-10-20 12:17 UTC by Yosef Or Boczko
Modified: 2013-12-15 14:32 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Create a find toolbar to each tab (69.49 KB, patch)
2013-10-20 12:17 UTC, Yosef Or Boczko
none Details | Review
ephy-find-toolbar: Close the search bar when loading new page in the current tab (1.40 KB, patch)
2013-10-21 20:05 UTC, Yosef Or Boczko
none Details | Review
ephy-find-toolbar: Close the search bar when loading new page in the current tab (1.47 KB, patch)
2013-10-21 20:41 UTC, Yosef Or Boczko
none Details | Review
The patch of ephy-find-toolbar.c (2.94 KB, patch)
2013-11-25 15:19 UTC, Yosef Or Boczko
none Details | Review
The patch of ephy-find-toolbar.h (805 bytes, patch)
2013-11-25 15:20 UTC, Yosef Or Boczko
none Details | Review
Create a find toolbar to each tab (57.42 KB, patch)
2013-12-08 17:34 UTC, Yosef Or Boczko
committed Details | Review
ephy-find-toolbar: Close the search bar when loading new page in the current tab (1.47 KB, patch)
2013-12-08 17:37 UTC, Yosef Or Boczko
committed Details | Review
The patch of ephy-find-toolbar.{c,h} (4.35 KB, patch)
2013-12-08 17:37 UTC, Yosef Or Boczko
reviewed Details | Review

Description Yosef Or Boczko 2013-10-20 12:17:09 UTC
With the patch, to each tab have a find toolbar.
This mean when I type to search in one tab, and
move to other tab, the find toolbar is hidden, but
when I returned to the previous tab, I see again the
find toolbar, with the text I typed to search.
Comment 1 Yosef Or Boczko 2013-10-20 12:17:44 UTC
Created attachment 257748 [details] [review]
Create a find toolbar to each tab
Comment 2 Yosef Or Boczko 2013-10-21 20:05:47 UTC
Created attachment 257793 [details] [review]
ephy-find-toolbar: Close the search bar when loading new page in the current tab
Comment 3 Yosef Or Boczko 2013-10-21 20:41:53 UTC
Created attachment 257795 [details] [review]
ephy-find-toolbar: Close the search bar when loading new page in the current tab

Don't call to ephy_find_toolbar_close() when the find bar
isn't shown.
Comment 4 Yosef Or Boczko 2013-11-25 15:19:42 UTC
Created attachment 261451 [details] [review]
The patch of ephy-find-toolbar.c

This patch show the different between the original
ephy-find-toolbar.c from src/ to the ephy-find-toolbar.c
after the patch in this bug, in embed/ folder.
Comment 5 Yosef Or Boczko 2013-11-25 15:20:11 UTC
Created attachment 261452 [details] [review]
The patch of ephy-find-toolbar.h

This patch show the different between the original
ephy-find-toolbar.c from src/ to the ephy-find-toolbar.c
after the patch in this bug, in embed/ folder.
Comment 6 Claudio Saavedra 2013-12-08 16:35:24 UTC
The patch looks pretty good, but you need to update it to apply to master.
Comment 7 Yosef Or Boczko 2013-12-08 17:34:03 UTC
Created attachment 263761 [details] [review]
Create a find toolbar to each tab

Updated to master.
Comment 8 Yosef Or Boczko 2013-12-08 17:37:07 UTC
Created attachment 263762 [details] [review]
ephy-find-toolbar: Close the search bar when loading new page in the current tab

Updated to master.
Comment 9 Yosef Or Boczko 2013-12-08 17:37:57 UTC
Created attachment 263763 [details] [review]
The patch of ephy-find-toolbar.{c,h}
Comment 10 Claudio Saavedra 2013-12-09 11:15:49 UTC
Review of attachment 263761 [details] [review]:

Looks good. You can fix the small issues and then push.

::: embed/ephy-embed.c
@@ +34,3 @@
 #include "ephy-settings.h"
 #include "ephy-web-view.h"
+#include "ephy-find-toolbar.h"

This list should be sorted.

::: src/ephy-window.c
@@ +1401,3 @@
 	if (!can_find)
 	{
+		ephy_find_toolbar_request_close (ephy_embed_get_find_toolbar (window->priv->active_embed));

Can't you just use priv here?
Comment 11 Claudio Saavedra 2013-12-09 11:18:10 UTC
Review of attachment 263762 [details] [review]:

Same with this one, fix the small issue and push afterwards.

::: embed/ephy-find-toolbar.c
@@ +430,3 @@
+ephy_find_toolbar_load_changed_cb (WebKitWebView  *web_view,
+				   WebKitLoadEvent load_event,
+				   gpointer        user_data)

Use a EphyToolBar here, instead of a gpointer, like the other callbacks.
Comment 12 Claudio Saavedra 2013-12-09 11:20:54 UTC
Review of attachment 263763 [details] [review]:

All right.

::: embed/ephy-find-toolbar.c
@@ -293,3 @@
 			  EphyFindToolbar *toolbar)
 {
-	EphyFindToolbarPrivate *priv = toolbar->priv;

How is this related? Remove it beforehand (or afterwards) if this is a left-over.
Comment 13 Yosef Or Boczko 2013-12-09 11:43:44 UTC
Review of attachment 263761 [details] [review]:

Pushed as 610586172fd8492f826adcba0f7685bf14db747e - Create a find toolbar to each tab
Comment 14 Yosef Or Boczko 2013-12-09 11:44:30 UTC
Review of attachment 263762 [details] [review]:

Pushed as 78b0f5ad9292edeb872bc8f418d6bc24804208fd - ephy-find-toolbar: Close the search bar when loading new page in the current tab
Comment 15 Yosef Or Boczko 2013-12-09 11:45:39 UTC
I pushed the patches after change by your comment.
Also, I pushed a separate patch to remove the unused
variable in ephy-find-toolbar.c.
Comment 16 William Jon McCann 2013-12-15 14:32:37 UTC
*** Bug 706940 has been marked as a duplicate of this bug. ***