Implement katze_strv_assign
This commit is contained in:
parent
b7f684b345
commit
ffd58a06a8
1 changed files with 17 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
||||||
/*
|
/*
|
||||||
Copyright (C) 2007-2008 Christian Dywan <christian@twotoasts.de>
|
Copyright (C) 2007-2008 Christian Dywan <christian@twotoasts.de>
|
||||||
|
Copyright (C) 2009 Dale Whittaker <dayul@users.sf.net>
|
||||||
|
|
||||||
This library is free software; you can redistribute it and/or
|
This library is free software; you can redistribute it and/or
|
||||||
modify it under the terms of the GNU Lesser General Public
|
modify it under the terms of the GNU Lesser General Public
|
||||||
|
@ -54,6 +55,22 @@ G_BEGIN_DECLS
|
||||||
lvalue = rvalue; \
|
lvalue = rvalue; \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* katze_strv_assign:
|
||||||
|
* @lvalue: a string list
|
||||||
|
* @rvalue: the new value
|
||||||
|
*
|
||||||
|
* Frees @lvalue if needed and assigns it the value of @rvalue.
|
||||||
|
*
|
||||||
|
* Since: 0.1.7
|
||||||
|
**/
|
||||||
|
#define katze_strv_assign(lvalue, rvalue) \
|
||||||
|
if (1) \
|
||||||
|
{ \
|
||||||
|
g_strfreev (lvalue); \
|
||||||
|
lvalue = rvalue; \
|
||||||
|
}
|
||||||
|
|
||||||
GtkWidget*
|
GtkWidget*
|
||||||
katze_property_proxy (gpointer object,
|
katze_property_proxy (gpointer object,
|
||||||
const gchar* property,
|
const gchar* property,
|
||||||
|
|
Loading…
Reference in a new issue