[gimp] app: remove old GEGL multiline prop type/handling
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: remove old GEGL multiline prop type/handling
- Date: Sat, 26 Mar 2016 11:30:08 +0000 (UTC)
commit 2e4685013123c584354bc38612527593a815c38b
Author: Øyvind Kolås <pippin gimp org>
Date: Sat Mar 26 12:22:01 2016 +0100
app: remove old GEGL multiline prop type/handling
We're using ui_meta keys now, and no longer specialized param spec subclasses
nor tagging with custom qdata.
app/core/gimpparamspecs-duplicate.c | 12 ------------
app/widgets/gimppropgui.c | 8 +-------
2 files changed, 1 insertions(+), 19 deletions(-)
---
diff --git a/app/core/gimpparamspecs-duplicate.c b/app/core/gimpparamspecs-duplicate.c
index 10671cd..005d453 100644
--- a/app/core/gimpparamspecs-duplicate.c
+++ b/app/core/gimpparamspecs-duplicate.c
@@ -66,23 +66,11 @@ gimp_param_spec_duplicate (GParamSpec *pspec)
}
else
{
-
copy = g_param_spec_string (pspec->name,
g_param_spec_get_nick (pspec),
g_param_spec_get_blurb (pspec),
spec->default_value,
flags);
-
- if (GEGL_IS_PARAM_SPEC_MULTILINE (pspec))
- {
- static GQuark multiline_quark = 0;
-
- if (! multiline_quark)
- multiline_quark = g_quark_from_static_string ("multiline");
-
- g_param_spec_set_qdata (copy, multiline_quark,
- GINT_TO_POINTER (TRUE));
- }
}
}
else if (G_IS_PARAM_SPEC_BOOLEAN (pspec))
diff --git a/app/widgets/gimppropgui.c b/app/widgets/gimppropgui.c
index ddbe8be..4f40c37 100644
--- a/app/widgets/gimppropgui.c
+++ b/app/widgets/gimppropgui.c
@@ -227,11 +227,6 @@ gimp_prop_widget_new_from_pspec (GObject *config,
}
else if (G_IS_PARAM_SPEC_STRING (pspec))
{
- static GQuark multiline_quark = 0;
-
- if (! multiline_quark)
- multiline_quark = g_quark_from_static_string ("multiline");
-
if (GIMP_IS_PARAM_SPEC_CONFIG_PATH (pspec))
{
widget =
@@ -239,8 +234,7 @@ gimp_prop_widget_new_from_pspec (GObject *config,
g_param_spec_get_nick (pspec),
GTK_FILE_CHOOSER_ACTION_OPEN);
}
- else if (g_param_spec_get_qdata (pspec, multiline_quark) ||
- HAS_KEY (pspec, "multiline", "true"))
+ else if (HAS_KEY (pspec, "multiline", "true"))
{
GtkTextBuffer *buffer;
GtkWidget *view;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]