[geany/geany] b96daf: infobars: Do not use GeanyWrapLabel for now, it has problems on gtk3.

Thomas Martitz git-noreply at xxxxx
Sat May 24 14:32:58 UTC 2014


Branch:      refs/heads/master
Author:      Thomas Martitz <kugel at rockbox.org>
Committer:   Thomas Martitz <kugel at rockbox.org>
Date:        Sat, 24 May 2014 14:32:58 UTC
Commit:      b96daf6fc0f17780642e73e0cce7591af930b29e
             https://github.com/geany/geany/commit/b96daf6fc0f17780642e73e0cce7591af930b29e

Log Message:
-----------
infobars: Do not use GeanyWrapLabel for now, it has problems on gtk3.


Modified Paths:
--------------
    src/document.c

Modified: src/document.c
7 lines changed, 4 insertions(+), 3 deletions(-)
===================================================================
@@ -38,7 +38,6 @@
 #include "filetypesprivate.h"
 #include "geany.h" /* FIXME: why is this needed for DOC_FILENAME()? should come from documentprivate.h/document.h */
 #include "geanyobject.h"
-#include "geanywraplabel.h" /* for document_show_message() using GtkInfoBar */
 #include "highlighting.h"
 #include "main.h"
 #include "msgwindow.h"
@@ -3093,7 +3092,8 @@ static GtkWidget* document_show_message(GeanyDocument *doc, GtkMessageType msgty
 
 	content_area = gtk_info_bar_get_content_area(GTK_INFO_BAR(info_widget));
 
-	label = geany_wrap_label_new(NULL);
+	label = gtk_label_new(NULL);
+	gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.5);
 
 	gtk_label_set_markup(GTK_LABEL(label), markup);
 	g_free(markup);
@@ -3129,7 +3129,8 @@ static GtkWidget* document_show_message(GeanyDocument *doc, GtkMessageType msgty
 	if (extra_text)
 	{
 		vbox = gtk_vbox_new(FALSE, 6);
-		extra_label = geany_wrap_label_new(extra_text);
+		extra_label = gtk_label_new(extra_text);
+		gtk_misc_set_alignment(GTK_MISC(extra_label), 0.0, 0.5);
 		gtk_box_pack_start(GTK_BOX(vbox), label, TRUE, TRUE, 0);
 		gtk_box_pack_start(GTK_BOX(vbox), extra_label, TRUE, TRUE, 0);
 		gtk_container_add(GTK_CONTAINER(hbox), vbox);



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list