[gimp] app: rename "update-ui" signal to "gui-param-changed".
- From: Jehan Pagès <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: rename "update-ui" signal to "gui-param-changed".
- Date: Tue, 28 Jun 2016 18:08:28 +0000 (UTC)
commit a10b688b64f4087883ffbe5f43148ea162448a0a
Author: Jehan <jehan girinstud io>
Date: Tue Jun 28 20:04:38 2016 +0200
app: rename "update-ui" signal to "gui-param-changed".
Therefore having a signal name more in line with other signals. This
reflects the property flag's naming: GIMP_SYMMETRY_PARAM_GUI.
app/core/gimpsymmetry-mandala.c | 2 +-
app/core/gimpsymmetry-mirror.c | 4 ++--
app/core/gimpsymmetry-tiling.c | 2 +-
app/core/gimpsymmetry.c | 6 +++---
app/widgets/gimpsymmetryeditor.c | 2 +-
5 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/app/core/gimpsymmetry-mandala.c b/app/core/gimpsymmetry-mandala.c
index e33791c..87deb2e 100644
--- a/app/core/gimpsymmetry-mandala.c
+++ b/app/core/gimpsymmetry-mandala.c
@@ -557,6 +557,6 @@ gimp_mandala_image_size_changed_cb (GimpImage *image,
g_object_set_data_full (G_OBJECT (sym), "center-x:max", x_max, g_free);
g_object_set_data_full (G_OBJECT (sym), "center-y:max", y_max, g_free);
- g_signal_emit_by_name (sym, "update-ui", sym->image);
+ g_signal_emit_by_name (sym, "gui-param-changed", sym->image);
}
}
diff --git a/app/core/gimpsymmetry-mirror.c b/app/core/gimpsymmetry-mirror.c
index 16e2eda..ac68f5e 100644
--- a/app/core/gimpsymmetry-mirror.c
+++ b/app/core/gimpsymmetry-mirror.c
@@ -615,7 +615,7 @@ gimp_mirror_guide_removed_cb (GObject *object,
else
{
gimp_mirror_reset (mirror);
- g_signal_emit_by_name (mirror, "update-ui",
+ g_signal_emit_by_name (mirror, "gui-param-changed",
GIMP_SYMMETRY (mirror)->image);
}
}
@@ -756,6 +756,6 @@ gimp_mirror_image_size_changed_cb (GimpImage *image,
g_object_set_data_full (G_OBJECT (sym), "vertical-position:max", x_max, g_free);
g_object_set_data_full (G_OBJECT (sym), "horizontal-position:max", y_max, g_free);
- g_signal_emit_by_name (sym, "update-ui", sym->image);
+ g_signal_emit_by_name (sym, "gui-param-changed", sym->image);
}
}
diff --git a/app/core/gimpsymmetry-tiling.c b/app/core/gimpsymmetry-tiling.c
index 6d1014d..5b68b5d 100644
--- a/app/core/gimpsymmetry-tiling.c
+++ b/app/core/gimpsymmetry-tiling.c
@@ -398,5 +398,5 @@ gimp_tiling_image_size_changed_cb (GimpImage *image,
if (previous_width != gimp_image_get_width (image) ||
previous_height != gimp_image_get_height (image))
- g_signal_emit_by_name (sym, "update-ui", sym->image);
+ g_signal_emit_by_name (sym, "gui-param-changed", sym->image);
}
diff --git a/app/core/gimpsymmetry.c b/app/core/gimpsymmetry.c
index 1a7cd5b..b92019b 100644
--- a/app/core/gimpsymmetry.c
+++ b/app/core/gimpsymmetry.c
@@ -42,7 +42,7 @@
enum
{
STROKES_UPDATED,
- UPDATE_UI,
+ GUI_PARAM_CHANGED,
ACTIVE_CHANGED,
LAST_SIGNAL
};
@@ -106,8 +106,8 @@ gimp_symmetry_class_init (GimpSymmetryClass *klass)
* settings UI. For instance adding some settings (therefore having
* a dynamic UI), or changing scale min/max extremes, etc.
*/
- gimp_symmetry_signals[UPDATE_UI] =
- g_signal_new ("update-ui",
+ gimp_symmetry_signals[GUI_PARAM_CHANGED] =
+ g_signal_new ("gui-param-changed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_FIRST,
0,
diff --git a/app/widgets/gimpsymmetryeditor.c b/app/widgets/gimpsymmetryeditor.c
index 29337bc..829d29d 100644
--- a/app/widgets/gimpsymmetryeditor.c
+++ b/app/widgets/gimpsymmetryeditor.c
@@ -204,7 +204,7 @@ gimp_symmetry_editor_symmetry_notify (GimpImage *image,
symmetry = gimp_image_get_active_symmetry (image);
if (symmetry)
- g_signal_connect (symmetry, "update-ui",
+ g_signal_connect (symmetry, "gui-param-changed",
G_CALLBACK (gimp_symmetry_editor_symmetry_updated),
editor);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]