head 1.2; access; symbols pkgsrc-2013Q2:1.2.0.12 pkgsrc-2013Q2-base:1.2 pkgsrc-2012Q4:1.2.0.10 pkgsrc-2012Q4-base:1.2 pkgsrc-2011Q4:1.2.0.8 pkgsrc-2011Q4-base:1.2 pkgsrc-2011Q2:1.2.0.6 pkgsrc-2011Q2-base:1.2 pkgsrc-2009Q4:1.2.0.4 pkgsrc-2009Q4-base:1.2 pkgsrc-2008Q4:1.2.0.2 pkgsrc-2008Q4-base:1.2 pkgsrc-2008Q3:1.1.0.36 pkgsrc-2008Q3-base:1.1 cube-native-xorg:1.1.0.34 cube-native-xorg-base:1.1 pkgsrc-2008Q2:1.1.0.32 pkgsrc-2008Q2-base:1.1 cwrapper:1.1.0.30 pkgsrc-2008Q1:1.1.0.28 pkgsrc-2008Q1-base:1.1 pkgsrc-2007Q4:1.1.0.26 pkgsrc-2007Q4-base:1.1 pkgsrc-2007Q3:1.1.0.24 pkgsrc-2007Q3-base:1.1 pkgsrc-2007Q2:1.1.0.22 pkgsrc-2007Q2-base:1.1 pkgsrc-2007Q1:1.1.0.20 pkgsrc-2007Q1-base:1.1 pkgsrc-2006Q4:1.1.0.18 pkgsrc-2006Q4-base:1.1 pkgsrc-2006Q3:1.1.0.16 pkgsrc-2006Q3-base:1.1 pkgsrc-2006Q2:1.1.0.14 pkgsrc-2006Q2-base:1.1 pkgsrc-2006Q1:1.1.0.12 pkgsrc-2006Q1-base:1.1 pkgsrc-2005Q4:1.1.0.10 pkgsrc-2005Q4-base:1.1 pkgsrc-2005Q3:1.1.0.8 pkgsrc-2005Q3-base:1.1 pkgsrc-2005Q2:1.1.0.6 pkgsrc-2005Q2-base:1.1 pkgsrc-2005Q1:1.1.0.4 pkgsrc-2005Q1-base:1.1 pkgsrc-2004Q4:1.1.0.2 pkgsrc-2004Q4-base:1.1; locks; strict; comment @# @; 1.2 date 2008.10.28.23.38.34; author wiz; state dead; branches; next 1.1; 1.1 date 2004.11.24.22.35.25; author kristerw; state Exp; branches; next ; desc @@ 1.2 log @Update to 2.3.0: New in the 2.3.0 Release: ------------------------- The main changes in this release are: * a new implementation of the projects tree using the GtkTreeView component which fixes a lot of the bugs regarding the projects tree manipulation and prepares the way for many customizations in future releases. * an initial implementation of a tray icon that displays timer status and allows the user to toggle the timer by clicking on it. * a rewrite of the idle detection using the XScreenSaver extension and of the timer system to make it more system power conservation friendly. * port of the report system to use guile version 1.8. * many changes in the configure script, including porperly checking for guile and gconf and version of available DBUS. * removal of some deprecated APIs usage. In addition, many bugs have been fixed, including: * broken behavior of drag-and-drop (#1856268) * compiles but crashes on startup in fedora core 5 (#1802501) * activity journal truncates seconds (#1706365) * green bar flickers when value changes (#1171204) * dragging project to make sub-project will not scroll (#831808) New in the 2.2.3 Release: ------------------------- This release brings better internationalization in reports with locale based formating of times and monetary values. The newly added support for DBus messages allows users to start/stop the timer and save/reload the data file from the command line using the gnotime-remote script. Also, an update user's manual covers most of the features available in this version. In addition, many bugs have been fixed, including: -- Crash when saving to full filesystem (#1548248) -- Day of century calculation error causing skipped day in reports -- Conflicting keybindings (#1639477) -- Invoice report doesn't work in locales other than C -- Hidden question dialog when overwriting file during report saving (http://bugs.debian.org/422023) @ text @$NetBSD: patch-al,v 1.1 2004/11/24 22:35:25 kristerw Exp $ --- lib/qof/qofgobj.c.orig Wed Nov 24 18:04:20 2004 +++ lib/qof/qofgobj.c Wed Nov 24 18:11:07 2004 @@@@ -57,10 +57,10 @@@@ void qof_gobject_shutdown (void) { + GSList *n; if (!initialized) return; initialized = FALSE; - GSList *n; for (n=paramList; n; n=n->next) g_free(n->data); g_slist_free (paramList); @@@@ -83,11 +83,13 @@@@ void qof_gobject_register_instance (QofBook *book, QofType type, GObject *gob) { + QofCollection *coll; + GSList * instance_list; if (!book || !type) return; - QofCollection *coll = qof_book_get_collection (book, type); + coll = qof_book_get_collection (book, type); - GSList * instance_list = qof_collection_get_data (coll); + instance_list = qof_collection_get_data (coll); instance_list = g_slist_prepend (instance_list, gob); qof_collection_set_data (coll, instance_list); } @@@@ -106,41 +108,45 @@@@ * mapping below ... */ if (G_IS_PARAM_SPEC_STRING(gps)) { + const char * str; GValue gval = {G_TYPE_INVALID}; g_value_init (&gval, G_TYPE_STRING); g_object_get_property (gob, getter->param_name, &gval); - const char * str = g_value_get_string (&gval); + str = g_value_get_string (&gval); return (gpointer) str; } else if (G_IS_PARAM_SPEC_INT(gps)) { + int ival; GValue gval = {G_TYPE_INVALID}; g_value_init (&gval, G_TYPE_INT); g_object_get_property (gob, getter->param_name, &gval); - int ival = g_value_get_int (&gval); + ival = g_value_get_int (&gval); return (gpointer) ival; } else if (G_IS_PARAM_SPEC_UINT(gps)) { + int ival; GValue gval = {G_TYPE_INVALID}; g_value_init (&gval, G_TYPE_UINT); g_object_get_property (gob, getter->param_name, &gval); - int ival = g_value_get_uint (&gval); + ival = g_value_get_uint (&gval); return (gpointer) ival; } else if (G_IS_PARAM_SPEC_BOOLEAN(gps)) { + int ival; GValue gval = {G_TYPE_INVALID}; g_value_init (&gval, G_TYPE_BOOLEAN); g_object_get_property (gob, getter->param_name, &gval); - int ival = g_value_get_boolean (&gval); + ival = g_value_get_boolean (&gval); return (gpointer) ival; } @@@@ -161,21 +167,23 @@@@ * mapping below ... */ if (G_IS_PARAM_SPEC_FLOAT(gps)) { + double fval; GValue gval = {G_TYPE_INVALID}; g_value_init (&gval, G_TYPE_FLOAT); g_object_get_property (gob, getter->param_name, &gval); - double fval = g_value_get_float (&gval); + fval = g_value_get_float (&gval); return fval; } else if (G_IS_PARAM_SPEC_DOUBLE(gps)) { + double fval; GValue gval = {G_TYPE_INVALID}; g_value_init (&gval, G_TYPE_DOUBLE); g_object_get_property (gob, getter->param_name, &gval); - double fval = g_value_get_double (&gval); + fval = g_value_get_double (&gval); return fval; } @@@@ -204,17 +212,17 @@@@ void qof_gobject_register (QofType e_type, GObjectClass *obclass) { - + int i, j=0; + QofParam *qof_param_list; /* Get the GObject properties, convert to QOF properties */ GParamSpec **prop_list; int n_props; prop_list = g_object_class_list_properties (obclass, &n_props); - QofParam * qof_param_list = g_new0 (QofParam, n_props); + qof_param_list = g_new0 (QofParam, n_props); paramList = g_slist_prepend (paramList, qof_param_list); PINFO ("object %s has %d props", e_type, n_props); - int i, j=0; for (i=0; iprintable = NULL; qof_object_register (class_def); + } } /* ======================= END OF FILE ================================ */ @ 1.1 log @Make this build under NetBSD 1.6.2 (C99-isms, and a missing header file). @ text @d1 1 a1 1 $NetBSD$ @