Re: How to raise / focus a window?



On Sat, 2003-05-24 at 05:07, David Topper wrote: 
Hey Shaun,

Thanks for the tip.

Shaun McCance wrote:

I believe the function you're looking for is gtk_window_present.  You
should probably never call gtk_widget_set_uposition.  gtk_widget_show

Then how should I set a window's position?  EG., I'm reading / saving 
config files which store window position.  The gtk_widget_set_uposition 
seems to work quite well.  Same for set_usize.

Thanks,

DT

PS.  Oh, I see I should have mentioned that I'm still using GTK 1.2.10 
... not 2.0.  So gtk_window_present is not an option. 

Hmm, sorry.  Ignore my comments on set_uposition, then.  It's deprecated
in GTK 2.  As for raising, I *think* the following will work:

gdk_window_raise(
   gtk_widget_get_parent_window(GTK_WIDGET(s_obj->perl_buf_window)) );

--
Shaun





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