[monkey-bubble: 129/753] The `GnomeModuleInfo' argument is deep-copied, so you can actually modify



commit d8060644be7b7192030c69c9b64e4f6d6e0059da
Author: Martin Baulig <baulig suse de>
Date:   Thu Apr 12 14:31:44 2001 +0000

    The `GnomeModuleInfo' argument is deep-copied, so you can actually modify
    
    2001-04-12  Martin Baulig  <baulig suse de>
    
    	* gnome-program.h (GnomeModuleHook): The `GnomeModuleInfo' argument
    	is deep-copied, so you can actually modify it.

 libgnome/ChangeLog       |    5 +++++
 libgnome/gnome-init.c    |    4 ++--
 libgnome/gnome-program.h |    2 +-
 libgnome/test-libgnome.c |    4 ++--
 4 files changed, 10 insertions(+), 5 deletions(-)
---
diff --git a/libgnome/ChangeLog b/libgnome/ChangeLog
index 7f44ac1..d1153a0 100644
--- a/libgnome/ChangeLog
+++ b/libgnome/ChangeLog
@@ -1,5 +1,10 @@
 2001-04-12  Martin Baulig  <baulig suse de>
 
+	* gnome-program.h (GnomeModuleHook): The `GnomeModuleInfo' argument
+	is deep-copied, so you can actually modify it.
+
+2001-04-12  Martin Baulig  <baulig suse de>
+
 	* libgnome.h (libgnome_module_info): Added external declaration.
 
 	* gnomelib-init.c: Renamed to libgnome-init.c.
diff --git a/libgnome/gnome-init.c b/libgnome/gnome-init.c
index b2ad29b..cee7460 100644
--- a/libgnome/gnome-init.c
+++ b/libgnome/gnome-init.c
@@ -44,7 +44,7 @@
 
 char *gnome_user_dir = NULL, *gnome_user_private_dir = NULL, *gnome_user_accels_dir = NULL;
 
-static void libgnome_post_args_parse(GnomeProgram *app, const GnomeModuleInfo *mod_info);
+static void libgnome_post_args_parse(GnomeProgram *app, GnomeModuleInfo *mod_info);
 static void libgnome_loadinit(const GnomeModuleInfo *mod_info);
 static void libgnome_option_cb(poptContext ctx, enum poptCallbackReason reason,
 			       const struct poptOption *opt, const char *arg,
@@ -87,7 +87,7 @@ GnomeModuleInfo libgnome_module_info = {
 
 static void
 libgnome_post_args_parse (GnomeProgram *program,
-			  const GnomeModuleInfo *mod_info)
+			  GnomeModuleInfo *mod_info)
 {
     GValue value = { 0, };
     gboolean create_dirs_val;
diff --git a/libgnome/gnome-program.h b/libgnome/gnome-program.h
index d61f56b..f2c0d72 100644
--- a/libgnome/gnome-program.h
+++ b/libgnome/gnome-program.h
@@ -133,7 +133,7 @@ typedef void (*GnomeModuleConstructor) (GType type, guint n_construct_props,
 					GObjectConstructParam *construct_props,
 					const GnomeModuleInfo *mod_info);
 typedef void (*GnomeModuleHook) (GnomeProgram *program,
-				 const GnomeModuleInfo *mod_info);
+				 GnomeModuleInfo *mod_info);
 
 struct _GnomeModuleInfo {
     const char *name, *version, *description;
diff --git a/libgnome/test-libgnome.c b/libgnome/test-libgnome.c
index d3d6597..6648d6a 100644
--- a/libgnome/test-libgnome.c
+++ b/libgnome/test-libgnome.c
@@ -58,13 +58,13 @@ set_property (GObject *object, guint param_id,
 }
 
 static void
-test_pre_args_parse (GnomeProgram *program, const GnomeModuleInfo *mod_info)
+test_pre_args_parse (GnomeProgram *program, GnomeModuleInfo *mod_info)
 {
     g_message (G_STRLOC ": %p", program);
 }
 
 static void
-test_post_args_parse (GnomeProgram *program, const GnomeModuleInfo *mod_info)
+test_post_args_parse (GnomeProgram *program, GnomeModuleInfo *mod_info)
 {
     g_message (G_STRLOC ": %p", program);
 }



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