gnome-control-center r8662 - trunk/capplets/common



Author: jensg
Date: Sun Apr 20 21:00:36 2008
New Revision: 8662
URL: http://svn.gnome.org/viewvc/gnome-control-center?rev=8662&view=rev

Log:
2008-04-20  Jens Granseuer  <jensgr gmx net>

	* file-transfer-dialog.c: (file_transfer_dialog_finalize),
	(file_transfer_dialog_class_init): drop redundant GType stuff


Modified:
   trunk/capplets/common/ChangeLog
   trunk/capplets/common/file-transfer-dialog.c

Modified: trunk/capplets/common/file-transfer-dialog.c
==============================================================================
--- trunk/capplets/common/file-transfer-dialog.c	(original)
+++ trunk/capplets/common/file-transfer-dialog.c	Sun Apr 20 21:00:36 2008
@@ -85,8 +85,6 @@
 	GtkDialog *overwrite_dialog;
 } FileTransferData;
 
-static GObjectClass *parent_class;
-
 G_DEFINE_TYPE (FileTransferDialog, file_transfer_dialog, GTK_TYPE_DIALOG)
 
 static void
@@ -122,8 +120,7 @@
 		dlg->priv->cancellable = NULL;
 	}
 
-	if (parent_class->finalize)
-		parent_class->finalize (object);
+	G_OBJECT_CLASS (file_transfer_dialog_parent_class)->finalize (object);
 }
 
 static void
@@ -287,9 +284,6 @@
 			      G_TYPE_NONE, 0);
 
         g_type_class_add_private (klass, sizeof (FileTransferDialogPrivate));
-
-	parent_class =
-		G_OBJECT_CLASS (g_type_class_ref (GTK_TYPE_DIALOG));
 }
 
 static void



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