antiright-devel
[Top][All Lists]
Advanced

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

[Antiright-devel] antiright/gtkshell updated.c


From: Jeffrey Bedard
Subject: [Antiright-devel] antiright/gtkshell updated.c
Date: Sat, 21 Jul 2007 20:19:34 +0000

CVSROOT:        /sources/antiright
Module name:    antiright
Changes by:     Jeffrey Bedard <jefbed> 07/07/21 20:19:34

Modified files:
        gtkshell       : updated.c 

Log message:
        Added comment for function pointer call.  Do not allocate a duplicate
        command string, as command strings originate from argument list.  

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/antiright/gtkshell/updated.c?cvsroot=antiright&r1=1.19&r2=1.20

Patches:
Index: updated.c
===================================================================
RCS file: /sources/antiright/antiright/gtkshell/updated.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -b -r1.19 -r1.20
--- updated.c   11 Jun 2007 21:32:45 -0000      1.19
+++ updated.c   21 Jul 2007 20:19:34 -0000      1.20
@@ -32,6 +32,7 @@
 static void
 gsh_GSHUpdatedWidget_update(struct GSHUpdatedWidget * item)
 {
+       /* Call function pointer specific to the updater type.  */
        item->function(item->command, item->widget);
 }
 
@@ -53,7 +54,7 @@
        /* Assign widget-specific update information, specifically
         * the widget command, a pointer to the widget, and the widget's
         * updater function.  */
-       updater->command=g_strdup(command);
+       updater->command=(gchar *)command;
        updater->widget=widget;
        updater->function=function;
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]