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:16:56 +0000
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.
> http://developer.gimp.org/api/2.0/gdk/gdk-X-Window-System-Interaction.html#GDK-DISPLAY:CAPS
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 ?...
S.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]