[xiph-cvs] r6789 - trunk/postfish
xiphmont at xiph.org
xiphmont at xiph.org
Sat May 29 20:08:53 PDT 2004
Author: xiphmont
Date: 2004-05-29 23:08:53 -0400 (Sat, 29 May 2004)
New Revision: 6789
Modified:
trunk/postfish/windowbutton.c
Log:
Eliminate dependency on an internal gtk_check_button function that
happens to exist in some Gtk2 version and not others.
<p><p>Modified: trunk/postfish/windowbutton.c
===================================================================
--- trunk/postfish/windowbutton.c 2004-05-30 01:12:29 UTC (rev 6788)
+++ trunk/postfish/windowbutton.c 2004-05-30 03:08:53 UTC (rev 6789)
@@ -66,6 +66,18 @@
}
+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 @@
"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 +
--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the commits
mailing list