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 724298 - Add a count matches label to the find toolbar
Add a count matches label to the find toolbar
Status: RESOLVED OBSOLETE
Product: epiphany
Classification: Core
Component: General
3.11.x
Other Mac OS
: Normal normal
: ---
Assigned To: Epiphany Maintainers
Epiphany Maintainers
: 756358 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2014-02-13 14:47 UTC by Yosef Or Boczko
Modified: 2018-08-03 20:13 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
ephy-find-toolbar: Add a count matches label (4.09 KB, patch)
2014-02-13 14:48 UTC, Yosef Or Boczko
none Details | Review
ephy-find-toolbar: Add a count matches label (3.31 KB, patch)
2014-02-14 10:46 UTC, Yosef Or Boczko
reviewed Details | Review
ephy-find-toolbar: Add a count matches label (4.56 KB, patch)
2014-02-17 12:19 UTC, Yosef Or Boczko
reviewed Details | Review
ephy-find-toolbar: Add a count matches label (4.56 KB, patch)
2014-02-17 13:02 UTC, Yosef Or Boczko
needs-work Details | Review

Description Yosef Or Boczko 2014-02-13 14:47:57 UTC
See the patch.
Comment 1 Yosef Or Boczko 2014-02-13 14:48:56 UTC
Created attachment 269026 [details] [review]
ephy-find-toolbar: Add a count matches label

Note - there is a problem with the patch, with centering the entry and the label.
Comment 2 Yosef Or Boczko 2014-02-14 10:46:41 UTC
Created attachment 269107 [details] [review]
ephy-find-toolbar: Add a count matches label
Comment 3 Claudio Saavedra 2014-02-17 12:10:42 UTC
Review of attachment 269107 [details] [review]:

You need a designer to look at this and be OK with it.

::: embed/ephy-find-toolbar.c
@@ +252,3 @@
+		gchar *text;
+
+		text = g_strdup_printf (ngettext ("%u matches found", "%u matches found", n_matches), n_matches);

Shouldn't the first msgid be in singular?
Comment 4 Yosef Or Boczko 2014-02-17 12:19:19 UTC
Created attachment 269380 [details] [review]
ephy-find-toolbar: Add a count matches label
Comment 5 Claudio Saavedra 2014-02-17 12:51:26 UTC
Review of attachment 269380 [details] [review]:

Same as I already said.

::: embed/ephy-find-toolbar.c
@@ +43,3 @@
 	GtkWidget *next;
 	GtkWidget *prev;
+	GtkWidget *count_matches;

I think the variable name should be matches_count.

@@ +248,3 @@
+
+        if (n_matches == 0) {
+                gtk_label_set_text (GTK_LABEL (priv->count_matches), _("No matches were found"));

I think it should say "No matches found", otherwise the verb is in transitive form (iirc).
Comment 6 Yosef Or Boczko 2014-02-17 13:02:49 UTC
Created attachment 269383 [details] [review]
ephy-find-toolbar: Add a count matches label
Comment 7 Michael Catanzaro 2015-09-11 02:45:51 UTC
Review of attachment 269383 [details] [review]:

Sorry for the huge delay. :(

I don't think we need designer approval for a change this small: it's a nifty addition we should have. But the presence of the label should not change the position of the GtkEntry, since it looks jarring for the position of the GtkEntry to change as the number of search results changes. The GtkEntry should stay centered at all times, and the label should just live off to the right.

::: embed/ephy-find-toolbar.c
@@ +248,3 @@
+
+        if (n_matches == 0) {
+                gtk_label_set_text (GTK_LABEL (priv->matches_count), _("No matches found"));

For some reason, the "No matches found" label never appears for me. I think it's important to display this label, so we should figure out why.
Comment 8 Michael Catanzaro 2015-10-10 22:53:17 UTC
*** Bug 756358 has been marked as a duplicate of this bug. ***
Comment 9 GNOME Infrastructure Team 2018-08-03 20:13:52 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/epiphany/issues/227.