How to add button to paned window widgets ?



I add text entry widgets to the second part of paned window widgets and I want to add button to this part too,but it can't work,I don't know why............ I just only adjust the code (I use the example code of paned window widgets in GTK1_2 tutorial as shown on the site) like this.....

   table = gtk_table_new(9, 11, TRUE);
   gtk_container_add(GTK_CONTAINER(window), table);
   gtk_widget_show(table);

   entry = gtk_entry_new_with_max_length(50);
   gtk_paned_add2 (GTK_PANED(vpaned), entry);
   gtk_table_attach_defaults(GTK_TABLE(table), text2, 4, 9, 3, 4);
   gtk_widget_show (entry);

   hseparator = gtk_hseparator_new();
   gtk_table_attach_defaults(GTK_TABLE(table), hseparator, 0, 11, 5, 6);
   gtk_widget_show(hseparator);

   button = gtk_button_new_with_label("Show");
   gtk_table_attach_defaults(GTK_TABLE(table), button, 1, 3, 7, 8);
   gtk_signal_connect(GTK_OBJECT(button), "clicked",
   GTK_SIGNAL_FUNC(show_dialog), NULL);
   gtk_widget_show(button);

but the output is shown only the entry box(text entry box), so is it mean that each Pane window widget only support one widget?,so pane window widget divide an area into two parts,but each part only can use one widget???
Thanks for your help!

_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail




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