Current language with Pango objects...



Hello,

I'm trying to get the current environment language using the Pango
objects as you pointed me some weeks ago...

For this, I write this piece of code, that compiles but breaks at runtime.

#include <gtkmm.h>
#include <iostream>

int main()
{
   Gtk::Window gwidget;
   Pango::Language glang = gwidget.create_pango_context()->get_language();

   std::cout << glang.get_string() << std::endl;

   return 0;
}


Could help ?

S.


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