Commit 165ceb33 authored by Monty Montgomery's avatar Monty Montgomery

Eliminate dependency on an internal gtk_check_button function that

happens to exist in some Gtk2 version and not others.



git-svn-id: https://svn.xiph.org/trunk/postfish@6789 0101bb08-14d6-0310-b084-bc0e0c8e3800
parent c5bb7722
......@@ -66,6 +66,18 @@ static void draw_triangle (GtkStyle *style,
}
static void windowbutton_get_props (GtkCheckButton *check_button,
gint *indicator_size,
gint *indicator_spacing){
GtkWidget *widget = GTK_WIDGET (check_button);
if (indicator_size)
gtk_widget_style_get (widget, "indicator_size", indicator_size, NULL);
if (indicator_spacing)
gtk_widget_style_get (widget, "indicator_spacing", indicator_spacing, NULL);
}
static void windowbutton_draw_indicator (GtkCheckButton *check_button,
GdkRectangle *area){
GtkWidget *widget;
......@@ -91,7 +103,7 @@ static void windowbutton_draw_indicator (GtkCheckButton *check_button,
"focus-line-width", &focus_width,
"focus-padding", &focus_pad, NULL);
_gtk_check_button_get_props (check_button, &indicator_size,
windowbutton_get_props (check_button, &indicator_size,
&indicator_spacing);
x = widget->allocation.x +
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment