Re: VBox child problem



Russell Shaw wrote:
Hi,

This code displays "Hi" in a window:

  GtkWidget *table=table_new();            // empty table
  GtkWidget *label=gtk_label_new("Hi");
  gtk_box_pack_start(GTK_BOX(table),label,FALSE,FALSE,0);

  gtk_container_add(GTK_CONTAINER(window),table);
  gtk_widget_show_all(window);
  gtk_main ();


This code gives an error:...

When changing the parent object, remember to change
parent_class and container in the class and instance structs;)



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