multiple formats on clipboard

2007-05-02 Thread Kasper Peeters
Hi, I have an application in which output can be selected with the mouse, after which it should be available on the clipboard. However, the output can be put on the clipboard in two different formats: an external one, useful only when pasting into other applications, and an internal one, useful

Enable drag and drop for treeview?

2007-05-02 Thread Jef Driesen
For my application, I want to be able to re-order rows in a treeview (treestore model) using drag and drop. According to the gtkmm book, I can use set_reorderable(). But how can I detect when a drag and drop operation is finished (to update the underlying database)? I can't find any signals to

Re: Enable drag and drop for treeview?

2007-05-02 Thread Paul Davis
Jeff, I think to do this, you have to subclass Gtk::TreeModel and override Gtk::TreeDragDest::drag_data_received_vfunc() I did something similar here: http://trac.lsdcas.engineering.uiowa.edu/browser/trunk/cas2/plugins/viewer/event_analysis/treemodel.hh

Re: Enable drag and drop for treeview?

2007-05-02 Thread Jonathon Jongsma
On 5/2/07, Jef Driesen [EMAIL PROTECTED] wrote: For my application, I want to be able to re-order rows in a treeview (treestore model) using drag and drop. According to the gtkmm book, I can use set_reorderable(). But how can I detect when a drag and drop operation is finished (to update the

gtkmm branched

2007-05-02 Thread Murray Cumming
I have branched gtkmm in svn, and I have applied the open patches from bugzilla that add API. This will eventually become gtkmm 2.11/12 http://svn.gnome.org/viewcvs/gtkmm/trunk/ It's not yet clear whether GNOME 2.19/20 will use GTK+ svn trunk (2.11/12). If not then gtkmm 2.10 will remain the

Re: Enable drag and drop for treeview?

2007-05-02 Thread Paul Davis
Jonathon, You've always got to on up me don't you? j/k That does look easier to use than my idea. I could see some issues with trying to match up drag/drop events (which i imagine could cause either 1 or 2 signals to be fired). Paul On 5/2/07, Jonathon Jongsma [EMAIL PROTECTED] wrote: On

gtkmm-extras

2007-05-02 Thread Marko Anastasov
Hello, I decided to start a gtkmm-extras project, which would be a library of a utility functions and classes built on top of gtkmm and glibmm. The rationale is that for every large-enough project we need this code (eg some string functions, TreeView wrappers and generic model attempts, a

Upgrading gtkmm

2007-05-02 Thread Jamiil Abduqadir
I have installed GTKmm on my Linux-Debian box from a deb package, to upgrade to a gtkmm 11.x do I have first remove gtk+/gtkmm and all the debs these packages depend on? Thanks ___ gtkmm-list mailing list gtkmm-list@gnome.org

Re: gtkmm-extras

2007-05-02 Thread Robert Pearce
On Wed, 02 May 2007 18:52:03 +0200 Marko Anastasov [EMAIL PROTECTED] wrote: I decided to start a gtkmm-extras project, which would be a library of a utility functions and classes built on top of gtkmm and glibmm. Isn't there already a very similarly named project to wrap the Gtk+-extra

Re: gtkmm-extras

2007-05-02 Thread Niko Demmel
On 02/05/2007 18:52, Marko Anastasov wrote: I decided to start a gtkmm-extras project, which would be a library of a utility functions and classes built on top of gtkmm and glibmm. The rationale is that for every large-enough project we need this code (eg some string functions, TreeView

Re: gtkmm-extras

2007-05-02 Thread Marko Anastasov
У сре, 02. 05 2007. у 19:19 +0100, Robert Pearce пише: On Wed, 02 May 2007 18:52:03 +0200 Marko Anastasov [EMAIL PROTECTED] wrote: I decided to start a gtkmm-extras project, which would be a library of a utility functions and classes built on top of gtkmm and glibmm. Isn't there

Re: gtkmm-extras

2007-05-02 Thread Nickolai Dobrynin
Marko, There is already a project called GtkExtra: http://gtkextra.sourceforge.netmaintained by Adrian Feiguin. There is also an effort, by several people, and most recently by Jacek Sieka, to wrap the GtkExtra code in C++. The name of that last project is gtkextramm, which sounds confusingly

Re: Enable drag and drop for treeview?

2007-05-02 Thread Chris Vine
On Wed, 2007-05-02 at 16:27 +0200, Jef Driesen wrote: For my application, I want to be able to re-order rows in a treeview (treestore model) using drag and drop. According to the gtkmm book, I can use set_reorderable(). But how can I detect when a drag and drop operation is finished (to

Re: gtkmm-extras

2007-05-02 Thread Marko Anastasov
У сре, 02. 05 2007. у 22:38 +0200, Niko Demmel пише: snip On the wiki you propose a general purpose shared pointer. What about boost::shared_ptr? I assume you mean that the library could use it. That's one possibility. In that case, the library would either need to depend on boost completely,

Re: gtkmm-extras

2007-05-02 Thread Niko Demmel
On 02/05/2007 23:38, Marko Anastasov wrote: У сре, 02. 05 2007. у 22:38 +0200, Niko Demmel пише: snip On the wiki you propose a general purpose shared pointer. What about boost::shared_ptr? I assume you mean that the library could use it. Yes. That's one possibility. In