Apologies, didn't reply to list.

-------- Forwarded Message --------
Subject:        Re: About Gdk::Seat instantiation....
Date:   Thu, 26 May 2016 10:08:46 +1200
From:   Ian Martin <[email protected]>
To:     Glus Xof <[email protected]>



Hi Glus,

Generally in gtkmm, if the constructor is protected you're expected to use a Glib::RefPtr to access the object - and I see the wrap() function returns a Glib::RefPtr <http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html>< Gdk::Seat <imap://[email protected]:143/fetch%3EUID%3E.Sent%3E1637?part=1.2.2&filename=classGdk_1_1Seat.html> > . That often means the object makes sense only when it's constructed from already known information.

It looks like you probably want to get the Gdk::Seat via its display: start with the widget you're interested in events happening on, call Gtk::Widget::get_display(), and then display->get_default_seat(). That appears to be the way the nautilus devs are using it (https://bugzilla.gnome.org/show_bug.cgi?id=762235).

Ian.

On 26/05/16 08:18, Glus Xof wrote:
Hi guys,

How Gdk::Seat could be instantiated while constructor is protected ?
How could I get Gdk::Seat::get_keyboard() ?

Glus


_______________________________________________
gtkmm-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/gtkmm-list

_______________________________________________
gtkmm-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/gtkmm-list

Reply via email to