[gnome-control-center/gbsneto/gtk4: 19/53] panel: Port to GTK4




commit 0818bf469ce6852bc5d4726cd74ec550b7f23648
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Tue Oct 19 21:00:48 2021 -0300

    panel: Port to GTK4
    
    Inherit AdwBin.

 shell/cc-panel.c | 2 +-
 shell/cc-panel.h | 7 +++----
 2 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/shell/cc-panel.c b/shell/cc-panel.c
index df9a7f385..93983cfc0 100644
--- a/shell/cc-panel.c
+++ b/shell/cc-panel.c
@@ -46,7 +46,7 @@ typedef struct
   GCancellable *cancellable;
 } CcPanelPrivate;
 
-G_DEFINE_ABSTRACT_TYPE_WITH_PRIVATE (CcPanel, cc_panel, GTK_TYPE_BIN)
+G_DEFINE_ABSTRACT_TYPE_WITH_PRIVATE (CcPanel, cc_panel, ADW_TYPE_BIN)
 
 enum
 {
diff --git a/shell/cc-panel.h b/shell/cc-panel.h
index 35cb9c4eb..04b0d3533 100644
--- a/shell/cc-panel.h
+++ b/shell/cc-panel.h
@@ -22,8 +22,7 @@
 
 #pragma once
 
-#include <glib-object.h>
-#include <gtk/gtk.h>
+#include <adwaita.h>
 
 /**
  * Utility macro used to register panels
@@ -47,7 +46,7 @@ typedef void (*CcPanelStaticInitFunc) (void);
 
 
 #define CC_TYPE_PANEL (cc_panel_get_type())
-G_DECLARE_DERIVABLE_TYPE (CcPanel, cc_panel, CC, PANEL, GtkBin)
+G_DECLARE_DERIVABLE_TYPE (CcPanel, cc_panel, CC, PANEL, AdwBin)
 
 /**
  * CcPanelVisibility:
@@ -76,7 +75,7 @@ G_BEGIN_DECLS
 struct _CcPanelClass
 {
   /*< private >*/
-  GtkBinClass   parent_class;
+  AdwBinClass   parent_class;
 
   const gchar* (*get_help_uri)       (CcPanel *panel);
 


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