[gtk+/gtk-style-context: 237/260] GtkSymbolicColor: Use G_DEFINE_BOXED_TYPE
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-style-context: 237/260] GtkSymbolicColor: Use G_DEFINE_BOXED_TYPE
- Date: Wed, 20 Oct 2010 10:41:21 +0000 (UTC)
commit 4f62521e4b13d441ff0ef762118d02f5809bceb3
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Oct 5 10:54:49 2010 +0200
GtkSymbolicColor: Use G_DEFINE_BOXED_TYPE
gtk/gtksymboliccolor.c | 15 ++-------------
1 files changed, 2 insertions(+), 13 deletions(-)
---
diff --git a/gtk/gtksymboliccolor.c b/gtk/gtksymboliccolor.c
index 5710218..310e211 100644
--- a/gtk/gtksymboliccolor.c
+++ b/gtk/gtksymboliccolor.c
@@ -22,6 +22,8 @@
#include "gtkstyleset.h"
#include "gtkintl.h"
+G_DEFINE_BOXED_TYPE (GtkSymbolicColor, gtk_symbolic_color,
+ gtk_symbolic_color_ref, gtk_symbolic_color_unref)
G_DEFINE_BOXED_TYPE (GtkGradient, gtk_gradient,
gtk_gradient_ref, gtk_gradient_unref)
@@ -251,19 +253,6 @@ gtk_symbolic_color_resolve (GtkSymbolicColor *color,
return FALSE;
}
-GType
-gtk_symbolic_color_get_type (void)
-{
- static GType type = 0;
-
- if (G_UNLIKELY (!type))
- type = g_boxed_type_register_static (I_("GtkSymbolicColor"),
- (GBoxedCopyFunc) gtk_symbolic_color_ref,
- (GBoxedFreeFunc) gtk_symbolic_color_unref);
-
- return type;
-}
-
/* GtkGradient */
GtkGradient *
gtk_gradient_new_linear (gdouble x0,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]