aboutsummaryrefslogtreecommitdiff
path: root/src/WindowNotification.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/WindowNotification.cpp')
-rw-r--r--src/WindowNotification.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/WindowNotification.cpp b/src/WindowNotification.cpp
index 9e17108..84365e9 100644
--- a/src/WindowNotification.cpp
+++ b/src/WindowNotification.cpp
@@ -29,7 +29,7 @@ namespace dchat
label.set_text(text);
set_visible(true);
revealer.set_reveal_child(true);
- int showTime = (int)std::max(1.0, (double)text.size() * 0.1) * 1000;
+ unsigned int showTime = (int)std::max(1.0, (double)text.size() * 0.1) * 1000;
hideTimer = Glib::signal_timeout().connect([this]
{
@@ -43,4 +43,4 @@ namespace dchat
return false;
}, showTime + revealer.get_transition_duration());
}
-} \ No newline at end of file
+}