summaryrefslogtreecommitdiff
path: root/adw/src/private/preferencesdialog_p.cpp
blob: 14e1aa72a8bcc9211f9c13069f96050162eb7ed1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/**
 * @author Felix Morgner (felix.morgner@gmail.com)
 * @copyright Copyright (c) 2025
 * SPDX-License-Identifier: LGPL-2.1-or-later
 */

#include "adwaitamm/private/preferencesdialog_p.hpp"

#include "adwaitamm/preferencesdialog.hpp"

#include <glibmm/class.h>
#include <glibmm/objectbase.h>

#include <gtkmm/object.h>

#include <adwaita.h>

namespace Adwaita
{
  auto PreferencesDialog_Class::init() -> Glib::Class const &
  {
    if (!gtype_)
    {
      class_init_func_ = &class_init_function;
      register_derived_type(adw_preferences_dialog_get_type());
    }
    return *this;
  }

  auto PreferencesDialog_Class::class_init_function(void * gclass, void * data) -> void
  {
    auto const klass = static_cast<BaseClassType *>(gclass);
    CppClassParent::class_init_function(klass, data);
  }

  auto PreferencesDialog_Class::wrap_new(GObject * object) -> Glib::ObjectBase *
  {
    return Gtk::manage(new PreferencesDialog(ADW_PREFERENCES_DIALOG(object)));
  }
}  // namespace Adwaita