Fwd: Re: About Gdk::Seat instantiation....



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 <martin_id vodafone co nz>
To: Glus Xof <gtglus gmail com>


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< Gdk::Seat > .  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
gtkmm-list gnome org
https://mail.gnome.org/mailman/listinfo/gtkmm-list



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