shell: Show correct version in About dialog for development branches
Our AdwAboutWindow is initialized with values loaded from from the appdata file. For development versions we often don't add appdata info, causing AdwAboutWindow to fallback to the latest version available in the appdata file. This should not occur in a stable branch, but this occurs in development branches. Let's always call adw_about_window_set_version() so that we guarantee that the right verion number is shown in the UI. Fixes #2779
This commit is contained in:
parent
30f10becda
commit
0c04d14a36
1 changed files with 1 additions and 0 deletions
|
@ -111,6 +111,7 @@ about_activated (GSimpleAction *action,
|
|||
const char *developer_name;
|
||||
|
||||
about_window = adw_about_window_new_from_appdata ("/org/gnome/Settings/appdata", VERSION);
|
||||
adw_about_window_set_version (ADW_ABOUT_WINDOW (about_window), VERSION);
|
||||
developer_name = adw_about_window_get_developer_name (ADW_ABOUT_WINDOW (about_window));
|
||||
/* Translators should localize the following string which will be displayed in the About dialog giving credit to the translator(s). */
|
||||
adw_about_window_set_translator_credits (ADW_ABOUT_WINDOW (about_window), _("translator-credits"));
|
||||
|
|
Loading…
Add table
Reference in a new issue