-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
Get the time format from the new key and make it more efficient #401
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like we'd need to use the same logic to set the format here: calendar/src/EventEdition/InfoPanel.vala Lines 276 to 281 in 0087c18
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There seems to be a slight regression with this branch. If the time-format is changed with the calendar open the format of existing events in the agenda does not change both in master and PR. However, in master if calendar is closed and reopened the format changes, but this did not happen with this PR. See screenshot after restarting Calendar (without logging out).
} | ||
} | ||
|
||
public string TimeFormat () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to change this function name to time_format () in order to resolve the conflict with master
if (clockformat == null) | ||
return Granite.DateTime.get_default_time_format (true); | ||
public bool is_12h { get; private set; default = false; } | ||
private Greeter.AccountsService? greeter_act = null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very minor point: I would call this greeter_acc
or greeter_acnt` - as "act" is not generally used as an abbreviation for "account" (and is a word in its own right).
GLib.DBusProxyFlags.GET_INVALIDATED_PROPERTIES); | ||
is_12h = greeter_act.time_format == "12h" ? true : false; | ||
} catch (Error e) { | ||
critical (e.message); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another minor point: Could add an indication that we are falling back to org.gnome.desktop.interface setting to the error message.
@tintou Converting to draft as some outstanding issues and conflicts and no recent activity. Please feel free to close or reopen for review after fixing as required. |
No description provided.