mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 21:21:21 +00:00
Amend deprecation warnings for GtkStyle API
Not everything has a replacement in the API, as the drawing model changed considerably; nevertheless, this should help out developers porting from the deprecated GtkStyle API.
This commit is contained in:
parent
97697701f7
commit
dc41c59006
@ -451,7 +451,7 @@ GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext)
|
|||||||
void gtk_style_set_background (GtkStyle *style,
|
void gtk_style_set_background (GtkStyle *style,
|
||||||
GdkWindow *window,
|
GdkWindow *window,
|
||||||
GtkStateType state_type);
|
GtkStateType state_type);
|
||||||
GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext)
|
GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext and gtk_render_background)
|
||||||
void gtk_style_apply_default_background (GtkStyle *style,
|
void gtk_style_apply_default_background (GtkStyle *style,
|
||||||
cairo_t *cr,
|
cairo_t *cr,
|
||||||
GdkWindow *window,
|
GdkWindow *window,
|
||||||
@ -461,15 +461,15 @@ void gtk_style_apply_default_background (GtkStyle *style,
|
|||||||
gint width,
|
gint width,
|
||||||
gint height);
|
gint height);
|
||||||
|
|
||||||
GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext)
|
GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext and a style class)
|
||||||
GtkIconSet* gtk_style_lookup_icon_set (GtkStyle *style,
|
GtkIconSet* gtk_style_lookup_icon_set (GtkStyle *style,
|
||||||
const gchar *stock_id);
|
const gchar *stock_id);
|
||||||
GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext)
|
GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext and a style class)
|
||||||
gboolean gtk_style_lookup_color (GtkStyle *style,
|
gboolean gtk_style_lookup_color (GtkStyle *style,
|
||||||
const gchar *color_name,
|
const gchar *color_name,
|
||||||
GdkColor *color);
|
GdkColor *color);
|
||||||
|
|
||||||
GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext)
|
GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext and gtk_render_icon)
|
||||||
GdkPixbuf* gtk_style_render_icon (GtkStyle *style,
|
GdkPixbuf* gtk_style_render_icon (GtkStyle *style,
|
||||||
const GtkIconSource *source,
|
const GtkIconSource *source,
|
||||||
GtkTextDirection direction,
|
GtkTextDirection direction,
|
||||||
@ -478,7 +478,7 @@ GdkPixbuf* gtk_style_render_icon (GtkStyle *style,
|
|||||||
GtkWidget *widget,
|
GtkWidget *widget,
|
||||||
const gchar *detail);
|
const gchar *detail);
|
||||||
|
|
||||||
GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext)
|
GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext and gtk_render_line)
|
||||||
void gtk_paint_hline (GtkStyle *style,
|
void gtk_paint_hline (GtkStyle *style,
|
||||||
cairo_t *cr,
|
cairo_t *cr,
|
||||||
GtkStateType state_type,
|
GtkStateType state_type,
|
||||||
@ -487,7 +487,7 @@ void gtk_paint_hline (GtkStyle *style,
|
|||||||
gint x1,
|
gint x1,
|
||||||
gint x2,
|
gint x2,
|
||||||
gint y);
|
gint y);
|
||||||
GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext)
|
GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext and gtk_render_line)
|
||||||
void gtk_paint_vline (GtkStyle *style,
|
void gtk_paint_vline (GtkStyle *style,
|
||||||
cairo_t *cr,
|
cairo_t *cr,
|
||||||
GtkStateType state_type,
|
GtkStateType state_type,
|
||||||
@ -496,7 +496,7 @@ void gtk_paint_vline (GtkStyle *style,
|
|||||||
gint y1_,
|
gint y1_,
|
||||||
gint y2_,
|
gint y2_,
|
||||||
gint x);
|
gint x);
|
||||||
GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext)
|
GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext and gtk_render_background)
|
||||||
void gtk_paint_shadow (GtkStyle *style,
|
void gtk_paint_shadow (GtkStyle *style,
|
||||||
cairo_t *cr,
|
cairo_t *cr,
|
||||||
GtkStateType state_type,
|
GtkStateType state_type,
|
||||||
@ -507,7 +507,7 @@ void gtk_paint_shadow (GtkStyle *style,
|
|||||||
gint y,
|
gint y,
|
||||||
gint width,
|
gint width,
|
||||||
gint height);
|
gint height);
|
||||||
GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext)
|
GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext and gtk_render_arrow)
|
||||||
void gtk_paint_arrow (GtkStyle *style,
|
void gtk_paint_arrow (GtkStyle *style,
|
||||||
cairo_t *cr,
|
cairo_t *cr,
|
||||||
GtkStateType state_type,
|
GtkStateType state_type,
|
||||||
@ -520,7 +520,7 @@ void gtk_paint_arrow (GtkStyle *style,
|
|||||||
gint y,
|
gint y,
|
||||||
gint width,
|
gint width,
|
||||||
gint height);
|
gint height);
|
||||||
GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext)
|
GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext and gtk_render_icon)
|
||||||
void gtk_paint_diamond (GtkStyle *style,
|
void gtk_paint_diamond (GtkStyle *style,
|
||||||
cairo_t *cr,
|
cairo_t *cr,
|
||||||
GtkStateType state_type,
|
GtkStateType state_type,
|
||||||
@ -531,7 +531,7 @@ void gtk_paint_diamond (GtkStyle *style,
|
|||||||
gint y,
|
gint y,
|
||||||
gint width,
|
gint width,
|
||||||
gint height);
|
gint height);
|
||||||
GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext)
|
GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext and gtk_render_frame)
|
||||||
void gtk_paint_box (GtkStyle *style,
|
void gtk_paint_box (GtkStyle *style,
|
||||||
cairo_t *cr,
|
cairo_t *cr,
|
||||||
GtkStateType state_type,
|
GtkStateType state_type,
|
||||||
@ -542,7 +542,7 @@ void gtk_paint_box (GtkStyle *style,
|
|||||||
gint y,
|
gint y,
|
||||||
gint width,
|
gint width,
|
||||||
gint height);
|
gint height);
|
||||||
GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext)
|
GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext and gtk_render_background)
|
||||||
void gtk_paint_flat_box (GtkStyle *style,
|
void gtk_paint_flat_box (GtkStyle *style,
|
||||||
cairo_t *cr,
|
cairo_t *cr,
|
||||||
GtkStateType state_type,
|
GtkStateType state_type,
|
||||||
@ -553,7 +553,7 @@ void gtk_paint_flat_box (GtkStyle *style,
|
|||||||
gint y,
|
gint y,
|
||||||
gint width,
|
gint width,
|
||||||
gint height);
|
gint height);
|
||||||
GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext)
|
GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext and gtk_render_check)
|
||||||
void gtk_paint_check (GtkStyle *style,
|
void gtk_paint_check (GtkStyle *style,
|
||||||
cairo_t *cr,
|
cairo_t *cr,
|
||||||
GtkStateType state_type,
|
GtkStateType state_type,
|
||||||
@ -564,7 +564,7 @@ void gtk_paint_check (GtkStyle *style,
|
|||||||
gint y,
|
gint y,
|
||||||
gint width,
|
gint width,
|
||||||
gint height);
|
gint height);
|
||||||
GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext)
|
GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext and gtk_render_option)
|
||||||
void gtk_paint_option (GtkStyle *style,
|
void gtk_paint_option (GtkStyle *style,
|
||||||
cairo_t *cr,
|
cairo_t *cr,
|
||||||
GtkStateType state_type,
|
GtkStateType state_type,
|
||||||
@ -575,7 +575,7 @@ void gtk_paint_option (GtkStyle *style,
|
|||||||
gint y,
|
gint y,
|
||||||
gint width,
|
gint width,
|
||||||
gint height);
|
gint height);
|
||||||
GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext)
|
GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext and gtk_render_background)
|
||||||
void gtk_paint_tab (GtkStyle *style,
|
void gtk_paint_tab (GtkStyle *style,
|
||||||
cairo_t *cr,
|
cairo_t *cr,
|
||||||
GtkStateType state_type,
|
GtkStateType state_type,
|
||||||
@ -614,7 +614,7 @@ void gtk_paint_box_gap (GtkStyle *style,
|
|||||||
GtkPositionType gap_side,
|
GtkPositionType gap_side,
|
||||||
gint gap_x,
|
gint gap_x,
|
||||||
gint gap_width);
|
gint gap_width);
|
||||||
GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext)
|
GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext and gtk_render_extension)
|
||||||
void gtk_paint_extension (GtkStyle *style,
|
void gtk_paint_extension (GtkStyle *style,
|
||||||
cairo_t *cr,
|
cairo_t *cr,
|
||||||
GtkStateType state_type,
|
GtkStateType state_type,
|
||||||
@ -626,7 +626,7 @@ void gtk_paint_extension (GtkStyle *style,
|
|||||||
gint width,
|
gint width,
|
||||||
gint height,
|
gint height,
|
||||||
GtkPositionType gap_side);
|
GtkPositionType gap_side);
|
||||||
GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext)
|
GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext and gtk_render_focus)
|
||||||
void gtk_paint_focus (GtkStyle *style,
|
void gtk_paint_focus (GtkStyle *style,
|
||||||
cairo_t *cr,
|
cairo_t *cr,
|
||||||
GtkStateType state_type,
|
GtkStateType state_type,
|
||||||
@ -636,7 +636,7 @@ void gtk_paint_focus (GtkStyle *style,
|
|||||||
gint y,
|
gint y,
|
||||||
gint width,
|
gint width,
|
||||||
gint height);
|
gint height);
|
||||||
GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext)
|
GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext and gtk_render_focus)
|
||||||
void gtk_paint_slider (GtkStyle *style,
|
void gtk_paint_slider (GtkStyle *style,
|
||||||
cairo_t *cr,
|
cairo_t *cr,
|
||||||
GtkStateType state_type,
|
GtkStateType state_type,
|
||||||
@ -648,7 +648,7 @@ void gtk_paint_slider (GtkStyle *style,
|
|||||||
gint width,
|
gint width,
|
||||||
gint height,
|
gint height,
|
||||||
GtkOrientation orientation);
|
GtkOrientation orientation);
|
||||||
GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext)
|
GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext and gtk_render_handle)
|
||||||
void gtk_paint_handle (GtkStyle *style,
|
void gtk_paint_handle (GtkStyle *style,
|
||||||
cairo_t *cr,
|
cairo_t *cr,
|
||||||
GtkStateType state_type,
|
GtkStateType state_type,
|
||||||
@ -660,7 +660,7 @@ void gtk_paint_handle (GtkStyle *style,
|
|||||||
gint width,
|
gint width,
|
||||||
gint height,
|
gint height,
|
||||||
GtkOrientation orientation);
|
GtkOrientation orientation);
|
||||||
GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext)
|
GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext and gtk_render_expander)
|
||||||
void gtk_paint_expander (GtkStyle *style,
|
void gtk_paint_expander (GtkStyle *style,
|
||||||
cairo_t *cr,
|
cairo_t *cr,
|
||||||
GtkStateType state_type,
|
GtkStateType state_type,
|
||||||
@ -669,7 +669,7 @@ void gtk_paint_expander (GtkStyle *style,
|
|||||||
gint x,
|
gint x,
|
||||||
gint y,
|
gint y,
|
||||||
GtkExpanderStyle expander_style);
|
GtkExpanderStyle expander_style);
|
||||||
GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext)
|
GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext and gtk_render_layout)
|
||||||
void gtk_paint_layout (GtkStyle *style,
|
void gtk_paint_layout (GtkStyle *style,
|
||||||
cairo_t *cr,
|
cairo_t *cr,
|
||||||
GtkStateType state_type,
|
GtkStateType state_type,
|
||||||
@ -679,7 +679,7 @@ void gtk_paint_layout (GtkStyle *style,
|
|||||||
gint x,
|
gint x,
|
||||||
gint y,
|
gint y,
|
||||||
PangoLayout *layout);
|
PangoLayout *layout);
|
||||||
GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext)
|
GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext and gtk_render_handle)
|
||||||
void gtk_paint_resize_grip (GtkStyle *style,
|
void gtk_paint_resize_grip (GtkStyle *style,
|
||||||
cairo_t *cr,
|
cairo_t *cr,
|
||||||
GtkStateType state_type,
|
GtkStateType state_type,
|
||||||
@ -690,7 +690,7 @@ void gtk_paint_resize_grip (GtkStyle *style,
|
|||||||
gint y,
|
gint y,
|
||||||
gint width,
|
gint width,
|
||||||
gint height);
|
gint height);
|
||||||
GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext)
|
GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext and gtk_render_icon)
|
||||||
void gtk_paint_spinner (GtkStyle *style,
|
void gtk_paint_spinner (GtkStyle *style,
|
||||||
cairo_t *cr,
|
cairo_t *cr,
|
||||||
GtkStateType state_type,
|
GtkStateType state_type,
|
||||||
@ -702,17 +702,17 @@ void gtk_paint_spinner (GtkStyle *style,
|
|||||||
gint width,
|
gint width,
|
||||||
gint height);
|
gint height);
|
||||||
|
|
||||||
GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext)
|
GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext and gtk_style_context_get_property)
|
||||||
void gtk_style_get_style_property (GtkStyle *style,
|
void gtk_style_get_style_property (GtkStyle *style,
|
||||||
GType widget_type,
|
GType widget_type,
|
||||||
const gchar *property_name,
|
const gchar *property_name,
|
||||||
GValue *value);
|
GValue *value);
|
||||||
GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext)
|
GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext and gtk_style_context_get_property)
|
||||||
void gtk_style_get_valist (GtkStyle *style,
|
void gtk_style_get_valist (GtkStyle *style,
|
||||||
GType widget_type,
|
GType widget_type,
|
||||||
const gchar *first_property_name,
|
const gchar *first_property_name,
|
||||||
va_list var_args);
|
va_list var_args);
|
||||||
GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext)
|
GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext and gtk_style_context_get_property)
|
||||||
void gtk_style_get (GtkStyle *style,
|
void gtk_style_get (GtkStyle *style,
|
||||||
GType widget_type,
|
GType widget_type,
|
||||||
const gchar *first_property_name,
|
const gchar *first_property_name,
|
||||||
@ -753,15 +753,15 @@ GDK_DEPRECATED_IN_3_0_FOR(gtk_widget_override_background_color)
|
|||||||
void gtk_widget_modify_bg (GtkWidget *widget,
|
void gtk_widget_modify_bg (GtkWidget *widget,
|
||||||
GtkStateType state,
|
GtkStateType state,
|
||||||
const GdkColor *color);
|
const GdkColor *color);
|
||||||
GDK_DEPRECATED_IN_3_0
|
GDK_DEPRECATED_IN_3_0_FOR(CSS style classes)
|
||||||
void gtk_widget_modify_text (GtkWidget *widget,
|
void gtk_widget_modify_text (GtkWidget *widget,
|
||||||
GtkStateType state,
|
GtkStateType state,
|
||||||
const GdkColor *color);
|
const GdkColor *color);
|
||||||
GDK_DEPRECATED_IN_3_0
|
GDK_DEPRECATED_IN_3_0_FOR(CSS style classes)
|
||||||
void gtk_widget_modify_base (GtkWidget *widget,
|
void gtk_widget_modify_base (GtkWidget *widget,
|
||||||
GtkStateType state,
|
GtkStateType state,
|
||||||
const GdkColor *color);
|
const GdkColor *color);
|
||||||
GDK_DEPRECATED_IN_3_0
|
GDK_DEPRECATED_IN_3_0_FOR(CSS style classes)
|
||||||
void gtk_widget_modify_cursor (GtkWidget *widget,
|
void gtk_widget_modify_cursor (GtkWidget *widget,
|
||||||
const GdkColor *primary,
|
const GdkColor *primary,
|
||||||
const GdkColor *secondary);
|
const GdkColor *secondary);
|
||||||
|
Loading…
Reference in New Issue
Block a user