gnome-desktop r5175 - in trunk/libgnome-desktop: . libgnomeui



Author: federico
Date: Sat Aug 16 01:44:52 2008
New Revision: 5175
URL: http://svn.gnome.org/viewvc/gnome-desktop?rev=5175&view=rev

Log:
Creation function for GnomeRRLabeler

Signed-off-by: Federico Mena Quintero <federico novell com>


Modified:
   trunk/libgnome-desktop/gnome-rr-labeler.c
   trunk/libgnome-desktop/libgnomeui/gnome-rr-labeler.h

Modified: trunk/libgnome-desktop/gnome-rr-labeler.c
==============================================================================
--- trunk/libgnome-desktop/gnome-rr-labeler.c	(original)
+++ trunk/libgnome-desktop/gnome-rr-labeler.c	Sat Aug 16 01:44:52 2008
@@ -30,6 +30,8 @@
 
 struct _GnomeRRLabeler {
 	GObject parent;
+
+	GnomeRRScreen *screen;
 };
 
 struct _GnomeRRLabelerClass {
@@ -37,3 +39,40 @@
 };
 
 G_DEFINE_TYPE (GnomeRRLabeler, gnome_rr_labeler, G_TYPE_OBJECT);
+
+static void gnome_rr_labeler_finalize (GObject *object);
+
+static void
+gnome_rr_labeler_init (GnomeRRLabeler *labeler)
+{
+	/* nothing */
+}
+
+static void
+gnome_rr_labeler_class_init (GnomeRRLabelerClass *class)
+{
+	GObjectClass *object_class;
+
+	object_class = (GObjectClass *) class;
+
+	object_class->finalize = gnome_rr_labeler_finalize;
+}
+
+static void
+gnome_rr_labeler_finalize (GObject *object)
+{
+	/* FIXME: unref labeler->screen */
+}
+
+GnomeRRLabeler *
+gnome_rr_labeler_new (GnomeRRScreen *screen)
+{
+	GnomeRRLabeler *labeler;
+
+	g_return_val_if_fail (screen != NULL, NULL);
+
+	labeler = g_object_new (GNOME_TYPE_RR_LABELER, NULL);
+	labeler->screen = screen;
+
+	return labeler;
+}

Modified: trunk/libgnome-desktop/libgnomeui/gnome-rr-labeler.h
==============================================================================
--- trunk/libgnome-desktop/libgnomeui/gnome-rr-labeler.h	(original)
+++ trunk/libgnome-desktop/libgnomeui/gnome-rr-labeler.h	Sat Aug 16 01:44:52 2008
@@ -44,4 +44,6 @@
 
 GType gnome_rr_labeler_get_type (void);
 
+GnomeRRLabeler *gnome_rr_labeler_new (GnomeRRScreen *screen);
+
 #endif



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