[gnome-builder/wip/gtk4-port] libide/gui: fix preferences type check



commit 6bd26b809c24fa1e345e38cfaa4706c04dca37b9
Author: Christian Hergert <chergert redhat com>
Date:   Tue Mar 29 01:43:28 2022 -0700

    libide/gui: fix preferences type check

 src/libide/gui/ide-preferences-addin.c | 4 ++--
 src/libide/gui/ide-preferences-addin.h | 2 ++
 2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/libide/gui/ide-preferences-addin.c b/src/libide/gui/ide-preferences-addin.c
index 58b2407cb..45d5cd3ac 100644
--- a/src/libide/gui/ide-preferences-addin.c
+++ b/src/libide/gui/ide-preferences-addin.c
@@ -45,7 +45,7 @@ ide_preferences_addin_load (IdePreferencesAddin  *self,
                             IdePreferencesWindow *preferences)
 {
   g_return_if_fail (IDE_IS_PREFERENCES_ADDIN (self));
-  g_return_if_fail (DZL_IS_PREFERENCES (preferences));
+  g_return_if_fail (IDE_IS_PREFERENCES_WINDOW (preferences));
 
   if (IDE_PREFERENCES_ADDIN_GET_IFACE (self)->load)
     IDE_PREFERENCES_ADDIN_GET_IFACE (self)->load (self, preferences);
@@ -65,7 +65,7 @@ ide_preferences_addin_unload (IdePreferencesAddin  *self,
                               IdePreferencesWindow *preferences)
 {
   g_return_if_fail (IDE_IS_PREFERENCES_ADDIN (self));
-  g_return_if_fail (DZL_IS_PREFERENCES (preferences));
+  g_return_if_fail (IDE_IS_PREFERENCES_WINDOW (preferences));
 
   if (IDE_PREFERENCES_ADDIN_GET_IFACE (self)->unload)
     IDE_PREFERENCES_ADDIN_GET_IFACE (self)->unload (self, preferences);
diff --git a/src/libide/gui/ide-preferences-addin.h b/src/libide/gui/ide-preferences-addin.h
index 6ff747220..60912864f 100644
--- a/src/libide/gui/ide-preferences-addin.h
+++ b/src/libide/gui/ide-preferences-addin.h
@@ -26,6 +26,8 @@
 
 #include <libide-core.h>
 
+#include "ide-preferences-window.h"
+
 G_BEGIN_DECLS
 
 #define IDE_TYPE_PREFERENCES_ADDIN (ide_preferences_addin_get_type())


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