[gnome-builder] gstyle: Use G_DEFINE_FINAL_TYPE for final types
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] gstyle: Use G_DEFINE_FINAL_TYPE for final types
- Date: Thu, 5 Aug 2021 16:11:12 +0000 (UTC)
commit ebb64efdbac3a885b9b30dacba7b1b51326fa99e
Author: Tom A. Wagner <tom a wagner protonmail com>
Date: Sun Aug 1 15:26:00 2021 +0200
gstyle: Use G_DEFINE_FINAL_TYPE for final types
src/gstyle/gstyle-color-panel.c | 2 +-
src/gstyle/gstyle-color-scale.c | 2 +-
src/gstyle/gstyle-color-widget.c | 2 +-
src/gstyle/gstyle-color.c | 2 +-
src/gstyle/gstyle-css-provider.c | 2 +-
src/gstyle/gstyle-palette-widget.c | 2 +-
src/gstyle/gstyle-palette.c | 2 +-
src/gstyle/gstyle-rename-popover.c | 2 +-
src/gstyle/gstyle-revealer.c | 2 +-
src/gstyle/gstyle-slidein.c | 2 +-
10 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/src/gstyle/gstyle-color-panel.c b/src/gstyle/gstyle-color-panel.c
index 3b2c75369..15742a7be 100644
--- a/src/gstyle/gstyle-color-panel.c
+++ b/src/gstyle/gstyle-color-panel.c
@@ -37,7 +37,7 @@
#define PREFS_BOX_MARGIN (10)
-G_DEFINE_TYPE (GstyleColorPanel, gstyle_color_panel, GTK_TYPE_BOX)
+G_DEFINE_FINAL_TYPE (GstyleColorPanel, gstyle_color_panel, GTK_TYPE_BOX)
static const gchar *comp_names [N_GSTYLE_COLOR_COMPONENT] = {
"hsv_h",
diff --git a/src/gstyle/gstyle-color-scale.c b/src/gstyle/gstyle-color-scale.c
index 786d25864..54eaddcf7 100644
--- a/src/gstyle/gstyle-color-scale.c
+++ b/src/gstyle/gstyle-color-scale.c
@@ -59,7 +59,7 @@ struct _GstyleColorScale
gint data_stride;
};
-G_DEFINE_TYPE (GstyleColorScale, gstyle_color_scale, GTK_TYPE_SCALE)
+G_DEFINE_FINAL_TYPE (GstyleColorScale, gstyle_color_scale, GTK_TYPE_SCALE)
enum {
PROP_0,
diff --git a/src/gstyle/gstyle-color-widget.c b/src/gstyle/gstyle-color-widget.c
index 61fb01df4..014835ba3 100644
--- a/src/gstyle/gstyle-color-widget.c
+++ b/src/gstyle/gstyle-color-widget.c
@@ -65,7 +65,7 @@ struct _GstyleColorWidget
guint is_fallback_name_visible : 1;
};
-G_DEFINE_TYPE (GstyleColorWidget, gstyle_color_widget, GTK_TYPE_BIN)
+G_DEFINE_FINAL_TYPE (GstyleColorWidget, gstyle_color_widget, GTK_TYPE_BIN)
#define GSTYLE_COLOR_WIDGET_DROP_BORDER_PERCENT 0.20
#define GSTYLE_COLOR_WIDGET_DRAG_ICON_OPACITY 0.8
diff --git a/src/gstyle/gstyle-color.c b/src/gstyle/gstyle-color.c
index bd945f7fc..5b48d5172 100644
--- a/src/gstyle/gstyle-color.c
+++ b/src/gstyle/gstyle-color.c
@@ -71,7 +71,7 @@ typedef enum
RANGE_PERCENT_OR_255MAX
} ComponentRange;
-G_DEFINE_TYPE (GstyleColor, gstyle_color, G_TYPE_OBJECT)
+G_DEFINE_FINAL_TYPE (GstyleColor, gstyle_color, G_TYPE_OBJECT)
enum {
PROP_0,
diff --git a/src/gstyle/gstyle-css-provider.c b/src/gstyle/gstyle-css-provider.c
index 1780695c7..fcc2bae07 100644
--- a/src/gstyle/gstyle-css-provider.c
+++ b/src/gstyle/gstyle-css-provider.c
@@ -27,7 +27,7 @@ struct _GstyleCssProvider
GtkCssProvider parent_instance;
};
-G_DEFINE_TYPE (GstyleCssProvider, gstyle_css_provider, GTK_TYPE_CSS_PROVIDER)
+G_DEFINE_FINAL_TYPE (GstyleCssProvider, gstyle_css_provider, GTK_TYPE_CSS_PROVIDER)
enum {
PROP_0,
diff --git a/src/gstyle/gstyle-palette-widget.c b/src/gstyle/gstyle-palette-widget.c
index 17ec5be05..0f0054af5 100644
--- a/src/gstyle/gstyle-palette-widget.c
+++ b/src/gstyle/gstyle-palette-widget.c
@@ -71,7 +71,7 @@ struct _GstylePaletteWidget
guint is_dnd_at_end : 1;
};
-G_DEFINE_TYPE (GstylePaletteWidget, gstyle_palette_widget, GTK_TYPE_BIN)
+G_DEFINE_FINAL_TYPE (GstylePaletteWidget, gstyle_palette_widget, GTK_TYPE_BIN)
#define GSTYLE_DND_SPEED_THRESHOLD 50
#define DND_INDEX_START (G_MININT)
diff --git a/src/gstyle/gstyle-palette.c b/src/gstyle/gstyle-palette.c
index a40b2a51d..b2dd5d90a 100644
--- a/src/gstyle/gstyle-palette.c
+++ b/src/gstyle/gstyle-palette.c
@@ -52,7 +52,7 @@ static guint generated_count = 0;
G_DEFINE_QUARK (gstyle_palette_error, gstyle_palette_error)
-G_DEFINE_TYPE_WITH_CODE (GstylePalette, gstyle_palette, G_TYPE_OBJECT,
+G_DEFINE_FINAL_TYPE_WITH_CODE (GstylePalette, gstyle_palette, G_TYPE_OBJECT,
G_IMPLEMENT_INTERFACE (G_TYPE_LIST_MODEL, gstyle_palette_list_model_iface_init));
enum {
diff --git a/src/gstyle/gstyle-rename-popover.c b/src/gstyle/gstyle-rename-popover.c
index a86e62366..2e4dc8e8a 100644
--- a/src/gstyle/gstyle-rename-popover.c
+++ b/src/gstyle/gstyle-rename-popover.c
@@ -31,7 +31,7 @@ struct _GstyleRenamePopover
GtkLabel *message;
};
-G_DEFINE_TYPE (GstyleRenamePopover, gstyle_rename_popover, GTK_TYPE_POPOVER)
+G_DEFINE_FINAL_TYPE (GstyleRenamePopover, gstyle_rename_popover, GTK_TYPE_POPOVER)
enum {
PROP_0,
diff --git a/src/gstyle/gstyle-revealer.c b/src/gstyle/gstyle-revealer.c
index 44dbf4209..5b7bd76f8 100644
--- a/src/gstyle/gstyle-revealer.c
+++ b/src/gstyle/gstyle-revealer.c
@@ -54,7 +54,7 @@ struct _GstyleRevealer
/* TODO: use spped instead of duration */
-G_DEFINE_TYPE (GstyleRevealer, gstyle_revealer, GTK_TYPE_BIN)
+G_DEFINE_FINAL_TYPE (GstyleRevealer, gstyle_revealer, GTK_TYPE_BIN)
enum {
PROP_0,
diff --git a/src/gstyle/gstyle-slidein.c b/src/gstyle/gstyle-slidein.c
index 8e0dac75a..35f69de66 100644
--- a/src/gstyle/gstyle-slidein.c
+++ b/src/gstyle/gstyle-slidein.c
@@ -65,7 +65,7 @@ struct _GstyleSlidein
static void gstyle_slidein_init_buildable_iface (GtkBuildableIface *iface);
-G_DEFINE_TYPE_EXTENDED (GstyleSlidein, gstyle_slidein, GTK_TYPE_EVENT_BOX, 0,
+G_DEFINE_TYPE_EXTENDED (GstyleSlidein, gstyle_slidein, GTK_TYPE_EVENT_BOX, G_TYPE_FLAG_FINAL,
G_IMPLEMENT_INTERFACE (GTK_TYPE_BUILDABLE, gstyle_slidein_init_buildable_iface))
enum {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]