After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 161276 - configure_events not beeing delivered
configure_events not beeing delivered
Status: RESOLVED NOTABUG
Product: gtkmm
Classification: Bindings
Component: general
2.4
Other Linux
: Normal major
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2004-12-14 14:43 UTC by Joerg Bornschein
Modified: 2005-04-19 10:41 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Joerg Bornschein 2004-12-14 14:43:27 UTC
bool on_configure(GdkEventConfigure *arg)
{
	std::cout << "Got Configure" << std::endl;
	return false;
}

[..]
int main() {
    widget.signal_configure_event().connect(sigc::ptr_fun(&on_configure));
}

does not work. However, when I subclass a widget, override virtual bool
on_configure_event(..) { return false; }; signal delivery works fine again.
Comment 1 Joerg Bornschein 2004-12-14 15:02:19 UTC
complete testcase:
#include <iostream>
#include <gtkmm.h>


class MyWindow : public Gtk::Window
{
public:
//        virtual bool on_configure_event(GdkEventConfigure *event)
//        {
//                std::cout << "Inherited Configure" << std::endl;
//                return false;
//        }
};



bool on_configure(GdkEventConfigure *arg)
{
        std::cout << "Got Configure" << std::endl;
        return false;
}

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

        MyWindow window;

        window.signal_configure_event().connect(sigc::ptr_fun(&on_configure));

        Gtk::Main::run(window);

        return 0;
}

Comment 2 Murray Cumming 2004-12-15 08:13:56 UTC
Please try connect(slot, false) or connect_notify().
Comment 3 Murray Cumming 2004-12-19 17:33:23 UTC
Please reopen this bug if it is still a problem.
Comment 4 Luca Cappa 2005-04-19 10:41:37 UTC
It works with connect_notify in the test case above, but not with connect (slot,
false) statement.