custom TreeModel

2019-12-11 Thread danny via gtkmm-list
hello all, can anyone tell me the list of methods to override in order to create a custom TreeModel? I currently have these: virtual Gtk::TreeModelFlags get_flags_vfunc() const; virtual int get_n_columns_vfunc() const; virtual GType get_column_type_vfunc(int index) const; virtual void

Re: custom TreeModel

2019-12-12 Thread danny via gtkmm-list
well, I was trying to come up with a good demo, because I have always felt that people will like to fill a treeview directly from their own data it has been a while since I have worked woth gtkmm, so I adapted the following from a working program against gtk-2: the Gtk::Window* do_treeview_memor

Re: custom TreeModel

2019-12-12 Thread danny via gtkmm-list
indeed! that seems to get me on my way! thanks! if/when I get this working: would you be interested in adding this to the gtkmm demo programs? regards, D. * From: Kjell Ahlstedt Have you declared your custom TreeModel something like class MyTreeModel : public Glib::O

Re: custom TreeModel

2019-12-16 Thread danny via gtkmm-list
l Ahlstedt Your custom TreeModel can perhaps be added either to the gtkmm demo programs or to the gtkmm tutorial at https://gitlab.gnome.org/GNOME/gtkmm-documentation. Let's decide when you have a working program. Have you noticed that there is a cust

Re: custom TreeModel

2019-12-22 Thread danny via gtkmm-list
gui in a separate structure. Copying the data into the treeview model, as the existing demo programs do, is obviously not the ideal solution. the other example in gtkmm-documentation keeps is very helpful, but it does not show subdirs... regards, Danny. On Mon, Dec 16, 2019 at 2:10 PM danny via gtkmm

Re: custom TreeModel

2019-12-27 Thread danny via gtkmm-list
in gtk. Kjell On 2019-12-22 11:06, danny via gtkmm-list wrote: > > hello gtkmm, > > > > so how do I continue with this? I feel that it would be > really handy to add an example such a

gstreamermm: saving a frame to jpeg

2020-07-06 Thread danny via gtkmm-list
Hello all a question about gstreamermm: I am trying to convert an old project of mine to the current version of gtkmm and gstreamermm. And there is one particular problem that I can not solve. I have a piece of code that extracts a thumbnail picture from a video, in order to give an idea of what t

Re: gstreamermm: saving a frame to jpeg

2020-07-24 Thread danny via gtkmm-list
I guess the key would be to find the equivalent of the following old (Playbin2) code Glib::RefPtr image_buf;(const guint8*) image_buf→get_data(), a Buffer is replaced I think by a Sample; but from the documentation I can not understand how to get at its raw data, and then convert it to(const guint8