[gnome-terminal/gsettings] Use G_DEFINE_BOXED_TYPE here
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-terminal/gsettings] Use G_DEFINE_BOXED_TYPE here
- Date: Sun, 14 Aug 2011 13:51:36 +0000 (UTC)
commit 8e4cc3386fa68f4b0a9c1b466d3d38d6b087c7b1
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]