[gnome-builder/wip/gtk4-port] libide/gui: port IdePane to libpanel



commit 16324619e8d14122daabb0e20770c0b59922fc15
Author: Christian Hergert <chergert redhat com>
Date:   Mon Mar 28 18:52:54 2022 -0700

    libide/gui: port IdePane to libpanel

 src/libide/gui/ide-pane.c |  4 +---
 src/libide/gui/ide-pane.h | 16 +++++++---------
 2 files changed, 8 insertions(+), 12 deletions(-)
---
diff --git a/src/libide/gui/ide-pane.c b/src/libide/gui/ide-pane.c
index bb1c7ec0a..5b3cf4987 100644
--- a/src/libide/gui/ide-pane.c
+++ b/src/libide/gui/ide-pane.c
@@ -24,7 +24,7 @@
 
 #include "ide-pane.h"
 
-G_DEFINE_TYPE (IdePane, ide_pane, DZL_TYPE_DOCK_WIDGET)
+G_DEFINE_TYPE (IdePane, ide_pane, PANEL_TYPE_WIDGET)
 
 static void
 ide_pane_class_init (IdePaneClass *klass)
@@ -44,8 +44,6 @@ ide_pane_init (IdePane *self)
  * These widgets are meant to be added to #IdePanel widgets.
  *
  * Returns: (transfer full): a new #IdePane
- *
- * Since: 3.32
  */
 GtkWidget *
 ide_pane_new (void)
diff --git a/src/libide/gui/ide-pane.h b/src/libide/gui/ide-pane.h
index 0eed763d5..46aaaecbd 100644
--- a/src/libide/gui/ide-pane.h
+++ b/src/libide/gui/ide-pane.h
@@ -1,6 +1,6 @@
 /* ide-pane.h
  *
- * Copyright 2018-2019 Christian Hergert <chergert redhat com>
+ * Copyright 2018-2022 Christian Hergert <chergert redhat com>
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -24,25 +24,23 @@
 # error "Only <libide-gui.h> can be included directly."
 #endif
 
-#include <dazzle.h>
+#include <libpanel.h>
+
 #include <libide-core.h>
 
 G_BEGIN_DECLS
 
 #define IDE_TYPE_PANE (ide_pane_get_type())
 
-IDE_AVAILABLE_IN_3_32
-G_DECLARE_DERIVABLE_TYPE (IdePane, ide_pane, IDE, PANE, DzlDockWidget)
+IDE_AVAILABLE_IN_ALL
+G_DECLARE_DERIVABLE_TYPE (IdePane, ide_pane, IDE, PANE, PanelWidget)
 
 struct _IdePaneClass
 {
-  DzlDockWidgetClass parent_class;
-
-  /*< private >*/
-  gpointer _reserved[16];
+  PanelWidgetClass parent_class;
 };
 
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
 GtkWidget *ide_pane_new (void);
 
 G_END_DECLS


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]