Chris Vine wrote:
On Sun, 07 Dec 2008 07:19:01 -0500
Jamiil <[EMAIL PROTECTED]> wrote:
Thanks Mohamed for the help!
I read the documentation and it is exactly what I am looking for and
more. However, the compiler complains saying that Display() is
protected and in Gdk::Display::Display *is a 'protected' method (?)
What can I do to fix this problem?

Thanks
-------
#include <gdkmm/display.h>
class SomeClass{
 ...
public:
...Gdk::Display display;
   void someMethod();
};
---------\
void SomeClass::someMethod(){
display.beep();
}

You should get the default display with Gdk::Display::get_default(),
which is a static funcion.

Alternatively you can just call gdk_beep(), defined in gdk/gdk.h.  It is
a wrapper for gdk_display_beep(gdk_display_get_default()), or it's
gdkmm equivalent Gdk::Display::get_default()->beep().

Chris

_______________________________________________
gtkmm-list mailing list
gtkmm-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtkmm-list

Humm, I find that very obscure, can you elaborate a bit more?

TIA

--
Know this... God will move heavens and earth to do what you cannot do and that 
He will not for something you can.

Happiness has many doors, and when one of them closes another opens, yet we 
spent so much time looking at the one that is shut that we don't see the one 
that just opened..

_______________________________________________
gtkmm-list mailing list
gtkmm-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtkmm-list

Reply via email to