SF.net SVN: geany:[2789] trunk/src/geanywraplabel.c
eht16 at users.sourceforge.net
eht16 at xxxxx
Fri Jul 18 13:45:24 UTC 2008
Revision: 2789
http://geany.svn.sourceforge.net/geany/?rev=2789&view=rev
Author: eht16
Date: 2008-07-18 13:45:23 +0000 (Fri, 18 Jul 2008)
Log Message:
-----------
Remove unnecessary finalize(() function.
Modified Paths:
--------------
trunk/src/geanywraplabel.c
Modified: trunk/src/geanywraplabel.c
===================================================================
--- trunk/src/geanywraplabel.c 2008-07-18 13:40:48 UTC (rev 2788)
+++ trunk/src/geanywraplabel.c 2008-07-18 13:45:23 UTC (rev 2789)
@@ -58,7 +58,6 @@
static void geany_wrap_label_class_init (GeanyWrapLabelClass *klass);
static void geany_wrap_label_init (GeanyWrapLabel *self);
-static void geany_wrap_label_finalize (GObject *object);
static void geany_wrap_label_size_request (GtkWidget *widget, GtkRequisition *req);
static void geany_wrap_label_size_allocate (GtkWidget *widget, GtkAllocation *alloc);
static void geany_wrap_label_set_wrap_width (GtkWidget *widget, gsize width);
@@ -92,11 +91,8 @@
static void geany_wrap_label_class_init(GeanyWrapLabelClass *klass)
{
- GObjectClass *g_object_class = G_OBJECT_CLASS(klass);
GtkWidgetClass *widget_class = GTK_WIDGET_CLASS(klass);
- g_object_class->finalize = geany_wrap_label_finalize;
-
parent_class = g_type_class_peek_parent(klass);
widget_class->size_request = geany_wrap_label_size_request;
widget_class->size_allocate = geany_wrap_label_size_allocate;
@@ -113,20 +109,6 @@
}
-static void geany_wrap_label_finalize(GObject *object)
-{
- GeanyWrapLabel *self;
-
- g_return_if_fail(object != NULL);
- g_return_if_fail(IS_GEANY_WRAP_LABEL(object));
-
- self = GEANY_WRAP_LABEL(object);
-
- if (G_OBJECT_CLASS(parent_class)->finalize)
- (* G_OBJECT_CLASS(parent_class)->finalize)(object);
-}
-
-
/* Sets the point at which the text should wrap. */
static void geany_wrap_label_set_wrap_width(GtkWidget *widget, gsize width)
{
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Commits
mailing list