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 740138 - Fix SSH key generation
Fix SSH key generation
Status: RESOLVED FIXED
Product: seahorse
Classification: Applications
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: Seahorse Maintainer
Seahorse Maintainer
: 740137 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2014-11-14 19:39 UTC by Matthias Clasen
Modified: 2014-11-15 18:06 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Don't hide GtkBuilder errors (1.45 KB, patch)
2014-11-14 19:39 UTC, Matthias Clasen
reviewed Details | Review
ssh generation: Fix invalid ui file (1.10 KB, patch)
2014-11-14 19:39 UTC, Matthias Clasen
committed Details | Review
Don't hide GtkBuilder errors (1.47 KB, patch)
2014-11-14 19:45 UTC, Matthias Clasen
committed Details | Review

Description Matthias Clasen 2014-11-14 19:39:26 UTC
The ui file for ssh key generation was invalid.
Comment 1 Matthias Clasen 2014-11-14 19:39:34 UTC
Created attachment 290728 [details] [review]
Don't hide GtkBuilder errors

This makes it unnecessarily hard to track down invalid
ui files.
Comment 2 Matthias Clasen 2014-11-14 19:39:38 UTC
Created attachment 290729 [details] [review]
ssh generation: Fix invalid ui file

GtkGrid does not have :n-rows or :n-columns properties.
Comment 3 Stef Walter 2014-11-14 19:42:46 UTC
Review of attachment 290728 [details] [review]:

Looks good to commit once this is resolved.

::: libseahorse/seahorse-widget.c
@@ +275,3 @@
+        if (error)
+          {
+            g_warning ("ERROR! %s\n", error->message);

Could you list the path name for easier debugging? Or does error already contain it?
Comment 4 Stef Walter 2014-11-14 19:43:13 UTC
Review of attachment 290729 [details] [review]:

Looks good to me. Thanks!
Comment 5 Matthias Clasen 2014-11-14 19:45:59 UTC
Created attachment 290730 [details] [review]
Don't hide GtkBuilder errors

This makes it unnecessarily hard to track down invalid
ui files.
Comment 6 Stef Walter 2014-11-14 19:47:04 UTC
Review of attachment 290730 [details] [review]:

::: libseahorse/seahorse-widget.c
@@ +275,3 @@
+        if (error)
+          {
+            g_warning ("Error parsing %s: %s\n", path, error->message);

The newline is unnecessary. Suggest removing it before you push.
Comment 7 Matthias Clasen 2014-11-14 19:48:34 UTC
Attachment 290729 [details] pushed as 78c4a96 - ssh generation: Fix invalid ui file
Attachment 290730 [details] pushed as 5352602 - Don't hide GtkBuilder errors
Comment 8 Volker Sobek (weld) 2014-11-15 01:01:24 UTC
*** Bug 740137 has been marked as a duplicate of this bug. ***
Comment 9 Volker Sobek (weld) 2014-11-15 01:10:05 UTC
This is still broken, as there is one more place in this file using these properties. At least now it shows the new error message ...

(seahorse:11765): seahorse-WARNING **: Error parsing /home/gnomedev/jhbuild/install/share/seahorse/ui//seahorse-ssh-generate.xml: Invalid property: GtkGrid.n_rows on line 282


(seahorse:11765): seahorse-WARNING **: could not find widget algorithm-choice for seahorse-ssh-generate.xml

(seahorse:11765): GLib-GObject-WARNING **: invalid (NULL) pointer instance

(seahorse:11765): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(seahorse:11765): seahorse-WARNING **: could not find widget algorithm-choice for seahorse-ssh-generate.xml

(seahorse:11765): seahorse-CRITICAL **: seahorse_ssh_generate_show: assertion 'widget != NULL' failed


By the way, n_columns and n_rows are used all over the place:

git grep n_columns | grep \.xml
gkr/seahorse-gkr-add-item.xml:                <property name="n_columns">2</property>
gkr/seahorse-gkr-item-properties.xml:                        <property name="n_columns">2</property>
gkr/seahorse-gkr-keyring.xml:                        <property name="n_columns">2</property>
libseahorse/seahorse-add-keyserver.xml:            <property name="n_columns">2</property>
libseahorse/seahorse-prefs.xml:                <property name="n_columns">2</property>
pgp/seahorse-add-subkey.xml:            <property name="n_columns">3</property>
pgp/seahorse-add-uid.xml:            <property name="n_columns">2</property>
pgp/seahorse-pgp-generate.xml:                    <property name="n_columns">2</property>
pgp/seahorse-pgp-generate.xml:                            <property name="n_columns">2</property>
pgp/seahorse-pgp-private-key-properties.xml:                            <property name="n_columns">2</property>
pgp/seahorse-pgp-private-key-properties.xml:                                    <property name="n_columns">2</property>
pgp/seahorse-pgp-private-key-properties.xml:                                    <property name="n_columns">2</property>
pgp/seahorse-pgp-private-key-properties.xml:                                    <property name="n_columns">2</property>
pgp/seahorse-pgp-public-key-properties.xml:                            <property name="n_columns">2</property>
pgp/seahorse-pgp-public-key-properties.xml:                                    <property name="n_columns">2</property>
pgp/seahorse-pgp-public-key-properties.xml:                                    <property name="n_columns">2</property>
pgp/seahorse-revoke.xml:            <property name="n_columns">2</property>
src/seahorse-change-passphrase.xml:            <property name="n_columns">2</property>
src/seahorse-key-manager.xml:                            <property name="n_columns">2</property>
ssh/seahorse-ssh-key-properties.xml:                        <property name="n_columns">2</property>
ssh/seahorse-ssh-key-properties.xml:                            <property name="n_columns">2</property>
ssh/seahorse-ssh-upload.xml:                    <property name="n_columns">2</property>
Comment 10 Matthias Clasen 2014-11-15 16:55:46 UTC
GtkTable has n-columns and n-rows properties, GtkGrid doesn't.
Comment 11 Volker Sobek (weld) 2014-11-15 17:36:53 UTC
(In reply to comment #10)
> GtkTable has n-columns and n-rows properties, GtkGrid doesn't.
Indeed, I'm relieved the problem isn't that big. I grep-ed all *.xml files in seahorse now and can confirm that after your follow up commit [0], the only objects still using n_rows and n_columns properties are GtkTables.

[0] https://git.gnome.org/browse/seahorse/commit/?id=6650aadbcd7d175786c8a1b25b35f46467141cd8