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 443319 - error: ‘class Gtk::Window’ has no member named ‘set_deletable’
error: ‘class Gtk::Window’ has no member named ‘set_deletable’
Status: RESOLVED NOTABUG
Product: gtkmm
Classification: Bindings
Component: general
2.4
Other All
: Normal normal
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2007-06-02 20:49 UTC by Seweryn Habdank-Wojewódzki
Modified: 2007-06-05 09:49 UTC
See Also:
GNOME target: ---
GNOME version: 2.7/2.8



Description Seweryn Habdank-Wojewódzki 2007-06-02 20:49:28 UTC
Please describe the problem:
Compiler do not want to accept using method set_deletable in Gtk::Window class.

error: ‘class Gtk::Window’ has no member named ‘set_deletable’

Steps to reproduce:
#include <gtkmm.h>

int main(int argc, char* argv[])
{
        Gtk::Main kit(argc,argv);
        Gtk::Window window;
        window.set_deletable(false); // <- generates error
        kit.run(window);

        //m_box.pack_start(m_Button1);
        //m_box.pack_start(m_Button2);

        return 0;
}


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Jonathon Jongsma 2007-06-02 21:19:14 UTC
You've filed this against version 2.4, is that the version you have installed? What's the output of the following command?
$ pkg-config --modversion gtkmm-2.4

Because this function was added in gtkmm version 2.10, so if you need to use this function, you will have to use at least version 2.10 of gtkmm.
Comment 2 Seweryn Habdank-Wojewódzki 2007-06-04 22:04:00 UTC
I have 2.8.3.

So probably is the point.

Thanks.
Comment 3 Seweryn Habdank-Wojewódzki 2007-06-04 22:17:58 UTC
Hi!

By the way a have tried to do workaround for that:

gtk_window_set_deletable (mywindow.gobj(),false);

and it behaves good on linux, but on windows it behaves strange 
- like default minimization.

Regards.
Comment 4 Jonathon Jongsma 2007-06-04 22:46:29 UTC
if you have an issue with gtk_window_set_deletable(), you should probably file a request against GTK+.
Comment 5 Seweryn Habdank-Wojewódzki 2007-06-05 09:49:57 UTC
Hi

Of course, but I want to say just that it is possible to use workaround.

Regards.