Current language with Pango objects...
- From: Sever P A <gnu sever gmail com>
- To: gtkmm-list gnome org
- Subject: Current language with Pango objects...
- Date: Sat, 22 Aug 2009 19:18:29 +0200
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]