Commit a10b688b authored by Jehan's avatar Jehan

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.
parent f713c86d
...@@ -557,6 +557,6 @@ gimp_mandala_image_size_changed_cb (GimpImage *image, ...@@ -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-x:max", x_max, g_free);
g_object_set_data_full (G_OBJECT (sym), "center-y:max", y_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);
} }
} }
...@@ -615,7 +615,7 @@ gimp_mirror_guide_removed_cb (GObject *object, ...@@ -615,7 +615,7 @@ gimp_mirror_guide_removed_cb (GObject *object,
else else
{ {
gimp_mirror_reset (mirror); 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); GIMP_SYMMETRY (mirror)->image);
} }
} }
...@@ -756,6 +756,6 @@ gimp_mirror_image_size_changed_cb (GimpImage *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), "vertical-position:max", x_max, g_free);
g_object_set_data_full (G_OBJECT (sym), "horizontal-position:max", y_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);
} }
} }
...@@ -398,5 +398,5 @@ gimp_tiling_image_size_changed_cb (GimpImage *image, ...@@ -398,5 +398,5 @@ gimp_tiling_image_size_changed_cb (GimpImage *image,
if (previous_width != gimp_image_get_width (image) || if (previous_width != gimp_image_get_width (image) ||
previous_height != gimp_image_get_height (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);
} }
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
enum enum
{ {
STROKES_UPDATED, STROKES_UPDATED,
UPDATE_UI, GUI_PARAM_CHANGED,
ACTIVE_CHANGED, ACTIVE_CHANGED,
LAST_SIGNAL LAST_SIGNAL
}; };
...@@ -106,8 +106,8 @@ gimp_symmetry_class_init (GimpSymmetryClass *klass) ...@@ -106,8 +106,8 @@ gimp_symmetry_class_init (GimpSymmetryClass *klass)
* settings UI. For instance adding some settings (therefore having * settings UI. For instance adding some settings (therefore having
* a dynamic UI), or changing scale min/max extremes, etc. * a dynamic UI), or changing scale min/max extremes, etc.
*/ */
gimp_symmetry_signals[UPDATE_UI] = gimp_symmetry_signals[GUI_PARAM_CHANGED] =
g_signal_new ("update-ui", g_signal_new ("gui-param-changed",
G_TYPE_FROM_CLASS (klass), G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_FIRST, G_SIGNAL_RUN_FIRST,
0, 0,
......
...@@ -204,7 +204,7 @@ gimp_symmetry_editor_symmetry_notify (GimpImage *image, ...@@ -204,7 +204,7 @@ gimp_symmetry_editor_symmetry_notify (GimpImage *image,
symmetry = gimp_image_get_active_symmetry (image); symmetry = gimp_image_get_active_symmetry (image);
if (symmetry) if (symmetry)
g_signal_connect (symmetry, "update-ui", g_signal_connect (symmetry, "gui-param-changed",
G_CALLBACK (gimp_symmetry_editor_symmetry_updated), G_CALLBACK (gimp_symmetry_editor_symmetry_updated),
editor); editor);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment