Re: How to set a window filled the whole screen when we start the window?

2009-05-25 Thread Andrew Cowie
On Mon, 2009-05-25 at 14:20 +0800, donglongchao wrote: > I want to know that when I start a window,how can I set it's default > size to fill the whole screen? Sounds like gtk_window_maximize() is what you want. http://library.gnome.org/devel/gtk/stable/GtkWindow.html#gtk-window-maximize AfC Sydne

Re: How to set a window filled the whole screen when we start the window?

2009-05-25 Thread donglongchao
Thank you very much.That is just what I need. I am not very familiar with the API manual. 在2009-05-25,"Andrew Cowie" 写道: >On Mon, 2009-05-25 at 14:20 +0800, donglongchao wrote: >> I want to know that when I start a window,how can I set it's default >> size to fill the whole screen? > >Sounds l

How to create two different windows in one .glade file?

2009-05-25 Thread donglongchao
Hi,all I want to know how to create  two (or more) windows(top window,I mean) in one .glade file.That is how to integrate more than one windows into one .glade file.Maybe we can do it at the beginning we design the UI,but I do not know how to do it. I use Anjuta 2.4.1,with glade 3.4.5 inside. S

Re: How to set a window filled the whole screen when we start the window?

2009-05-25 Thread Liam R E Quin
On Mon, 2009-05-25 at 14:20 +0800, donglongchao wrote: > Hi,all > I want to know that when I start a window,how can I set it's default size to > fill the whole screen? Others have already explained how to do it, but, Please consider carefully if this is the behaviour you want -- "maximised" wind

Re: How to set a window filled the whole screen when we start the window?

2009-05-25 Thread donglongchao
Thanks for your advice.Because there are too many widgets in the start window,I think it is necessary to maximize it first.Maybe I should ask my customs for their suggestions. 在2009-05-25,"Liam R E Quin" 写道: >On Mon, 2009-05-25 at 14:20 +0800, donglongchao wrote: >> Hi,all >> I want to know

Re: How to set a window filled the whole screen when we start the window?

2009-05-25 Thread Liam R E Quin
On Mon, 2009-05-25 at 21:15 +0800, donglongchao wrote: > Thanks for your advice.Because there are too many widgets in the start window, > I think it is necessary to maximize it first.Maybe I should ask my customs > for their suggestions. Show fewer widgets in the main window, perhaps :-) Liam

Accelerator

2009-05-25 Thread dhk
Are accelerators only for menu items? I've seen a lot of examples with accelerators and the all seem to connect to a menu item. I've been having a difficult time getting accelerators to work even with the examples. I think I'm missing something. One thing I would like is to just have an acc

Re: How to set a window filled the whole screen when we start the window?

2009-05-25 Thread Carlos Pereira
Liam R E Quin wrote: On Mon, 2009-05-25 at 21:15 +0800, donglongchao wrote: Thanks for your advice.Because there are too many widgets in the start window, I think it is necessary to maximize it first.Maybe I should ask my customs for their suggestions. Show fewer widgets in the main w

Re: Accelerator

2009-05-25 Thread Chuck Crisler
Accelerators can be confusing. There are 2 ways to do them, one reasonably well documented, the other not documented at all (AFAIK). Here is a sample of the undocumented (and really more complicated) way. HTH I have removed some redundant code, but this should show you the basic steps. Chuck Crisl

Writing custom widgets

2009-05-25 Thread Tomasz Jankowski
Hello! I'm going to learn how to create custom widgets using GTK+, but I read somewhere, that core of GTK+ (way how widgets are managed by GTK+) is going to be changed in version 3.0, is this true? I read something about realize and expose methods. I don't want to spend my time learning some more