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 757401 - [PATCHes] cookies-dialog.ui: Unbloat.
[PATCHes] cookies-dialog.ui: Unbloat.
Status: RESOLVED FIXED
Product: epiphany
Classification: Core
Component: Passwords, Cookies, & Certificates
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Epiphany Maintainers
Epiphany Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-10-31 06:24 UTC by Arnaud B.
Modified: 2015-11-01 16:08 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
cookies-dialog.ui: Manually unbloat. (13.32 KB, patch)
2015-10-31 06:26 UTC, Arnaud B.
committed Details | Review
CookiesDialog: Use tree_selection. (2.64 KB, patch)
2015-10-31 06:27 UTC, Arnaud B.
committed Details | Review
CookiesDialog: Kill a level of GtkBox. (9.55 KB, patch)
2015-10-31 06:28 UTC, Arnaud B.
committed Details | Review
CookiesDialog: Call response_cb from UI file. (2.64 KB, patch)
2015-10-31 06:28 UTC, Arnaud B.
committed Details | Review
CookiesDialog: Use GActions. (6.72 KB, patch)
2015-10-31 06:31 UTC, Arnaud B.
committed Details | Review
CookiesDialog: Define keybindings in UI file. (3.75 KB, patch)
2015-10-31 06:31 UTC, Arnaud B.
committed Details | Review
CookiesDialog: Visual refresh (GtkActionBar, GtkSearchBar). (5.09 KB, patch)
2015-10-31 06:32 UTC, Arnaud B.
committed Details | Review
CookiesDialog: Kill a (now) unneeded level of GtkBox. (6.34 KB, patch)
2015-10-31 06:33 UTC, Arnaud B.
committed Details | Review

Description Arnaud B. 2015-10-31 06:24:03 UTC
Here are a few patches to unbloat the CookiesDialog’s class. They are quite similar to a similar set for the HistoryDialog’s (bug 757228) and one for the PasswordsDialog’s (bug 757344).
Comment 1 Arnaud B. 2015-10-31 06:26:44 UTC
Created attachment 314524 [details] [review]
cookies-dialog.ui: Manually unbloat.
Comment 2 Arnaud B. 2015-10-31 06:27:36 UTC
Created attachment 314525 [details] [review]
CookiesDialog: Use tree_selection.
Comment 3 Arnaud B. 2015-10-31 06:28:13 UTC
Created attachment 314526 [details] [review]
CookiesDialog: Kill a level of GtkBox.
Comment 4 Arnaud B. 2015-10-31 06:28:50 UTC
Created attachment 314527 [details] [review]
CookiesDialog: Call response_cb from UI file.
Comment 5 Arnaud B. 2015-10-31 06:31:01 UTC
Created attachment 314528 [details] [review]
CookiesDialog: Use GActions.
Comment 6 Arnaud B. 2015-10-31 06:31:40 UTC
Created attachment 314529 [details] [review]
CookiesDialog: Define keybindings in UI file.
Comment 7 Arnaud B. 2015-10-31 06:32:21 UTC
Created attachment 314530 [details] [review]
CookiesDialog: Visual refresh (GtkActionBar, GtkSearchBar).
Comment 8 Arnaud B. 2015-10-31 06:33:20 UTC
Created attachment 314531 [details] [review]
CookiesDialog: Kill a (now) unneeded level of GtkBox.
Comment 9 Michael Catanzaro 2015-11-01 14:08:51 UTC
Thanks for working on this. I think you should fix bug #757230 as well; should be easy compared to the work you've already done.

Bonus points if you want to take on bug #723237.
Comment 10 Michael Catanzaro 2015-11-01 14:44:04 UTC
Review of attachment 314524 [details] [review]:

::: src/resources/cookies-dialog.ui
@@ -61,3 @@
         <property name="orientation">vertical</property>
         <property name="spacing">2</property>
-        <child internal-child="action_area">

Wow, it added an unused action area....
Comment 11 Michael Catanzaro 2015-11-01 14:45:22 UTC
Review of attachment 314525 [details] [review]:

Is this really worth it, to save one use of gtk_tree_view_get_selection? I guess it's good if more uses would be added in the future, and to parallel the other dialogs.
Comment 12 Michael Catanzaro 2015-11-01 14:45:37 UTC
Review of attachment 314526 [details] [review]:

Dialog still works
Comment 13 Michael Catanzaro 2015-11-01 14:45:53 UTC
Review of attachment 314527 [details] [review]:

++
Comment 14 Michael Catanzaro 2015-11-01 14:46:22 UTC
Review of attachment 314528 [details] [review]:

::: src/cookies-dialog.c
@@ +450,3 @@
+		{ "forget-all", forget_all }
+	};
+	GSimpleActionGroup *group;

Again, I think a blank line here would be good.
Comment 15 Michael Catanzaro 2015-11-01 14:46:37 UTC
Review of attachment 314529 [details] [review]:

OK
Comment 16 Michael Catanzaro 2015-11-01 14:46:49 UTC
Review of attachment 314530 [details] [review]:

OK
Comment 17 Michael Catanzaro 2015-11-01 14:47:19 UTC
Review of attachment 314531 [details] [review]:

::: src/resources/cookies-dialog.ui
@@ +114,3 @@
+                <property name="sensitive">False</property>
+                <property name="tooltip_text" translatable="yes">Delete the selected cookies</property>
+                <property name="label" translatable="yes">Remove</property> <!-- TODO conflicts with the image -->

OK, you already spotted this