problems compiling



im having a problem compiling gtk+ 1.2.8 on my redhat 6.2 system
more specificly

gtklayout.c: In function `gtk_layout_put':
gtklayout.c:258: parse error before `)'
gtklayout.c:258: parse error before `)'
gtklayout.c:258: parse error before `)'
gtklayout.c:258: parse error before `)'
gtklayout.c:259: undefined or invalid # directive
gtklayout.c: In function `gtk_layout_position_child':
gtklayout.c:755: parse error before `)'
gtklayout.c:755: parse error before `)'
gtklayout.c:755: parse error before `)'
gtklayout.c:755: parse error before `)'

this is the code

gtk_layout_put (GtkLayout     *layout,
                GtkWidget     *child_widget,
                gint           x,
                gint           y)
{
  GtkLayoutChild *child;

  g_return_if_fail (layout != NULL);
  g_return_if_fail (GTK_IS_LAYOUT (layout));
  g_return_if_fail (child_widget != NULL);
  g_return_if_fail (GTK_IS_WIDGET (child_widget));

  child = g_new (GtkLayoutChild, 1);

  child->widget = child_widget;
  child->x = x;
  child->y = y;

  layout->children = g_list_append (layout->children, child);

  gtk_widget_set_parent (child_widget, GTK_WIDGET (layout));
  if (GTK_WIDGET_REALIZED (layout))
    gtk_widget_set_parent_window (child->widget, layout->bin_window);

  if (!IS_ONSCREEN(x,y))
    GTK_PRIVATE_SET_FLAG (child_widget, GTK_IS_OFFSCREEN);

if (GTK_WIDGET_REALIZED (layout))
    gtk_widget_realize (child_widget);

  if (GTK_WIDGET_VISIBLE (layout) && GTK_WIDGET_VISIBLE (child_widget))
    {
      if (GTK_WIDGET_MAPPED (layout))
        gtk_widget_map (child_widget);

      gtk_widget_queue_resize (child_widget);
    }
}


anybody know whats wrong with this ??

thanks
bjorn





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]