2004-01-26 Federico Mena Quintero <federico@ximian.com> Fix #105497; constify uses of GdkColor. * gdk/gdkgc.c (gdk_gc_set_rgb_fg_color): Constify. (gdk_gc_set_rgb_bg_color): Constify. (gdk_gc_set_foreground): Constify. * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): Constify. * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Constify. * gdk/linux-fb/gdkcursor-fb.c (gdk_cursor_new_from_pixmap): Constify. * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_create_from_data): Constify. * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_create_from_data): Constify. * gdk/linux-fb/gdkpixmap-fb.c (gdk_pixmap_create_from_data): Constify. * gdk/x11/gdkwindow-x11.c (gdk_window_set_background): Constify. * gdk/win32/gdkwindow-win32.c (gdk_window_set_background): Constify. * gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_background): Constify. * gdk/gdkpango.c (gdk_draw_layout_line_with_colors): Constify. (gdk_draw_layout_with_colors): Constify. * gdk/gdkpixmap.c (gdk_pixmap_colormap_new_from_pixbuf): Constify. (gdk_pixmap_colormap_create_from_xpm): Constify. (gdk_pixmap_create_from_xpm): Constify. (gdk_pixmap_colormap_create_from_xpm_d): Constify. (gdk_pixmap_create_from_xpm_d): Constify. * gtk/gtkcellview.c (gtk_cell_view_set_background_color): Constify. * gtk/gtkclist.c (gtk_clist_set_foreground): Constify. (gtk_clist_set_background): Constify. * gtk/gtkcolorbutton.c (gtk_color_button_new_with_color): Constify. (gtk_color_button_set_color): Constify. * gtk/gtkcolorsel.c (gtk_color_selection_set_current_color): Constify and add a check for color != NULL. (gtk_color_selection_get_current_color): Add a check for color != NULL. (gtk_color_selection_set_previous_color): Constify and add a check for color != NULL. (gtk_color_selection_get_previous_color): Add a check for color != NULL. * gtk/gtkctree.c (gtk_ctree_node_set_foreground): Constify. (gtk_ctree_node_set_background): Constify. * gtk/gtktext.c (gtk_text_insert): Constify. (insert_text_property): Constify. (text_properties_equal): Constify. (new_text_property): Constify. * gtk/gtkwidget.c (gtk_widget_modify_color_component): Constify. (gtk_widget_modify_fg): Constify. (gtk_widget_modify_bg): Constify. (gtk_widget_modify_text): Constify. (gtk_widget_modify_base): Constify.
		
			
				
	
	
		
			137 lines
		
	
	
		
			3.3 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			137 lines
		
	
	
		
			3.3 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
#ifndef __GDK_CURSOR_H__
 | 
						|
#define __GDK_CURSOR_H__
 | 
						|
 | 
						|
#include <gdk/gdktypes.h>
 | 
						|
#include <gdk-pixbuf/gdk-pixbuf.h>
 | 
						|
 | 
						|
#ifdef __cplusplus
 | 
						|
