GtkFixed disables expand propertiy of GtkVBox ?
- From: sphurti durgade <sphurti study yahoo com>
- To: gtk-app-devel-list gnome org
- Subject: GtkFixed disables expand propertiy of GtkVBox ?
- Date: Wed, 14 Nov 2007 23:58:03 -0800 (PST)
Hi
i am packing /putting notebook and one search box into fixed (GtkFixed). and this fixed is packed into vbox
with expand and fill parameter as TRUE . so that when i maximized window only notebook get expand but
when i maximized window the notebook is not get expanded
i am not getting where i am wrong. and not getting how fixed working .
please can anybody help me . The code is as follows
vbox = gtk_vbox_new (FALSE, 0);
/*----- Notebook------*/
notebook = gtk_notebook_new ();
gtk_notebook_set_tab_pos (GTK_NOTEBOOK (notebook), GTK_POS_TOP);
label = gtk_label_new ("tab1");
tab = gtk_frame_new("Frame1");
gtk_widget_set_size_request(tab,300,450);
gtk_notebook_append_page (GTK_NOTEBOOK(notebook ), tab, label);
label = gtk_label_new ("tab2");
tab = gtk_frame_new("Frame2");
gtk_notebook_append_page (GTK_NOTEBOOK(notebook ), tab, label);
/*----search box -----*/
label = gtk_label_new ("Search");
tab = gtk_entry_new_with_max_length (20);
hbox = gtk_hbox_new (FALSE, 0);
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
gtk_box_pack_start (GTK_BOX (hbox), tab, FALSE, FALSE, 0);
fixed= gtk_fixed_new();
gtk_fixed_put (GTK_FIXED(fixed),notebook,3,3);
gtk_fixed_put (GTK_FIXED(fixed),hbox,100,3);
gtk_box_pack_start (GTK_BOX (vbox), fixed, TRUE, TRUE, 0);
gtk_container_add (GTK_CONTAINER (window),vbox);
gtk_widget_show_all(window);
Thank you
sphurti
Why delete messages? Unlimited storage is just a click away. Go to
http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]