[anjuta] sourceview: Don't break layout when displaying message area
- From: Johannes Schmid <jhs src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] sourceview: Don't break layout when displaying message area
- Date: Sun, 11 Dec 2011 11:19:14 +0000 (UTC)
commit 579cd7ea26b4290543b9518b4dbe71aa3669cbd0
Author: Johannes Schmid <jhs gnome org>
Date: Sun Dec 11 12:18:49 2011 +0100
sourceview: Don't break layout when displaying message area
Instead make the text in the message area wrap around!
plugins/sourceview/sourceview.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/plugins/sourceview/sourceview.c b/plugins/sourceview/sourceview.c
index e84e85d..bd34320 100644
--- a/plugins/sourceview/sourceview.c
+++ b/plugins/sourceview/sourceview.c
@@ -131,6 +131,9 @@ anjuta_message_area_new (const gchar *text,
GtkWidget *content_area;
GtkWidget *message_label = gtk_label_new ("");
+ gtk_label_set_line_wrap (GTK_LABEL (message_label), TRUE);
+ gtk_label_set_line_wrap_mode (GTK_LABEL (message_label), PANGO_WRAP_WORD);
+
message_area = GTK_INFO_BAR (gtk_info_bar_new ());
gtk_info_bar_set_message_type (message_area, type);
content_area = gtk_info_bar_get_content_area (GTK_INFO_BAR (message_area));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]