Re: bells and whistle in Gtkmm



Mohammed Sameer wrote:
Of course it will not beep! What do you expect ?
You are not using the correct method that has been explained to you.

The API was designed like this for a reason, In order to understand why, you need
to dig through the C/GDK code.

Now the fact that you are ignoring all the explanations given to you means that I'm
wasting my time replying now. I'm out of this discussion.

Cheers,

P.S. Last advice: Compile this code via
"g++ -o d d.cc `pkg-config gtkmm-2.4 --cflags --libs`"
and it should work for you:
== Begin d.cc ==
#include <gtkmm.h>

void foo() {
  Gdk::Display::get_default()->beep();
}

int main(int argc, char *argv[]) {
  Gtk::Main kit(argc, argv);

  Gtk::Window w;

  Gtk::Button b("foo");
  w.add(b);
  w.show_all();

  b.signal_clicked().connect(sigc::ptr_fun(&foo));
  kit.run(w);

  return 0;
}

== END d.cc ==

On Sun, Dec 07, 2008 at 12:17:24PM -0500, Jam wrote:
  
 Sorry, I forgot to mention, I don't here any beeping.
 What have left undone!!
 Mohammed Sameer wrote:

On Sat, Dec 06, 2008 at 06:06:51PM -0500, Jam wrote:


Hello folks!
It has been a long time since I started posting again, but here we go again!
My question is:
I have a debugging class that pops up a MessageDialog box, what I would
like to do is to add a beep or some sort of sound that warns me that the
message has popped up.
Any body knows how if it is possible in gtkmm and how to do this?


Maybe this'll help:
[1]http://www.gtkmm.org/docs/gtkmm-2.4/docs/reference/html/classGdk_1_1Display.
html#63ff8a09aa81f2bf1f7581ddba39fe69

Cheers,


--
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 spe
nt so much time looking at the one that is shut that we don't see the one that
just opened..

References

 1. http://www.gtkmm.org/docs/gtkmm-2.4/docs/reference/html/classGdk_1_1Display.html#63ff8a09aa81f2bf1f7581ddba39fe69
    

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


  
No, you are wrong, I got it working!
Sorry to prove you wrong, I guess I am not as ignorant as you thought I was.
Have a blessed day,

-- 
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..


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