[ekiga] Call Window: Prevent ugly window resizing effects.
- From: Damien Sandras <dsandras src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga] Call Window: Prevent ugly window resizing effects.
- Date: Sat, 27 Oct 2012 11:28:33 +0000 (UTC)
commit 5ea339ae894c7c2c70c0de9629e3938d01c38d02
Author: Damien Sandras <dsandras beip be>
Date: Sat Oct 27 13:06:13 2012 +0200
Call Window: Prevent ugly window resizing effects.
This occured when the countdown was displayed due to the fact
that it uses one more line.
lib/engine/gui/gtk-frontend/call-window.cpp | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/lib/engine/gui/gtk-frontend/call-window.cpp b/lib/engine/gui/gtk-frontend/call-window.cpp
index 65d9150..4081736 100644
--- a/lib/engine/gui/gtk-frontend/call-window.cpp
+++ b/lib/engine/gui/gtk-frontend/call-window.cpp
@@ -1598,6 +1598,7 @@ ekiga_call_window_set_status (EkigaCallWindow *cw,
const char *msg,
...)
{
+ GtkTextIter iter;
GtkTextBuffer *text_buffer = NULL;
char buffer [1025];
@@ -1615,6 +1616,11 @@ ekiga_call_window_set_status (EkigaCallWindow *cw,
vsnprintf (buffer, 1024, msg, args);
gtk_text_buffer_set_text (text_buffer, buffer, -1);
+ if (!g_strrstr (buffer, "\n")) {
+ gtk_text_buffer_get_end_iter (text_buffer, &iter);
+ gtk_text_buffer_insert (text_buffer, &iter, "\n", -1);
+ }
+
va_end (args);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]