[gnome-builder/wip/gtk4-port: 127/736] libide/gui: use AdwBin




commit 1d50787acf5463490822d973716505f760c44a7e
Author: Christian Hergert <chergert redhat com>
Date:   Mon Mar 28 16:52:29 2022 -0700

    libide/gui: use AdwBin
    
    Just a search and replace, but can dive into it deeper as we address them
    individually. Some things like IdeOmniBar will be removed anyway in
    favor of libpanel widgetry.

 src/libide/gui/ide-marked-view.c               | 4 ++--
 src/libide/gui/ide-marked-view.h               | 2 +-
 src/libide/gui/ide-notification-view-private.h | 2 +-
 src/libide/gui/ide-notification-view.c         | 4 ++--
 src/libide/gui/ide-omni-bar.c                  | 4 ++--
 src/libide/gui/ide-omni-bar.h                  | 2 +-
 src/libide/gui/ide-transient-sidebar.c         | 2 +-
 7 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/src/libide/gui/ide-marked-view.c b/src/libide/gui/ide-marked-view.c
index 7bb91f78e..5abbd95f0 100644
--- a/src/libide/gui/ide-marked-view.c
+++ b/src/libide/gui/ide-marked-view.c
@@ -337,10 +337,10 @@ parse_markdown (const gchar *markdown,
 
 struct _IdeMarkedView
 {
-  GtkBin parent_instance;
+  AdwBin parent_instance;
 };
 
-G_DEFINE_FINAL_TYPE (IdeMarkedView, ide_marked_view, GTK_TYPE_BIN)
+G_DEFINE_FINAL_TYPE (IdeMarkedView, ide_marked_view, ADW_TYPE_BIN)
 
 static void
 ide_marked_view_class_init (IdeMarkedViewClass *klass)
diff --git a/src/libide/gui/ide-marked-view.h b/src/libide/gui/ide-marked-view.h
index b424b868a..c52ea7d51 100644
--- a/src/libide/gui/ide-marked-view.h
+++ b/src/libide/gui/ide-marked-view.h
@@ -29,7 +29,7 @@ G_BEGIN_DECLS
 #define IDE_TYPE_MARKED_VIEW (ide_marked_view_get_type())
 
 IDE_AVAILABLE_IN_3_32
-G_DECLARE_FINAL_TYPE (IdeMarkedView, ide_marked_view, IDE, MARKED_VIEW, GtkBin)
+G_DECLARE_FINAL_TYPE (IdeMarkedView, ide_marked_view, IDE, MARKED_VIEW, AdwBin)
 
 IDE_AVAILABLE_IN_3_32
 GtkWidget *ide_marked_view_new (IdeMarkedContent *content);
diff --git a/src/libide/gui/ide-notification-view-private.h b/src/libide/gui/ide-notification-view-private.h
index 017a83fa5..8273ae3e3 100644
--- a/src/libide/gui/ide-notification-view-private.h
+++ b/src/libide/gui/ide-notification-view-private.h
@@ -27,7 +27,7 @@ G_BEGIN_DECLS
 
 #define IDE_TYPE_NOTIFICATION_VIEW (ide_notification_view_get_type())
 
-G_DECLARE_FINAL_TYPE (IdeNotificationView, ide_notification_view, IDE, NOTIFICATION_VIEW, GtkBin)
+G_DECLARE_FINAL_TYPE (IdeNotificationView, ide_notification_view, IDE, NOTIFICATION_VIEW, AdwBin)
 
 GtkWidget       *ide_notification_view_new              (void);
 IdeNotification *ide_notification_view_get_notification (IdeNotificationView *self);
diff --git a/src/libide/gui/ide-notification-view.c b/src/libide/gui/ide-notification-view.c
index e6cfb8415..151beb789 100644
--- a/src/libide/gui/ide-notification-view.c
+++ b/src/libide/gui/ide-notification-view.c
@@ -28,7 +28,7 @@
 
 struct _IdeNotificationView
 {
-  GtkBin           parent_instance;
+  AdwBin           parent_instance;
 
   IdeNotification *notification;
   DzlBindingGroup *bindings;
@@ -39,7 +39,7 @@ struct _IdeNotificationView
   GtkImage        *default_button_image;
 };
 
-G_DEFINE_FINAL_TYPE (IdeNotificationView, ide_notification_view, GTK_TYPE_BIN)
+G_DEFINE_FINAL_TYPE (IdeNotificationView, ide_notification_view, ADW_TYPE_BIN)
 
 enum {
   PROP_0,
diff --git a/src/libide/gui/ide-omni-bar.c b/src/libide/gui/ide-omni-bar.c
index 486701be5..0ec359893 100644
--- a/src/libide/gui/ide-omni-bar.c
+++ b/src/libide/gui/ide-omni-bar.c
@@ -34,7 +34,7 @@
 
 struct _IdeOmniBar
 {
-  GtkBin                parent_instance;
+  AdwBin                parent_instance;
 
   PeasExtensionSet     *addins;
   GtkGesture           *gesture;
@@ -66,7 +66,7 @@ DZL_DEFINE_ACTION_GROUP (IdeOmniBar, ide_omni_bar, {
   { "move-previous", ide_omni_bar_move_previous },
 })
 
-G_DEFINE_FINAL_TYPE_WITH_CODE (IdeOmniBar, ide_omni_bar, GTK_TYPE_BIN,
+G_DEFINE_FINAL_TYPE_WITH_CODE (IdeOmniBar, ide_omni_bar, ADW_TYPE_BIN,
                          G_IMPLEMENT_INTERFACE (G_TYPE_ACTION_GROUP, ide_omni_bar_init_action_group)
                          G_IMPLEMENT_INTERFACE (GTK_TYPE_BUILDABLE, buildable_iface_init))
 
diff --git a/src/libide/gui/ide-omni-bar.h b/src/libide/gui/ide-omni-bar.h
index 95bd0dedd..267564cc0 100644
--- a/src/libide/gui/ide-omni-bar.h
+++ b/src/libide/gui/ide-omni-bar.h
@@ -32,7 +32,7 @@ G_BEGIN_DECLS
 #define IDE_TYPE_OMNI_BAR (ide_omni_bar_get_type())
 
 IDE_AVAILABLE_IN_3_32
-G_DECLARE_FINAL_TYPE (IdeOmniBar, ide_omni_bar, IDE, OMNI_BAR, GtkBin)
+G_DECLARE_FINAL_TYPE (IdeOmniBar, ide_omni_bar, IDE, OMNI_BAR, AdwBin)
 
 IDE_AVAILABLE_IN_3_32
 GtkWidget *ide_omni_bar_new                 (void);
diff --git a/src/libide/gui/ide-transient-sidebar.c b/src/libide/gui/ide-transient-sidebar.c
index 2fa15b032..658d00d43 100644
--- a/src/libide/gui/ide-transient-sidebar.c
+++ b/src/libide/gui/ide-transient-sidebar.c
@@ -256,7 +256,7 @@ ide_transient_sidebar_init (IdeTransientSidebar *self)
                                  self, NULL,
                                  G_CONNECT_AFTER | G_CONNECT_SWAPPED);
 
-  if (NULL != (paned = gtk_bin_get_child (GTK_BIN (self))) &&
+  if (NULL != (paned = adw_bin_get_child (ADW_BIN (self))) &&
       DZL_IS_MULTI_PANED (paned) &&
       NULL != (stack = dzl_multi_paned_get_nth_child (DZL_MULTI_PANED (paned), 0)) &&
       DZL_IS_DOCK_STACK (stack))


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