[gdl] Restore cursor when a pre-drag is aborted
- From: Sebastien Granjoux <sgranjoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdl] Restore cursor when a pre-drag is aborted
- Date: Thu, 17 May 2012 12:44:31 +0000 (UTC)
commit 19c1f4042d4fe00d456ba1164544119d7c70ed1d
Author: SÃbastien Granjoux <seb sfo free fr>
Date: Thu May 17 14:30:28 2012 +0200
Restore cursor when a pre-drag is aborted
gdl/gdl-dock-item.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/gdl/gdl-dock-item.c b/gdl/gdl-dock-item.c
index 0528467..f459bac 100644
--- a/gdl/gdl-dock-item.c
+++ b/gdl/gdl-dock-item.c
@@ -539,6 +539,16 @@ on_grab_broken_event (GtkWidget *widget,
if (GDL_DOCK_ITEM_IN_DRAG (item)) {
gdl_dock_item_drag_end (item, TRUE);
}
+ else if (GDL_DOCK_ITEM_IN_PREDRAG (item)) {
+ GdkCursor *cursor;
+
+ GDL_DOCK_ITEM_UNSET_FLAGS (item, GDL_DOCK_IN_PREDRAG);
+ cursor = gdk_cursor_new_for_display (gtk_widget_get_display (item->priv->grip),
+ GDK_HAND2);
+ gdk_window_set_cursor (GDL_DOCK_ITEM_GRIP (item->priv->grip)->title_window,
+ cursor);
+ gdk_cursor_unref (cursor);
+ }
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]