extern "C" {
 | 
						|
#endif /* __cplusplus */
 | 
						|
 | 
						|
#define GDK_TYPE_CURSOR (gdk_cursor_get_type ())
 | 
						|
 | 
						|
/* Cursor types.
 | 
						|
 */
 | 
						|
typedef enum
 | 
						|
{
 | 
						|
  GDK_X_CURSOR 		  = 0,
 | 
						|
  GDK_ARROW 		  = 2,
 | 
						|
  GDK_BASED_ARROW_DOWN    = 4,
 | 
						|
  GDK_BASED_ARROW_UP 	  = 6,
 | 
						|
  GDK_BOAT 		  = 8,
 | 
						|
  GDK_BOGOSITY 		  = 10,
 | 
						|
  GDK_BOTTOM_LEFT_CORNER  = 12,
 | 
						|
  GDK_BOTTOM_RIGHT_CORNER = 14,
 | 
						|
  GDK_BOTTOM_SIDE 	  = 16,
 | 
						|
  GDK_BOTTOM_TEE 	  = 18,
 | 
						|
  GDK_BOX_SPIRAL 	  = 20,
 | 
						|
  GDK_CENTER_PTR 	  = 22,
 | 
						|
  GDK_CIRCLE 		  = 24,
 | 
						|
  GDK_CLOCK	 	  = 26,
 | 
						|
  GDK_COFFEE_MUG 	  = 28,
 | 
						|
  GDK_CROSS 		  = 30,
 | 
						|
  GDK_CROSS_REVERSE 	  = 32,
 | 
						|
  GDK_CROSSHAIR 	  = 34,
 | 
						|
  GDK_DIAMOND_CROSS 	  = 36,
 | 
						|
  GDK_DOT 		  = 38,
 | 
						|
  GDK_DOTBOX 		  = 40,
 | 
						|
  GDK_DOUBLE_ARROW 	  = 42,
 | 
						|
  GDK_DRAFT_LARGE 	  = 44,
 | 
						|
  GDK_DRAFT_SMALL 	  = 46,
 | 
						|
  GDK_DRAPED_BOX 	  = 48,
 | 
						|
  GDK_EXCHANGE 		  = 50,
 | 
						|
  GDK_FLEUR 		  = 52,
 | 
						|
  GDK_GOBBLER 		  = 54,
 | 
						|
  GDK_GUMBY 		  = 56,
 | 
						|
  GDK_HAND1 		  = 58,
 | 
						|
  GDK_HAND2 		  = 60,
 | 
						|
  GDK_HEART 		  = 62,
 | 
						|
  GDK_ICON 		  = 64,
 | 
						|
  GDK_IRON_CROSS 	  = 66,
 | 
						|
  GDK_LEFT_PTR 		  = 68,
 | 
						|
  GDK_LEFT_SIDE 	  = 70,
 | 
						|
  GDK_LEFT_TEE 		  = 72,
 | 
						|
  GDK_LEFTBUTTON 	  = 74,
 | 
						|
  GDK_LL_ANGLE 		  = 76,
 | 
						|
  GDK_LR_ANGLE 	 	  = 78,
 | 
						|
  GDK_MAN 		  = 80,
 | 
						|
  GDK_MIDDLEBUTTON 	  = 82,
 | 
						|
  GDK_MOUSE 		  = 84,
 | 
						|
  GDK_PENCIL 		  = 86,
 | 
						|
  GDK_PIRATE 		  = 88,
 | 
						|
  GDK_PLUS 		  = 90,
 | 
						|
  GDK_QUESTION_ARROW 	  = 92,
 | 
						|
  GDK_RIGHT_PTR 	  = 94,
 | 
						|
  GDK_RIGHT_SIDE 	  = 96,
 | 
						|
  GDK_RIGHT_TEE 	  = 98,
 | 
						|
  GDK_RIGHTBUTTON 	  = 100,
 | 
						|
  GDK_RTL_LOGO 		  = 102,
 | 
						|
  GDK_SAILBOAT 		  = 104,
 | 
						|
  GDK_SB_DOWN_ARROW 	  = 106,
 | 
						|
  GDK_SB_H_DOUBLE_ARROW   = 108,
 | 
						|
  GDK_SB_LEFT_ARROW 	  = 110,
 | 
						|
  GDK_SB_RIGHT_ARROW 	  = 112,
 | 
						|
  GDK_SB_UP_ARROW 	  = 114,
 | 
						|
  GDK_SB_V_DOUBLE_ARROW   = 116,
 | 
						|
  GDK_SHUTTLE 		  = 118,
 | 
						|
  GDK_SIZING 		  = 120,
 | 
						|
  GDK_SPIDER		  = 122,
 | 
						|
  GDK_SPRAYCAN 		  = 124,
 | 
						|
  GDK_STAR 		  = 126,
 | 
						|
  GDK_TARGET 		  = 128,
 | 
						|
  GDK_TCROSS 		  = 130,
 | 
						|
  GDK_TOP_LEFT_ARROW 	  = 132,
 | 
						|
  GDK_TOP_LEFT_CORNER 	  = 134,
 | 
						|
  GDK_TOP_RIGHT_CORNER 	  = 136,
 | 
						|
  GDK_TOP_SIDE 		  = 138,
 | 
						|
  GDK_TOP_TEE 		  = 140,
 | 
						|
  GDK_TREK 		  = 142,
 | 
						|
  GDK_UL_ANGLE 		  = 144,
 | 
						|
  GDK_UMBRELLA 		  = 146,
 | 
						|
  GDK_UR_ANGLE 		  = 148,
 | 
						|
  GDK_WATCH 		  = 150,
 | 
						|
  GDK_XTERM 		  = 152,
 | 
						|
  GDK_LAST_CURSOR,
 | 
						|
  GDK_CURSOR_IS_PIXMAP 	= -1
 | 
						|
} GdkCursorType;
 | 
						|
 | 
						|
struct _GdkCursor
 | 
						|
{
 | 
						|
  GdkCursorType type;
 | 
						|
  guint ref_count;
 | 
						|
};
 | 
						|
 | 
						|
/* Cursors
 | 
						|
 */
 | 
						|
 | 
						|
GType      gdk_cursor_get_type           (void);
 | 
						|
 | 
						|
GdkCursor* gdk_cursor_new_for_display	 (GdkDisplay      *display,
 | 
						|
					  GdkCursorType    cursor_type);
 | 
						|
#ifndef GDK_MULTIHEAD_SAFE
 | 
						|
GdkCursor* gdk_cursor_new		 (GdkCursorType	   cursor_type);
 | 
						|
#endif
 | 
						|
GdkCursor* gdk_cursor_new_from_pixmap	 (GdkPixmap	  *source,
 | 
						|
					  GdkPixmap	  *mask,
 | 
						|
					  const GdkColor  *fg,
 | 
						|
					  const GdkColor  *bg,
 | 
						|
					  gint		   x,
 | 
						|
					  gint		   y);
 | 
						|
GdkCursor* gdk_cursor_new_from_pixbuf	 (GdkDisplay      *display,
 | 
						|
					  GdkPixbuf       *pixbuf,
 | 
						|
					  gint             x,
 | 
						|
					  gint             y);
 | 
						|
GdkDisplay* gdk_cursor_get_display	 (GdkCursor	  *cursor);
 | 
						|
GdkCursor*  gdk_cursor_ref               (GdkCursor       *cursor);
 | 
						|
void        gdk_cursor_unref             (GdkCursor       *cursor);
 | 
						|
 | 
						|
#ifndef GDK_DISABLE_DEPRECATED
 | 
						|
#define gdk_cursor_destroy             gdk_cursor_unref
 | 
						|
#endif /* GDK_DISABLE_DEPRECATED */
 | 
						|
 | 
						|
#ifdef __cplusplus
 | 
						|
}
 | 
						|
#endif /* __cplusplus */
 | 
						|
 | 
						|
#endif /* __GDK_CURSOR_H__ */
 |