buttons



This is probably a silly question that I should know the answer to, but 
since it does not seem to work let me ask it anyway.  The application I am 
writing is   supposed to start UNIX tasks and in the upper part of the 
application I have a horizontal (hbox) on top of a vertical box (vbox).  In 
the hbox I pack a couple of things and the last thing I want to pack is a 
push button.  When I put this in the hbox, the usize does not seem to take 
effect vertically, in the horizontal box.  If this is unclear here is some 
sample code.

update_final_p = gtk_button_new_with_label("test");
gtk_widget_set_usize(update_final_p,10,10);
gtk_box_pack_start(GTK_BOX(hbox_p),update_final_p,FALSE,FALSE,NO_PADDING);

I have tried different combinations of FALSE and TRUE to no avail.  The 
widget_set_usize does indeed seem to set the horizonal size of the button 
on some FALSE TRUE settings but the vertical setting of the button always 
seems to fill in the whole hbox (horizonal box ) so I end up with a tall 
thin wierd looking button.  Sorry I know this is probably an elementary GTK 
question but according to the way I thought usize should work, this would 
work.  Thanks ahead of time for your help.

Matt








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