[nautilus-actions] BaseDialog: Do some code and comments cleanup
- From: Pierre Wieser <pwieser src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus-actions] BaseDialog: Do some code and comments cleanup
- Date: Wed, 26 Jan 2011 22:34:49 +0000 (UTC)
commit 11092fe46df080ee871c9dc9313a3716909bff91
Author: Pierre Wieser <pwieser trychlos org>
Date: Wed Jan 26 23:25:52 2011 +0100
BaseDialog: Do some code and comments cleanup
ChangeLog | 3 +++
src/nact/base-dialog.c | 22 ++++++++++++++--------
src/nact/base-dialog.h | 9 ++++++---
3 files changed, 23 insertions(+), 11 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index c6d1af5..e513d17 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2011-01-26 Pierre Wieser <pwieser trychlos org>
+ * src/nact/base-dialog.c:
+ * src/nact/base-dialog.h: Do some code and comments cleanup.
+
* src/nact/base-builder.c (base_builder_get_toplevel_by_name):
Add a debug message.
diff --git a/src/nact/base-dialog.c b/src/nact/base-dialog.c
index d31c90c..9bd4e47 100644
--- a/src/nact/base-dialog.c
+++ b/src/nact/base-dialog.c
@@ -48,11 +48,11 @@ struct _BaseDialogPrivate {
static BaseWindowClass *st_parent_class = NULL;
-static GType register_type( void );
-static void class_init( BaseDialogClass *klass );
-static void instance_init( GTypeInstance *instance, gpointer klass );
-static void instance_dispose( GObject *application );
-static void instance_finalize( GObject *application );
+static GType register_type( void );
+static void class_init( BaseDialogClass *klass );
+static void instance_init( GTypeInstance *instance, gpointer klass );
+static void instance_dispose( GObject *application );
+static void instance_finalize( GObject *application );
GType
base_dialog_get_type( void )
@@ -114,9 +114,11 @@ instance_init( GTypeInstance *instance, gpointer klass )
static const gchar *thisfn = "base_dialog_instance_init";
BaseDialog *self;
+ g_return_if_fail( BASE_IS_DIALOG( instance ));
+
g_debug( "%s: instance=%p (%s), klass=%p",
thisfn, ( void * ) instance, G_OBJECT_TYPE_NAME( instance ), ( void * ) klass );
- g_return_if_fail( BASE_IS_DIALOG( instance ));
+
self = BASE_DIALOG( instance );
self->private = g_new0( BaseDialogPrivate, 1 );
@@ -130,12 +132,14 @@ instance_dispose( GObject *window )
static const gchar *thisfn = "base_dialog_instance_dispose";
BaseDialog *self;
- g_debug( "%s: window=%p (%s)", thisfn, ( void * ) window, G_OBJECT_TYPE_NAME( window ));
g_return_if_fail( BASE_IS_DIALOG( window ));
+
self = BASE_DIALOG( window );
if( !self->private->dispose_has_run ){
+ g_debug( "%s: window=%p (%s)", thisfn, ( void * ) window, G_OBJECT_TYPE_NAME( window ));
+
self->private->dispose_has_run = TRUE;
/* chain up to the parent class */
@@ -151,8 +155,10 @@ instance_finalize( GObject *window )
static const gchar *thisfn = "base_dialog_instance_finalize";
BaseDialog *self;
- g_debug( "%s: window=%p", thisfn, ( void * ) window );
g_return_if_fail( BASE_IS_DIALOG( window ));
+
+ g_debug( "%s: window=%p (%s)", thisfn, ( void * ) window, G_OBJECT_TYPE_NAME( window ));
+
self = BASE_DIALOG( window );
g_free( self->private );
diff --git a/src/nact/base-dialog.h b/src/nact/base-dialog.h
index 15c5372..189ef1f 100644
--- a/src/nact/base-dialog.h
+++ b/src/nact/base-dialog.h
@@ -32,12 +32,15 @@
#define __BASE_DIALOG_H__
/**
- * SECTION: base_dialog
- * @short_description: #BaseDialog class definition.
- * @include: nact/base-dialog.h
+ * SECTION: base-dialog
+ * @title: BaseDialog
+ * @short_description: The BaseDialog dialog base class definition
+ * @include: base-dialog.h
*
* This class is derived from BaseWindow class, and serves as a base
* class for all Nautilus-Actions dialogs.
+ *
+ * As of version 3.1.0, this base class does nothing.
*/
#include "base-window.h"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]