Make sure all of the final types in pidgin plugins are defined as such

Tue, 23 Jan 2024 00:10:07 -0600

author
Gary Kramlich <grim@reaperworld.com>
date
Tue, 23 Jan 2024 00:10:07 -0600
changeset 42573
9dc369a7d7da
parent 42572
f053e7fdd25d
child 42574
ef32e25a3b78

Make sure all of the final types in pidgin plugins are defined as such

Testing Done:
Loaded both plugins and verified their dialogs still worked.

Reviewed at https://reviews.imfreedom.org/r/2923/

pidgin/plugins/disco/gtkdisco.c file | annotate | diff | comparison | revisions
pidgin/plugins/disco/xmppdiscoservice.c file | annotate | diff | comparison | revisions
pidgin/plugins/xmppconsole/xmppconsole.c file | annotate | diff | comparison | revisions
--- a/pidgin/plugins/disco/gtkdisco.c	Tue Jan 23 00:07:01 2024 -0600
+++ b/pidgin/plugins/disco/gtkdisco.c	Tue Jan 23 00:10:07 2024 -0600
@@ -418,8 +418,8 @@
 /******************************************************************************
  * GObject implementation
  *****************************************************************************/
-
-G_DEFINE_DYNAMIC_TYPE(PidginDiscoDialog, pidgin_disco_dialog, GTK_TYPE_DIALOG)
+G_DEFINE_DYNAMIC_TYPE_EXTENDED(PidginDiscoDialog, pidgin_disco_dialog,
+                               GTK_TYPE_DIALOG, G_TYPE_FLAG_FINAL, {})
 
 static void
 pidgin_disco_dialog_class_init(PidginDiscoDialogClass *klass)
--- a/pidgin/plugins/disco/xmppdiscoservice.c	Tue Jan 23 00:07:01 2024 -0600
+++ b/pidgin/plugins/disco/xmppdiscoservice.c	Tue Jan 23 00:10:07 2024 -0600
@@ -96,7 +96,8 @@
 /******************************************************************************
  * GObject implementation
  *****************************************************************************/
-G_DEFINE_DYNAMIC_TYPE(XmppDiscoService, xmpp_disco_service, G_TYPE_OBJECT)
+G_DEFINE_DYNAMIC_TYPE_EXTENDED(XmppDiscoService, xmpp_disco_service,
+                               G_TYPE_OBJECT, G_TYPE_FLAG_FINAL, {})
 
 static void
 xmpp_disco_service_get_property(GObject *object, guint prop_id, GValue *value,
--- a/pidgin/plugins/xmppconsole/xmppconsole.c	Tue Jan 23 00:07:01 2024 -0600
+++ b/pidgin/plugins/xmppconsole/xmppconsole.c	Tue Jan 23 00:10:07 2024 -0600
@@ -77,7 +77,8 @@
 	} message;
 };
 
-G_DEFINE_DYNAMIC_TYPE(PidginXmppConsole, pidgin_xmpp_console, GTK_TYPE_WINDOW)
+G_DEFINE_DYNAMIC_TYPE_EXTENDED(PidginXmppConsole, pidgin_xmpp_console,
+                               GTK_TYPE_WINDOW, G_TYPE_FLAG_FINAL, {})
 
 static PidginXmppConsole *console = NULL;
 

mercurial