add -DPROGRAM_NAME to libpbd compile flags
[ardour.git] / libs / clearlooks-newer / cairo-support.c
index dbe6fd3d346454633671984f5bab748bd44d9569..fa195776a2ae43c7a04bb9c3f9be9d7792fee6f0 100644 (file)
@@ -491,7 +491,7 @@ void ge_cairo_polygon (cairo_t *cr,
                }
        }
        
-       if ((points[npoints-1].x != points[0].y) ||
+       if ((points[npoints-1].x != points[0].x) ||
                (points[npoints-1].y != points[0].y))
        {
                cairo_line_to(cr, points[0].x, points[0].y);
@@ -809,7 +809,9 @@ GE_EXPORT const gchar* g_module_check_init (GModule *module);
 const gchar*
 g_module_check_init (GModule *module)
 {
-  return gtk_check_version (GTK_MAJOR_VERSION,
-                           GTK_MINOR_VERSION,
-                           GTK_MICRO_VERSION - GTK_INTERFACE_AGE);
+       (void) module;
+       
+       return gtk_check_version (GTK_MAJOR_VERSION,
+                                 GTK_MINOR_VERSION,
+                                 GTK_MICRO_VERSION - GTK_INTERFACE_AGE);
 }