Gtk Dialog problem



Hi..

I want to create the gtk dialog for: "About 'program name'".. and also
Im getting errors, the code:

int seccion_acerca(GtkWidget *boton) {
  GtkWidget *ventana_acerca, *button;

  /*Creamos la ventana Pop-up*/
  ventana_acerca = gtk_dialog_new ();
  GTK_WINDOW (ventana_acerca)->type = GTK_WINDOW_DIALOG;
  gtk_window_set_title (GTK_WINDOW (ventana_acerca), "Notice:");

  /*Creamos la imagen*/
  imagen = gtk_button_new();
  gtk_container_add(GTK_CONTAINER(ventana_acerca), imagen);

  gtk_widget_show_all(ventana_acerca);
  return 0;

}

I get:

Gtk-CRITICAL **: file gtkbin.c: line 217 (gtk_bin_add): assertion
`bin->child == NULL' failed.

What could be bad?

PAul Fischer

Attachment: signature.asc
Description: Esta parte del mensaje esta firmada digitalmente



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