* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
+
+/*
+ * Modified by the GTK+ Team and others 1997-1999. See the AUTHORS
+ * file for a list of people on the GTK+ Team. See the ChangeLog
+ * files for a list of changes. These files are distributed with
+ * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
+ */
+
#include "gtkhseparator.h"
if (!hseparator_type)
{
- GtkTypeInfo hseparator_info =
+ static const GtkTypeInfo hseparator_info =
{
"GtkHSeparator",
sizeof (GtkHSeparator),
g_return_val_if_fail (event != NULL, FALSE);
if (GTK_WIDGET_DRAWABLE (widget))
- gtk_draw_hline (widget->style, widget->window, GTK_STATE_NORMAL,
- widget->allocation.x,
- widget->allocation.x + widget->allocation.width,
- widget->allocation.y + (widget->allocation.height -
- widget->style->klass->ythickness) / 2);
+ gtk_paint_hline (widget->style, widget->window, GTK_STATE_NORMAL,
+ &event->area, widget, "hseparator",
+ widget->allocation.x,
+ widget->allocation.x + widget->allocation.width,
+ widget->allocation.y + (widget->allocation.height -
+ widget->style->klass->ythickness) / 2);
return FALSE;
}