gtk_table slowing down gui?
- From: Orlando Juretzki <orlando juretzki net>
- To: gtk-app-devel-list gnome org
- Subject: gtk_table slowing down gui?
- Date: Sat, 19 Jun 2004 17:49:08 +0200
Hello,
I am packing a menu (menubar), a text widget and an entry field with a
gtk_table.
The window the table is added to needs about 10 seconds to be shown and runs
very slow (e.g. activating menuitems). If i remove the gtk_table_attach...
lines, it is fast enough and pops up immediately.
------------------------------------------------------
GtkWidget *txtchat;
GtkWidget *txtinput;
GtkWidget *maintable; /* local */
...
txtchat = gtk_text_new(NULL, NULL);
txtinput = gtk_entry_new();
maintable = gtk_table_new(2, 2, FALSE);
gtk_table_attach(GTK_TABLE(maintable), GTK_WIDGET(menubar), 0, 1, 0, 1, GTK_EXPAND|GTK_FILL, GTK_SHRINK, 0,
0);
gtk_table_attach(GTK_TABLE(maintable), GTK_WIDGET(txtchat), 0, 1, 1, 2, GTK_EXPAND|GTK_FILL,
GTK_EXPAND|GTK_FILL|GTK_SHRINK, 0, 0);
gtk_table_attach(GTK_TABLE(maintable), GTK_WIDGET(txtinput), 0, 1, 2, 3, GTK_EXPAND|GTK_FILL, GTK_SHRINK, 0,
0);
gtk_container_add(GTK_CONTAINER(mainwin), GTK_WIDGET(maintable));
...
gtk_widget_show(txtchat);
gtk_widget_show(txtinput);
gtk_widget_show(maintable);
gtk_widget_show(mainwin);
Thanks
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]