gtk develop question

  GtkWidget *win;
  GtkWidget *lbl1;

/* create a window */
  win = gtk_window_new(GTK_WINDOW_TOPLEVEL);

  gtk_signal_connect(GTK_OBJECT (win), "destroy",
     GTK_SIGNAL_FUNC(destroy), NULL);

  gtk_container_set_border_width(GTK_CONTAINER (win), 10);

  /* create a label */
  lbl1= gtk_label_new("And now for something completely different ...");
  gtk_container_add(GTK_CONTAINER(win), lbl1);
  /* show everything */
  gtk_widget_show (win);
how to do i will can access the "lbl1" object through "win" object?

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