RE: What is the recommended interface for color manipulation?

2010-03-15 Thread BALLABIO GERARDO
Jonathon Jongsma wrote: No, Gdk::Color is not deprecated. You can keep using it. There are even some helper methods available for using Gdk::Color with cairo: http://library.gnome.org/devel/gtkmm/stable/namespaceGdk_1_1Cairo.html Thank you. I also noticed that Gdk::Color hasn't an alpha

[Cluttermm] Use of Glib::RefPtrT vs. Gtkmm

2010-03-15 Thread Aarto Matti
Hello, Why Glib::RefPtrT is used in Clutter for smart-pointer management everywhere and Gtkmm doesn't bother about that much? We can create a button object with Gtk::Button *button = new Gtk::Button(); But we have to struggle in Clutter with that mess: Glib::RefPtrClutter::Actor actor = new

Re: [Cluttermm] Use of Glib::RefPtrT vs. Gtkmm

2010-03-15 Thread Murray Cumming
On Mon, 2010-03-15 at 16:55 +0200, Aarto Matti wrote: Hello, Why Glib::RefPtrT is used in Clutter for smart-pointer management everywhere and Gtkmm doesn't bother about that much? We can create a button object with Gtk::Button *button = new Gtk::Button(); Clutter uses simple

Re: Gtk::Main::iteration();

2010-03-15 Thread Mark Roberts
On Sun, 14 Mar 2010, Adam Chyla [PL] wrote: Could you give me a simple example? I try this: unsigned long long FileSize; char _char[1] = {0}; Glib::RefPtrGio::File FileOut =

Re: [Cluttermm] Use of Glib::RefPtrT vs. Gtkmm

2010-03-15 Thread Mark Roberts
Hi Aarto, Why Glib::RefPtrT is used in Clutter for smart-pointer management everywhere and Gtkmm doesn't bother about that much? We can create a button object with Gtk::Button *button = new Gtk::Button(); But we have to struggle in Clutter with that mess: Glib::RefPtrClutter::Actor actor =

Popup Menu according cell values in a Gtk::TreeView

2010-03-15 Thread Glus Xof
Hi, Today I was thinking about the popup menu implemented in my Gtk::TreeView... Is the same in all column values !, even if no value is currently set into... I wonder if is there any way to configure the popup menu items (options) according to these cell values ? (Note: following the Tutorial

Re: [Cluttermm] Use of Glib::RefPtrT vs. Gtkmm

2010-03-15 Thread Michael
I'm not sure it's related, but it also has something to do with smart pointers. The get_object() method in Gtk::Builder class returns Glib::RefPtrGlib::Object. What would be the proper way of extracting those objects from builder files? Currently I'm doing it in this ugly way:

Re: [Cluttermm] Use of Glib::RefPtrT vs. Gtkmm

2010-03-15 Thread José Alburquerque
On Mon, 2010-03-15 at 23:28 +0200, Michael wrote: I'm not sure it's related, but it also has something to do with smart pointers. The get_object() method in Gtk::Builder class returns Glib::RefPtrGlib::Object. What would be the proper way of extracting those objects from builder files? You

Re: Gtk::Main::iteration();

2010-03-15 Thread Krzysztof Kosiński
2010/3/14 Adam Chyla [PL] adam.ch...@gmail.com: Could you give me a simple example? See attached file. This is a simple program that uses only async calls to zero the contents of a file. Compile with: g++ gio-zero.cpp -o gio-zero `pkg-config --cflags --libs giomm-2.4 gthread-2.0` This example

Re: Gtk::Main::iteration();

2010-03-15 Thread Krzysztof Kosiński
W dniu 16 marca 2010 00:22 użytkownik Krzysztof Kosiński tweenk...@gmail.com napisał: See attached file. This is a simple program that uses only async calls to zero the contents of a file. Compile with: g++ gio-zero.cpp -o gio-zero `pkg-config --cflags --libs giomm-2.4 gthread-2.0` This

Re: [Cluttermm] Use of Glib::RefPtrT vs. Gtkmm

2010-03-15 Thread Krzysztof Kosiński
2010/3/15 Murray Cumming murr...@murrayc.com: But we have to struggle in Clutter with that mess: Glib::RefPtrClutter::Actor actor = new Clutter::Actor::create(); I don't like it much either, really. I like that the use of the smartpointer makes the memory management obvious. I would like to