set widget size



Hello,

i have a TreeView in a ScrolledWindow thgoughout a function, in it's arguments is the pointer to the container_Widget.

For now i always call it, just for testing, in a toplevel_Window.

So the toplevel_Window is the container, which will be set like...

--
GtkWidget       *table_view ( GtkContainer *container ,
        mysql_setup_data *db_setup , char *table ) {
.
.
.
GtkWidget *viewport = gtk_scrolled_window_new ( NULL , NULL );

data.tree = gtk_tree_view_new ( );
.
.
.

gtk_widget_get_size_request ( GTK_WIDGET ( data.tree ) , &data.i ,
        &data.j );

gtk_widget_set_size_request ( GTK_WIDGET ( container ) , data.i ,
        data.j );

gtk_container_add ( GTK_CONTAINER ( viewport ) , data.tree );
.
.
.}
--

...whats my problem?

thx
chabayo





___________________________________________________________
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de



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