Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dorota Czaplejewicz
gtk
Commits
01f9d21e
Commit
01f9d21e
authored
Feb 27, 2006
by
Matthias Clasen
Browse files
slight cleanup
parent
aaed59e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
gtk/gtkdnd.c
View file @
01f9d21e
...
...
@@ -604,9 +604,12 @@ gtk_drag_get_cursor (GdkDisplay *display,
info
->
drag_cursors
[
i
]
=
NULL
;
}
hot_x
=
hot_y
=
0
;
icon_x
=
info
->
hot_x
;
icon_y
=
info
->
hot_y
;
icon_width
=
gdk_pixbuf_get_width
(
info
->
icon_pixbuf
);
icon_height
=
gdk_pixbuf_get_height
(
info
->
icon_pixbuf
);
hot_x
=
hot_y
=
0
;
cursor_pixbuf
=
gdk_cursor_get_image
(
drag_cursors
[
i
].
cursor
);
if
(
!
cursor_pixbuf
)
cursor_pixbuf
=
g_object_ref
(
drag_cursors
[
i
].
pixbuf
);
...
...
@@ -694,12 +697,10 @@ gtk_drag_get_cursor (GdkDisplay *display,
}
#endif
}
icon_width
=
gdk_pixbuf_get_width
(
info
->
icon_pixbuf
);
icon_height
=
gdk_pixbuf_get_height
(
info
->
icon_pixbuf
);
cursor_width
=
gdk_pixbuf_get_width
(
cursor_pixbuf
);
cursor_height
=
gdk_pixbuf_get_height
(
cursor_pixbuf
);
ref_x
=
MAX
(
hot_x
,
icon_x
);
ref_y
=
MAX
(
hot_y
,
icon_y
);
width
=
ref_x
+
MAX
(
cursor_width
-
hot_x
,
icon_width
-
icon_x
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment