473,326 Members | 2,099 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

A question on Gtkmm's

I would like to add a signal to a Gtk::Entry object, but for some
reason this gives me bunch of errors saying that it is

D:\XWin\include\sigc++-2.0\sigc++\adaptors\adaptor_trait.h|84|error:
no match for call to `(sigc::bound_mem_functor0<bool, jv+e::Entry>)
(GdkEventFocus* const&)'

I using Gtkmm 2.10.x for Windows
Thanks in advance!

Can any body help?!
namespace jve{
class Entry: virtual public Gtk::VBox {

.......
Gtk::Entry* text_box;
public:
Entry();
.........
void onBlanck();
};
}
jve::Entry::Entry(){
....
text_box = Gtk::manage(new Gtk::Entry());
text_box->signal_focus_out_event().connect(sigc::mem_fun(*t his,
&Entry::onBlank)); <== here is the problem
....
}
bool jve::Entry::onBlank(){
....
// Display a Dialogbox explaining the problem
....
//! recapture the focus
text_box->grab_focus();
return false
}
Jun 27 '08 #1
2 1712
On May 4, 1:50 am, "jalqa...@gmail.com" <jalqa...@gmail.comwrote:
I would like to add a signal to a Gtk::Entry object, but for some
reason this gives me bunch of errors saying that it is

D:\XWin\include\sigc++-2.0\sigc++\adaptors\adaptor_trait.h|84|error:
no match for call to `(sigc::bound_mem_functor0<bool, jv+e::Entry>)
(GdkEventFocus* const&)'

I using Gtkmm 2.10.x for Windows
Thanks in advance!

Can any body help?!
namespace jve{
class Entry: virtual public Gtk::VBox {

.......
Gtk::Entry* text_box;
public:
Entry();
.........
void onBlanck();};
}

jve::Entry::Entry(){
....
text_box = Gtk::manage(new Gtk::Entry());
text_box->signal_focus_out_event().connect(sigc::mem_fun(*t his,
&Entry::onBlank)); <== here is the problem
....}

bool jve::Entry::onBlank(){
....
// Display a Dialogbox explaining the problem
....
//! recapture the focus
text_box->grab_focus();
return false

}
Hello,

This is a GTK-specific question. Please have a look here:
http://gnome-fresh-news.blogspot.com...ignal_644.html

Regards.
Jun 27 '08 #2
Thanks, I resolved this issue already.

Have a good day!
Jun 27 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Lars Weber | last post by:
Hi! I am trying out some C++ programmig with my Gentoo Linux distribution. When I generate a Gtkmm project with the Anjuta IDE wizard and just push the "Run configure" button, I end up with the...
1
by: Al-Burak | last post by:
I have been tinkering around the GTK world for a while, and since I am more of a C++ programmer I would like to use GTKmm to develop my GUI. However, I have a GTK+ (from Tor Lillqvist) version...
2
by: Al-Burak | last post by:
Ever since I started tinkering around the GTK+ and later on Gtkmm toolkits, I've noticed a steady flow of programmers talking more and more, and more passionately, about these toolkits. It came...
24
by: silversurfer2025 | last post by:
Hello. I do not know whether this really is the right group, but I could not find any group dealing only with GUIs for C++ so here I am. I am currently deciding which GUI to use in my program....
0
by: rsaikamesh | last post by:
Hi, I im creating GUI in c++ using gtkmm (OS - ubuntu). I want to add a CheckMenuItem in a menubar.I dont know how to add this.please tell me, how to add this.if possible please send me the coding.
0
by: paridaG | last post by:
Hi, I am using gtkmm 2.4 to create user interface in my application.My OS is ubuntu. Now i am doing error logging in my application. I do not know, What are the exceptions may occur in gtkmm and...
2
by: Markus Pitha | last post by:
Hello, I have a window containing a table with some (dynamically created) buttons. I want to change the buttons, when they are clicked, but with dynamically created buttons, this issue seems to...
0
rhitam30111985
by: rhitam30111985 | last post by:
Hi everyone , dunno whether to post this in linux forum or c/c++ forum.. I am trying to create GUI files using gtkmm library in c++ . I am using debian linux with GNOME desktop environment . i...
2
by: Ruben | last post by:
It seems to me that the togglebutton toggled() function has a but. Documentation says that when called it will change the state of the object. I can't varify this behavior. It calls the toogle...
1
by: ArbolOne | last post by:
I just downloaded gtkmm-win32-devel-2.14.1-3 and try to recompile an application I had developed under gtkmm-win32-devel-2.10.11-1, but I get a strange error: -------------------- ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.