Re: Disabling localisation for an app

2008-10-16 Thread Paul Davis
On Thu, 2008-10-16 at 22:07 +0200, Søren Hauberg wrote: > 2008/10/16 klaus triendl <[EMAIL PROTECTED]>: > > Søren Hauberg schrieb: > >> Thanks. I didn't know the 'setlocale' function, which was the one I > >> needed. I've just added a 'setlocale (LC_ALL, "C");' to my code, as I > >> don't want any

Direction of text and Pango::DIRECTION_TTB_RTL

2008-10-16 Thread Laurent VERDOIA
Hello, The problem is: I want to display vertically text inside a Gtk::Entry and Gtk::TextView. I thinked that the solution is simple but it's do anythings: Gtk::Entry *entry; /* Init of entry */ entry->get_pango_context()->set_base_dir(Pango::DIRECTION_TTB_RTL); Since one week i'm stuck with th

Scrolling to the end of a textview when it changes

2008-10-16 Thread Søren Hauberg
Hi All, I have an output widget in my program that inherits from a Gtk::TextView. When my program produces output it feeds this into the corresponding Gtk::TextBuffer. I want my output widget to scroll to the end when its contents changes such that the user is presented with the most recent outpu

Re: Disabling localisation for an app

2008-10-16 Thread klaus triendl
Søren Hauberg schrieb: > std::locale::global expects a std::locale and not a string, so the > extra needed line is 'std::locale::global (std::locale ("C"));' Yes, you're right; sorry for that... Klaus ___ gtkmm-list mailing list gtkmm-list@gnome.org htt

Re: Disabling localisation for an app

2008-10-16 Thread Søren Hauberg
2008/10/16 klaus triendl <[EMAIL PROTECTED]>: > Søren Hauberg schrieb: >> Thanks. I didn't know the 'setlocale' function, which was the one I >> needed. I've just added a 'setlocale (LC_ALL, "C");' to my code, as I >> don't want any locale changes anywhere in the application. > > Beware, c++ functi

Re: Console screen from spawn_process

2008-10-16 Thread Paulo Flabiano Smorigo
Hi Armin, Thanks for the fast reply! I compile the child process with the "-mwindows" parameter but the problem is that I need to communicate with the child using stdin and stdout by the method spawn_process_with_pipes but with "-mwindows" there is no stdin and stdout... So, there is no solution

Re: [newbie questions]

2008-10-16 Thread Bernd Robertz
As John told, welcome from Me too. :D If you call "hide()", the window will disappear. To get the window back visible, call "show()" on the instance the windows hides. If you call "hide()" on the last window in you app, the loop will end and "run()" will return to the "main"-function wich normaly

Re: [newbie questions]

2008-10-16 Thread John Hobbs
> Hi. I'm a newbie in gtkmm and have some questions. Welcome! > What happen with window when I close them. I mean when it will be deleted? > Can I solve when to delete windows, if yes than how? I don't know 100% what you are asking here. When a window calls "hide()" then it goes away, but it is

[newbie questions]

2008-10-16 Thread Igor Mironchick
Hi. I'm a newbie in gtkmm and have some questions. What happen with window when I close them. I mean when it will be deleted? Can I solve when to delete windows, if yes than how? How can I notify GUI thread from another thread (something like postEvent() from the Qt)? -- Regards, Igor Miron

Re: Disabling localisation for an app

2008-10-16 Thread klaus triendl
Søren Hauberg schrieb: > Thanks. I didn't know the 'setlocale' function, which was the one I > needed. I've just added a 'setlocale (LC_ALL, "C");' to my code, as I > don't want any locale changes anywhere in the application. Beware, c++ functionality like iostreams uses its own locale. So you nee

Re: Disabling localisation for an app

2008-10-16 Thread Søren Hauberg
2008/10/16 Paul Davis <[EMAIL PROTECTED]>: > you need to ensure that a portable locale is used when using stdio > calls. my preferred method is this little class. Put one of this in any > scope where you do stdio (input or output) and the locale is switched > and then automatically restored when le

Re: Console screen from spawn_process

2008-10-16 Thread Armin Burgmeier
On Thu, 2008-10-16 at 10:15 -0200, Paulo Flabiano Smorigo wrote: > Hi everyone, > > I'm developing an application to run on Windows and uses spawn_process > to run a command. > I use the "-mwindows" paramenter to avoid the console screen but when > I use the spawn the screen appears. > The title o

Re: Disabling localisation for an app

2008-10-16 Thread Paul Davis
On Thu, 2008-10-16 at 14:21 +0200, Søren Hauberg wrote: > Hi, > I'm working on a GUI in a fairly large project, that (amongst other > things) write numeric data to a file that gnuplot will read. What this > boils down to is that I need > > printf ("%f", 1.7); > > to give me "1.7". However,

Disabling localisation for an app

2008-10-16 Thread Søren Hauberg
Hi, I'm working on a GUI in a fairly large project, that (amongst other things) write numeric data to a file that gnuplot will read. What this boils down to is that I need printf ("%f", 1.7); to give me "1.7". However, if I include Gtk::Main kit(argc, argv); in my application, the format

Console screen from spawn_process

2008-10-16 Thread Paulo Flabiano Smorigo
Hi everyone, I'm developing an application to run on Windows and uses spawn_process to run a command. I use the "-mwindows" paramenter to avoid the console screen but when I use the spawn the screen appears. The title of this console is the name of the executable that I spawned. How can I do to f