[nautilus-actions] Refactoring: update src/core/na-iabout.{c,h}



commit 31b5d71f398400bd7dcaff10741de83f5598d0f0
Author: Pierre Wieser <pwieser trychlos org>
Date:   Mon Feb 15 20:14:55 2010 +0100

    Refactoring: update src/core/na-iabout.{c,h}

 ChangeLog            |    1 +
 src/core/Makefile.am |    4 ++--
 src/core/na-iabout.c |    8 +++-----
 src/core/na-iabout.h |    8 ++++----
 4 files changed, 10 insertions(+), 11 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 6dffb65..2c86bf3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 2009-02-15 Pierre Wieser <pwieser trychlos org>
 
+	Update src/core/na-iabout.{c,h}
 	Update src/utils.
 
 2009-02-15 Deji Akingunola <dakingun gmail com>
diff --git a/src/core/Makefile.am b/src/core/Makefile.am
index 2b709c5..2c9b8a8 100644
--- a/src/core/Makefile.am
+++ b/src/core/Makefile.am
@@ -45,6 +45,8 @@ libna_core_la_SOURCES = \
 	na-dbus-tracker.h									\
 	na-gconf-monitor.c									\
 	na-gconf-utils.c									\
+	na-iabout.c											\
+	na-iabout.h											\
 	na-iduplicable.c									\
 	na-idata-factory.c									\
 	na-iexporter.c										\
@@ -65,8 +67,6 @@ libna_core_la_SOURCES = \
 	na-object-menu.c									\
 	na-object-menu-enum.c								\
 	\
-	na-iabout.c											\
-	na-iabout.h											\
 	na-io-provider.h									\
 	na-ipivot-consumer.c								\
 	na-ipivot-consumer.h								\
diff --git a/src/core/na-iabout.c b/src/core/na-iabout.c
index fbd2135..d0e98a2 100644
--- a/src/core/na-iabout.c
+++ b/src/core/na-iabout.c
@@ -111,12 +111,12 @@ interface_base_finalize( NAIAboutInterface *klass )
 {
 	static const gchar *thisfn = "na_iabout_interface_base_finalize";
 
-	if( !st_finalized ){
-
-		st_finalized = TRUE;
+	if( st_initialized && !st_finalized ){
 
 		g_debug( "%s: klass=%p", thisfn, ( void * ) klass );
 
+		st_finalized = TRUE;
+
 		g_free( klass->private );
 	}
 }
@@ -141,8 +141,6 @@ v_get_toplevel( NAIAbout *instance )
 	return( NULL );
 }
 
-/* TODO: make the website url and the mail addresses clickables
- */
 /**
  * na_iabout_display:
  * @instance: the #NAIAbout implementor.
diff --git a/src/core/na-iabout.h b/src/core/na-iabout.h
index 2c70ae6..c5b7d16 100644
--- a/src/core/na-iabout.h
+++ b/src/core/na-iabout.h
@@ -28,8 +28,8 @@
  *   ... and many others (see AUTHORS)
  */
 
-#ifndef __NA_RUNTIME_IABOUT_H__
-#define __NA_RUNTIME_IABOUT_H__
+#ifndef __CORE_NA_IABOUT_H__
+#define __CORE_NA_IABOUT_H__
 
 /**
  * SECTION: na_iabout
@@ -50,7 +50,7 @@ G_BEGIN_DECLS
 #define NA_IS_IABOUT( object )				( G_TYPE_CHECK_INSTANCE_TYPE( object, NA_IABOUT_TYPE ))
 #define NA_IABOUT_GET_INTERFACE( instance )	( G_TYPE_INSTANCE_GET_INTERFACE(( instance ), NA_IABOUT_TYPE, NAIAboutInterface ))
 
-typedef struct NAIAbout NAIAbout;
+typedef struct NAIAbout                 NAIAbout;
 
 typedef struct NAIAboutInterfacePrivate NAIAboutInterfacePrivate;
 
@@ -87,4 +87,4 @@ gchar *na_iabout_get_copyright( gboolean console );
 
 G_END_DECLS
 
-#endif /* __NA_RUNTIME_IABOUT_H__ */
+#endif /* __CORE_NA_IABOUT_H__ */



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