[ease] [editor] Fix clutter warnings when dragging.
- From: Nate Stedman <natesm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ease] [editor] Fix clutter warnings when dragging.
- Date: Sun, 8 Aug 2010 11:02:52 +0000 (UTC)
commit ad8be3a36d2d4adbef968a623bf496b21d804271
Author: Nate Stedman <natesm gmail com>
Date: Sun Aug 8 05:09:47 2010 -0400
[editor] Fix clutter warnings when dragging.
ease/ease-editor-embed.vala | 20 +++++++-------------
1 files changed, 7 insertions(+), 13 deletions(-)
---
diff --git a/ease/ease-editor-embed.vala b/ease/ease-editor-embed.vala
index c54f0a6..bd41eea 100644
--- a/ease/ease-editor-embed.vala
+++ b/ease/ease-editor-embed.vala
@@ -59,10 +59,13 @@ internal class Ease.EditorEmbed : ScrollableEmbed, UndoSource
{
if (selected_priv != null)
{
- selected_priv.notify.disconnect(on_selected_notify);
+ slide_actor.slide.changed.disconnect(on_selected_changed);
}
selected_priv = value;
- if (value != null) value.notify.connect(on_selected_notify);
+ if (value != null)
+ {
+ slide_actor.slide.changed.connect(on_selected_changed);
+ }
}
}
private Actor selected_priv;
@@ -819,19 +822,10 @@ internal class Ease.EditorEmbed : ScrollableEmbed, UndoSource
/**
* Notifies of changes to the selected actor.
*/
- internal void on_selected_notify(GLib.Object object, GLib.ParamSpec pspec)
+ internal void on_selected_changed(Slide sender)
{
if (selection_rectangle == null) return;
-
- switch (pspec.name)
- {
- case "x":
- case "y":
- case "width":
- case "height":
- position_selection();
- break;
- }
+ position_selection();
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]