Hi, On 20/04/10 17:35, Elliot Smith wrote: > How would I go about finding out the size of the current screen from an > Mx application (so I can use Mx.Window.set_small_screen(false) if on a > large monitor etc.)?
I think that function is there primarily for use by MxApplication which takes care of the implementation (in any case, as far as an application is concerned, when to use the small screen mode is dictated by the window manager, not by actual screen size). > I'm assuming get_small_screen() will only tell me the current setting > for the small_screen property. Is that correct? Yes, but as with all (properly implemented) gobject properties, you can listen for property changes by connecting to the GObject 'notify' signal (see the GObject docs). In your case that would be 'notify::small-screen' signal of MxWindow, and your callback would look something like: static void mycallback (MxWindow *window, GParamSpec *pspec, gpointer user_data); Hope this helps, Tomas _______________________________________________ MeeGo-dev mailing list [email protected] http://lists.meego.com/listinfo/meego-dev
