[gnome-builder] libide/tweaks: add missing constructors



commit d3946a7ace55ad10a65254de00268f7a739c74a0
Author: Christian Hergert <chergert redhat com>
Date:   Wed Aug 17 18:02:14 2022 -0700

    libide/tweaks: add missing constructors

 src/libide/tweaks/ide-tweaks-section.c | 6 ++++++
 src/libide/tweaks/ide-tweaks-widget.c  | 6 ++++++
 src/libide/tweaks/ide-tweaks-widget.h  | 3 +++
 3 files changed, 15 insertions(+)
---
diff --git a/src/libide/tweaks/ide-tweaks-section.c b/src/libide/tweaks/ide-tweaks-section.c
index 5c62d3769..521397aec 100644
--- a/src/libide/tweaks/ide-tweaks-section.c
+++ b/src/libide/tweaks/ide-tweaks-section.c
@@ -179,3 +179,9 @@ ide_tweaks_section_set_show_header (IdeTweaksSection *self,
       g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_SHOW_HEADER]);
     }
 }
+
+IdeTweaksSection *
+ide_tweaks_section_new (void)
+{
+  return g_object_new (IDE_TYPE_TWEAKS_SECTION, NULL);
+}
diff --git a/src/libide/tweaks/ide-tweaks-widget.c b/src/libide/tweaks/ide-tweaks-widget.c
index 5687cea43..c9f2c6d87 100644
--- a/src/libide/tweaks/ide-tweaks-widget.c
+++ b/src/libide/tweaks/ide-tweaks-widget.c
@@ -164,3 +164,9 @@ _ide_tweaks_widget_create_for_item (IdeTweaksWidget *self,
 
   return ret;
 }
+
+IdeTweaksWidget *
+ide_tweaks_widget_new (void)
+{
+  return g_object_new (IDE_TYPE_TWEAKS_WIDGET, NULL);
+}
diff --git a/src/libide/tweaks/ide-tweaks-widget.h b/src/libide/tweaks/ide-tweaks-widget.h
index 89e9b2e6e..102d0f671 100644
--- a/src/libide/tweaks/ide-tweaks-widget.h
+++ b/src/libide/tweaks/ide-tweaks-widget.h
@@ -43,4 +43,7 @@ struct _IdeTweaksWidgetClass
                                  IdeTweaksItem   *item);
 };
 
+IDE_AVAILABLE_IN_ALL
+IdeTweaksWidget *ide_tweaks_widget_new (void);
+
 G_END_DECLS


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