Re: Using a table container in a "gnome_app" widget ?
- From: Magnus Wirström <asd mail bip net>
- To: Chema Celorio <chema celorio com>
- Cc: GNOME DEVEL LIST <gnome-devel-list gnome org>
- Subject: Re: Using a table container in a "gnome_app" widget ?
- Date: Sun, 02 Jul 2000 00:38:15 +0200
Sorry for that !!!
Well...I am making a gnome application by using the gnome_app widget ... so
far all is good ... I got my toolbar and and my statusbar ... But now I
wanna put some widget in the main window... So I decided to use table
containers because it seems to fit my use ... So I wrote a code looking
like this:
GtkWidget* app;
GtkWidget* table;
Gtkwidget* button;
gnome_init ("example", "0.1", argc, argv);
/* Create a Gnome app widget, which sets up a basic
window for your application */
app = gnome_app_new ("example",
"GNOME Application");
table = gtk_table_new(2, 2, FALSE);
.......
gnome_app_set_contents(GNOME_APP(app), table);
button = gtk_button_new_with_label("button 1");
gtk_table_attach(GTK_TABLE(table),
button,
0, 1,
0, 1,
GTK_FILL,
GTK_FILL,
0,
0);
ect,ect
.......
gtk_widget_show_all(app);
/* enter the main loop */
gtk_main ();
And so on ... well it does not display anything in the main window... only
the toolbar and the statusbar ...
What is I doing wrong ???
any ideas ???
/Magnus
Chema Celorio wrote:
> Nobody is going to be able to help you with so little infromation
> you provided.
>
> Chema
>
> Magnus Wirström wrote:
> >
> > Hi ...
> >
> > I am trying to put a table container in a gnome app widget ... and I
> > can't get it to work ... I only get it to work in a gtk_window widget
> > ... anyone know why ???
> >
> > Thanks =)
>
> _______________________________________________
> gnome-devel-list mailing list
> gnome-devel-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gnome-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]