creatring Glib::RefPtr from plain pointer

2015-01-21 Thread test_account
Hi, I need someone to explain this: this is correct: Glib::RefPtrGtk::Menu pMenuPopup = Gtk::manage(new Gtk::Menu(menu)); it this correct to? if not why not? Glib::RefPtrGtk::Menu pMenuPopup = Glib::RefPtrGtk::Menu(new Gtk::Menu(menu)); thanks! ~Brute

how to set a callback function to an icon in an entry ?

2015-01-21 Thread Nicolas Jäger
Hi, I would like to use the second icon of the entry to erase the text in the entry, I'm looking for the function to connect a callback function when I click on the icon. regards, /nicoo TO MODERATORS : I sent a first mail with a screenshot, forget it. In the future I will upload somewhere on

treeview question

2015-01-21 Thread Michael White
Aloha all, I am trying to get my Gtk::TreeView to alter it's foreground color if the value meetsin the cell meets a certain criteria (ie. if value 0, make foreground color red). I have played a bit with the CellRenderer as i have my treeview alternating background color for every other row (see

Re: how to set a callback function to an icon in an entry ?

2015-01-21 Thread Nicolas Jäger
Hi, On Thu, 22 Jan 2015 02:23:30 +0100 Jonas Platte jonaspla...@gmail.com wrote: There are the methods signal_icon_press() and signal_icon_release() [1] in Gtk::Entry (assuming that's what you're talking about). I think you should be able to connect to one or both of them to create a

Re: how to set a callback function to an icon in an entry ?

2015-01-21 Thread Jonas Platte
There are the methods signal_icon_press() and signal_icon_release() [1] in Gtk::Entry (assuming that's what you're talking about). I think you should be able to connect to one or both of them to create a functioning (secondary) icon clicked handler. [1]

Re: C++11 features, move semantics?

2015-01-21 Thread François Legendre
Hi, For range based loop, why not use the name of the element (and not the indice) ? -for(unsigned i = 0; i names.size(); i++) - std::cout names[i] . std::endl; +for(const auto i : names) + std::cout i . std::endl; +for(const auto name : names) + std::cout

Re: C++11 features, move semantics?

2015-01-21 Thread Chris Vine
On Wed, 21 Jan 2015 08:39:46 +0100 Murray Cumming murr...@murrayc.com wrote: On Sun, 2014-12-28 at 15:42 +0100, Christof Meerwald wrote: Hi, just wondering if anyone has given any thought on C++11 features for gtkmm. One thing that seems very unfortunate is that all objects are