mirror of
https://github.com/Gnucash/gnucash.git
synced 2026-10-13 09:52:00 -05:00
Make g_strv_length available outside of the gkeyfile compatability
library. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13477 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
1 parent
4a63eb5c65
commit
2ff71abfda
5 files changed
+36
-26
No files matched your search
@@ -1,3 +1,10 @@
|
||||
2006-03-04 David Hampton <hampton@employees.org>
|
||||
|
||||
* src/gnome-utils/dialog-account.c:
|
||||
* lib/glib26/gkeyfile.c:
|
||||
* lib/glib26/gutils26.[ch]: Make g_strv_length available outside
|
||||
of the gkeyfile compatability library.
|
||||
|
||||
2006-03-04 Joshua Sled <jsled@asynchronous.org>
|
||||
|
||||
* src/gnome/glade/sched-xact.glade: Fix selection mode on
|
||||
|
||||
@@ -191,32 +191,6 @@ static void g_key_file_flush_parse_buffer (GKeyFile
|
||||
GError **error);
|
||||
|
||||
|
||||
/**
|
||||
* g_strv_length:
|
||||
* @str_array: a %NULL-terminated array of strings.
|
||||
*
|
||||
* Returns the length of the given %NULL-terminated
|
||||
* string array @str_array.
|
||||
*
|
||||
* Return value: length of @str_array.
|
||||
*
|
||||
* From the file gstrfuncs.c
|
||||
*
|
||||
* Since: 2.6
|
||||
**/
|
||||
static guint
|
||||
g_strv_length (gchar **str_array)
|
||||
{
|
||||
guint i = 0;
|
||||
|
||||
g_return_val_if_fail (str_array != NULL, 0);
|
||||
|
||||
while (str_array[i])
|
||||
++i;
|
||||
|
||||
return i;
|
||||
}
|
||||
|
||||
GQuark
|
||||
g_key_file_error_quark (void)
|
||||
{
|
||||
|
||||
@@ -1035,6 +1035,30 @@ _glib_gettext (const gchar *str)
|
||||
|
||||
#endif /* ENABLE_NLS */
|
||||
|
||||
/**
|
||||
* g_strv_length:
|
||||
* @str_array: a %NULL-terminated array of strings.
|
||||
*
|
||||
* Returns the length of the given %NULL-terminated
|
||||
* string array @str_array.
|
||||
*
|
||||
* Return value: length of @str_array.
|
||||
*
|
||||
* Since: 2.6
|
||||
**/
|
||||
guint
|
||||
g_strv_length (gchar **str_array)
|
||||
{
|
||||
guint i = 0;
|
||||
|
||||
g_return_val_if_fail (str_array != NULL, 0);
|
||||
|
||||
while (str_array[i])
|
||||
++i;
|
||||
|
||||
return i;
|
||||
}
|
||||
|
||||
#if 0
|
||||
#define __G_UTILS_C__
|
||||
#include "galiasdef.c"
|
||||
|
||||
@@ -180,4 +180,6 @@ DllMain (HINSTANCE hinstDLL, \
|
||||
}
|
||||
#endif /* G_PLATFORM_WIN32 */
|
||||
|
||||
guint g_strv_length (gchar **str_array);
|
||||
|
||||
#endif /* __G_UTILS_26_H__ */
|
||||
@@ -25,6 +25,9 @@
|
||||
#include "config.h"
|
||||
|
||||
#include <gnome.h>
|
||||
#ifndef HAVE_GLIB26
|
||||
#include "gutils26.h"
|
||||
#endif
|
||||
#include <glib/gi18n.h>
|
||||
#include <math.h>
|
||||
#include <string.h>
|
||||
|
||||
Reference in new issue
Block a user