diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2018-03-16 12:00:30 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2018-03-16 12:03:46 +0100 |
commit | 48db8cad986b0af83edb90c9fa00f58fc45b5900 (patch) | |
tree | 09a2fb352c055964928b33f13589d69325a35e56 /src | |
parent | 1e59b6a99ab9fee4db33f7f77424ca8886c00716 (diff) | |
download | arctica-greeter-48db8cad986b0af83edb90c9fa00f58fc45b5900.tar.gz arctica-greeter-48db8cad986b0af83edb90c9fa00f58fc45b5900.tar.bz2 arctica-greeter-48db8cad986b0af83edb90c9fa00f58fc45b5900.zip |
src/{user-list.vala,user-prompt-box.vala}: Fix segfault in newly introduced debug message.
Diffstat (limited to 'src')
-rw-r--r-- | src/user-list.vala | 2 | ||||
-rw-r--r-- | src/user-prompt-box.vala | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/user-list.vala b/src/user-list.vala index 48957c3..6ce5efe 100644 --- a/src/user-list.vala +++ b/src/user-list.vala @@ -865,7 +865,7 @@ public class UserList : GreeterList e.label = label; e.set_show_message_icon (has_messages); e.set_is_active (is_active); - debug("Adding user to list. User: %s, background: %s, is_active: %b, has_messages: %b, session: %s", e.label, e.background, is_active, has_messages, session); + debug ("Adding user to list. User: %s, background: %s, is_active: %s, has_messages: %s, session: %s", e.label, e.background, is_active.to_string(), has_messages.to_string(), session); /* Remove manual option when have users */ if (have_entries () && !always_show_manual) diff --git a/src/user-prompt-box.vala b/src/user-prompt-box.vala index 4483eec..6254d97 100644 --- a/src/user-prompt-box.vala +++ b/src/user-prompt-box.vala @@ -22,13 +22,13 @@ public class UserPromptBox : PromptBox { /* Background for this user */ - public string background; + public string background = ""; /* Default session for this user */ - public string session; + public string session = ""; /* True if should be marked as active */ - public bool is_active; + public bool is_active = false; public UserPromptBox (string name) { |