Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix:gtk:fixed missing imperial units in the GTK ui. #359

Merged
merged 3 commits into from
Nov 1, 2017

Conversation

charlescurley
Copy link
Contributor

modified:   navit/gui/gtk/gui_gtk_statusbar.c

The status bar under GTK was only showing metric units. So I coded up a fix.

I tested as follows:

  • Initialized the local variable imperial to true. Had imperial set to one in my navit.xml. Got imperial measures, as expected.

  • Changed the local variable initialization to false. Recompiled and ran. Got imperial, as expected. This indicates that the function collected it as expected.

  • Changed the attribute in navit.xml to 0. Ran again. Got metric units as expected.

	modified:   navit/gui/gtk/gui_gtk_statusbar.c
@charlescurley
Copy link
Contributor Author

The fix is on branch fix_gtk_imperial_use

constants in navigation.h instead.

	modified:   navit/gui/gtk/gui_gtk_statusbar.c
commit.

	modified:   navit/gui/gtk/gui_gtk_statusbar.c
@pgrandin
Copy link
Contributor

pgrandin commented Nov 1, 2017

Thanks @charlescurley for fixing that!

@pgrandin pgrandin merged commit b1cbc46 into trunk Nov 1, 2017
@pgrandin pgrandin deleted the fix_gtk_imperial_use branch November 1, 2017 04:09
jkoan added a commit to jkoan/navit that referenced this pull request Nov 1, 2017
# Das ist die erste Commit-Beschreibung:

Fix:android: Fixed forced colors in layout to have android auto adaption

# Das ist Commit-Beschreibung #2:

Always build 'release' package for android

# Das ist Commit-Beschreibung #3:

Fix:android:Ensures that we capture all build errors

# Das ist Commit-Beschreibung #4:

Revert "Fix:android:Ensures that we capture all build errors"

This reverts commit 13bc8d0.

# Das ist Commit-Beschreibung #5:

Revert "Always build 'release' package for android"

This reverts commit 31c9535.

# Das ist Commit-Beschreibung #6:

Refactor:route:Add documentation

Signed-off-by: mvglasow <michael -at- vonglasow.com>

# Das ist Commit-Beschreibung #7:

Refactor:route:Add documentation

Signed-off-by: mvglasow <michael -at- vonglasow.com>

# Das ist Commit-Beschreibung #8:

Refactor:route:Add documentation

Signed-off-by: mvglasow <michael -at- vonglasow.com>

# Das ist Commit-Beschreibung #9:

update:doc:Build doxygen doc and push the result to a gh-pages branch (navit-gps#354)

Result visible at http://navit-gps.github.io/navit/
# Das ist Commit-Beschreibung #10:

Update:i18n:Updated Čeština translation from launchpad (navit-gps#351)


# Das ist Commit-Beschreibung #11:

Update:i18n:Updated Spanish translation from launchpad (navit-gps#352)


# Das ist Commit-Beschreibung #12:

Update:i18n:Updated French (fr) translation from launchpad (navit-gps#353)


# Das ist Commit-Beschreibung #13:

fix:android:Add workaround for android platform tools (navit-gps#357)


# Das ist Commit-Beschreibung #14:

add:icon:diving


# Das ist Commit-Beschreibung #15:

fix:gtk:fixed missing imperial units in the GTK ui. (navit-gps#359)
jkoan pushed a commit to jkoan/navit that referenced this pull request Nov 1, 2017
jkoan pushed a commit to jkoan/navit that referenced this pull request Nov 6, 2017
jkoan pushed a commit to jkoan/navit that referenced this pull request Nov 23, 2017
hoehnp pushed a commit to hoehnp/navit that referenced this pull request Jan 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants