Changeset 442
- Timestamp:
- 11/26/06 04:59:31 (2 years ago)
- Files:
-
- sweep/trunk/pixmaps/cursor-closedhand.xbm (added)
- sweep/trunk/pixmaps/cursor-closedhand_mask.xbm (added)
- sweep/trunk/pixmaps/cursor-openhand.xbm (added)
- sweep/trunk/pixmaps/cursor-openhand_mask.xbm (added)
- sweep/trunk/src/cursors.c (modified) (5 diffs)
- sweep/trunk/src/cursors.h (modified) (1 diff)
- sweep/trunk/src/sample-display.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
sweep/trunk/src/cursors.c
r438 r442 41 41 #include "../pixmaps/zoom_out.xbm" 42 42 #include "../pixmaps/zoom_out_mask.xbm" 43 #include "../pixmaps/cursor-openhand.xbm" 44 #include "../pixmaps/cursor-openhand_mask.xbm" 45 #include "../pixmaps/cursor-closedhand.xbm" 46 #include "../pixmaps/cursor-closedhand_mask.xbm" 43 47 44 48 GdkCursor * sweep_cursors[SWEEP_CURSOR_MAX]; … … 100 104 sweep_cursors[SWEEP_CURSOR_PENCIL] = gdk_cursor_new (GDK_PENCIL); 101 105 sweep_cursors[SWEEP_CURSOR_NOISE] = gdk_cursor_new (GDK_SPRAYCAN); 102 sweep_cursors[SWEEP_CURSOR_HAND] = gdk_cursor_new (GDK_HAND1); 106 103 107 104 108 create_bitmap_and_mask_from_xpm (&bitmap, &mask, horiz_xpm); … … 107 111 gdk_cursor_new_from_pixmap (bitmap, mask, &white, &black, 8, 8); 108 112 113 109 114 create_bitmap_and_mask_from_xpm (&bitmap, &mask, horiz_plus_xpm); 110 115 … … 112 117 gdk_cursor_new_from_pixmap (bitmap, mask, &white, &black, 8, 8); 113 118 119 114 120 create_bitmap_and_mask_from_xpm (&bitmap, &mask, horiz_minus_xpm); 115 121 116 122 sweep_cursors[SWEEP_CURSOR_HORIZ_MINUS] = 117 123 gdk_cursor_new_from_pixmap (bitmap, mask, &white, &black, 8, 8); 124 118 125 119 126 bitmap = … … 163 170 164 171 172 bitmap = 173 gdk_bitmap_create_from_data (NULL, (const gchar *) cursor_openhand_bits, 174 cursor_openhand_width, cursor_openhand_height); 175 mask = 176 gdk_bitmap_create_from_data (NULL, (const gchar *) cursor_openhand_mask_bits, 177 cursor_openhand_mask_width, cursor_openhand_mask_height); 178 179 sweep_cursors[SWEEP_CURSOR_HAND_OPEN] = 180 gdk_cursor_new_from_pixmap (bitmap, mask, &black, &white, 181 cursor_openhand_x_hot, cursor_openhand_y_hot); 182 183 184 bitmap = 185 gdk_bitmap_create_from_data (NULL, cursor_closedhand_bits, 186 cursor_closedhand_width, cursor_closedhand_height); 187 mask = 188 gdk_bitmap_create_from_data (NULL, cursor_closedhand_mask_bits, 189 cursor_closedhand_mask_width, cursor_closedhand_mask_height); 190 191 sweep_cursors[SWEEP_CURSOR_HAND_CLOSE] = 192 gdk_cursor_new_from_pixmap (bitmap, mask, &black, &white, 193 cursor_closedhand_x_hot, cursor_closedhand_y_hot); 194 195 165 196 } sweep/trunk/src/cursors.h
r438 r442 33 33 SWEEP_CURSOR_PENCIL, 34 34 SWEEP_CURSOR_NOISE, 35 SWEEP_CURSOR_HAND, 35 SWEEP_CURSOR_HAND_OPEN, 36 SWEEP_CURSOR_HAND_CLOSE, 36 37 SWEEP_CURSOR_MAX 37 38 }; sweep/trunk/src/sample-display.c
r441 r442 487 487 case TOOL_NOISE: 488 488 cursor = sweep_cursors[SWEEP_CURSOR_NOISE]; 489 break; 490 case TOOL_HAND: 491 cursor = sweep_cursors[SWEEP_CURSOR_HAND_OPEN]; 489 492 break; 490 493 default: … … 2209 2212 s->selecting = SELECTING_HAND; 2210 2213 s->view->hand_offset = x; 2211 SET_CURSOR(widget, HAND );2214 SET_CURSOR(widget, HAND_CLOSE); 2212 2215 sample_display_handle_hand_motion (s, x, y); 2213 2216 break;
