summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--adw/include/adwaitamm/dialog.hpp4
-rw-r--r--adw/include/adwaitamm/stylemanager.hpp4
-rw-r--r--adw/src/breakpoint.cpp2
-rw-r--r--adw/src/dialog.cpp2
-rw-r--r--adw/src/stylemanager.cpp2
-rw-r--r--adw/src/toast.cpp2
-rw-r--r--adw/src/toastoverlay.cpp2
7 files changed, 11 insertions, 7 deletions
diff --git a/adw/include/adwaitamm/dialog.hpp b/adw/include/adwaitamm/dialog.hpp
index 23a864c..44dde25 100644
--- a/adw/include/adwaitamm/dialog.hpp
+++ b/adw/include/adwaitamm/dialog.hpp
@@ -1,8 +1,8 @@
#ifndef LIBADWAITAMM_DIALOG_HPP
#define LIBADWAITAMM_DIALOG_HPP
-#include "helpers/gobj_mixin.hpp"
#include "adwaitamm/breakpoint.hpp"
+#include "helpers/gobj_mixin.hpp"
#include <glibmm/class.h>
#include <glibmm/object.h>
@@ -10,6 +10,7 @@
#include <glibmm/refptr.h>
#include <glibmm/ustring.h>
+#include <gtkmm/shortcutmanager.h>
#include <gtkmm/widget.h>
#include <glib-object.h>
@@ -22,6 +23,7 @@ namespace Adwaita
struct Dialog_Class;
struct Dialog : Gtk::Widget,
+ Gtk::ShortcutManager,
helpers::gobj_mixin<Dialog, AdwDialog>
{
struct Class : Glib::Class
diff --git a/adw/include/adwaitamm/stylemanager.hpp b/adw/include/adwaitamm/stylemanager.hpp
index 8a365f9..3d370c3 100644
--- a/adw/include/adwaitamm/stylemanager.hpp
+++ b/adw/include/adwaitamm/stylemanager.hpp
@@ -28,8 +28,8 @@ namespace Adwaita
enum struct AccentColor;
enum struct ColorScheme;
- struct StyleManager : Glib::Object,
- helpers::gobj_mixin<StyleManager, AdwStyleManager>
+ struct StyleManager final : Glib::Object,
+ helpers::gobj_mixin<StyleManager, AdwStyleManager>
{
struct Class : Glib::Class
{
diff --git a/adw/src/breakpoint.cpp b/adw/src/breakpoint.cpp
index 3907a15..a1b20f9 100644
--- a/adw/src/breakpoint.cpp
+++ b/adw/src/breakpoint.cpp
@@ -97,7 +97,7 @@ namespace Adwaita
if (!gtype_)
{
class_init_func_ = &class_init_function;
- register_derived_type(adw_breakpoint_get_type());
+ gtype_ = adw_breakpoint_get_type();
Gtk::Buildable::add_interface(get_type());
}
return *this;
diff --git a/adw/src/dialog.cpp b/adw/src/dialog.cpp
index 2634002..e240d7f 100644
--- a/adw/src/dialog.cpp
+++ b/adw/src/dialog.cpp
@@ -13,6 +13,7 @@
#include <gtkmm/init.h>
#include <gtkmm/object.h>
#include <gtkmm/private/widget_p.h>
+#include <gtkmm/shortcutmanager.h>
#include <gtkmm/widget.h>
#include <adwaita.h>
@@ -33,6 +34,7 @@ namespace Adwaita
{
class_init_func_ = &class_init_function;
register_derived_type(adw_dialog_get_type());
+ Gtk::ShortcutManager::add_interface(get_type());
}
return *this;
}
diff --git a/adw/src/stylemanager.cpp b/adw/src/stylemanager.cpp
index 1b7817a..09a966c 100644
--- a/adw/src/stylemanager.cpp
+++ b/adw/src/stylemanager.cpp
@@ -33,7 +33,7 @@ namespace Adwaita
if (!gtype_)
{
class_init_func_ = &StyleManager::Class::class_init_function;
- register_derived_type(adw_style_manager_get_type());
+ gtype_ = adw_style_manager_get_type();
}
return *this;
}
diff --git a/adw/src/toast.cpp b/adw/src/toast.cpp
index 205e69f..d5b372e 100644
--- a/adw/src/toast.cpp
+++ b/adw/src/toast.cpp
@@ -43,7 +43,7 @@ namespace Adwaita
if (!gtype_)
{
class_init_func_ = &class_init_function;
- register_derived_type(adw_toast_get_type());
+ gtype_= adw_toast_get_type();
}
return *this;
}
diff --git a/adw/src/toastoverlay.cpp b/adw/src/toastoverlay.cpp
index af24649..7d1493c 100644
--- a/adw/src/toastoverlay.cpp
+++ b/adw/src/toastoverlay.cpp
@@ -32,7 +32,7 @@ namespace Adwaita
if (!gtype_)
{
class_init_func_ = &class_init_function;
- register_derived_type(adw_toast_overlay_get_type());
+ gtype_ = adw_toast_overlay_get_type();
}
return *this;
}