[gtk+/rendering-cleanup-next: 149/153] API: Rename gtk_cairo_paint_*() to gtk_paint_*()
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/rendering-cleanup-next: 149/153] API: Rename gtk_cairo_paint_*() to gtk_paint_*()
- Date: Sat, 11 Sep 2010 05:03:58 +0000 (UTC)
commit fae9ab56d5175cd3991c6b037eb2e0447461f115
Author: Benjamin Otte <otte redhat com>
Date: Sat Sep 11 01:30:27 2010 +0200
API: Rename gtk_cairo_paint_*() to gtk_paint_*()
Large patch, but just renaming.
Indentation should still mostly be correct because I took care of
keeping the indentation for this function name.
demos/gtk-demo/offscreen_window.c | 2 +-
demos/gtk-demo/offscreen_window2.c | 2 +-
gtk/gtkaccellabel.c | 2 +-
gtk/gtkarrow.c | 2 +-
gtk/gtkbutton.c | 6 +-
gtk/gtkcalendar.c | 10 +-
gtk/gtkcellrendererprogress.c | 10 +-
gtk/gtkcellrendererspinner.c | 2 +-
gtk/gtkcellrenderertext.c | 2 +-
gtk/gtkcellrenderertoggle.c | 4 +-
gtk/gtkcheckbutton.c | 8 +-
gtk/gtkcheckmenuitem.c | 4 +-
gtk/gtkcombobox.c | 2 +-
gtk/gtkdnd-quartz.c | 2 +-
gtk/gtkdnd.c | 2 +-
gtk/gtkentry.c | 10 +-
gtk/gtkeventbox.c | 2 +-
gtk/gtkexpander.c | 6 +-
gtk/gtkfilechooserentry.c | 2 +-
gtk/gtkframe.c | 6 +-
gtk/gtkhandlebox.c | 10 +-
gtk/gtkhsv.c | 4 +-
gtk/gtkiconview.c | 16 +-
gtk/gtkinfobar.c | 2 +-
gtk/gtklabel.c | 4 +-
gtk/gtkmenu.c | 12 +-
gtk/gtkmenubar.c | 2 +-
gtk/gtkmenuitem.c | 8 +-
gtk/gtknotebook.c | 12 +-
gtk/gtkpaned.c | 2 +-
gtk/gtkprogressbar.c | 12 +-
gtk/gtkradiobutton.c | 4 +-
gtk/gtkrange.c | 14 +-
gtk/gtkruler.c | 6 +-
gtk/gtkscale.c | 10 +-
gtk/gtkscrolledwindow.c | 2 +-
gtk/gtkseparator.c | 8 +-
gtk/gtkspinbutton.c | 6 +-
gtk/gtkspinner.c | 2 +-
gtk/gtkstatusbar.c | 2 +-
gtk/gtkstyle.c | 458 ++++++++++++++++++------------------
gtk/gtkstyle.h | 40 ++--
gtk/gtktearoffmenuitem.c | 6 +-
gtk/gtktextview.c | 2 +-
gtk/gtktoolbar.c | 10 +-
gtk/gtktoolitemgroup.c | 2 +-
gtk/gtktooltip.c | 2 +-
gtk/gtktrayicon-x11.c | 2 +-
gtk/gtktreeview.c | 18 +-
gtk/gtktreeviewcolumn.c | 2 +-
gtk/gtkviewport.c | 4 +-
gtk/gtkwindow.c | 2 +-
tests/gtkoffscreenbox.c | 4 +-
tests/testgtk.c | 2 +-
54 files changed, 389 insertions(+), 389 deletions(-)
---
diff --git a/demos/gtk-demo/offscreen_window.c b/demos/gtk-demo/offscreen_window.c
index 5d76bd7..9ac1670 100644
--- a/demos/gtk-demo/offscreen_window.c
+++ b/demos/gtk-demo/offscreen_window.c
@@ -516,7 +516,7 @@ gtk_rotated_bin_draw (GtkWidget *widget,
{
gdk_drawable_get_size (bin->offscreen_window, &width, &height);
- gtk_cairo_paint_flat_box (gtk_widget_get_style (widget), cr,
+ gtk_paint_flat_box (gtk_widget_get_style (widget), cr,
GTK_STATE_NORMAL, GTK_SHADOW_NONE,
widget, "blah",
0, 0, width, height);
diff --git a/demos/gtk-demo/offscreen_window2.c b/demos/gtk-demo/offscreen_window2.c
index f3515dd..b1c4f2d 100644
--- a/demos/gtk-demo/offscreen_window2.c
+++ b/demos/gtk-demo/offscreen_window2.c
@@ -426,7 +426,7 @@ gtk_mirror_bin_draw (GtkWidget *widget,
{
gdk_drawable_get_size (bin->offscreen_window, &width, &height);
- gtk_cairo_paint_flat_box (gtk_widget_get_style (widget), cr,
+ gtk_paint_flat_box (gtk_widget_get_style (widget), cr,
GTK_STATE_NORMAL, GTK_SHADOW_NONE,
widget, "blah",
0, 0, width, height);
diff --git a/gtk/gtkaccellabel.c b/gtk/gtkaccellabel.c
index 6c7e3ba..85b1b07 100644
--- a/gtk/gtkaccellabel.c
+++ b/gtk/gtkaccellabel.c
@@ -460,7 +460,7 @@ gtk_accel_label_draw (GtkWidget *widget,
y += get_first_baseline (label_layout) - get_first_baseline (accel_layout) - allocation.y;
- gtk_cairo_paint_layout (gtk_widget_get_style (widget),
+ gtk_paint_layout (gtk_widget_get_style (widget),
cr,
gtk_widget_get_state (widget),
FALSE,
diff --git a/gtk/gtkarrow.c b/gtk/gtkarrow.c
index 4ba9a16..da9e924 100644
--- a/gtk/gtkarrow.c
+++ b/gtk/gtkarrow.c
@@ -365,7 +365,7 @@ gtk_arrow_draw (GtkWidget *widget,
shadow_type = GTK_SHADOW_ETCHED_IN;
}
- gtk_cairo_paint_arrow (gtk_widget_get_style (widget), cr,
+ gtk_paint_arrow (gtk_widget_get_style (widget), cr,
state, shadow_type,
widget, "arrow",
effective_arrow_type, TRUE,
diff --git a/gtk/gtkbutton.c b/gtk/gtkbutton.c
index 2dc7f66..66a5f55 100644
--- a/gtk/gtkbutton.c
+++ b/gtk/gtkbutton.c
@@ -1580,7 +1580,7 @@ _gtk_button_paint (GtkButton *button,
if (gtk_widget_has_default (widget) &&
GTK_BUTTON (widget)->relief == GTK_RELIEF_NORMAL)
{
- gtk_cairo_paint_box (style, cr,
+ gtk_paint_box (style, cr,
GTK_STATE_NORMAL, GTK_SHADOW_IN,
widget, "buttondefault",
x, y, width, height);
@@ -1608,7 +1608,7 @@ _gtk_button_paint (GtkButton *button,
if (button->relief != GTK_RELIEF_NONE || button->depressed ||
gtk_widget_get_state(widget) == GTK_STATE_PRELIGHT)
- gtk_cairo_paint_box (style, cr,
+ gtk_paint_box (style, cr,
state_type,
shadow_type, widget, "button",
x, y, width, height);
@@ -1646,7 +1646,7 @@ _gtk_button_paint (GtkButton *button,
y += child_displacement_y;
}
- gtk_cairo_paint_focus (style, cr,
+ gtk_paint_focus (style, cr,
gtk_widget_get_state (widget),
widget, "button",
x, y, width, height);
diff --git a/gtk/gtkcalendar.c b/gtk/gtkcalendar.c
index f648869..6423763 100644
--- a/gtk/gtkcalendar.c
+++ b/gtk/gtkcalendar.c
@@ -2345,7 +2345,7 @@ calendar_paint_header (GtkCalendar *calendar, cairo_t *cr)
max_month_width = priv->max_month_width;
max_year_width = priv->max_year_width;
- gtk_cairo_paint_shadow (style, cr,
+ gtk_paint_shadow (style, cr,
GTK_STATE_NORMAL, GTK_SHADOW_OUT,
widget, "calendar",
0, 0, header_width, priv->header_h);
@@ -2816,7 +2816,7 @@ calendar_paint_day (GtkCalendar *calendar,
else
state = GTK_STATE_NORMAL;
- gtk_cairo_paint_focus (style, cr,
+ gtk_paint_focus (style, cr,
state, widget, "calendar-day",
day_rect.x, day_rect.y,
day_rect.width, day_rect.height);
@@ -2891,12 +2891,12 @@ calendar_paint_arrow (GtkCalendar *calendar,
gdk_drawable_get_size (window, &width, &height);
if (arrow == ARROW_MONTH_LEFT || arrow == ARROW_YEAR_LEFT)
- gtk_cairo_paint_arrow (style, cr, state,
+ gtk_paint_arrow (style, cr, state,
GTK_SHADOW_OUT, widget, "calendar",
GTK_ARROW_LEFT, TRUE,
width/2 - 3, height/2 - 4, 8, 8);
else
- gtk_cairo_paint_arrow (style, cr, state,
+ gtk_paint_arrow (style, cr, state,
GTK_SHADOW_OUT, widget, "calendar",
GTK_ARROW_RIGHT, TRUE,
width/2 - 4, height/2 - 4, 8, 8);
@@ -2917,7 +2917,7 @@ gtk_calendar_draw (GtkWidget *widget,
if (gtk_cairo_should_draw_window (cr, gtk_widget_get_window (widget)))
{
- gtk_cairo_paint_shadow (gtk_widget_get_style (widget), cr,
+ gtk_paint_shadow (gtk_widget_get_style (widget), cr,
gtk_widget_get_state (widget), GTK_SHADOW_IN,
widget, "calendar",
0, 0, width, height);
diff --git a/gtk/gtkcellrendererprogress.c b/gtk/gtkcellrendererprogress.c
index f9cfba1..486075d 100644
--- a/gtk/gtkcellrendererprogress.c
+++ b/gtk/gtkcellrendererprogress.c
@@ -557,7 +557,7 @@ gtk_cell_renderer_progress_render (GtkCellRenderer *cell,
* but some engines don't paint anything with that detail for
* non-GtkProgressBar widgets.
*/
- gtk_cairo_paint_box (style,
+ gtk_paint_box (style,
cr,
GTK_STATE_NORMAL, GTK_SHADOW_IN,
widget, NULL,
@@ -604,7 +604,7 @@ gtk_cell_renderer_progress_render (GtkCellRenderer *cell,
clip.y = bar_position;
}
- gtk_cairo_paint_box (style,
+ gtk_paint_box (style,
cr,
GTK_STATE_SELECTED, GTK_SHADOW_OUT,
widget, "bar",
@@ -633,7 +633,7 @@ gtk_cell_renderer_progress_render (GtkCellRenderer *cell,
gdk_cairo_rectangle (cr, &clip);
cairo_clip (cr);
- gtk_cairo_paint_layout (style, cr,
+ gtk_paint_layout (style, cr,
GTK_STATE_SELECTED,
FALSE, widget, "progressbar",
x_pos, y_pos,
@@ -658,7 +658,7 @@ gtk_cell_renderer_progress_render (GtkCellRenderer *cell,
gdk_cairo_rectangle (cr, &clip);
cairo_clip (cr);
- gtk_cairo_paint_layout (style, cr,
+ gtk_paint_layout (style, cr,
GTK_STATE_NORMAL,
FALSE, widget, "progressbar",
x_pos, y_pos,
@@ -684,7 +684,7 @@ gtk_cell_renderer_progress_render (GtkCellRenderer *cell,
gdk_cairo_rectangle (cr, &clip);
cairo_clip (cr);
- gtk_cairo_paint_layout (style, cr,
+ gtk_paint_layout (style, cr,
GTK_STATE_NORMAL,
FALSE, widget, "progressbar",
x_pos, y_pos,
diff --git a/gtk/gtkcellrendererspinner.c b/gtk/gtkcellrendererspinner.c
index 2a0ad01..843d90f 100644
--- a/gtk/gtkcellrendererspinner.c
+++ b/gtk/gtkcellrendererspinner.c
@@ -371,7 +371,7 @@ gtk_cell_renderer_spinner_render (GtkCellRenderer *cellr,
state = GTK_STATE_PRELIGHT;
}
- gtk_cairo_paint_spinner (gtk_widget_get_style (widget),
+ gtk_paint_spinner (gtk_widget_get_style (widget),
cr,
state,
widget,
diff --git a/gtk/gtkcellrenderertext.c b/gtk/gtkcellrenderertext.c
index 0912c3e..e38aad0 100644
--- a/gtk/gtkcellrenderertext.c
+++ b/gtk/gtkcellrenderertext.c
@@ -1750,7 +1750,7 @@ gtk_cell_renderer_text_render (GtkCellRenderer *cell,
else if (priv->wrap_width == -1)
pango_layout_set_width (layout, -1);
- gtk_cairo_paint_layout (gtk_widget_get_style (widget),
+ gtk_paint_layout (gtk_widget_get_style (widget),
cr,
state,
TRUE,
diff --git a/gtk/gtkcellrenderertoggle.c b/gtk/gtkcellrenderertoggle.c
index e7433f2..d0e8f3a 100644
--- a/gtk/gtkcellrenderertoggle.c
+++ b/gtk/gtkcellrenderertoggle.c
@@ -374,7 +374,7 @@ gtk_cell_renderer_toggle_render (GtkCellRenderer *cell,
if (priv->radio)
{
- gtk_cairo_paint_option (gtk_widget_get_style (widget),
+ gtk_paint_option (gtk_widget_get_style (widget),
cr,
state, shadow,
widget, "cellradio",
@@ -384,7 +384,7 @@ gtk_cell_renderer_toggle_render (GtkCellRenderer *cell,
}
else
{
- gtk_cairo_paint_check (gtk_widget_get_style (widget),
+ gtk_paint_check (gtk_widget_get_style (widget),
cr,
state, shadow,
widget, "cellcheck",
diff --git a/gtk/gtkcheckbutton.c b/gtk/gtkcheckbutton.c
index 060e574..714db68 100644
--- a/gtk/gtkcheckbutton.c
+++ b/gtk/gtkcheckbutton.c
@@ -161,7 +161,7 @@ gtk_check_button_paint (GtkWidget *widget,
GtkAllocation child_allocation;
gtk_widget_get_allocation (child, &child_allocation);
- gtk_cairo_paint_focus (style, cr, state,
+ gtk_paint_focus (style, cr, state,
widget, "checkbutton",
child_allocation.x - allocation.x - focus_width - focus_pad,
child_allocation.y - allocation.y - focus_width - focus_pad,
@@ -170,7 +170,7 @@ gtk_check_button_paint (GtkWidget *widget,
}
else
{
- gtk_cairo_paint_focus (style, cr, state,
+ gtk_paint_focus (style, cr, state,
widget, "checkbutton",
border_width,
border_width,
@@ -418,7 +418,7 @@ gtk_real_check_button_draw_indicator (GtkCheckButton *check_button,
if (gtk_widget_get_state (widget) == GTK_STATE_PRELIGHT)
{
- gtk_cairo_paint_flat_box (style, cr, GTK_STATE_PRELIGHT,
+ gtk_paint_flat_box (style, cr, GTK_STATE_PRELIGHT,
GTK_SHADOW_ETCHED_OUT,
widget, "checkbutton",
border_width, border_width,
@@ -426,7 +426,7 @@ gtk_real_check_button_draw_indicator (GtkCheckButton *check_button,
allocation.height - (2 * border_width));
}
- gtk_cairo_paint_check (style, cr,
+ gtk_paint_check (style, cr,
state_type, shadow_type,
widget, "checkbutton",
x, y, indicator_size, indicator_size);
diff --git a/gtk/gtkcheckmenuitem.c b/gtk/gtkcheckmenuitem.c
index d3a3516..de73464 100644
--- a/gtk/gtkcheckmenuitem.c
+++ b/gtk/gtkcheckmenuitem.c
@@ -523,14 +523,14 @@ gtk_real_check_menu_item_draw_indicator (GtkCheckMenuItem *check_menu_item,
if (priv->draw_as_radio)
{
- gtk_cairo_paint_option (style, cr,
+ gtk_paint_option (style, cr,
state_type, shadow_type,
widget, "option",
x, y, indicator_size, indicator_size);
}
else
{
- gtk_cairo_paint_check (style, cr,
+ gtk_paint_check (style, cr,
state_type, shadow_type,
widget, "check",
x, y, indicator_size, indicator_size);
diff --git a/gtk/gtkcombobox.c b/gtk/gtkcombobox.c
index d3d0e4c..1a2bc8b 100644
--- a/gtk/gtkcombobox.c
+++ b/gtk/gtkcombobox.c
@@ -2492,7 +2492,7 @@ gtk_combo_box_draw (GtkWidget *widget,
if (priv->shadow_type != GTK_SHADOW_NONE)
{
- gtk_cairo_paint_shadow (gtk_widget_get_style (widget),
+ gtk_paint_shadow (gtk_widget_get_style (widget),
cr,
GTK_STATE_NORMAL, priv->shadow_type,
widget, "combobox",
diff --git a/gtk/gtkdnd-quartz.c b/gtk/gtkdnd-quartz.c
index b12a70d..973c387 100644
--- a/gtk/gtkdnd-quartz.c
+++ b/gtk/gtkdnd-quartz.c
@@ -351,7 +351,7 @@ gtk_drag_highlight_draw (GtkWidget *widget,
int height,
gpointer data)
{
- gtk_cairo_paint_shadow (gtk_widget_get_style (widget), cr,
+ gtk_paint_shadow (gtk_widget_get_style (widget), cr,
GTK_STATE_NORMAL, GTK_SHADOW_OUT,
widget, "dnd",
0, 0, width, height);
diff --git a/gtk/gtkdnd.c b/gtk/gtkdnd.c
index 3f5cf1f..fa85132 100644
--- a/gtk/gtkdnd.c
+++ b/gtk/gtkdnd.c
@@ -1111,7 +1111,7 @@ gtk_drag_highlight_draw (GtkWidget *widget,
int height,
gpointer data)
{
- gtk_cairo_paint_shadow (gtk_widget_get_style (widget), cr,
+ gtk_paint_shadow (gtk_widget_get_style (widget), cr,
GTK_STATE_NORMAL, GTK_SHADOW_OUT,
widget, "dnd",
0, 0, width, height);
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index cc088da..4f5c9ea 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -3316,7 +3316,7 @@ gtk_entry_draw_frame (GtkWidget *widget,
state = gtk_widget_has_focus (widget) ?
GTK_STATE_ACTIVE : gtk_widget_get_state (widget);
- gtk_cairo_paint_shadow (style, cr,
+ gtk_paint_shadow (style, cr,
state, priv->shadow_type,
widget, "entry", x, y, width, height);
@@ -3330,7 +3330,7 @@ gtk_entry_draw_frame (GtkWidget *widget,
width += 2 * priv->focus_width;
height += 2 * priv->focus_width;
- gtk_cairo_paint_focus (style, cr,
+ gtk_paint_focus (style, cr,
gtk_widget_get_state (widget),
widget, "entry",
0, 0, width, height);
@@ -3448,7 +3448,7 @@ gtk_entry_draw_progress (GtkWidget *widget,
if (!gtk_widget_get_sensitive (widget))
state = GTK_STATE_INSENSITIVE;
- gtk_cairo_paint_box (gtk_widget_get_style (widget), cr,
+ gtk_paint_box (gtk_widget_get_style (widget), cr,
state, GTK_SHADOW_OUT,
widget, "entry-progress",
x, y,
@@ -3485,7 +3485,7 @@ gtk_entry_draw (GtkWidget *widget,
gdk_window_get_position (entry->text_area, &x, &y);
cairo_translate (cr, x, y);
- gtk_cairo_paint_flat_box (style, cr,
+ gtk_paint_flat_box (style, cr,
state, GTK_SHADOW_NONE,
widget, "entry_bg",
0, 0, width, height);
@@ -3520,7 +3520,7 @@ gtk_entry_draw (GtkWidget *widget,
gdk_window_get_position (icon_info->window, &x, &y);
cairo_translate (cr, x, y);
- gtk_cairo_paint_flat_box (style, cr,
+ gtk_paint_flat_box (style, cr,
state, GTK_SHADOW_NONE,
widget, "entry_bg",
0, 0, width, height);
diff --git a/gtk/gtkeventbox.c b/gtk/gtkeventbox.c
index cce9c4b..d6c8e7a 100644
--- a/gtk/gtkeventbox.c
+++ b/gtk/gtkeventbox.c
@@ -567,7 +567,7 @@ gtk_event_box_draw (GtkWidget *widget,
{
if (gtk_widget_get_has_window (widget) &&
!gtk_widget_get_app_paintable (widget))
- gtk_cairo_paint_flat_box (gtk_widget_get_style (widget),
+ gtk_paint_flat_box (gtk_widget_get_style (widget),
cr,
gtk_widget_get_state (widget),
GTK_SHADOW_NONE,
diff --git a/gtk/gtkexpander.c b/gtk/gtkexpander.c
index 533f112..269c3a0 100644
--- a/gtk/gtkexpander.c
+++ b/gtk/gtkexpander.c
@@ -768,7 +768,7 @@ gtk_expander_paint_prelight (GtkExpander *expander, cairo_t *cr)
area.height = MAX (area.height, expander_size + 2 * expander_spacing);
area.height += !interior_focus ? (focus_width + focus_pad) * 2 : 0;
- gtk_cairo_paint_flat_box (gtk_widget_get_style (widget),
+ gtk_paint_flat_box (gtk_widget_get_style (widget),
cr,
GTK_STATE_PRELIGHT,
GTK_SHADOW_ETCHED_OUT,
@@ -798,7 +798,7 @@ gtk_expander_paint (GtkExpander *expander, cairo_t *cr)
gtk_expander_paint_prelight (expander, cr);
}
- gtk_cairo_paint_expander (gtk_widget_get_style (widget),
+ gtk_paint_expander (gtk_widget_get_style (widget),
cr,
state,
widget,
@@ -887,7 +887,7 @@ gtk_expander_paint_focus (GtkExpander *expander,
height = rect.height + 2 * focus_pad;
}
- gtk_cairo_paint_focus (gtk_widget_get_style (widget),
+ gtk_paint_focus (gtk_widget_get_style (widget),
cr,
gtk_widget_get_state (widget),
widget, "expander",
diff --git a/gtk/gtkfilechooserentry.c b/gtk/gtkfilechooserentry.c
index 7807341..b200447 100644
--- a/gtk/gtkfilechooserentry.c
+++ b/gtk/gtkfilechooserentry.c
@@ -889,7 +889,7 @@ completion_feedback_window_draw_cb (GtkWidget *widget,
GtkFileChooserEntry *chooser_entry = GTK_FILE_CHOOSER_ENTRY (data);
- gtk_cairo_paint_flat_box (gtk_widget_get_style (chooser_entry->completion_feedback_window),
+ gtk_paint_flat_box (gtk_widget_get_style (chooser_entry->completion_feedback_window),
cr,
GTK_STATE_NORMAL,
GTK_SHADOW_OUT,
diff --git a/gtk/gtkframe.c b/gtk/gtkframe.c
index a009390..c6fa44a 100644
--- a/gtk/gtkframe.c
+++ b/gtk/gtkframe.c
@@ -621,12 +621,12 @@ gtk_frame_draw (GtkWidget *widget,
x2 = style->xthickness + (priv->child_allocation.width - priv->label_allocation.width - 2 * LABEL_PAD - 2 * LABEL_SIDE_PAD) * xalign + LABEL_SIDE_PAD;
/* If the label is completely over or under the frame we can omit the gap */
if (priv->label_yalign == 0.0 || priv->label_yalign == 1.0)
- gtk_cairo_paint_shadow (style, cr,
+ gtk_paint_shadow (style, cr,
state, priv->shadow_type,
widget, "frame",
x, y, width, height);
else
- gtk_cairo_paint_shadow_gap (style, cr,
+ gtk_paint_shadow_gap (style, cr,
state, priv->shadow_type,
widget, "frame",
x, y, width, height,
@@ -634,7 +634,7 @@ gtk_frame_draw (GtkWidget *widget,
x2, priv->label_allocation.width + 2 * LABEL_PAD);
}
else
- gtk_cairo_paint_shadow (style, cr,
+ gtk_paint_shadow (style, cr,
state, priv->shadow_type,
widget, "frame",
x, y, width, height);
diff --git a/gtk/gtkhandlebox.c b/gtk/gtkhandlebox.c
index d11ee8a..92e5830 100644
--- a/gtk/gtkhandlebox.c
+++ b/gtk/gtkhandlebox.c
@@ -757,7 +757,7 @@ gtk_handle_box_draw_ghost (GtkHandleBox *hb,
window = gtk_widget_get_window (widget);
state = gtk_widget_get_state (widget);
- gtk_cairo_paint_shadow (style,
+ gtk_paint_shadow (style,
cr,
state,
GTK_SHADOW_ETCHED_IN,
@@ -768,7 +768,7 @@ gtk_handle_box_draw_ghost (GtkHandleBox *hb,
height);
if (handle_position == GTK_POS_LEFT ||
handle_position == GTK_POS_RIGHT)
- gtk_cairo_paint_hline (style,
+ gtk_paint_hline (style,
cr,
state,
widget, "handlebox",
@@ -776,7 +776,7 @@ gtk_handle_box_draw_ghost (GtkHandleBox *hb,
handle_position == GTK_POS_LEFT ? allocation_width : allocation_width - DRAG_HANDLE_SIZE,
allocation_height / 2);
else
- gtk_cairo_paint_vline (style,
+ gtk_paint_vline (style,
cr,
state,
widget, "handlebox",
@@ -931,7 +931,7 @@ gtk_handle_box_paint (GtkWidget *widget,
gdk_drawable_get_size (priv->bin_window, &width, &height);
- gtk_cairo_paint_box (gtk_widget_get_style (widget),
+ gtk_paint_box (gtk_widget_get_style (widget),
cr,
gtk_widget_get_state (widget),
priv->shadow_type,
@@ -973,7 +973,7 @@ gtk_handle_box_paint (GtkWidget *widget,
break;
}
- gtk_cairo_paint_handle (gtk_widget_get_style (widget), cr,
+ gtk_paint_handle (gtk_widget_get_style (widget), cr,
GTK_STATE_NORMAL, GTK_SHADOW_OUT,
widget, "handlebox",
rect.x, rect.y, rect.width, rect.height,
diff --git a/gtk/gtkhsv.c b/gtk/gtkhsv.c
index dcc7efb..26b78b8 100644
--- a/gtk/gtkhsv.c
+++ b/gtk/gtkhsv.c
@@ -1209,7 +1209,7 @@ paint_triangle (GtkHSV *hsv,
gtk_widget_get_allocation (widget, &allocation);
- gtk_cairo_paint_focus (gtk_widget_get_style (widget),
+ gtk_paint_focus (gtk_widget_get_style (widget),
cr,
gtk_widget_get_state (widget),
widget, detail,
@@ -1234,7 +1234,7 @@ gtk_hsv_draw (GtkWidget *widget,
paint_triangle (hsv, cr, width, height);
if (gtk_widget_has_focus (widget) && priv->focus_on_ring)
- gtk_cairo_paint_focus (gtk_widget_get_style (widget),
+ gtk_paint_focus (gtk_widget_get_style (widget),
cr,
gtk_widget_get_state (widget),
widget, NULL,
diff --git a/gtk/gtkiconview.c b/gtk/gtkiconview.c
index 33136ae..0b72b99 100644
--- a/gtk/gtkiconview.c
+++ b/gtk/gtkiconview.c
@@ -1637,7 +1637,7 @@ gtk_icon_view_draw (GtkWidget *widget,
switch (dest_pos)
{
case GTK_ICON_VIEW_DROP_INTO:
- gtk_cairo_paint_focus (style,
+ gtk_paint_focus (style,
cr,
state,
widget,
@@ -1646,7 +1646,7 @@ gtk_icon_view_draw (GtkWidget *widget,
dest_item->width, dest_item->height);
break;
case GTK_ICON_VIEW_DROP_ABOVE:
- gtk_cairo_paint_focus (style,
+ gtk_paint_focus (style,
cr,
state,
widget,
@@ -1655,7 +1655,7 @@ gtk_icon_view_draw (GtkWidget *widget,
dest_item->width, 2);
break;
case GTK_ICON_VIEW_DROP_LEFT:
- gtk_cairo_paint_focus (style,
+ gtk_paint_focus (style,
cr,
state,
widget,
@@ -1664,7 +1664,7 @@ gtk_icon_view_draw (GtkWidget *widget,
2, dest_item->height);
break;
case GTK_ICON_VIEW_DROP_BELOW:
- gtk_cairo_paint_focus (style,
+ gtk_paint_focus (style,
cr,
state,
widget,
@@ -1673,7 +1673,7 @@ gtk_icon_view_draw (GtkWidget *widget,
dest_item->width, 2);
break;
case GTK_ICON_VIEW_DROP_RIGHT:
- gtk_cairo_paint_focus (style,
+ gtk_paint_focus (style,
cr,
state,
widget,
@@ -3222,7 +3222,7 @@ gtk_icon_view_paint_item (GtkIconView *icon_view,
if (item->selected)
{
- gtk_cairo_paint_flat_box (style,
+ gtk_paint_flat_box (style,
cr,
GTK_STATE_SELECTED,
GTK_SHADOW_NONE,
@@ -3272,7 +3272,7 @@ gtk_icon_view_paint_item (GtkIconView *icon_view,
if (i == icon_view->priv->cursor_cell)
{
- gtk_cairo_paint_focus (style,
+ gtk_paint_focus (style,
cr,
GTK_STATE_NORMAL,
widget,
@@ -3289,7 +3289,7 @@ gtk_icon_view_paint_item (GtkIconView *icon_view,
* around the whole item.
*/
if (icon_view->priv->cursor_cell < 0)
- gtk_cairo_paint_focus (style,
+ gtk_paint_focus (style,
cr,
GTK_STATE_NORMAL,
widget,
diff --git a/gtk/gtkinfobar.c b/gtk/gtkinfobar.c
index fa0b997..bf7c7ba 100644
--- a/gtk/gtkinfobar.c
+++ b/gtk/gtkinfobar.c
@@ -318,7 +318,7 @@ gtk_info_bar_draw (GtkWidget *widget,
detail = type_detail[priv->message_type];
- gtk_cairo_paint_box (gtk_widget_get_style (widget),
+ gtk_paint_box (gtk_widget_get_style (widget),
cr,
GTK_STATE_NORMAL,
GTK_SHADOW_OUT,
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c
index b32b174..ebf7dc1 100644
--- a/gtk/gtklabel.c
+++ b/gtk/gtklabel.c
@@ -4085,7 +4085,7 @@ gtk_label_draw (GtkWidget *widget,
x -= allocation.x;
y -= allocation.y;
- gtk_cairo_paint_layout (style,
+ gtk_paint_layout (style,
cr,
gtk_widget_get_state (widget),
FALSE,
@@ -4207,7 +4207,7 @@ gtk_label_draw (GtkWidget *widget,
1);
cairo_region_get_extents (clip, &rect);
- gtk_cairo_paint_focus (style, cr, gtk_widget_get_state (widget),
+ gtk_paint_focus (style, cr, gtk_widget_get_state (widget),
widget, "label",
rect.x, rect.y, rect.width, rect.height);
diff --git a/gtk/gtkmenu.c b/gtk/gtkmenu.c
index c9b12fa..9e67a6c 100644
--- a/gtk/gtkmenu.c
+++ b/gtk/gtkmenu.c
@@ -2915,7 +2915,7 @@ gtk_menu_draw (GtkWidget *widget,
gtk_widget_style_get (widget, "arrow-scaling", &arrow_scaling, NULL);
arrow_size = arrow_scaling * arrow_space;
- gtk_cairo_paint_box (style,
+ gtk_paint_box (style,
cr,
GTK_STATE_NORMAL,
GTK_SHADOW_OUT,
@@ -2924,7 +2924,7 @@ gtk_menu_draw (GtkWidget *widget,
if (menu->upper_arrow_visible && !menu->tearoff_active)
{
- gtk_cairo_paint_box (style,
+ gtk_paint_box (style,
cr,
priv->upper_arrow_state,
GTK_SHADOW_OUT,
@@ -2934,7 +2934,7 @@ gtk_menu_draw (GtkWidget *widget,
upper.width,
upper.height);
- gtk_cairo_paint_arrow (style,
+ gtk_paint_arrow (style,
cr,
priv->upper_arrow_state,
GTK_SHADOW_OUT,
@@ -2948,7 +2948,7 @@ gtk_menu_draw (GtkWidget *widget,
if (menu->lower_arrow_visible && !menu->tearoff_active)
{
- gtk_cairo_paint_box (style,
+ gtk_paint_box (style,
cr,
priv->lower_arrow_state,
GTK_SHADOW_OUT,
@@ -2958,7 +2958,7 @@ gtk_menu_draw (GtkWidget *widget,
lower.width,
lower.height);
- gtk_cairo_paint_arrow (style,
+ gtk_paint_arrow (style,
cr,
priv->lower_arrow_state,
GTK_SHADOW_OUT,
@@ -2990,7 +2990,7 @@ gtk_menu_draw (GtkWidget *widget,
y -= arrow_border.top;
}
- gtk_cairo_paint_box (style,
+ gtk_paint_box (style,
cr,
GTK_STATE_NORMAL,
GTK_SHADOW_OUT,
diff --git a/gtk/gtkmenubar.c b/gtk/gtkmenubar.c
index d9546a6..0fb1639 100644
--- a/gtk/gtkmenubar.c
+++ b/gtk/gtkmenubar.c
@@ -520,7 +520,7 @@ gtk_menu_bar_draw (GtkWidget *widget,
border = gtk_container_get_border_width (GTK_CONTAINER (widget));
- gtk_cairo_paint_box (gtk_widget_get_style (widget),
+ gtk_paint_box (gtk_widget_get_style (widget),
cr,
gtk_widget_get_state (widget),
get_shadow_type (GTK_MENU_BAR (widget)),
diff --git a/gtk/gtkmenuitem.c b/gtk/gtkmenuitem.c
index e855221..6ca8cef 100644
--- a/gtk/gtkmenuitem.c
+++ b/gtk/gtkmenuitem.c
@@ -1537,7 +1537,7 @@ gtk_menu_item_draw (GtkWidget *widget,
gtk_widget_style_get (widget,
"selected-shadow-type", &selected_shadow_type,
NULL);
- gtk_cairo_paint_box (style,
+ gtk_paint_box (style,
cr,
GTK_STATE_PRELIGHT,
selected_shadow_type,
@@ -1578,7 +1578,7 @@ gtk_menu_item_draw (GtkWidget *widget,
arrow_y = y + (h - arrow_size) / 2;
- gtk_cairo_paint_arrow (style, cr,
+ gtk_paint_arrow (style, cr,
state_type, shadow_type,
widget, "menuitem",
arrow_type, TRUE,
@@ -1598,7 +1598,7 @@ gtk_menu_item_draw (GtkWidget *widget,
NULL);
if (wide_separators)
- gtk_cairo_paint_box (style, cr,
+ gtk_paint_box (style, cr,
GTK_STATE_NORMAL, GTK_SHADOW_ETCHED_OUT,
widget, "hseparator",
horizontal_padding + style->xthickness,
@@ -1606,7 +1606,7 @@ gtk_menu_item_draw (GtkWidget *widget,
width - 2 * (horizontal_padding + style->xthickness),
separator_height);
else
- gtk_cairo_paint_hline (style, cr,
+ gtk_paint_hline (style, cr,
GTK_STATE_NORMAL, widget, "menuitem",
horizontal_padding + style->xthickness,
width - horizontal_padding - style->xthickness - 1,
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index d6f13c7..d4033ce 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -3306,7 +3306,7 @@ on_drag_icon_draw (GtkWidget *widget,
gtk_widget_size_request (widget, &requisition);
gap_pos = get_tab_gap_pos (GTK_NOTEBOOK (notebook));
- gtk_cairo_paint_extension (gtk_widget_get_style (notebook),
+ gtk_paint_extension (gtk_widget_get_style (notebook),
cr,
GTK_STATE_NORMAL, GTK_SHADOW_OUT,
widget, "tab",
@@ -4838,7 +4838,7 @@ gtk_notebook_paint (GtkWidget *widget,
if (priv->show_border && (!priv->show_tabs || !priv->children))
{
- gtk_cairo_paint_box (gtk_widget_get_style (widget), cr,
+ gtk_paint_box (gtk_widget_get_style (widget), cr,
GTK_STATE_NORMAL, GTK_SHADOW_OUT,
widget, "notebook",
x, y, width, height);
@@ -4901,7 +4901,7 @@ gtk_notebook_paint (GtkWidget *widget,
break;
}
}
- gtk_cairo_paint_box_gap (gtk_widget_get_style (widget), cr,
+ gtk_paint_box_gap (gtk_widget_get_style (widget), cr,
GTK_STATE_NORMAL, GTK_SHADOW_OUT,
widget, "notebook",
x, y, width, height,
@@ -4960,7 +4960,7 @@ gtk_notebook_draw_tab (GtkNotebook *notebook,
else
state_type = GTK_STATE_ACTIVE;
- gtk_cairo_paint_extension (gtk_widget_get_style (widget), cr,
+ gtk_paint_extension (gtk_widget_get_style (widget), cr,
state_type, GTK_SHADOW_OUT,
widget, "tab",
page->allocation.x,
@@ -4978,7 +4978,7 @@ gtk_notebook_draw_tab (GtkNotebook *notebook,
gtk_widget_get_allocation (page->tab_label, &allocation);
gtk_widget_style_get (widget, "focus-line-width", &focus_width, NULL);
- gtk_cairo_paint_focus (gtk_widget_get_style (widget), cr,
+ gtk_paint_focus (gtk_widget_get_style (widget), cr,
gtk_widget_get_state (widget), widget, "tab",
allocation.x - focus_width,
allocation.y - focus_width,
@@ -5051,7 +5051,7 @@ gtk_notebook_draw_arrow (GtkNotebook *notebook,
arrow_size = scroll_arrow_hlength;
}
- gtk_cairo_paint_arrow (gtk_widget_get_style (widget),
+ gtk_paint_arrow (gtk_widget_get_style (widget),
cr, state_type,
shadow_type, widget, "notebook",
arrow, TRUE, arrow_rect.x, arrow_rect.y,
diff --git a/gtk/gtkpaned.c b/gtk/gtkpaned.c
index 45415c9..78e4d1a 100644
--- a/gtk/gtkpaned.c
+++ b/gtk/gtkpaned.c
@@ -1144,7 +1144,7 @@ gtk_paned_draw (GtkWidget *widget,
else
state = gtk_widget_get_state (widget);
- gtk_cairo_paint_handle (gtk_widget_get_style (widget),
+ gtk_paint_handle (gtk_widget_get_style (widget),
cr,
state, GTK_SHADOW_NONE,
widget, "paned",
diff --git a/gtk/gtkprogressbar.c b/gtk/gtkprogressbar.c
index d9047e0..36cf1f7 100644
--- a/gtk/gtkprogressbar.c
+++ b/gtk/gtkprogressbar.c
@@ -687,7 +687,7 @@ gtk_progress_bar_paint_activity (GtkProgressBar *pbar,
area.width = width - 2 * style->xthickness;
}
- gtk_cairo_paint_box (style,
+ gtk_paint_box (style,
cr,
GTK_STATE_PRELIGHT, GTK_SHADOW_OUT,
widget, "bar",
@@ -733,7 +733,7 @@ gtk_progress_bar_paint_continuous (GtkProgressBar *pbar,
area.y = height - amount - area.y;
}
- gtk_cairo_paint_box (style,
+ gtk_paint_box (style,
cr,
GTK_STATE_PRELIGHT, GTK_SHADOW_OUT,
widget, "bar",
@@ -840,7 +840,7 @@ gtk_progress_bar_paint_text (GtkProgressBar *pbar,
cairo_save (cr);
gdk_cairo_rectangle (cr, &start_clip);
cairo_clip (cr);
- gtk_cairo_paint_layout (style,
+ gtk_paint_layout (style,
cr,
GTK_STATE_NORMAL,
FALSE,
@@ -856,7 +856,7 @@ gtk_progress_bar_paint_text (GtkProgressBar *pbar,
cairo_save (cr);
gdk_cairo_rectangle (cr, &end_clip);
cairo_clip (cr);
- gtk_cairo_paint_layout (style,
+ gtk_paint_layout (style,
cr,
GTK_STATE_NORMAL,
FALSE,
@@ -870,7 +870,7 @@ gtk_progress_bar_paint_text (GtkProgressBar *pbar,
cairo_save (cr);
gdk_cairo_rectangle (cr, &prelight_clip);
cairo_clip (cr);
- gtk_cairo_paint_layout (style,
+ gtk_paint_layout (style,
cr,
GTK_STATE_PRELIGHT,
FALSE,
@@ -906,7 +906,7 @@ gtk_progress_bar_draw (GtkWidget *widget,
inverted = !inverted;
}
- gtk_cairo_paint_box (style,
+ gtk_paint_box (style,
cr,
GTK_STATE_NORMAL, GTK_SHADOW_IN,
widget, "trough",
diff --git a/gtk/gtkradiobutton.c b/gtk/gtkradiobutton.c
index 8b872fc..7dd37da 100644
--- a/gtk/gtkradiobutton.c
+++ b/gtk/gtkradiobutton.c
@@ -934,7 +934,7 @@ gtk_radio_button_draw_indicator (GtkCheckButton *check_button,
if (gtk_widget_get_state (widget) == GTK_STATE_PRELIGHT)
{
- gtk_cairo_paint_flat_box (style, cr,
+ gtk_paint_flat_box (style, cr,
GTK_STATE_PRELIGHT,
GTK_SHADOW_ETCHED_OUT,
widget, "checkbutton",
@@ -943,7 +943,7 @@ gtk_radio_button_draw_indicator (GtkCheckButton *check_button,
allocation.height - (2 * border_width));
}
- gtk_cairo_paint_option (style, cr,
+ gtk_paint_option (style, cr,
state_type, shadow_type,
widget, "radiobutton",
x, y, indicator_size, indicator_size);
diff --git a/gtk/gtkrange.c b/gtk/gtkrange.c
index 3e1a0c2..83e80e2 100644
--- a/gtk/gtkrange.c
+++ b/gtk/gtkrange.c
@@ -1827,7 +1827,7 @@ draw_stepper (GtkRange *range,
style = gtk_widget_get_style (widget);
window = gtk_widget_get_window (widget);
- gtk_cairo_paint_box (style, cr,
+ gtk_paint_box (style, cr,
state_type, shadow_type,
widget,
gtk_range_get_stepper_detail (range, stepper),
@@ -1856,7 +1856,7 @@ draw_stepper (GtkRange *range,
arrow_y += arrow_displacement_y;
}
- gtk_cairo_paint_arrow (style, cr,
+ gtk_paint_arrow (style, cr,
state_type, shadow_type,
widget,
gtk_range_get_stepper_detail (range, stepper),
@@ -1990,7 +1990,7 @@ gtk_range_draw (GtkWidget *widget,
priv->slider.height / 2 -
y);
- gtk_cairo_paint_box (style, cr,
+ gtk_paint_box (style, cr,
sensitive ? GTK_STATE_ACTIVE : GTK_STATE_INSENSITIVE,
GTK_SHADOW_IN,
GTK_WIDGET (range),
@@ -2003,7 +2003,7 @@ gtk_range_draw (GtkWidget *widget,
else
trough_change_pos_x = 0;
- gtk_cairo_paint_box (style, cr,
+ gtk_paint_box (style, cr,
sensitive ? GTK_STATE_ACTIVE : GTK_STATE_INSENSITIVE,
GTK_SHADOW_IN,
GTK_WIDGET (range),
@@ -2062,7 +2062,7 @@ gtk_range_draw (GtkWidget *widget,
else
fill_detail = "trough-fill-level";
- gtk_cairo_paint_box (style, cr,
+ gtk_paint_box (style, cr,
sensitive ? GTK_STATE_ACTIVE : GTK_STATE_INSENSITIVE,
GTK_SHADOW_OUT,
GTK_WIDGET (range), fill_detail,
@@ -2071,7 +2071,7 @@ gtk_range_draw (GtkWidget *widget,
}
if (sensitive && gtk_widget_has_focus (widget))
- gtk_cairo_paint_focus (style, cr,
+ gtk_paint_focus (style, cr,
gtk_widget_get_state (widget),
widget, "trough",
priv->range_rect.x,
@@ -2102,7 +2102,7 @@ gtk_range_draw (GtkWidget *widget,
cairo_clip (cr);
{
- gtk_cairo_paint_slider (style,
+ gtk_paint_slider (style,
cr,
state,
shadow_type,
diff --git a/gtk/gtkruler.c b/gtk/gtkruler.c
index 68bb324..758a940 100644
--- a/gtk/gtkruler.c
+++ b/gtk/gtkruler.c
@@ -713,7 +713,7 @@ gtk_ruler_real_draw_ticks (GtkRuler *ruler,
gdk_cairo_set_source_color (cr, &style->fg[gtk_widget_get_state (widget)]);
- gtk_cairo_paint_box (style, cr,
+ gtk_paint_box (style, cr,
GTK_STATE_NORMAL, GTK_SHADOW_OUT,
widget,
priv->orientation == GTK_ORIENTATION_HORIZONTAL ?
@@ -833,7 +833,7 @@ gtk_ruler_real_draw_ticks (GtkRuler *ruler,
pango_layout_set_text (layout, unit_str, -1);
pango_layout_get_extents (layout, &logical_rect, NULL);
- gtk_cairo_paint_layout (style,
+ gtk_paint_layout (style,
cr,
gtk_widget_get_state (widget),
FALSE,
@@ -849,7 +849,7 @@ gtk_ruler_real_draw_ticks (GtkRuler *ruler,
pango_layout_set_text (layout, unit_str + j, 1);
pango_layout_get_extents (layout, NULL, &logical_rect);
- gtk_cairo_paint_layout (style,
+ gtk_paint_layout (style,
cr,
gtk_widget_get_state (widget),
FALSE,
diff --git a/gtk/gtkscale.c b/gtk/gtkscale.c
index 89cf05d..22cdf9b 100644
--- a/gtk/gtkscale.c
+++ b/gtk/gtkscale.c
@@ -1070,7 +1070,7 @@ gtk_scale_draw (GtkWidget *widget,
max_pos = find_next_pos (widget, m, marks + i, GTK_POS_TOP, 0) - min_sep;
}
- gtk_cairo_paint_vline (style, cr, state_type,
+ gtk_paint_vline (style, cr, state_type,
widget, "scale-mark", y1, y2, x1);
if (mark->markup)
@@ -1096,7 +1096,7 @@ gtk_scale_draw (GtkWidget *widget,
min_pos_after = x3 + logical_rect.width + min_sep;
}
- gtk_cairo_paint_layout (style, cr, state_type,
+ gtk_paint_layout (style, cr, state_type,
FALSE, widget, "scale-mark",
x3, y3, layout);
}
@@ -1119,7 +1119,7 @@ gtk_scale_draw (GtkWidget *widget,
}
y1 = marks[i];
- gtk_cairo_paint_hline (style, cr, state_type,
+ gtk_paint_hline (style, cr, state_type,
widget, "range-mark", x1, x2, y1);
if (mark->markup)
@@ -1145,7 +1145,7 @@ gtk_scale_draw (GtkWidget *widget,
min_pos_after = y3 + logical_rect.height + min_sep;
}
- gtk_cairo_paint_layout (style, cr, state_type,
+ gtk_paint_layout (style, cr, state_type,
FALSE, widget, "scale-mark",
x3, y3, layout);
}
@@ -1169,7 +1169,7 @@ gtk_scale_draw (GtkWidget *widget,
gtk_scale_get_layout_offsets (scale, &x, &y);
gtk_widget_get_allocation (widget, &allocation);
- gtk_cairo_paint_layout (style,
+ gtk_paint_layout (style,
cr,
state_type,
FALSE,
diff --git a/gtk/gtkscrolledwindow.c b/gtk/gtkscrolledwindow.c
index c24af4d..e259b7c 100644
--- a/gtk/gtkscrolledwindow.c
+++ b/gtk/gtkscrolledwindow.c
@@ -1126,7 +1126,7 @@ gtk_scrolled_window_draw (GtkWidget *widget,
relative_allocation.height = height - 2 * border_width;
}
- gtk_cairo_paint_shadow (style,
+ gtk_paint_shadow (style,
cr,
GTK_STATE_NORMAL, priv->shadow_type,
widget, "scrolled_window",
diff --git a/gtk/gtkseparator.c b/gtk/gtkseparator.c
index d081233..bee706b 100644
--- a/gtk/gtkseparator.c
+++ b/gtk/gtkseparator.c
@@ -217,13 +217,13 @@ gtk_separator_draw (GtkWidget *widget,
if (private->orientation == GTK_ORIENTATION_HORIZONTAL)
{
if (wide_separators)
- gtk_cairo_paint_box (style, cr,
+ gtk_paint_box (style, cr,
gtk_widget_get_state (widget), GTK_SHADOW_ETCHED_OUT,
widget, "hseparator",
0, (height - separator_height) / 2,
width, separator_height);
else
- gtk_cairo_paint_hline (style, cr,
+ gtk_paint_hline (style, cr,
gtk_widget_get_state (widget),
widget, "hseparator",
0, width - 1,
@@ -232,13 +232,13 @@ gtk_separator_draw (GtkWidget *widget,
else
{
if (wide_separators)
- gtk_cairo_paint_box (style, cr,
+ gtk_paint_box (style, cr,
gtk_widget_get_state (widget), GTK_SHADOW_ETCHED_OUT,
widget, "vseparator",
(width - separator_width) / 2, 0,
separator_width, height);
else
- gtk_cairo_paint_vline (style, cr,
+ gtk_paint_vline (style, cr,
gtk_widget_get_state (widget),
widget, "vseparator",
0, height - 1,
diff --git a/gtk/gtkspinbutton.c b/gtk/gtkspinbutton.c
index 35424d2..8f1fe86 100644
--- a/gtk/gtkspinbutton.c
+++ b/gtk/gtkspinbutton.c
@@ -815,7 +815,7 @@ gtk_spin_button_draw (GtkWidget *widget,
gdk_drawable_get_size (priv->panel, &width, &height);
- gtk_cairo_paint_box (gtk_widget_get_style (widget), cr,
+ gtk_paint_box (gtk_widget_get_style (widget), cr,
state, shadow_type,
widget, "spinbutton",
0, 0, width, height);
@@ -924,7 +924,7 @@ gtk_spin_button_draw_arrow (GtkSpinButton *spin_button,
}
}
- gtk_cairo_paint_box (style, cr,
+ gtk_paint_box (style, cr,
state_type, shadow_type,
widget,
(arrow_type == GTK_ARROW_UP)? "spinbutton_up" : "spinbutton_down",
@@ -960,7 +960,7 @@ gtk_spin_button_draw_arrow (GtkSpinButton *spin_button,
height = h;
width = w;
- gtk_cairo_paint_arrow (style, cr,
+ gtk_paint_arrow (style, cr,
state_type, shadow_type,
widget, "spinbutton",
arrow_type, TRUE,
diff --git a/gtk/gtkspinner.c b/gtk/gtkspinner.c
index 2047f0c..d42e6d3 100644
--- a/gtk/gtkspinner.c
+++ b/gtk/gtkspinner.c
@@ -230,7 +230,7 @@ gtk_spinner_draw (GtkWidget *widget,
if (!gtk_widget_is_sensitive (widget))
state_type = GTK_STATE_INSENSITIVE;
- gtk_cairo_paint_spinner (gtk_widget_get_style (widget),
+ gtk_paint_spinner (gtk_widget_get_style (widget),
cr,
state_type,
widget,
diff --git a/gtk/gtkstatusbar.c b/gtk/gtkstatusbar.c
index 0695512..e11b791 100644
--- a/gtk/gtkstatusbar.c
+++ b/gtk/gtkstatusbar.c
@@ -1007,7 +1007,7 @@ gtk_statusbar_draw (GtkWidget *widget,
get_grip_rect (statusbar, FALSE, &rect);
style = gtk_widget_get_style (widget);
- gtk_cairo_paint_resize_grip (style,
+ gtk_paint_resize_grip (style,
cr,
gtk_widget_get_state (widget),
widget,
diff --git a/gtk/gtkstyle.c b/gtk/gtkstyle.c
index c8726f1..aeab9ee 100644
--- a/gtk/gtkstyle.c
+++ b/gtk/gtkstyle.c
@@ -2496,7 +2496,7 @@ gtk_default_draw_box (GtkStyle *style,
return;
}
- gtk_cairo_paint_shadow (style, cr, state_type, shadow_type, widget, detail,
+ gtk_paint_shadow (style, cr, state_type, shadow_type, widget, detail,
x, y, width, height);
if (detail && strcmp (detail, "optionmenu") == 0)
@@ -2512,7 +2512,7 @@ gtk_default_draw_box (GtkStyle *style,
else
vline_x = x + width - (indicator_size.width + indicator_spacing.left + indicator_spacing.right) - style->xthickness;
- gtk_cairo_paint_vline (style, cr, state_type, widget,
+ gtk_paint_vline (style, cr, state_type, widget,
detail,
y + style->ythickness + 1,
y + height - style->ythickness - 3,
@@ -3653,7 +3653,7 @@ gtk_default_draw_slider (GtkStyle *style,
gint height,
GtkOrientation orientation)
{
- gtk_cairo_paint_box (style, cr, state_type, shadow_type,
+ gtk_paint_box (style, cr, state_type, shadow_type,
widget, detail, x, y, width, height);
if (detail &&
@@ -3661,11 +3661,11 @@ gtk_default_draw_slider (GtkStyle *style,
strcmp ("vscale", detail) == 0))
{
if (orientation == GTK_ORIENTATION_HORIZONTAL)
- gtk_cairo_paint_vline (style, cr, state_type, widget, detail,
+ gtk_paint_vline (style, cr, state_type, widget, detail,
y + style->ythickness,
y + height - style->ythickness - 1, x + width / 2);
else
- gtk_cairo_paint_hline (style, cr, state_type, widget, detail,
+ gtk_paint_hline (style, cr, state_type, widget, detail,
x + style->xthickness,
x + width - style->xthickness - 1, y + height / 2);
}
@@ -3714,7 +3714,7 @@ gtk_default_draw_handle (GtkStyle *style,
gint xthick, ythick;
GdkColor light, dark;
- gtk_cairo_paint_box (style, cr, state_type, shadow_type, widget,
+ gtk_paint_box (style, cr, state_type, shadow_type, widget,
detail, x, y, width, height);
if (detail && !strcmp (detail, "paned"))
@@ -4489,7 +4489,7 @@ hls_to_rgb (gdouble *h,
/**
- * gtk_cairo_paint_hline:
+ * gtk_paint_hline:
* @style: a #GtkStyle
* @cr: a #caio_t
* @state_type: a state
@@ -4503,14 +4503,14 @@ hls_to_rgb (gdouble *h,
* using the given style and state.
**/
void
-gtk_cairo_paint_hline (GtkStyle *style,
- cairo_t *cr,
- GtkStateType state_type,
- GtkWidget *widget,
- const gchar *detail,
- gint x1,
- gint x2,
- gint y)
+gtk_paint_hline (GtkStyle *style,
+ cairo_t *cr,
+ GtkStateType state_type,
+ GtkWidget *widget,
+ const gchar *detail,
+ gint x1,
+ gint x2,
+ gint y)
{
g_return_if_fail (GTK_IS_STYLE (style));
g_return_if_fail (cr != NULL);
@@ -4526,7 +4526,7 @@ gtk_cairo_paint_hline (GtkStyle *style,
}
/**
- * gtk_cairo_paint_vline:
+ * gtk_paint_vline:
* @style: a #GtkStyle
* @cr: a #cairo_t
* @state_type: a state
@@ -4540,14 +4540,14 @@ gtk_cairo_paint_hline (GtkStyle *style,
* using the given style and state.
*/
void
-gtk_cairo_paint_vline (GtkStyle *style,
- cairo_t *cr,
- GtkStateType state_type,
- GtkWidget *widget,
- const gchar *detail,
- gint y1_,
- gint y2_,
- gint x)
+gtk_paint_vline (GtkStyle *style,
+ cairo_t *cr,
+ GtkStateType state_type,
+ GtkWidget *widget,
+ const gchar *detail,
+ gint y1_,
+ gint y2_,
+ gint x)
{
g_return_if_fail (GTK_IS_STYLE (style));
g_return_if_fail (cr != NULL);
@@ -4563,7 +4563,7 @@ gtk_cairo_paint_vline (GtkStyle *style,
}
/**
- * gtk_cairo_paint_shadow:
+ * gtk_paint_shadow:
* @style: a #GtkStyle
* @cr: a #cairo_t
* @state_type: a state
@@ -4579,16 +4579,16 @@ gtk_cairo_paint_vline (GtkStyle *style,
* using the given style and state and shadow type.
*/
void
-gtk_cairo_paint_shadow (GtkStyle *style,
- cairo_t *cr,
- GtkStateType state_type,
- GtkShadowType shadow_type,
- GtkWidget *widget,
- const gchar *detail,
- gint x,
- gint y,
- gint width,
- gint height)
+gtk_paint_shadow (GtkStyle *style,
+ cairo_t *cr,
+ GtkStateType state_type,
+ GtkShadowType shadow_type,
+ GtkWidget *widget,
+ const gchar *detail,
+ gint x,
+ gint y,
+ gint width,
+ gint height)
{
g_return_if_fail (GTK_IS_STYLE (style));
g_return_if_fail (GTK_STYLE_GET_CLASS (style)->draw_shadow != NULL);
@@ -4606,7 +4606,7 @@ gtk_cairo_paint_shadow (GtkStyle *style,
}
/**
- * gtk_cairo_paint_arrow:
+ * gtk_paint_arrow:
* @style: a #GtkStyle
* @cr: a #cairo_t
* @state_type: a state
@@ -4624,18 +4624,18 @@ gtk_cairo_paint_shadow (GtkStyle *style,
* parameters. @arrow_type determines the direction of the arrow.
*/
void
-gtk_cairo_paint_arrow (GtkStyle *style,
- cairo_t *cr,
- GtkStateType state_type,
- GtkShadowType shadow_type,
- GtkWidget *widget,
- const gchar *detail,
- GtkArrowType arrow_type,
- gboolean fill,
- gint x,
- gint y,
- gint width,
- gint height)
+gtk_paint_arrow (GtkStyle *style,
+ cairo_t *cr,
+ GtkStateType state_type,
+ GtkShadowType shadow_type,
+ GtkWidget *widget,
+ const gchar *detail,
+ GtkArrowType arrow_type,
+ gboolean fill,
+ gint x,
+ gint y,
+ gint width,
+ gint height)
{
g_return_if_fail (GTK_IS_STYLE (style));
g_return_if_fail (GTK_STYLE_GET_CLASS (style)->draw_arrow != NULL);
@@ -4653,7 +4653,7 @@ gtk_cairo_paint_arrow (GtkStyle *style,
}
/**
- * gtk_cairo_paint_diamond:
+ * gtk_paint_diamond:
* @style: a #GtkStyle
* @cr: a #cairo_t
* @state_type: a state
@@ -4669,16 +4669,16 @@ gtk_cairo_paint_arrow (GtkStyle *style,
* parameters.
*/
void
-gtk_cairo_paint_diamond (GtkStyle *style,
- cairo_t *cr,
- GtkStateType state_type,
- GtkShadowType shadow_type,
- GtkWidget *widget,
- const gchar *detail,
- gint x,
- gint y,
- gint width,
- gint height)
+gtk_paint_diamond (GtkStyle *style,
+ cairo_t *cr,
+ GtkStateType state_type,
+ GtkShadowType shadow_type,
+ GtkWidget *widget,
+ const gchar *detail,
+ gint x,
+ gint y,
+ gint width,
+ gint height)
{
g_return_if_fail (GTK_IS_STYLE (style));
g_return_if_fail (GTK_STYLE_GET_CLASS (style)->draw_diamond != NULL);
@@ -4696,7 +4696,7 @@ gtk_cairo_paint_diamond (GtkStyle *style,
}
/**
- * gtk_cairo_paint_box:
+ * gtk_paint_box:
* @style: a #GtkStyle
* @cr: a #cairo_t
* @state_type: a state
@@ -4711,16 +4711,16 @@ gtk_cairo_paint_diamond (GtkStyle *style,
* Draws a box on @cr with the given parameters.
*/
void
-gtk_cairo_paint_box (GtkStyle *style,
- cairo_t *cr,
- GtkStateType state_type,
- GtkShadowType shadow_type,
- GtkWidget *widget,
- const gchar *detail,
- gint x,
- gint y,
- gint width,
- gint height)
+gtk_paint_box (GtkStyle *style,
+ cairo_t *cr,
+ GtkStateType state_type,
+ GtkShadowType shadow_type,
+ GtkWidget *widget,
+ const gchar *detail,
+ gint x,
+ gint y,
+ gint width,
+ gint height)
{
g_return_if_fail (GTK_IS_STYLE (style));
g_return_if_fail (GTK_STYLE_GET_CLASS (style)->draw_box != NULL);
@@ -4736,7 +4736,7 @@ gtk_cairo_paint_box (GtkStyle *style,
}
/**
- * gtk_cairo_paint_flat_box:
+ * gtk_paint_flat_box:
* @style: a #GtkStyle
* @cr: a #cairo_t
* @state_type: a state
@@ -4753,16 +4753,16 @@ gtk_cairo_paint_box (GtkStyle *style,
* Draws a flat box on @cr with the given parameters.
*/
void
-gtk_cairo_paint_flat_box (GtkStyle *style,
- cairo_t *cr,
- GtkStateType state_type,
- GtkShadowType shadow_type,
- GtkWidget *widget,
- const gchar *detail,
- gint x,
- gint y,
- gint width,
- gint height)
+gtk_paint_flat_box (GtkStyle *style,
+ cairo_t *cr,
+ GtkStateType state_type,
+ GtkShadowType shadow_type,
+ GtkWidget *widget,
+ const gchar *detail,
+ gint x,
+ gint y,
+ gint width,
+ gint height)
{
g_return_if_fail (GTK_IS_STYLE (style));
g_return_if_fail (GTK_STYLE_GET_CLASS (style)->draw_flat_box != NULL);
@@ -4780,7 +4780,7 @@ gtk_cairo_paint_flat_box (GtkStyle *style,
}
/**
- * gtk_cairo_paint_check:
+ * gtk_paint_check:
* @style: a #GtkStyle
* @cr: a #cairo_t
* @state_type: a state
@@ -4796,16 +4796,16 @@ gtk_cairo_paint_flat_box (GtkStyle *style,
* the given parameters.
*/
void
-gtk_cairo_paint_check (GtkStyle *style,
- cairo_t *cr,
- GtkStateType state_type,
- GtkShadowType shadow_type,
- GtkWidget *widget,
- const gchar *detail,
- gint x,
- gint y,
- gint width,
- gint height)
+gtk_paint_check (GtkStyle *style,
+ cairo_t *cr,
+ GtkStateType state_type,
+ GtkShadowType shadow_type,
+ GtkWidget *widget,
+ const gchar *detail,
+ gint x,
+ gint y,
+ gint width,
+ gint height)
{
g_return_if_fail (GTK_IS_STYLE (style));
g_return_if_fail (GTK_STYLE_GET_CLASS (style)->draw_check != NULL);
@@ -4821,7 +4821,7 @@ gtk_cairo_paint_check (GtkStyle *style,
}
/**
- * gtk_cairo_paint_option:
+ * gtk_paint_option:
* @style: a #GtkStyle
* @cr: a #cairo_t
* @state_type: a state
@@ -4837,16 +4837,16 @@ gtk_cairo_paint_check (GtkStyle *style,
* the given parameters.
*/
void
-gtk_cairo_paint_option (GtkStyle *style,
- cairo_t *cr,
- GtkStateType state_type,
- GtkShadowType shadow_type,
- GtkWidget *widget,
- const gchar *detail,
- gint x,
- gint y,
- gint width,
- gint height)
+gtk_paint_option (GtkStyle *style,
+ cairo_t *cr,
+ GtkStateType state_type,
+ GtkShadowType shadow_type,
+ GtkWidget *widget,
+ const gchar *detail,
+ gint x,
+ gint y,
+ gint width,
+ gint height)
{
g_return_if_fail (GTK_IS_STYLE (style));
g_return_if_fail (GTK_STYLE_GET_CLASS (style)->draw_option != NULL);
@@ -4862,7 +4862,7 @@ gtk_cairo_paint_option (GtkStyle *style,
}
/**
- * gtk_cairo_paint_tab:
+ * gtk_paint_tab:
* @style: a #GtkStyle
* @cr: a #cairo_t
* @state_type: a state
@@ -4878,16 +4878,16 @@ gtk_cairo_paint_option (GtkStyle *style,
* in the given rectangle on @cr using the given parameters.
*/
void
-gtk_cairo_paint_tab (GtkStyle *style,
- cairo_t *cr,
- GtkStateType state_type,
- GtkShadowType shadow_type,
- GtkWidget *widget,
- const gchar *detail,
- gint x,
- gint y,
- gint width,
- gint height)
+gtk_paint_tab (GtkStyle *style,
+ cairo_t *cr,
+ GtkStateType state_type,
+ GtkShadowType shadow_type,
+ GtkWidget *widget,
+ const gchar *detail,
+ gint x,
+ gint y,
+ gint width,
+ gint height)
{
g_return_if_fail (GTK_IS_STYLE (style));
g_return_if_fail (GTK_STYLE_GET_CLASS (style)->draw_tab != NULL);
@@ -4903,7 +4903,7 @@ gtk_cairo_paint_tab (GtkStyle *style,
}
/**
- * gtk_cairo_paint_shadow_gap:
+ * gtk_paint_shadow_gap:
* @style: a #GtkStyle
* @cr: a #cairo_t
* @state_type: a state
@@ -4923,19 +4923,19 @@ gtk_cairo_paint_tab (GtkStyle *style,
* gap in one side.
*/
void
-gtk_cairo_paint_shadow_gap (GtkStyle *style,
- cairo_t *cr,
- GtkStateType state_type,
- GtkShadowType shadow_type,
- GtkWidget *widget,
- const gchar *detail,
- gint x,
- gint y,
- gint width,
- gint height,
- GtkPositionType gap_side,
- gint gap_x,
- gint gap_width)
+gtk_paint_shadow_gap (GtkStyle *style,
+ cairo_t *cr,
+ GtkStateType state_type,
+ GtkShadowType shadow_type,
+ GtkWidget *widget,
+ const gchar *detail,
+ gint x,
+ gint y,
+ gint width,
+ gint height,
+ GtkPositionType gap_side,
+ gint gap_x,
+ gint gap_width)
{
g_return_if_fail (GTK_IS_STYLE (style));
g_return_if_fail (GTK_STYLE_GET_CLASS (style)->draw_shadow_gap != NULL);
@@ -4953,7 +4953,7 @@ gtk_cairo_paint_shadow_gap (GtkStyle *style,
}
/**
- * gtk_cairo_paint_box_gap:
+ * gtk_paint_box_gap:
* @style: a #GtkStyle
* @cr: a #cairo_t
* @state_type: a state
@@ -4972,19 +4972,19 @@ gtk_cairo_paint_shadow_gap (GtkStyle *style,
* leaving a gap in one side.
*/
void
-gtk_cairo_paint_box_gap (GtkStyle *style,
- cairo_t *cr,
- GtkStateType state_type,
- GtkShadowType shadow_type,
- GtkWidget *widget,
- const gchar *detail,
- gint x,
- gint y,
- gint width,
- gint height,
- GtkPositionType gap_side,
- gint gap_x,
- gint gap_width)
+gtk_paint_box_gap (GtkStyle *style,
+ cairo_t *cr,
+ GtkStateType state_type,
+ GtkShadowType shadow_type,
+ GtkWidget *widget,
+ const gchar *detail,
+ gint x,
+ gint y,
+ gint width,
+ gint height,
+ GtkPositionType gap_side,
+ gint gap_x,
+ gint gap_width)
{
g_return_if_fail (GTK_IS_STYLE (style));
g_return_if_fail (GTK_STYLE_GET_CLASS (style)->draw_box_gap != NULL);
@@ -5002,7 +5002,7 @@ gtk_cairo_paint_box_gap (GtkStyle *style,
}
/**
- * gtk_cairo_paint_extension:
+ * gtk_paint_extension:
* @style: a #GtkStyle
* @cr: a #cairo_t
* @state_type: a state
@@ -5018,17 +5018,17 @@ gtk_cairo_paint_box_gap (GtkStyle *style,
* Draws an extension, i.e. a notebook tab.
**/
void
-gtk_cairo_paint_extension (GtkStyle *style,
- cairo_t *cr,
- GtkStateType state_type,
- GtkShadowType shadow_type,
- GtkWidget *widget,
- const gchar *detail,
- gint x,
- gint y,
- gint width,
- gint height,
- GtkPositionType gap_side)
+gtk_paint_extension (GtkStyle *style,
+ cairo_t *cr,
+ GtkStateType state_type,
+ GtkShadowType shadow_type,
+ GtkWidget *widget,
+ const gchar *detail,
+ gint x,
+ gint y,
+ gint width,
+ gint height,
+ GtkPositionType gap_side)
{
g_return_if_fail (GTK_IS_STYLE (style));
g_return_if_fail (GTK_STYLE_GET_CLASS (style)->draw_extension != NULL);
@@ -5046,7 +5046,7 @@ gtk_cairo_paint_extension (GtkStyle *style,
}
/**
- * gtk_cairo_paint_focus:
+ * gtk_paint_focus:
* @style: a #GtkStyle
* @cr: a #cairo_t
* @state_type: a state
@@ -5061,15 +5061,15 @@ gtk_cairo_paint_extension (GtkStyle *style,
* given style.
*/
void
-gtk_cairo_paint_focus (GtkStyle *style,
- cairo_t *cr,
- GtkStateType state_type,
- GtkWidget *widget,
- const gchar *detail,
- gint x,
- gint y,
- gint width,
- gint height)
+gtk_paint_focus (GtkStyle *style,
+ cairo_t *cr,
+ GtkStateType state_type,
+ GtkWidget *widget,
+ const gchar *detail,
+ gint x,
+ gint y,
+ gint width,
+ gint height)
{
g_return_if_fail (GTK_IS_STYLE (style));
g_return_if_fail (GTK_STYLE_GET_CLASS (style)->draw_focus != NULL);
@@ -5087,7 +5087,7 @@ gtk_cairo_paint_focus (GtkStyle *style,
}
/**
- * gtk_cairo_paint_slider:
+ * gtk_paint_slider:
* @style: a #GtkStyle
* @cr: a #cairo_t
* @state_type: a state
@@ -5104,17 +5104,17 @@ gtk_cairo_paint_focus (GtkStyle *style,
* given style and orientation.
**/
void
-gtk_cairo_paint_slider (GtkStyle *style,
- cairo_t *cr,
- GtkStateType state_type,
- GtkShadowType shadow_type,
- GtkWidget *widget,
- const gchar *detail,
- gint x,
- gint y,
- gint width,
- gint height,
- GtkOrientation orientation)
+gtk_paint_slider (GtkStyle *style,
+ cairo_t *cr,
+ GtkStateType state_type,
+ GtkShadowType shadow_type,
+ GtkWidget *widget,
+ const gchar *detail,
+ gint x,
+ gint y,
+ gint width,
+ gint height,
+ GtkOrientation orientation)
{
g_return_if_fail (GTK_IS_STYLE (style));
g_return_if_fail (GTK_STYLE_GET_CLASS (style)->draw_slider != NULL);
@@ -5132,7 +5132,7 @@ gtk_cairo_paint_slider (GtkStyle *style,
}
/**
- * gtk_cairo_paint_handle:
+ * gtk_paint_handle:
* @style: a #GtkStyle
* @cr: a #cairo_t
* @state_type: a state
@@ -5148,17 +5148,17 @@ gtk_cairo_paint_slider (GtkStyle *style,
* Draws a handle as used in #GtkHandleBox and #GtkPaned.
**/
void
-gtk_cairo_paint_handle (GtkStyle *style,
- cairo_t *cr,
- GtkStateType state_type,
- GtkShadowType shadow_type,
- GtkWidget *widget,
- const gchar *detail,
- gint x,
- gint y,
- gint width,
- gint height,
- GtkOrientation orientation)
+gtk_paint_handle (GtkStyle *style,
+ cairo_t *cr,
+ GtkStateType state_type,
+ GtkShadowType shadow_type,
+ GtkWidget *widget,
+ const gchar *detail,
+ gint x,
+ gint y,
+ gint width,
+ gint height,
+ GtkOrientation orientation)
{
g_return_if_fail (GTK_IS_STYLE (style));
g_return_if_fail (GTK_STYLE_GET_CLASS (style)->draw_handle != NULL);
@@ -5176,7 +5176,7 @@ gtk_cairo_paint_handle (GtkStyle *style,
}
/**
- * gtk_cairo_paint_expander:
+ * gtk_paint_expander:
* @style: a #GtkStyle
* @cr: a #cairo_t
* @state_type: a state
@@ -5199,14 +5199,14 @@ gtk_cairo_paint_handle (GtkStyle *style,
* expanded position.
**/
void
-gtk_cairo_paint_expander (GtkStyle *style,
- cairo_t *cr,
- GtkStateType state_type,
- GtkWidget *widget,
- const gchar *detail,
- gint x,
- gint y,
- GtkExpanderStyle expander_style)
+gtk_paint_expander (GtkStyle *style,
+ cairo_t *cr,
+ GtkStateType state_type,
+ GtkWidget *widget,
+ const gchar *detail,
+ gint x,
+ gint y,
+ GtkExpanderStyle expander_style)
{
g_return_if_fail (GTK_IS_STYLE (style));
g_return_if_fail (GTK_STYLE_GET_CLASS (style)->draw_expander != NULL);
@@ -5222,7 +5222,7 @@ gtk_cairo_paint_expander (GtkStyle *style,
}
/**
- * gtk_cairo_paint_layout:
+ * gtk_paint_layout:
* @style: a #GtkStyle
* @cr: a #cairo_t
* @state_type: a state
@@ -5237,15 +5237,15 @@ gtk_cairo_paint_expander (GtkStyle *style,
* Draws a layout on @cr using the given parameters.
**/
void
-gtk_cairo_paint_layout (GtkStyle *style,
- cairo_t *cr,
- GtkStateType state_type,
- gboolean use_text,
- GtkWidget *widget,
- const gchar *detail,
- gint x,
- gint y,
- PangoLayout *layout)
+gtk_paint_layout (GtkStyle *style,
+ cairo_t *cr,
+ GtkStateType state_type,
+ gboolean use_text,
+ GtkWidget *widget,
+ const gchar *detail,
+ gint x,
+ gint y,
+ PangoLayout *layout)
{
g_return_if_fail (GTK_IS_STYLE (style));
g_return_if_fail (GTK_STYLE_GET_CLASS (style)->draw_layout != NULL);
@@ -5261,7 +5261,7 @@ gtk_cairo_paint_layout (GtkStyle *style,
}
/**
- * gtk_cairo_paint_resize_grip:
+ * gtk_paint_resize_grip:
* @style: a #GtkStyle
* @cr: a #cairo_t
* @state_type: a state
@@ -5277,16 +5277,16 @@ gtk_cairo_paint_layout (GtkStyle *style,
* parameters.
*/
void
-gtk_cairo_paint_resize_grip (GtkStyle *style,
- cairo_t *cr,
- GtkStateType state_type,
- GtkWidget *widget,
- const gchar *detail,
- GdkWindowEdge edge,
- gint x,
- gint y,
- gint width,
- gint height)
+gtk_paint_resize_grip (GtkStyle *style,
+ cairo_t *cr,
+ GtkStateType state_type,
+ GtkWidget *widget,
+ const gchar *detail,
+ GdkWindowEdge edge,
+ gint x,
+ gint y,
+ gint width,
+ gint height)
{
g_return_if_fail (GTK_IS_STYLE (style));
g_return_if_fail (GTK_STYLE_GET_CLASS (style)->draw_resize_grip != NULL);
@@ -5301,7 +5301,7 @@ gtk_cairo_paint_resize_grip (GtkStyle *style,
}
/**
- * gtk_cairo_paint_spinner:
+ * gtk_paint_spinner:
* @style: a #GtkStyle
* @cr: a #cairo_t
* @state_type: a state
@@ -5316,16 +5316,16 @@ gtk_cairo_paint_resize_grip (GtkStyle *style,
* Draws a spinner on @window using the given parameters.
*/
void
-gtk_cairo_paint_spinner (GtkStyle *style,
- cairo_t *cr,
- GtkStateType state_type,
- GtkWidget *widget,
- const gchar *detail,
- guint step,
- gint x,
- gint y,
- gint width,
- gint height)
+gtk_paint_spinner (GtkStyle *style,
+ cairo_t *cr,
+ GtkStateType state_type,
+ GtkWidget *widget,
+ const gchar *detail,
+ guint step,
+ gint x,
+ gint y,
+ gint width,
+ gint height)
{
g_return_if_fail (GTK_IS_STYLE (style));
g_return_if_fail (cr != NULL);
diff --git a/gtk/gtkstyle.h b/gtk/gtkstyle.h
index fe60c66..68f06cf 100644
--- a/gtk/gtkstyle.h
+++ b/gtk/gtkstyle.h
@@ -433,7 +433,7 @@ GdkPixbuf* gtk_style_render_icon (GtkStyle *style,
GtkWidget *widget,
const gchar *detail);
-void gtk_cairo_paint_hline (GtkStyle *style,
+void gtk_paint_hline (GtkStyle *style,
cairo_t *cr,
GtkStateType state_type,
GtkWidget *widget,
@@ -441,7 +441,7 @@ void gtk_cairo_paint_hline (GtkStyle *style,
gint x1,
gint x2,
gint y);
-void gtk_cairo_paint_vline (GtkStyle *style,
+void gtk_paint_vline (GtkStyle *style,
cairo_t *cr,
GtkStateType state_type,
GtkWidget *widget,
@@ -449,7 +449,7 @@ void gtk_cairo_paint_vline (GtkStyle *style,
gint y1_,
gint y2_,
gint x);
-void gtk_cairo_paint_shadow (GtkStyle *style,
+void gtk_paint_shadow (GtkStyle *style,
cairo_t *cr,
GtkStateType state_type,
GtkShadowType shadow_type,
@@ -459,7 +459,7 @@ void gtk_cairo_paint_shadow (GtkStyle *style,
gint y,
gint width,
gint height);
-void gtk_cairo_paint_arrow (GtkStyle *style,
+void gtk_paint_arrow (GtkStyle *style,
cairo_t *cr,
GtkStateType state_type,
GtkShadowType shadow_type,
@@ -471,7 +471,7 @@ void gtk_cairo_paint_arrow (GtkStyle *style,
gint y,
gint width,
gint height);
-void gtk_cairo_paint_diamond (GtkStyle *style,
+void gtk_paint_diamond (GtkStyle *style,
cairo_t *cr,
GtkStateType state_type,
GtkShadowType shadow_type,
@@ -481,7 +481,7 @@ void gtk_cairo_paint_diamond (GtkStyle *style,
gint y,
gint width,
gint height);
-void gtk_cairo_paint_box (GtkStyle *style,
+void gtk_paint_box (GtkStyle *style,
cairo_t *cr,
GtkStateType state_type,
GtkShadowType shadow_type,
@@ -491,7 +491,7 @@ void gtk_cairo_paint_box (GtkStyle *style,
gint y,
gint width,
gint height);
-void gtk_cairo_paint_flat_box (GtkStyle *style,
+void gtk_paint_flat_box (GtkStyle *style,
cairo_t *cr,
GtkStateType state_type,
GtkShadowType shadow_type,
@@ -501,7 +501,7 @@ void gtk_cairo_paint_flat_box (GtkStyle *style,
gint y,
gint width,
gint height);
-void gtk_cairo_paint_check (GtkStyle *style,
+void gtk_paint_check (GtkStyle *style,
cairo_t *cr,
GtkStateType state_type,
GtkShadowType shadow_type,
@@ -511,7 +511,7 @@ void gtk_cairo_paint_check (GtkStyle *style,
gint y,
gint width,
gint height);
-void gtk_cairo_paint_option (GtkStyle *style,
+void gtk_paint_option (GtkStyle *style,
cairo_t *cr,
GtkStateType state_type,
GtkShadowType shadow_type,
@@ -521,7 +521,7 @@ void gtk_cairo_paint_option (GtkStyle *style,
gint y,
gint width,
gint height);
-void gtk_cairo_paint_tab (GtkStyle *style,
+void gtk_paint_tab (GtkStyle *style,
cairo_t *cr,
GtkStateType state_type,
GtkShadowType shadow_type,
@@ -531,7 +531,7 @@ void gtk_cairo_paint_tab (GtkStyle *style,
gint y,
gint width,
gint height);
-void gtk_cairo_paint_shadow_gap (GtkStyle *style,
+void gtk_paint_shadow_gap (GtkStyle *style,
cairo_t *cr,
GtkStateType state_type,
GtkShadowType shadow_type,
@@ -544,7 +544,7 @@ void gtk_cairo_paint_shadow_gap (GtkStyle *style,
GtkPositionType gap_side,
gint gap_x,
gint gap_width);
-void gtk_cairo_paint_box_gap (GtkStyle *style,
+void gtk_paint_box_gap (GtkStyle *style,
cairo_t *cr,
GtkStateType state_type,
GtkShadowType shadow_type,
@@ -557,7 +557,7 @@ void gtk_cairo_paint_box_gap (GtkStyle *style,
GtkPositionType gap_side,
gint gap_x,
gint gap_width);
-void gtk_cairo_paint_extension (GtkStyle *style,
+void gtk_paint_extension (GtkStyle *style,
cairo_t *cr,
GtkStateType state_type,
GtkShadowType shadow_type,
@@ -568,7 +568,7 @@ void gtk_cairo_paint_extension (GtkStyle *style,
gint width,
gint height,
GtkPositionType gap_side);
-void gtk_cairo_paint_focus (GtkStyle *style,
+void gtk_paint_focus (GtkStyle *style,
cairo_t *cr,
GtkStateType state_type,
GtkWidget *widget,
@@ -577,7 +577,7 @@ void gtk_cairo_paint_focus (GtkStyle *style,
gint y,
gint width,
gint height);
-void gtk_cairo_paint_slider (GtkStyle *style,
+void gtk_paint_slider (GtkStyle *style,
cairo_t *cr,
GtkStateType state_type,
GtkShadowType shadow_type,
@@ -588,7 +588,7 @@ void gtk_cairo_paint_slider (GtkStyle *style,
gint width,
gint height,
GtkOrientation orientation);
-void gtk_cairo_paint_handle (GtkStyle *style,
+void gtk_paint_handle (GtkStyle *style,
cairo_t *cr,
GtkStateType state_type,
GtkShadowType shadow_type,
@@ -599,7 +599,7 @@ void gtk_cairo_paint_handle (GtkStyle *style,
gint width,
gint height,
GtkOrientation orientation);
-void gtk_cairo_paint_expander (GtkStyle *style,
+void gtk_paint_expander (GtkStyle *style,
cairo_t *cr,
GtkStateType state_type,
GtkWidget *widget,
@@ -607,7 +607,7 @@ void gtk_cairo_paint_expander (GtkStyle *style,
gint x,
gint y,
GtkExpanderStyle expander_style);
-void gtk_cairo_paint_layout (GtkStyle *style,
+void gtk_paint_layout (GtkStyle *style,
cairo_t *cr,
GtkStateType state_type,
gboolean use_text,
@@ -616,7 +616,7 @@ void gtk_cairo_paint_layout (GtkStyle *style,
gint x,
gint y,
PangoLayout *layout);
-void gtk_cairo_paint_resize_grip (GtkStyle *style,
+void gtk_paint_resize_grip (GtkStyle *style,
cairo_t *cr,
GtkStateType state_type,
GtkWidget *widget,
@@ -626,7 +626,7 @@ void gtk_cairo_paint_resize_grip (GtkStyle *style,
gint y,
gint width,
gint height);
-void gtk_cairo_paint_spinner (GtkStyle *style,
+void gtk_paint_spinner (GtkStyle *style,
cairo_t *cr,
GtkStateType state_type,
GtkWidget *widget,
diff --git a/gtk/gtktearoffmenuitem.c b/gtk/gtktearoffmenuitem.c
index 5843665..f00682e 100644
--- a/gtk/gtktearoffmenuitem.c
+++ b/gtk/gtktearoffmenuitem.c
@@ -152,7 +152,7 @@ gtk_tearoff_menu_item_draw (GtkWidget *widget,
gtk_widget_style_get (widget,
"selected-shadow-type", &selected_shadow_type,
NULL);
- gtk_cairo_paint_box (style,
+ gtk_paint_box (style,
cr,
GTK_STATE_PRELIGHT,
selected_shadow_type,
@@ -196,7 +196,7 @@ gtk_tearoff_menu_item_draw (GtkWidget *widget,
}
- gtk_cairo_paint_arrow (style, cr,
+ gtk_paint_arrow (style, cr,
state, shadow_type,
widget, "tearoffmenuitem",
arrow_type, FALSE,
@@ -217,7 +217,7 @@ gtk_tearoff_menu_item_draw (GtkWidget *widget,
x2 = MAX (right_max - x - TEAR_LENGTH, 0);
}
- gtk_cairo_paint_hline (style, cr, GTK_STATE_NORMAL,
+ gtk_paint_hline (style, cr, GTK_STATE_NORMAL,
widget, "tearoffmenuitem",
x1, x2, y + (height - style->ythickness) / 2);
x += 2 * TEAR_LENGTH;
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index 48278fe..a933d37 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -4908,7 +4908,7 @@ gtk_text_view_draw_focus (GtkWidget *widget,
if (gtk_widget_has_focus (widget) && !interior_focus)
{
- gtk_cairo_paint_focus (gtk_widget_get_style (widget), cr,
+ gtk_paint_focus (gtk_widget_get_style (widget), cr,
gtk_widget_get_state (widget),
widget, "textview",
0, 0,
diff --git a/gtk/gtktoolbar.c b/gtk/gtktoolbar.c
index e6be914..e910444 100644
--- a/gtk/gtktoolbar.c
+++ b/gtk/gtktoolbar.c
@@ -824,7 +824,7 @@ gtk_toolbar_draw (GtkWidget *widget,
border_width = gtk_container_get_border_width (GTK_CONTAINER (widget));
- gtk_cairo_paint_box (gtk_widget_get_style (widget),
+ gtk_paint_box (gtk_widget_get_style (widget),
cr,
gtk_widget_get_state (widget),
get_shadow_type (toolbar),
@@ -3648,7 +3648,7 @@ _gtk_toolbar_paint_space_line (GtkWidget *widget,
NULL);
if (wide_separators)
- gtk_cairo_paint_box (style, cr,
+ gtk_paint_box (style, cr,
state, GTK_SHADOW_ETCHED_OUT,
widget, "vseparator",
(width - separator_width) / 2,
@@ -3656,7 +3656,7 @@ _gtk_toolbar_paint_space_line (GtkWidget *widget,
separator_width,
height * (end_fraction - start_fraction));
else
- gtk_cairo_paint_vline (style, cr,
+ gtk_paint_vline (style, cr,
state, widget,
"toolbar",
height * start_fraction,
@@ -3674,7 +3674,7 @@ _gtk_toolbar_paint_space_line (GtkWidget *widget,
NULL);
if (wide_separators)
- gtk_cairo_paint_box (style, cr,
+ gtk_paint_box (style, cr,
state, GTK_SHADOW_ETCHED_OUT,
widget, "hseparator",
width * start_fraction,
@@ -3682,7 +3682,7 @@ _gtk_toolbar_paint_space_line (GtkWidget *widget,
width * (end_fraction - start_fraction),
separator_height);
else
- gtk_cairo_paint_hline (style, cr,
+ gtk_paint_hline (style, cr,
state, widget,
"toolbar",
width * start_fraction,
diff --git a/gtk/gtktoolitemgroup.c b/gtk/gtktoolitemgroup.c
index 5837333..17b3f22 100644
--- a/gtk/gtktoolitemgroup.c
+++ b/gtk/gtktoolitemgroup.c
@@ -297,7 +297,7 @@ gtk_tool_item_group_header_draw_cb (GtkWidget *widget,
expander_style = GTK_EXPANDER_EXPANDED - expander_style;
}
- gtk_cairo_paint_expander (gtk_widget_get_style (widget),
+ gtk_paint_expander (gtk_widget_get_style (widget),
cr,
gtk_widget_get_state (priv->header),
GTK_WIDGET (group),
diff --git a/gtk/gtktooltip.c b/gtk/gtktooltip.c
index e70cd18..7bc8c2a 100644
--- a/gtk/gtktooltip.c
+++ b/gtk/gtktooltip.c
@@ -523,7 +523,7 @@ gtk_tooltip_paint_window (GtkTooltip *tooltip,
int width,
int height)
{
- gtk_cairo_paint_flat_box (gtk_widget_get_style (tooltip->window),
+ gtk_paint_flat_box (gtk_widget_get_style (tooltip->window),
cr,
GTK_STATE_NORMAL,
GTK_SHADOW_OUT,
diff --git a/gtk/gtktrayicon-x11.c b/gtk/gtktrayicon-x11.c
index 9d1de73..24c559b 100644
--- a/gtk/gtktrayicon-x11.c
+++ b/gtk/gtktrayicon-x11.c
@@ -364,7 +364,7 @@ gtk_tray_icon_draw (GtkWidget *widget,
{
border_width = gtk_container_get_border_width (GTK_CONTAINER (widget));
- gtk_cairo_paint_focus (gtk_widget_get_style (widget),
+ gtk_paint_focus (gtk_widget_get_style (widget),
cr,
gtk_widget_get_state (widget),
widget, "tray_icon",
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index 16c0799..05915c8 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -4227,7 +4227,7 @@ draw_empty_focus (GtkTreeView *tree_view, cairo_t *cr)
h -= 2;
if (w > 0 && h > 0)
- gtk_cairo_paint_focus (gtk_widget_get_style (widget),
+ gtk_paint_focus (gtk_widget_get_style (widget),
cr,
gtk_widget_get_state (widget),
widget,
@@ -4403,7 +4403,7 @@ gtk_tree_view_bin_draw (GtkWidget *widget,
if (tree_view->priv->height < bin_window_height)
{
- gtk_cairo_paint_flat_box (style,
+ gtk_paint_flat_box (style,
cr,
gtk_widget_get_state (widget),
GTK_SHADOW_NONE,
@@ -4665,7 +4665,7 @@ gtk_tree_view_bin_draw (GtkWidget *widget,
else
g_snprintf (new_detail, 127, "%s_middle", detail);
- gtk_cairo_paint_flat_box (style,
+ gtk_paint_flat_box (style,
cr,
state,
GTK_SHADOW_NONE,
@@ -4697,7 +4697,7 @@ gtk_tree_view_bin_draw (GtkWidget *widget,
expander_cell_width = cell_area.width;
if (is_separator)
- gtk_cairo_paint_hline (style,
+ gtk_paint_hline (style,
cr,
state,
widget,
@@ -4731,7 +4731,7 @@ gtk_tree_view_bin_draw (GtkWidget *widget,
else
{
if (is_separator)
- gtk_cairo_paint_hline (style,
+ gtk_paint_hline (style,
cr,
state,
widget,
@@ -4882,7 +4882,7 @@ gtk_tree_view_bin_draw (GtkWidget *widget,
gdk_drawable_get_size (tree_view->priv->bin_window,
&width, NULL);
- gtk_cairo_paint_focus (style,
+ gtk_paint_focus (style,
cr,
gtk_widget_get_state (widget),
widget,
@@ -4936,7 +4936,7 @@ gtk_tree_view_bin_draw (GtkWidget *widget,
tmp_height = ROW_HEIGHT (tree_view, BACKGROUND_HEIGHT (node));
}
- gtk_cairo_paint_focus (style,
+ gtk_paint_focus (style,
cr,
focus_rect_state,
widget,
@@ -9550,7 +9550,7 @@ gtk_tree_view_draw_arrow (GtkTreeView *tree_view,
else
expander_style = GTK_EXPANDER_COLLAPSED;
- gtk_cairo_paint_expander (gtk_widget_get_style (widget),
+ gtk_paint_expander (gtk_widget_get_style (widget),
cr,
state,
widget,
@@ -13828,7 +13828,7 @@ gtk_tree_view_create_row_drag_icon (GtkTreeView *tree_view,
if (gtk_tree_view_column_cell_is_visible (column))
{
if (is_separator)
- gtk_cairo_paint_hline (style,
+ gtk_paint_hline (style,
cr,
GTK_STATE_NORMAL,
widget,
diff --git a/gtk/gtktreeviewcolumn.c b/gtk/gtktreeviewcolumn.c
index 445f09d..341f5ad 100644
--- a/gtk/gtktreeviewcolumn.c
+++ b/gtk/gtktreeviewcolumn.c
@@ -3502,7 +3502,7 @@ _gtk_tree_view_column_cell_draw_focus (GtkTreeViewColumn *tree_column,
cell_state = flags & GTK_CELL_RENDERER_SELECTED ? GTK_STATE_SELECTED :
(flags & GTK_CELL_RENDERER_PRELIT ? GTK_STATE_PRELIGHT :
(flags & GTK_CELL_RENDERER_INSENSITIVE ? GTK_STATE_INSENSITIVE : GTK_STATE_NORMAL));
- gtk_cairo_paint_focus (gtk_widget_get_style (tree_column->tree_view),
+ gtk_paint_focus (gtk_widget_get_style (tree_column->tree_view),
cr,
cell_state,
tree_column->tree_view,
diff --git a/gtk/gtkviewport.c b/gtk/gtkviewport.c
index e884941..e1d0d03 100644
--- a/gtk/gtkviewport.c
+++ b/gtk/gtkviewport.c
@@ -778,7 +778,7 @@ gtk_viewport_draw (GtkWidget *widget,
{
gdk_drawable_get_size (gtk_widget_get_window (widget),
&w, &h);
- gtk_cairo_paint_shadow (gtk_widget_get_style (widget),
+ gtk_paint_shadow (gtk_widget_get_style (widget),
cr,
GTK_STATE_NORMAL, priv->shadow_type,
widget, "viewport",
@@ -789,7 +789,7 @@ gtk_viewport_draw (GtkWidget *widget,
{
gdk_window_get_position (priv->bin_window, &x, &y);
gdk_drawable_get_size (priv->bin_window, &w, &h);
- gtk_cairo_paint_flat_box (gtk_widget_get_style (widget), cr,
+ gtk_paint_flat_box (gtk_widget_get_style (widget), cr,
GTK_STATE_NORMAL, GTK_SHADOW_NONE,
widget, "viewportbin",
x, y, w, h);
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 9990cc9..68270b7 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -6668,7 +6668,7 @@ gtk_window_draw (GtkWidget *widget,
int height)
{
if (!gtk_widget_get_app_paintable (widget))
- gtk_cairo_paint_flat_box (gtk_widget_get_style (widget),
+ gtk_paint_flat_box (gtk_widget_get_style (widget),
cr,
GTK_STATE_NORMAL,
GTK_SHADOW_NONE, widget, "base",
diff --git a/tests/gtkoffscreenbox.c b/tests/gtkoffscreenbox.c
index 0b5c2bc..670d484 100644
--- a/tests/gtkoffscreenbox.c
+++ b/tests/gtkoffscreenbox.c
@@ -629,7 +629,7 @@ gtk_offscreen_box_draw (GtkWidget *widget,
gint w, h;
gdk_drawable_get_size (offscreen_box->offscreen_window1, &w, &h);
- gtk_cairo_paint_flat_box (gtk_widget_get_style (widget), cr,
+ gtk_paint_flat_box (gtk_widget_get_style (widget), cr,
GTK_STATE_NORMAL, GTK_SHADOW_NONE,
widget, "blah",
0, 0, w, h);
@@ -644,7 +644,7 @@ gtk_offscreen_box_draw (GtkWidget *widget,
gint w, h;
gdk_drawable_get_size (offscreen_box->offscreen_window2, &w, &h);
- gtk_cairo_paint_flat_box (gtk_widget_get_style (widget), cr,
+ gtk_paint_flat_box (gtk_widget_get_style (widget), cr,
GTK_STATE_NORMAL, GTK_SHADOW_NONE,
widget, "blah",
0, 0, w, h);
diff --git a/tests/testgtk.c b/tests/testgtk.c
index d075cad..3a0bd7f 100644
--- a/tests/testgtk.c
+++ b/tests/testgtk.c
@@ -2567,7 +2567,7 @@ grippy_button_press (GtkWidget *area, GdkEventButton *event, GdkWindowEdge edge)
static gboolean
grippy_draw (GtkWidget *area, cairo_t *cr, int width, int height, GdkWindowEdge edge)
{
- gtk_cairo_paint_resize_grip (gtk_widget_get_style (area),
+ gtk_paint_resize_grip (gtk_widget_get_style (area),
cr,
gtk_widget_get_state (area),
area,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]