GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Tue Oct 21, 2014 4:49 pm

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: After gtk_paned_set_position, gutter became is fixed
PostPosted: Mon Apr 18, 2011 11:09 pm 
Offline
Familiar Face

Joined: Mon Apr 18, 2011 10:23 pm
Posts: 5
Hi Everyone!!!

In my code, I have GtkHPaned widget that contains two homogeneous elements.
Gutter position is stored as the percentage factor with respect to main window i.e. when I'm maximize main window or just change its width gutter is changing self position like this: pos = main_window_width / (100 / factor) and next follow gtk_hpaned_set_position(paned, pos). After all I can't manually(with mouse) change gutter position because it became is fixed.
How i can get gutter is movable?

Thanks!!!

P.S.
Sorry for my bad English)))


Last edited by sane4ek on Tue Apr 19, 2011 2:53 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: After gtk_paned_set_position, gutter became is fixed
PostPosted: Tue Apr 19, 2011 2:57 am 
Offline
Familiar Face

Joined: Mon Apr 18, 2011 10:23 pm
Posts: 5
polkjhydvrg wrote:
ImageWhat nice message

No messages, output is empty


Top
 Profile  
 
 Post subject: Re: After gtk_paned_set_position, gutter became is fixed
PostPosted: Tue Apr 19, 2011 10:34 am 
Offline
Familiar Face

Joined: Mon Apr 18, 2011 10:23 pm
Posts: 5
I have resolved this problem!!! Instead gtk_paned_set_position(paned, pos)
I'm using gtk_widget_set_size_request(child1, pos, -1)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group