drag-action: fix warning when setting drag-handle to null
https://bugzilla.gnome.org/show_bug.cgi?id=708850
This commit is contained in:
parent
e87c470220
commit
067fcc3690
@ -1138,14 +1138,18 @@ clutter_drag_action_set_drag_handle (ClutterDragAction *action,
|
|||||||
|
|
||||||
priv->transformed_press_x = priv->press_x;
|
priv->transformed_press_x = priv->press_x;
|
||||||
priv->transformed_press_y = priv->press_y;
|
priv->transformed_press_y = priv->press_y;
|
||||||
clutter_actor_transform_stage_point (handle, priv->press_x, priv->press_y,
|
|
||||||
&priv->transformed_press_x,
|
|
||||||
&priv->transformed_press_y);
|
|
||||||
|
|
||||||
if (priv->drag_handle != NULL)
|
if (priv->drag_handle != NULL)
|
||||||
g_signal_connect (priv->drag_handle, "destroy",
|
{
|
||||||
G_CALLBACK (on_drag_handle_destroy),
|
clutter_actor_transform_stage_point (priv->drag_handle,
|
||||||
action);
|
priv->press_x,
|
||||||
|
priv->press_y,
|
||||||
|
&priv->transformed_press_x,
|
||||||
|
&priv->transformed_press_y);
|
||||||
|
g_signal_connect (priv->drag_handle, "destroy",
|
||||||
|
G_CALLBACK (on_drag_handle_destroy),
|
||||||
|
action);
|
||||||
|
}
|
||||||
|
|
||||||
g_object_notify_by_pspec (G_OBJECT (action), drag_props[PROP_DRAG_HANDLE]);
|
g_object_notify_by_pspec (G_OBJECT (action), drag_props[PROP_DRAG_HANDLE]);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user