[gnome-builder] libide/gui: fix positioning of warning infobar
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] libide/gui: fix positioning of warning infobar
- Date: Fri, 29 Jul 2022 23:54:34 +0000 (UTC)
commit 8abad42f3ff93e0f7a08fcb852dac62f4e312e29
Author: Christian Hergert <chergert redhat com>
Date: Fri Jul 29 16:47:55 2022 -0700
libide/gui: fix positioning of warning infobar
src/libide/gui/ide-page.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/libide/gui/ide-page.c b/src/libide/gui/ide-page.c
index 2c0bebc22..877cf4010 100644
--- a/src/libide/gui/ide-page.c
+++ b/src/libide/gui/ide-page.c
@@ -485,6 +485,7 @@ ide_page_report_error (IdePage *self,
const char *format,
...)
{
+ IdePagePrivate *priv = ide_page_get_instance_private (self);
g_autofree char *message = NULL;
GtkInfoBar *infobar;
GtkLabel *label;
@@ -518,7 +519,8 @@ ide_page_report_error (IdePage *self,
NULL);
gtk_info_bar_add_child (infobar, GTK_WIDGET (label));
- gtk_widget_insert_after (GTK_WIDGET (infobar), GTK_WIDGET (self), NULL);
+
+ gtk_box_prepend (priv->content_box, GTK_WIDGET (infobar));
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]