[gnome-builder/wip/gtk4-port: 286/343] libide/gui: set header for IdeGrid frames
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/gtk4-port: 286/343] libide/gui: set header for IdeGrid frames
- Date: Mon, 4 Apr 2022 20:02:17 +0000 (UTC)
commit c74e1ff65bf6a39a703b3b2e9b81afd7c1250493
Author: Christian Hergert <chergert redhat com>
Date: Fri Apr 1 02:53:30 2022 -0700
libide/gui: set header for IdeGrid frames
And make sure the first row is created automatically.
src/libide/gui/ide-grid.c | 19 ++++++++++++++++++-
1 file changed, 18 insertions(+), 1 deletion(-)
---
diff --git a/src/libide/gui/ide-grid.c b/src/libide/gui/ide-grid.c
index 3a6713a5f..51cb638f5 100644
--- a/src/libide/gui/ide-grid.c
+++ b/src/libide/gui/ide-grid.c
@@ -43,7 +43,17 @@ G_DEFINE_TYPE (IdeGrid, ide_grid, PANEL_TYPE_GRID)
static PanelFrame *
ide_grid_real_create_frame (PanelGrid *grid)
{
- return PANEL_FRAME (ide_frame_new ());
+ PanelFrame *frame;
+ PanelFrameHeader *header;
+
+ g_assert (PANEL_IS_GRID (grid));
+
+ frame = PANEL_FRAME (ide_frame_new ());
+ header = PANEL_FRAME_HEADER (panel_frame_header_bar_new ());
+
+ panel_frame_set_header (frame, header);
+
+ return frame;
}
static void
@@ -57,6 +67,13 @@ ide_grid_class_init (IdeGridClass *klass)
static void
ide_grid_init (IdeGrid *self)
{
+ PanelGridColumn *column;
+ PanelFrame *row;
+
+ column = panel_grid_get_column (PANEL_GRID (self), 0);
+ row = panel_grid_column_get_row (column, 0);
+
+ (void)row;
}
GtkWidget *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]