2005-01-22 06:59:51 +08:00
|
|
|
/* LIBGIMP - The GIMP Library
|
|
|
|
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
|
2004-04-18 09:20:26 +08:00
|
|
|
*
|
|
|
|
* gimpenumstore.c
|
2007-01-12 23:15:42 +08:00
|
|
|
* Copyright (C) 2004-2007 Sven Neumann <sven@gimp.org>
|
2004-04-18 09:20:26 +08:00
|
|
|
*
|
2009-01-18 06:28:01 +08:00
|
|
|
* This library is free software: you can redistribute it and/or
|
2005-01-22 06:59:51 +08:00
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
2009-01-18 06:28:01 +08:00
|
|
|
* version 3 of the License, or (at your option) any later version.
|
2004-04-18 09:20:26 +08:00
|
|
|
*
|
2005-01-22 06:59:51 +08:00
|
|
|
* This library is distributed in the hope that it will be useful,
|
2004-04-18 09:20:26 +08:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2005-01-22 06:59:51 +08:00
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
2004-04-18 09:20:26 +08:00
|
|
|
*
|
2005-01-22 06:59:51 +08:00
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
2009-01-18 06:28:01 +08:00
|
|
|
* License along with this library. If not, see
|
2018-07-12 05:27:07 +08:00
|
|
|
* <https://www.gnu.org/licenses/>.
|
2004-04-18 09:20:26 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
#include <gtk/gtk.h>
|
|
|
|
|
2004-07-31 04:42:53 +08:00
|
|
|
#include "libgimpbase/gimpbase.h"
|
2004-04-18 09:20:26 +08:00
|
|
|
|
2005-01-22 06:59:51 +08:00
|
|
|
#include "gimpwidgetstypes.h"
|
2004-04-18 09:20:26 +08:00
|
|
|
|
|
|
|
#include "gimpenumstore.h"
|
|
|
|
|
|
|
|
|
2010-07-06 00:01:28 +08:00
|
|
|
/**
|
|
|
|
* SECTION: gimpenumstore
|
|
|
|
* @title: GimpEnumStore
|
|
|
|
* @short_description: A #GimpIntStore subclass that keeps enum values.
|
|
|
|
*
|
|
|
|
* A #GimpIntStore subclass that keeps enum values.
|
|
|
|
**/
|
|
|
|
|
|
|
|
|
2007-01-12 23:15:42 +08:00
|
|
|
enum
|
|
|
|
{
|
|
|
|
PROP_0,
|
|
|
|
PROP_ENUM_TYPE
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2024-08-03 10:48:07 +08:00
|
|
|
typedef struct _GimpEnumStorePrivate
|
2018-05-04 16:57:13 +08:00
|
|
|
{
|
2024-08-03 10:48:07 +08:00
|
|
|
GimpIntStore parent_instance;
|
|
|
|
|
|
|
|
GEnumClass *enum_class;
|
|
|
|
} GimpEnumStorePrivate;
|
2018-05-04 16:57:13 +08:00
|
|
|
|
2024-08-03 10:48:07 +08:00
|
|
|
#define GET_PRIVATE(obj) ((GimpEnumStorePrivate *) gimp_enum_store_get_instance_private ((GimpEnumStore *) (obj)))
|
2018-05-04 16:57:13 +08:00
|
|
|
|
|
|
|
|
2007-01-12 23:30:49 +08:00
|
|
|
static void gimp_enum_store_finalize (GObject *object);
|
|
|
|
static void gimp_enum_store_set_property (GObject *object,
|
|
|
|
guint property_id,
|
|
|
|
const GValue *value,
|
|
|
|
GParamSpec *pspec);
|
|
|
|
static void gimp_enum_store_get_property (GObject *object,
|
|
|
|
guint property_id,
|
|
|
|
GValue *value,
|
|
|
|
GParamSpec *pspec);
|
2007-01-12 23:15:42 +08:00
|
|
|
|
2007-01-12 23:30:49 +08:00
|
|
|
static void gimp_enum_store_add_value (GtkListStore *store,
|
|
|
|
GEnumValue *value);
|
2004-04-18 09:20:26 +08:00
|
|
|
|
|
|
|
|
app, libgimp*, modules: don't use g_type_class_add_private() ...
... and G_TYPE_INSTANCE_GET_PRIVATE()
g_type_class_add_private() and G_TYPE_INSTANCE_GET_PRIVATE() were
deprecated in GLib 2.58. Instead, use
G_DEFINE_[ABSTRACT_]TYPE_WITH_PRIVATE(), and
G_ADD_PRIVATE[_DYNAMIC](), and the implictly-defined
foo_get_instance_private() functions, all of which are available in
the GLib versions we depend on.
This commit only covers types registered using one of the
G_DEFINE_FOO() macros (i.e., most types), but not types with a
custom registration function, of which we still have a few -- GLib
currently only provides a (non-deprecated) public API for adding a
private struct using the G_DEFINE_FOO() macros.
Note that this commit was 99% auto-generated (because I'm not
*that* crazy :), so if there are any style mismatches... we'll have
to live with them for now.
2018-09-19 00:09:39 +08:00
|
|
|
G_DEFINE_TYPE_WITH_PRIVATE (GimpEnumStore, gimp_enum_store, GIMP_TYPE_INT_STORE)
|
2004-04-18 09:20:26 +08:00
|
|
|
|
2005-12-21 04:35:23 +08:00
|
|
|
#define parent_class gimp_enum_store_parent_class
|
2004-04-18 09:20:26 +08:00
|
|
|
|
|
|
|
|
|
|
|
static void
|
|
|
|
gimp_enum_store_class_init (GimpEnumStoreClass *klass)
|
|
|
|
{
|
|
|
|
GObjectClass *object_class = G_OBJECT_CLASS (klass);
|
|
|
|
|
2007-01-12 23:15:42 +08:00
|
|
|
object_class->finalize = gimp_enum_store_finalize;
|
|
|
|
object_class->set_property = gimp_enum_store_set_property;
|
|
|
|
object_class->get_property = gimp_enum_store_get_property;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* GimpEnumStore:enum-type:
|
|
|
|
*
|
|
|
|
* Sets the #GType of the enum to be used in the store.
|
|
|
|
*
|
2015-06-01 03:18:09 +08:00
|
|
|
* Since: 2.4
|
2007-01-12 23:15:42 +08:00
|
|
|
*/
|
|
|
|
g_object_class_install_property (object_class,
|
|
|
|
PROP_ENUM_TYPE,
|
|
|
|
g_param_spec_gtype ("enum-type",
|
2017-06-07 03:19:17 +08:00
|
|
|
"Enum Type",
|
|
|
|
"The type of the enum",
|
2007-01-12 23:15:42 +08:00
|
|
|
G_TYPE_ENUM,
|
|
|
|
G_PARAM_CONSTRUCT_ONLY |
|
|
|
|
GIMP_PARAM_READWRITE));
|
2004-04-18 09:20:26 +08:00
|
|
|
}
|
|
|
|
|
2005-12-21 04:35:23 +08:00
|
|
|
static void
|
|
|
|
gimp_enum_store_init (GimpEnumStore *store)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2004-04-18 09:20:26 +08:00
|
|
|
static void
|
|
|
|
gimp_enum_store_finalize (GObject *object)
|
|
|
|
{
|
2018-05-04 16:57:13 +08:00
|
|
|
GimpEnumStorePrivate *priv = GET_PRIVATE (object);
|
2004-04-18 09:20:26 +08:00
|
|
|
|
2018-05-04 16:57:13 +08:00
|
|
|
g_clear_pointer (&priv->enum_class, g_type_class_unref);
|
2004-04-18 09:20:26 +08:00
|
|
|
|
|
|
|
G_OBJECT_CLASS (parent_class)->finalize (object);
|
|
|
|
}
|
|
|
|
|
2007-01-12 23:15:42 +08:00
|
|
|
static void
|
|
|
|
gimp_enum_store_set_property (GObject *object,
|
|
|
|
guint property_id,
|
|
|
|
const GValue *value,
|
|
|
|
GParamSpec *pspec)
|
|
|
|
{
|
2018-05-04 16:57:13 +08:00
|
|
|
GimpEnumStorePrivate *priv = GET_PRIVATE (object);
|
2007-01-12 23:15:42 +08:00
|
|
|
|
|
|
|
switch (property_id)
|
|
|
|
{
|
|
|
|
case PROP_ENUM_TYPE:
|
2018-05-04 16:57:13 +08:00
|
|
|
g_return_if_fail (priv->enum_class == NULL);
|
|
|
|
priv->enum_class = g_type_class_ref (g_value_get_gtype (value));
|
2007-01-12 23:15:42 +08:00
|
|
|
break;
|
2018-05-04 16:57:13 +08:00
|
|
|
|
2007-01-12 23:15:42 +08:00
|
|
|
default:
|
|
|
|
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
gimp_enum_store_get_property (GObject *object,
|
|
|
|
guint property_id,
|
|
|
|
GValue *value,
|
|
|
|
GParamSpec *pspec)
|
|
|
|
{
|
2018-05-04 16:57:13 +08:00
|
|
|
GimpEnumStorePrivate *priv = GET_PRIVATE (object);
|
2007-01-12 23:15:42 +08:00
|
|
|
|
|
|
|
switch (property_id)
|
|
|
|
{
|
|
|
|
case PROP_ENUM_TYPE:
|
2018-05-04 16:57:13 +08:00
|
|
|
g_value_set_gtype (value, (priv->enum_class ?
|
|
|
|
G_TYPE_FROM_CLASS (priv->enum_class) :
|
2007-01-12 23:30:49 +08:00
|
|
|
G_TYPE_NONE));
|
2007-01-12 23:15:42 +08:00
|
|
|
break;
|
2018-05-04 16:57:13 +08:00
|
|
|
|
2007-01-12 23:15:42 +08:00
|
|
|
default:
|
|
|
|
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2004-04-19 23:35:15 +08:00
|
|
|
static void
|
|
|
|
gimp_enum_store_add_value (GtkListStore *store,
|
|
|
|
GEnumValue *value)
|
|
|
|
{
|
2018-05-04 16:57:13 +08:00
|
|
|
GimpEnumStorePrivate *priv = GET_PRIVATE (store);
|
|
|
|
GtkTreeIter iter = { 0, };
|
|
|
|
const gchar *desc;
|
|
|
|
const gchar *abbrev;
|
|
|
|
gchar *stripped;
|
2004-07-29 20:33:15 +08:00
|
|
|
|
2018-05-04 16:57:13 +08:00
|
|
|
desc = gimp_enum_value_get_desc (priv->enum_class, value);
|
|
|
|
abbrev = gimp_enum_value_get_abbrev (priv->enum_class, value);
|
2004-04-19 23:35:15 +08:00
|
|
|
|
2016-08-16 03:57:34 +08:00
|
|
|
/* no mnemonics in combo boxes */
|
|
|
|
stripped = gimp_strip_uline (desc);
|
|
|
|
|
2004-04-19 23:35:15 +08:00
|
|
|
gtk_list_store_append (store, &iter);
|
|
|
|
gtk_list_store_set (store, &iter,
|
2017-11-30 05:34:30 +08:00
|
|
|
GIMP_INT_STORE_VALUE, value->value,
|
|
|
|
GIMP_INT_STORE_LABEL, stripped,
|
|
|
|
GIMP_INT_STORE_ABBREV, abbrev,
|
2004-04-19 23:35:15 +08:00
|
|
|
-1);
|
2016-08-16 03:57:34 +08:00
|
|
|
|
|
|
|
g_free (stripped);
|
2004-04-19 23:35:15 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2004-04-18 09:20:26 +08:00
|
|
|
/**
|
|
|
|
* gimp_enum_store_new:
|
|
|
|
* @enum_type: the #GType of an enum.
|
|
|
|
*
|
|
|
|
* Creates a new #GimpEnumStore, derived from #GtkListStore and fills
|
|
|
|
* it with enum values. The enum needs to be registered to the type
|
|
|
|
* system and should have translatable value names.
|
|
|
|
*
|
2019-08-03 06:10:14 +08:00
|
|
|
* Returns: a new #GimpEnumStore.
|
2005-01-22 06:59:51 +08:00
|
|
|
*
|
2015-06-01 03:18:09 +08:00
|
|
|
* Since: 2.4
|
2004-04-18 09:20:26 +08:00
|
|
|
**/
|
|
|
|
GtkListStore *
|
|
|
|
gimp_enum_store_new (GType enum_type)
|
|
|
|
{
|
|
|
|
GtkListStore *store;
|
|
|
|
GEnumClass *enum_class;
|
|
|
|
|
|
|
|
g_return_val_if_fail (G_TYPE_IS_ENUM (enum_type), NULL);
|
|
|
|
|
|
|
|
enum_class = g_type_class_ref (enum_type);
|
|
|
|
|
|
|
|
store = gimp_enum_store_new_with_range (enum_type,
|
|
|
|
enum_class->minimum,
|
|
|
|
enum_class->maximum);
|
|
|
|
|
|
|
|
g_type_class_unref (enum_class);
|
|
|
|
|
|
|
|
return store;
|
|
|
|
}
|
|
|
|
|
2004-04-19 23:35:15 +08:00
|
|
|
/**
|
|
|
|
* gimp_enum_store_new_with_range:
|
|
|
|
* @enum_type: the #GType of an enum.
|
|
|
|
* @minimum: the minimum value to include
|
|
|
|
* @maximum: the maximum value to include
|
|
|
|
*
|
|
|
|
* Creates a new #GimpEnumStore like gimp_enum_store_new() but allows
|
2005-01-24 07:16:28 +08:00
|
|
|
* to limit the enum values to a certain range. Values smaller than
|
|
|
|
* @minimum or larger than @maximum are not added to the store.
|
2004-04-19 23:35:15 +08:00
|
|
|
*
|
2019-08-03 06:10:14 +08:00
|
|
|
* Returns: a new #GimpEnumStore.
|
2005-01-22 06:59:51 +08:00
|
|
|
*
|
2015-06-01 03:18:09 +08:00
|
|
|
* Since: 2.4
|
2004-04-19 23:35:15 +08:00
|
|
|
**/
|
2004-04-18 09:20:26 +08:00
|
|
|
GtkListStore *
|
|
|
|
gimp_enum_store_new_with_range (GType enum_type,
|
|
|
|
gint minimum,
|
|
|
|
gint maximum)
|
|
|
|
{
|
2018-05-04 16:57:13 +08:00
|
|
|
GimpEnumStorePrivate *priv;
|
|
|
|
GtkListStore *store;
|
|
|
|
GEnumValue *value;
|
2004-04-18 09:20:26 +08:00
|
|
|
|
|
|
|
g_return_val_if_fail (G_TYPE_IS_ENUM (enum_type), NULL);
|
|
|
|
|
2007-01-12 23:15:42 +08:00
|
|
|
store = g_object_new (GIMP_TYPE_ENUM_STORE,
|
|
|
|
"enum-type", enum_type,
|
|
|
|
NULL);
|
2004-04-18 09:20:26 +08:00
|
|
|
|
2018-05-04 16:57:13 +08:00
|
|
|
priv = GET_PRIVATE (store);
|
|
|
|
|
|
|
|
for (value = priv->enum_class->values;
|
2004-04-18 09:20:26 +08:00
|
|
|
value->value_name;
|
|
|
|
value++)
|
|
|
|
{
|
|
|
|
if (value->value < minimum || value->value > maximum)
|
|
|
|
continue;
|
|
|
|
|
|
|
|
gimp_enum_store_add_value (store, value);
|
|
|
|
}
|
|
|
|
|
|
|
|
return store;
|
|
|
|
}
|
|
|
|
|
2004-04-19 23:35:15 +08:00
|
|
|
/**
|
2020-05-21 19:43:47 +08:00
|
|
|
* gimp_enum_store_new_with_values: (skip)
|
2004-04-19 23:35:15 +08:00
|
|
|
* @enum_type: the #GType of an enum.
|
|
|
|
* @n_values: the number of enum values to include
|
|
|
|
* @...: a list of enum values (exactly @n_values)
|
|
|
|
*
|
|
|
|
* Creates a new #GimpEnumStore like gimp_enum_store_new() but allows
|
2018-04-19 02:57:03 +08:00
|
|
|
* to explicitly list the enum values that should be added to the
|
2005-01-24 07:16:28 +08:00
|
|
|
* store.
|
2004-04-19 23:35:15 +08:00
|
|
|
*
|
2019-08-03 06:10:14 +08:00
|
|
|
* Returns: a new #GimpEnumStore.
|
2005-01-22 06:59:51 +08:00
|
|
|
*
|
2015-06-01 03:18:09 +08:00
|
|
|
* Since: 2.4
|
2004-04-19 23:35:15 +08:00
|
|
|
**/
|
2004-04-18 09:20:26 +08:00
|
|
|
GtkListStore *
|
|
|
|
gimp_enum_store_new_with_values (GType enum_type,
|
|
|
|
gint n_values,
|
|
|
|
...)
|
|
|
|
{
|
|
|
|
GtkListStore *store;
|
|
|
|
va_list args;
|
|
|
|
|
|
|
|
va_start (args, n_values);
|
|
|
|
|
2007-01-12 23:15:42 +08:00
|
|
|
store = gimp_enum_store_new_with_values_valist (enum_type, n_values, args);
|
2004-04-18 09:20:26 +08:00
|
|
|
|
|
|
|
va_end (args);
|
|
|
|
|
|
|
|
return store;
|
|
|
|
}
|
|
|
|
|
2004-04-19 23:35:15 +08:00
|
|
|
/**
|
2020-05-21 19:43:47 +08:00
|
|
|
* gimp_enum_store_new_with_values_valist: (skip)
|
2004-04-19 23:35:15 +08:00
|
|
|
* @enum_type: the #GType of an enum.
|
|
|
|
* @n_values: the number of enum values to include
|
|
|
|
* @args: a va_list of enum values (exactly @n_values)
|
|
|
|
*
|
|
|
|
* See gimp_enum_store_new_with_values().
|
|
|
|
*
|
2019-08-03 06:10:14 +08:00
|
|
|
* Returns: a new #GimpEnumStore.
|
2005-01-22 06:59:51 +08:00
|
|
|
*
|
2015-06-01 03:18:09 +08:00
|
|
|
* Since: 2.4
|
2004-04-19 23:35:15 +08:00
|
|
|
**/
|
2004-04-18 09:20:26 +08:00
|
|
|
GtkListStore *
|
|
|
|
gimp_enum_store_new_with_values_valist (GType enum_type,
|
|
|
|
gint n_values,
|
|
|
|
va_list args)
|
|
|
|
{
|
2018-05-04 16:57:13 +08:00
|
|
|
GimpEnumStorePrivate *priv;
|
|
|
|
GtkListStore *store;
|
|
|
|
GEnumValue *value;
|
|
|
|
gint i;
|
2004-04-18 09:20:26 +08:00
|
|
|
|
|
|
|
g_return_val_if_fail (G_TYPE_IS_ENUM (enum_type), NULL);
|
|
|
|
g_return_val_if_fail (n_values > 1, NULL);
|
|
|
|
|
2007-01-12 23:15:42 +08:00
|
|
|
store = g_object_new (GIMP_TYPE_ENUM_STORE,
|
|
|
|
"enum-type", enum_type,
|
|
|
|
NULL);
|
2004-04-18 09:20:26 +08:00
|
|
|
|
2018-05-04 16:57:13 +08:00
|
|
|
priv = GET_PRIVATE (store);
|
|
|
|
|
2004-04-18 09:20:26 +08:00
|
|
|
for (i = 0; i < n_values; i++)
|
|
|
|
{
|
2018-05-04 16:57:13 +08:00
|
|
|
value = g_enum_get_value (priv->enum_class,
|
2004-04-18 09:20:26 +08:00
|
|
|
va_arg (args, gint));
|
|
|
|
|
|
|
|
if (value)
|
|
|
|
gimp_enum_store_add_value (store, value);
|
|
|
|
}
|
|
|
|
|
|
|
|
return store;
|
|
|
|
}
|
|
|
|
|
2014-05-08 03:27:57 +08:00
|
|
|
/**
|
|
|
|
* gimp_enum_store_set_icon_prefix:
|
|
|
|
* @store: a #GimpEnumStore
|
|
|
|
* @icon_prefix: a prefix to create icon names from enum values
|
|
|
|
*
|
|
|
|
* Creates an icon name for each enum value in the @store by appending
|
|
|
|
* the value's nick to the given @icon_prefix, separated by a hyphen.
|
|
|
|
*
|
|
|
|
* See also: gimp_enum_combo_box_set_icon_prefix().
|
|
|
|
*
|
2015-06-01 03:18:09 +08:00
|
|
|
* Since: 2.10
|
2014-05-08 03:27:57 +08:00
|
|
|
**/
|
|
|
|
void
|
|
|
|
gimp_enum_store_set_icon_prefix (GimpEnumStore *store,
|
|
|
|
const gchar *icon_prefix)
|
2004-04-18 09:20:26 +08:00
|
|
|
{
|
2018-05-04 16:57:13 +08:00
|
|
|
GimpEnumStorePrivate *priv;
|
|
|
|
GtkTreeModel *model;
|
|
|
|
GtkTreeIter iter;
|
|
|
|
gboolean iter_valid;
|
2004-04-18 09:20:26 +08:00
|
|
|
|
|
|
|
g_return_if_fail (GIMP_IS_ENUM_STORE (store));
|
|
|
|
|
2018-05-04 16:57:13 +08:00
|
|
|
priv = GET_PRIVATE (store);
|
2004-04-18 09:20:26 +08:00
|
|
|
model = GTK_TREE_MODEL (store);
|
|
|
|
|
|
|
|
for (iter_valid = gtk_tree_model_get_iter_first (model, &iter);
|
|
|
|
iter_valid;
|
|
|
|
iter_valid = gtk_tree_model_iter_next (model, &iter))
|
|
|
|
{
|
2014-05-08 03:27:57 +08:00
|
|
|
gchar *icon_name = NULL;
|
2004-04-18 09:20:26 +08:00
|
|
|
|
2014-05-08 03:27:57 +08:00
|
|
|
if (icon_prefix)
|
2004-04-18 09:20:26 +08:00
|
|
|
{
|
|
|
|
GEnumValue *enum_value;
|
|
|
|
gint value;
|
|
|
|
|
|
|
|
gtk_tree_model_get (model, &iter,
|
2004-04-21 03:06:37 +08:00
|
|
|
GIMP_INT_STORE_VALUE, &value,
|
2004-04-18 09:20:26 +08:00
|
|
|
-1);
|
|
|
|
|
2018-05-04 16:57:13 +08:00
|
|
|
enum_value = g_enum_get_value (priv->enum_class, value);
|
2004-04-18 09:20:26 +08:00
|
|
|
|
2016-12-29 08:51:16 +08:00
|
|
|
if (enum_value)
|
|
|
|
{
|
|
|
|
icon_name = g_strconcat (icon_prefix, "-",
|
|
|
|
enum_value->value_nick,
|
|
|
|
NULL);
|
|
|
|
}
|
2004-04-18 09:20:26 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
gtk_list_store_set (GTK_LIST_STORE (store), &iter,
|
2014-05-08 03:27:57 +08:00
|
|
|
GIMP_INT_STORE_ICON_NAME, icon_name,
|
2004-04-18 09:20:26 +08:00
|
|
|
-1);
|
2004-04-18 23:12:42 +08:00
|
|
|
|
2014-05-08 03:27:57 +08:00
|
|
|
if (icon_name)
|
|
|
|
g_free (icon_name);
|
2004-04-18 09:20:26 +08:00
|
|
|
}
|
|
|
|
}
|