1 --- widget/src/gtk2/nsWindow.cpp 2006-01-09 05:48:56.000000000 +0000
2 +++ widget/src/gtk2/nsWindow.cpp 2006-08-09 18:51:41.000000000 +0000
3 @@ -3512,15 +3512,19 @@
4 gdkcursor = gdk_cursor_new(GDK_FLEUR);
7 + gdkcursor = gdk_cursor_new_from_name(gdk_display_get_default(), "help");
8 newType = MOZ_CURSOR_QUESTION_ARROW;
10 case eCursor_copy: // CSS3
11 + gdkcursor = gdk_cursor_new_from_name(gdk_display_get_default(), "copy");
12 newType = MOZ_CURSOR_COPY;
15 + gdkcursor = gdk_cursor_new_from_name(gdk_display_get_default(), "alias");
16 newType = MOZ_CURSOR_ALIAS;
18 case eCursor_context_menu:
19 + gdkcursor = gdk_cursor_new_from_name(gdk_display_get_default(), "context-menu");
20 newType = MOZ_CURSOR_CONTEXT_MENU;
24 newType = MOZ_CURSOR_HAND_GRABBING;
26 case eCursor_spinning:
27 + gdkcursor = gdk_cursor_new_from_name(gdk_display_get_default(), "wait"); // or maybe "progress" ?
28 newType = MOZ_CURSOR_SPINNING;
31 @@ -3542,25 +3547,34 @@
32 newType = MOZ_CURSOR_ZOOM_OUT;
34 case eCursor_not_allowed:
35 + gdkcursor = gdk_cursor_new_from_name(gdk_display_get_default(), "not-allowed");
36 + newType = MOZ_CURSOR_NOT_ALLOWED;
39 + gdkcursor = gdk_cursor_new_from_name(gdk_display_get_default(), "no-drop");
40 newType = MOZ_CURSOR_NOT_ALLOWED;
42 case eCursor_col_resize:
43 + gdkcursor = gdk_cursor_new_from_name(gdk_display_get_default(), "col-resize");
44 newType = MOZ_CURSOR_COL_RESIZE;
46 case eCursor_row_resize:
47 + gdkcursor = gdk_cursor_new_from_name(gdk_display_get_default(), "row-resize");
48 newType = MOZ_CURSOR_ROW_RESIZE;
50 case eCursor_vertical_text:
51 + gdkcursor = gdk_cursor_new_from_name(gdk_display_get_default(), "vertical-text");
52 newType = MOZ_CURSOR_VERTICAL_TEXT;
54 case eCursor_all_scroll:
55 gdkcursor = gdk_cursor_new(GDK_FLEUR);
57 case eCursor_nesw_resize:
58 + gdkcursor = gdk_cursor_new_from_name(gdk_display_get_default(), "nesw-resize");
59 newType = MOZ_CURSOR_NESW_RESIZE;
61 case eCursor_nwse_resize:
62 + gdkcursor = gdk_cursor_new_from_name(gdk_display_get_default(), "nwse-resize");
63 newType = MOZ_CURSOR_NWSE_RESIZE;
65 case eCursor_ns_resize:
68 // if by now we dont have a xcursor, this means we have to make a
70 - if (newType != 0xff) {
71 + if (!gdkcursor && newType != 0xff) {
72 gdk_color_parse("#000000", &fg);
73 gdk_color_parse("#ffffff", &bg);