[gtk/wip/otte/inscription: 8/8] inspector: Use inscriptions for the rendernodes list
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/otte/inscription: 8/8] inspector: Use inscriptions for the rendernodes list
- Date: Sat, 11 Jun 2022 00:28:45 +0000 (UTC)
commit 303bc3bb1bd8a78da82cfed864e851fdede3429b
Author: Benjamin Otte <otte redhat com>
Date: Fri Jun 10 04:02:30 2022 +0200
inspector: Use inscriptions for the rendernodes list
gtk/inspector/recorder.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/gtk/inspector/recorder.c b/gtk/inspector/recorder.c
index 43409cb81f..05078eb71b 100644
--- a/gtk/inspector/recorder.c
+++ b/gtk/inspector/recorder.c
@@ -24,7 +24,7 @@
#include <gtk/gtkdragsource.h>
#include <gtk/gtkeventcontroller.h>
#include <gtk/gtkfilechooserdialog.h>
-#include <gtk/gtksignallistitemfactory.h>
+#include <gtk/gtkinscription.h>
#include <gtk/gtklabel.h>
#include <gtk/gtklistbox.h>
#include <gtk/gtklistitem.h>
@@ -33,6 +33,7 @@
#include <gtk/gtkmessagedialog.h>
#include <gtk/gtkpicture.h>
#include <gtk/gtkpopover.h>
+#include <gtk/gtksignallistitemfactory.h>
#include <gtk/gtksingleselection.h>
#include <gtk/gtktogglebutton.h>
#include <gtk/gtktreeexpander.h>
@@ -401,7 +402,8 @@ setup_widget_for_render_node (GtkSignalListItemFactory *factory,
gtk_box_append (GTK_BOX (box), child);
/* name */
- child = gtk_label_new (NULL);
+ child = gtk_inscription_new (NULL);
+ gtk_widget_set_hexpand (child, TRUE);
gtk_box_append (GTK_BOX (box), child);
}
@@ -431,7 +433,7 @@ bind_widget_for_render_node (GtkSignalListItemFactory *factory,
/* name */
name = node_name (node);
child = gtk_widget_get_last_child (box);
- gtk_label_set_label (GTK_LABEL (child), name);
+ gtk_inscription_set_text (GTK_INSCRIPTION (child), name);
g_free (name);
g_object_unref (paintable);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]