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 783149 - About dialog gives gnome-shell version but not gnome-tweak-tool version
About dialog gives gnome-shell version but not gnome-tweak-tool version
Status: RESOLVED FIXED
Product: gnome-tweak-tool
Classification: Applications
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: GNOME Tweak Tool maintainer(s)
GNOME Tweak Tool maintainer(s)
: 784303 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2017-05-27 13:32 UTC by Jeremy Bicha
Modified: 2017-06-28 19:05 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
about: Mention Tweak Tool version (996 bytes, patch)
2017-05-28 19:17 UTC, Jeremy Bicha
committed Details | Review
about: Don't show (user mode) next to GNOME Shell version (1.42 KB, patch)
2017-05-28 19:18 UTC, Jeremy Bicha
none Details | Review
about: Mention GTK+ version (949 bytes, patch)
2017-05-28 19:18 UTC, Jeremy Bicha
none Details | Review
about: Use correct homepage link (930 bytes, patch)
2017-05-28 19:18 UTC, Jeremy Bicha
committed Details | Review
configure.ac: Use correct bug report link (703 bytes, patch)
2017-05-28 19:18 UTC, Jeremy Bicha
committed Details | Review
about: Mention GTK+ version (934 bytes, patch)
2017-05-28 20:06 UTC, Jeremy Bicha
committed Details | Review
about: Don't show (user mode) next to GNOME Shell version (1.42 KB, patch)
2017-05-28 21:25 UTC, Jeremy Bicha
committed Details | Review

Description Jeremy Bicha 2017-05-27 13:32:33 UTC
The About Dialog for Tweak Tool shows the gnome-shell version number but it should display the gnome-tweak-tool version number.
Comment 1 Jeremy Bicha 2017-05-28 19:17:53 UTC
Created attachment 352731 [details] [review]
about: Mention Tweak Tool version
Comment 2 Jeremy Bicha 2017-05-28 19:18:10 UTC
Created attachment 352732 [details] [review]
about: Don't show (user mode) next to GNOME Shell version

Because it is the default mode and not useful information.
Still show other modes like (classic mode).

And adjust strings to help translators.
Comment 3 Jeremy Bicha 2017-05-28 19:18:27 UTC
Created attachment 352733 [details] [review]
about: Mention GTK+ version

This could be useful info for theming.
Also GNOME versions and GTK+ versions are no longer aligned.
Comment 4 Jeremy Bicha 2017-05-28 19:18:43 UTC
Created attachment 352734 [details] [review]
about: Use correct homepage link
Comment 5 Jeremy Bicha 2017-05-28 19:18:52 UTC
Created attachment 352735 [details] [review]
configure.ac: Use correct bug report link
Comment 6 Jeremy Bicha 2017-05-28 20:06:53 UTC
Created attachment 352736 [details] [review]
about: Mention GTK+ version

This could be useful info for theming.
Also GNOME versions and GTK+ versions are no longer aligned.
Comment 7 Piotr Drąg 2017-05-28 20:15:07 UTC
(In reply to Jeremy Bicha from comment #2)
> Created attachment 352732 [details] [review] [review]
> about: Don't show (user mode) next to GNOME Shell version
> 
> Because it is the default mode and not useful information.
> Still show other modes like (classic mode).
> 
> And adjust strings to help translators.

I might be interpreting it wrong, but it looks like the translator can’t change the order of “%s mode”, which many languages require. For example, in Polish I need “tryb %s”, while “%s tryb” is very, very wrong.
Comment 8 Jeremy Bicha 2017-05-28 21:25:57 UTC
Created attachment 352740 [details] [review]
about: Don't show (user mode) next to GNOME Shell version

Piotr, thanks for the feedback. I think this should work better.

I left the parentheses inside the translatable string. Is that a good idea?
Comment 9 Piotr Drąg 2017-05-28 21:37:23 UTC
Yes, it should be fine now. In general, splitting strings is rarely a good idea:

https://wiki.gnome.org/TranslationProject/DevGuidelines/Never%20split%20sentences
Comment 10 Rui Matos 2017-05-29 14:00:09 UTC
Review of attachment 352731 [details] [review]:

::: gtweak/app.py
@@ +94,3 @@
     def about_cb(self, action, parameter):
         aboutdialog = Gtk.AboutDialog()
+        aboutdialog.set_program_name(aboutdialog.get_program_name() + " %s" % VERSION)

there's a gtk_about_dialog_set_version() api for this purpose, please use that
Comment 11 Rui Matos 2017-05-29 14:01:05 UTC
Review of attachment 352734 [details] [review]:

++
Comment 12 Rui Matos 2017-05-29 14:02:15 UTC
Review of attachment 352735 [details] [review]:

sure
Comment 13 Rui Matos 2017-05-29 14:03:44 UTC
Review of attachment 352736 [details] [review]:

looks fine but please mind the comment below before pushing

::: gtweak/app.py
@@ +105,3 @@
             about_comment = _("GNOME Shell is not running.")
 
+        about_comment += "\n " + _("GTK+") + " %d.%d.%d" % (Gtk.get_major_version(), Gtk.get_minor_version(), Gtk.get_micro_version())

drop the space after \n since it's not needed and this way the string doesn't look completely centered
Comment 14 Rui Matos 2017-05-29 14:09:14 UTC
Review of attachment 352740 [details] [review]:

looks fine otherwise, thanks for the patches

::: gtweak/app.py
@@ +104,2 @@
         else:
+            about_comment = _("GNOME Shell is not running.")

the period at the end looks odd, I think we shouldn't have it here
Comment 15 Jeremy Bicha 2017-05-29 14:26:33 UTC
(In reply to Rui Matos from comment #10)
> Review of attachment 352731 [details] [review] [review]:
> 
> ::: gtweak/app.py
> @@ +94,3 @@
>      def about_cb(self, action, parameter):
>          aboutdialog = Gtk.AboutDialog()
> +        aboutdialog.set_program_name(aboutdialog.get_program_name() + " %s"
> % VERSION)
> 
> there's a gtk_about_dialog_set_version() api for this purpose, please use
> that

When I did that, the version number showed up on its own line which I thought looked bad.
Comment 16 Jeremy Bicha 2017-05-29 14:34:42 UTC
Attachment 352736 [details] pushed as 3a54942 - about: Mention GTK+ version
Comment 17 Rui Matos 2017-05-29 14:43:02 UTC
Review of attachment 352731 [details] [review]:

ok, so let's go with this
Comment 18 Jeremy Bicha 2017-05-29 14:54:55 UTC
Attachment 352731 [details] pushed as 5543a2b - about: Mention Tweak Tool version
Comment 19 Piotr Drąg 2017-06-28 19:05:02 UTC
*** Bug 784303 has been marked as a duplicate of this bug. ***