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


Attachments
passwords-dialog.ui:Manually unbloat. (19.34 KB, patch)
2015-10-30 08:59 UTC, Arnaud B.
committed Details | Review
PasswordsDialog: Use tree_selection. (3.88 KB, patch)
2015-10-30 09:00 UTC, Arnaud B.
committed Details | Review
PasswordsDialog: Kill a level of GtkBox. (15.14 KB, patch)
2015-10-30 09:01 UTC, Arnaud B.
committed Details | Review
PasswordsDialog: Call response_cb from the UI file. (2.75 KB, patch)
2015-10-30 09:02 UTC, Arnaud B.
committed Details | Review
PasswordsDialog: Use GActions. (12.52 KB, patch)
2015-10-30 09:02 UTC, Arnaud B.
committed Details | Review
Create popup menu from a model. (5.00 KB, patch)
2015-10-30 11:37 UTC, Arnaud B.
committed Details | Review
Define keybindings in UI file. (3.89 KB, patch)
2015-10-30 12:03 UTC, Arnaud B.
committed Details | Review
Visual refresh (GtkActionBar, GtkSearchBar). (6.98 KB, patch)
2015-10-30 13:30 UTC, Arnaud B.
committed Details | Review
Kill a (now) unneeded level of GtkBox. (10.07 KB, patch)
2015-10-30 13:30 UTC, Arnaud B.
committed Details | Review

Description Arnaud B. 2015-10-30 08:59:30 UTC
Created attachment 314437 [details] [review]
passwords-dialog.ui:Manually unbloat.

Here are a few patches to unbloat the PasswordsDialog class. They are quite similar to a similar set for the HistoryDialog’s (bug 757228).
Comment 1 Arnaud B. 2015-10-30 09:00:13 UTC
Created attachment 314438 [details] [review]
PasswordsDialog: Use tree_selection.
Comment 2 Arnaud B. 2015-10-30 09:01:09 UTC
Created attachment 314439 [details] [review]
PasswordsDialog: Kill a level of GtkBox.
Comment 3 Arnaud B. 2015-10-30 09:02:04 UTC
Created attachment 314440 [details] [review]
PasswordsDialog: Call response_cb from the UI file.
Comment 4 Arnaud B. 2015-10-30 09:02:38 UTC
Created attachment 314441 [details] [review]
PasswordsDialog: Use GActions.
Comment 5 Arnaud B. 2015-10-30 11:37:01 UTC
Created attachment 314456 [details] [review]
Create popup menu from a model.
Comment 6 Arnaud B. 2015-10-30 12:03:59 UTC
Created attachment 314464 [details] [review]
Define keybindings in UI file.
Comment 7 Arnaud B. 2015-10-30 13:30:29 UTC
Created attachment 314479 [details] [review]
Visual refresh (GtkActionBar, GtkSearchBar).
Comment 8 Arnaud B. 2015-10-30 13:30:58 UTC
Created attachment 314480 [details] [review]
Kill a (now) unneeded level of GtkBox.
Comment 9 Michael Catanzaro 2015-11-01 14:07:21 UTC
Please do take a look at bug #757344 if you have a chance.
Comment 10 Michael Catanzaro 2015-11-01 14:18:43 UTC
(In reply to Michael Catanzaro from comment #9)
> Please do take a look at bug #757344 if you have a chance.

I meant bug #723237
Comment 11 Michael Catanzaro 2015-11-01 14:24:30 UTC
Review of attachment 314437 [details] [review]:

It astounds me that Jon managed to do this in Glade.
Comment 12 Michael Catanzaro 2015-11-01 14:25:17 UTC
Review of attachment 314438 [details] [review]:

If you prefer this way
Comment 13 Michael Catanzaro 2015-11-01 14:26:05 UTC
Review of attachment 314439 [details] [review]:

Unreviewable, but the dialog still works, so it must be fine ;)
Comment 14 Michael Catanzaro 2015-11-01 14:30:26 UTC
Review of attachment 314440 [details] [review]:

::: src/passwords-dialog.c
@@ +389,3 @@
 	gtk_widget_class_bind_template_callback (widget_class, on_copy_username_menuitem_activate);
+
+	gtk_widget_class_bind_template_callback (widget_class, passwords_dialog_response_cb);

I almost asked you to get rid of the blank line and rename this to use an on_ style name, but I guess the response callback is special because it's the response callback.
Comment 15 Michael Catanzaro 2015-11-01 14:34:19 UTC
Review of attachment 314441 [details] [review]:

::: src/passwords-dialog.c
@@ +529,3 @@
+		{ "show-passwords", show_passwords }
+	};
+	GSimpleActionGroup *group;

I would add a blank line between entries and group.
Comment 16 Michael Catanzaro 2015-11-01 14:41:27 UTC
Review of attachment 314456 [details] [review]:

OK
Comment 17 Michael Catanzaro 2015-11-01 14:41:46 UTC
Review of attachment 314464 [details] [review]:

OK
Comment 18 Michael Catanzaro 2015-11-01 14:42:04 UTC
Review of attachment 314479 [details] [review]:

OK
Comment 19 Michael Catanzaro 2015-11-01 14:42:29 UTC
Review of attachment 314480 [details] [review]:

Dialog still works