TreeModel and Treeview from glade 3.6

2009-06-03 Thread Germán Diago
Hello. I would like to know if it's possible to define column types directly in glade and use them from the ui with gtkmm bindings. I tried but it seems not to work. I'm not sure if I'm doing anything wrong. ___ gtkmm-list mailing list

Re: TreeModel and Treeview from glade 3.6

2009-06-03 Thread Murray Cumming
On Wed, 2009-06-03 at 14:23 +0200, Germán Diago wrote: Hello. I would like to know if it's possible to define column types directly in glade and use them from the ui with gtkmm bindings. I tried but it seems not to work. I'm not sure if I'm doing anything wrong. Not, not really. Your C++ code

Get gchar* from Glib::ustring

2009-06-03 Thread Fabrício Godoy
Hi everyone, How I get/convert gchar* from Glib::ustring? ___ gtkmm-list mailing list gtkmm-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtkmm-list

Re: Get gchar* from Glib::ustring

2009-06-03 Thread Hubert Figuiere
On 06/03/2009 01:33 PM, Fabrício Godoy wrote: Hi everyone, How I get/convert gchar* from Glib::ustring? Like with std::string. By calling c_str(), with a difference: Glib::ustring enforce UTF-8 encoding. It is all in the fine manual. Hub ___

Re: Get gchar* from Glib::ustring

2009-06-03 Thread Fabrício Godoy
Thank you. Can you say why the following code compile but don't work? template class T1, class T2, class T3 Glib::ustring build_filename(const T1 str1, const T2 str2, const T3 str3) { Glib::ustring ustr1 = Glib::ustring::compose(%1, str1); Glib::ustring ustr2 =

Re: Get gchar* from Glib::ustring

2009-06-03 Thread Hubert Figuiere
On 06/03/2009 02:08 PM, Fabrício Godoy wrote: Thank you. Can you say why the following code compile but don't work? templateclass T1, class T2, class T3 Glib::ustring build_filename(const T1 str1, const T2 str2, const T3 str3) { Glib::ustring ustr1 = Glib::ustring::compose(%1, str1);

Re: Get gchar* from Glib::ustring

2009-06-03 Thread Fabrício Godoy
2009/6/3 Hubert Figuiere h...@figuiere.net On 06/03/2009 02:08 PM, Fabrício Godoy wrote: Thank you. Can you say why the following code compile but don't work? templateclass T1, class T2, class T3 Glib::ustring build_filename(const T1 str1, const T2 str2, const T3 str3) {

Re: Get gchar* from Glib::ustring

2009-06-03 Thread Fabrício Godoy
2009/6/3 Hubert Figuiere h...@figuiere.net On 06/03/2009 02:08 PM, Fabrício Godoy wrote: Thank you. Can you say why the following code compile but don't work? templateclass T1, class T2, class T3 Glib::ustring build_filename(const T1 str1, const T2 str2, const T3 str3) {

Re: TreeModel and Treeview from glade 3.6

2009-06-03 Thread Murray Cumming
On Wed, 2009-06-03 at 22:48 +0200, Germán Diago wrote: I need to use more things besides the treemodel, so I would like to make another question? This just happens with treemodel / treeview, or it's extensible to Gtk::TextBuffers and so on? Thanks in advance. Other things probably work. But

Re: Get gchar* from Glib::ustring

2009-06-03 Thread Chris Vine
On Wed, 3 Jun 2009 15:37:53 -0300 Fabrício Godoy skarl...@gmail.com wrote: 2009/6/3 Hubert Figuiere h...@figuiere.net On 06/03/2009 02:08 PM, Fabrício Godoy wrote: path = g_build_filename(ustr1.c_str(), ustr2.c_str(), ustr3.c_str()); Because, as written in the Fine Manual, you

Re: Get gchar* from Glib::ustring

2009-06-03 Thread Daniel Elstner
Am Mittwoch, den 03.06.2009, 22:18 +0100 schrieb Chris Vine: And note that because the argument is untyped (it is an elipsis argument) you cannot use the normal C++ 0 as a synonym for NULL. Note that in a C++ context, NULL is usually #define NULL 0 or #define NULL 0L The latter works on most

Re: Get gchar* from Glib::ustring

2009-06-03 Thread Chris Vine
On Wed, 03 Jun 2009 23:53:09 +0200 Daniel Elstner daniel.ki...@googlemail.com wrote: Am Mittwoch, den 03.06.2009, 22:18 +0100 schrieb Chris Vine: And note that because the argument is untyped (it is an elipsis argument) you cannot use the normal C++ 0 as a synonym for NULL. Note that in

Re: Get gchar* from Glib::ustring

2009-06-03 Thread Fabrício Godoy
2009/6/3 Daniel Elstner daniel.ki...@googlemail.com Am Mittwoch, den 03.06.2009, 22:18 +0100 schrieb Chris Vine: And note that because the argument is untyped (it is an elipsis argument) you cannot use the normal C++ 0 as a synonym for NULL. Note that in a C++ context, NULL is usually

how to get the color of a pixel(x,y) on the window?

2009-06-03 Thread chunlong84
I use gtkmm on Windows platform,and have tried three method ,but the three methods return three different result,and none of them is correct,wh? (1) Gdk::Color result; Glib::RefPtrGdk::Image image=get_window()-get_image(0,0,allocation.get_width(),allocation.get_height()); guint32

The gtkrc file cann't work on Windows platform?

2009-06-03 Thread chunlong84
Below is my gtkrc file: pixmap_path test_gtkmm/icons/ style btn2 { engine pixmap { image { function = BOX recolorable = TRUE state = NORMAL stretch = TRUE file = btn2.png } image { function = BOX recolorable = TRUE state = PRELIGHT stretch = TRUE file = btn22.png } image { function = BOX