best way to use multiple windows

2005-07-17 Thread Thiago Guzella
Greetings everyone, I am writing a simple GTKmm (btw, GTKmm 2.4) application, which has a main window, a menu, etc, using glade (just to place the widgets). Some options in the menu (such as preferences) are required to open a modal window, with apply and revert buttons, allowing the user to

Re: best way to use multiple windows

2005-07-17 Thread Antonio Coralles
Thiago Guzella wrote: Greetings everyone, I am writing a simple GTKmm (btw, GTKmm 2.4) application, which has a main window, a menu, etc, using glade (just to place the widgets). Some options in the menu (such as preferences) are required to open a modal window, with apply and revert

Pango warning: Invalid UTF-8 string

2005-07-17 Thread Matthias Kaeppler
Hi, whenever I try to display strings in a TreeView which have German umlauts in it, they aren't rendered and I get a warning: (duality.elf:4613): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text() The strings I display are std::stringS, but I also tried to

Re: Pango warning: Invalid UTF-8 string

2005-07-17 Thread Matthias Kaeppler
Roger Leigh wrote: Are you *sure* the string is UTF-8 and that the umlaut is not an 8-bit Latin (ISO-8859-n) character? It's an ordinary std::string. I also tried to convert it to a Glib::ustring but that didn't help. Where is the umlaut coming from? It's a filename, an std::string

Re: Pango warning: Invalid UTF-8 string

2005-07-17 Thread Roger Leigh
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Matthias Kaeppler [EMAIL PROTECTED] writes: Roger Leigh wrote: Are you *sure* the string is UTF-8 and that the umlaut is not an 8-bit Latin (ISO-8859-n) character? It's an ordinary std::string. I also tried to convert it to a Glib::ustring but

Re: best way to use multiple windows

2005-07-17 Thread Murray Cumming
On Sun, 2005-07-17 at 18:31 +0200, Antonio Coralles wrote: However, i would not be surprised if that leads to a SIGSEGV, as the window, and m_sig_hide will be deleted before the function exits libsigc++ copes with that. -- Murray Cumming [EMAIL PROTECTED] www.murrayc.com

Re: Pango warning: Invalid UTF-8 string

2005-07-17 Thread Matthias Kaeppler
Roger Leigh wrote: It's a filename, an std::string returned by Gnome::Vfs::FileInfo::get_name(). You want the glibmm equivalent of g_filename_to_utf8. Sweet, that did the job. Thanks. It's called Glib::locale_to_utf8(). You might also want to consider using a UTF-8 locale (de_DE.UTF-8)

Re: Pango warning: Invalid UTF-8 string

2005-07-17 Thread Murray Cumming
On Sun, 2005-07-17 at 22:07 +0200, Matthias Kaeppler wrote: Roger Leigh wrote: It's a filename, an std::string returned by Gnome::Vfs::FileInfo::get_name(). You want the glibmm equivalent of g_filename_to_utf8. Sweet, that did the job. Thanks. It's called Glib::locale_to_utf8().

Re: Pango warning: Invalid UTF-8 string

2005-07-17 Thread Roger Leigh
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Matthias Kaeppler [EMAIL PROTECTED] writes: Roger Leigh wrote: It's a filename, an std::string returned by Gnome::Vfs::FileInfo::get_name(). You want the glibmm equivalent of g_filename_to_utf8. Sweet, that did the job. Thanks. It's called

Re: Problem packing labels into Gtk::Table

2005-07-17 Thread Chris Vine
On Sunday 17 July 2005 01:23, Nickolai Dobrynin wrote: Chris, :) Believe it or not, your response was actually helpful because, at least, I have learned that there is no problem in the code itself. So I went to check if all intermediate builds were fresh, and they were NOT. After

Re: best way to use multiple windows

2005-07-17 Thread Armin Burgmeier
Hi, my approach to this is to derive such windows from Gtk::Dialog and to add two buttons with Gtk::RESPONSE_OK and Gtk::RESPONSE_CANCEL. To show the dialog, simply do MyDialog dialog(*this, foo, bar); if(dialog.run() == Gtk::RESPONSE_OK) { // Take settings into main app } Gtk::Dialog::run