[gtranslator: 1/7] make window final




commit 889d039f8d4d433fe1f954d8f7d6b1fbb6855c82
Author: Maximiliano Sandoval R <msandova gnome org>
Date:   Fri Mar 25 15:29:55 2022 +0100

    make window final

 src/gtr-window.c |  2 +-
 src/gtr-window.h | 12 +-----------
 2 files changed, 2 insertions(+), 12 deletions(-)
---
diff --git a/src/gtr-window.c b/src/gtr-window.c
index 3ecbdc7a..e3aea6f5 100644
--- a/src/gtr-window.c
+++ b/src/gtr-window.c
@@ -93,7 +93,7 @@ typedef struct
   guint dispose_has_run : 1;
 } GtrWindowPrivate;
 
-G_DEFINE_TYPE_WITH_PRIVATE(GtrWindow, gtr_window, GTK_TYPE_APPLICATION_WINDOW)
+G_DEFINE_FINAL_TYPE_WITH_PRIVATE(GtrWindow, gtr_window, GTK_TYPE_APPLICATION_WINDOW)
 
 enum
 {
diff --git a/src/gtr-window.h b/src/gtr-window.h
index 444f18f5..36efb4de 100644
--- a/src/gtr-window.h
+++ b/src/gtr-window.h
@@ -35,14 +35,8 @@
 G_BEGIN_DECLS
 
 #define GTR_TYPE_WINDOW                (gtr_window_get_type ())
-#define GTR_WINDOW(o)          (G_TYPE_CHECK_INSTANCE_CAST ((o), GTR_TYPE_WINDOW, GtrWindow))
-#define GTR_WINDOW_CLASS(k)    (G_TYPE_CHECK_CLASS_CAST((k), GTR_TYPE_WINDOW, GtrWindowClass))
-#define GTR_IS_WINDOW(o)       (G_TYPE_CHECK_INSTANCE_TYPE ((o), GTR_TYPE_WINDOW))
-#define GTR_IS_WINDOW_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GTR_TYPE_WINDOW))
-#define GTR_WINDOW_GET_CLASS(o)        (G_TYPE_INSTANCE_GET_CLASS ((o), GTR_TYPE_WINDOW, GtrWindowClass))
 
-typedef struct _GtrWindow        GtrWindow;
-typedef struct _GtrWindowClass   GtrWindowClass;
+G_DECLARE_FINAL_TYPE (GtrWindow, gtr_window, GTR, WINDOW, GtkApplicationWindow)
 
 struct _GtrWindow
 {
@@ -54,10 +48,6 @@ struct _GtrWindowClass
   GtkApplicationWindowClass parent_class;
 };
 
-GType gtr_window_get_type (void) G_GNUC_CONST;
-
-GType gtr_window_register_type (GTypeModule * module);
-
 GtrTab *gtr_window_create_tab (GtrWindow * window, GtrPo * po);
 
 GtrTab *gtr_window_get_active_tab (GtrWindow * window);


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