]> Pileus Git - ~andy/gtk/blobdiff - gtk/gtkhseparator.c
Don't define HAVE_DIMM_H if MSC, as you have to get the Platform SDK to
[~andy/gtk] / gtk / gtkhseparator.c
index 88cd4642f91dadf65ef82e22644dbe77138ac55a..7d28457938ac45f12cfa2e5b0b1c35106238b767 100644 (file)
  * 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"
 
 
@@ -32,7 +40,7 @@ gtk_hseparator_get_type (void)
 
   if (!hseparator_type)
     {
-      GtkTypeInfo hseparator_info =
+      static const GtkTypeInfo hseparator_info =
       {
        "GtkHSeparator",
        sizeof (GtkHSeparator),
@@ -83,11 +91,12 @@ gtk_hseparator_expose (GtkWidget      *widget,
   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;
 }