Re: Managing keyboard variants
- From: Sever P A <gnu sever gmail com>
- To: Murray Cumming <murrayc murrayc com>
- Cc: gtkmm-list gnome org
- Subject: Re: Managing keyboard variants
- Date: Fri, 25 Sep 2009 10:30:32 +0000
2009/9/25 Sever P A <gnu sever gmail com>:
> 2009/9/20 Murray Cumming <murrayc murrayc com>:
>> On Sat, 2009-09-19 at 10:04 +0200, Sever P A wrote:
>>> * Are the same the value of xkl_engine_get_instance (Display *
>>> display) [of LibXklavier] than the value pointed of
>>> Gtk::Main::instance() ...?
>> No, they are entirely unrelated.
>> Googling suggests that you can use GDK_DISPLAY() to get the Display*.
>> Thats an X Windows thing.
> Thanks to Murray Cumming's answer, and after a few reading of the API
> reference, I done,
> Gdk::Display dpy;
> XklEngine * engine;
> engine = xkl_engine_get_instance(dpy.get_default());
> But the compiler tells me,
> error: cannot convert ‘Glib::RefPtr<Gdk::Display>’ to ‘Display*’ for
> argument ‘1’ to ‘XklEngine* xkl_engine_get_instance(Display*)’
> What's wrong ?... Are the pointer "*" and "Glib::RefPtr" not the same
> ?... Could be solved anyway ?...
Ups ! sorry, I just see that it's not also possible to do
What do you suggest ?
] [Thread Prev