[gnome-terminal] Use G_DEFINE_BOXED_TYPE here
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-terminal] Use G_DEFINE_BOXED_TYPE here
- Date: Thu, 3 May 2012 19:01:44 +0000 (UTC)
commit 0b8c9cd4eda37ab8a67c7a66461f4361240d0479
Author: Christian Persch <chpe gnome org>
Date: Sat Aug 13 21:33:33 2011 +0200
Use G_DEFINE_BOXED_TYPE here
src/terminal-encoding.c | 16 +++-------------
1 files changed, 3 insertions(+), 13 deletions(-)
---
diff --git a/src/terminal-encoding.c b/src/terminal-encoding.c
index 1494a0b..2b7f19f 100644
--- a/src/terminal-encoding.c
+++ b/src/terminal-encoding.c
@@ -268,19 +268,9 @@ terminal_encoding_is_valid (TerminalEncoding *encoding)
return encoding->valid;
}
-GType
-terminal_encoding_get_type (void)
-{
- static GType type = 0;
-
- if (G_UNLIKELY (type == 0)) {
- type = g_boxed_type_register_static (I_("TerminalEncoding"),
- (GBoxedCopyFunc) terminal_encoding_ref,
- (GBoxedFreeFunc) terminal_encoding_unref);
- }
-
- return type;
-}
+G_DEFINE_BOXED_TYPE (TerminalEncoding, terminal_encoding,
+ terminal_encoding_ref,
+ terminal_encoding_unref);
static void
update_active_encodings_setting (void)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]