Gtkmm-forge digest, Vol 1 #1092 - 1 msg
- From: gtkmm-forge-request lists sourceforge net
- To: gtkmm-forge lists sourceforge net
- Cc: 
- Subject: Gtkmm-forge digest, Vol 1 #1092 - 1 msg
- Date: Wed, 29 Mar 2006 20:24:44 -0800
Send Gtkmm-forge mailing list submissions to
	gtkmm-forge lists sourceforge net
To subscribe or unsubscribe via the World Wide Web, visit
	https://lists.sourceforge.net/lists/listinfo/gtkmm-forge
or, via email, send a message with subject or body 'help' to
	gtkmm-forge-request lists sourceforge net
You can reach the person managing the list at
	gtkmm-forge-admin lists sourceforge net
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Gtkmm-forge digest..."
gtkmm-forge is the mailing list that receives gtkmm bug reports from bugzilla.  A daily digest is sent to gtkmm-main, to encourage people to help fixing the bugs. Do not try to unsubscribe gtkmm-forge from gtkmm-list.
Today's Topics:
   1. [Bug 336519] New: Gtk::TreeModel does not offer an erase-method (gtkmm (bugzilla.gnome.org))
--__--__--
Message: 1
To: gtkmm-forge lists sourceforge net
From: "gtkmm (bugzilla.gnome.org)" <bugzilla-daemon bugzilla gnome org>
Date: Wed, 29 Mar 2006 12:04:18 -0500 (EST)
Subject: [gtkmm bugzilla] [Bug 336519] New: Gtk::TreeModel does not offer an erase-method
Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=3D336519
 gtkmm | TreeView | Ver: 2.8.x
           Summary: Gtk::TreeModel does not offer an erase-method
           Product: gtkmm
           Version: 2.8.x
          Platform: Other
        OS/Version: All
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: Normal
         Component: TreeView
        AssignedTo: gtkmm-forge lists sourceforge net
        ReportedBy: gizmo_ms yahoo ca
         QAContact: gtkmm-forge lists sourceforge net
     GNOME version: Unversioned Enhancement
   GNOME milestone: Unspecified
I developed a file-tree view (derived from Gtk::TreeView), which shows an=
 icon
(acc. to the file-type) besides the name of the file (analogue to the
Gtk::FileChooserDialog/Widget). This widget is designed to support both t=
ree-
and list-stores.
Right-clicking on it shows a pop-up menu offering some functionality. One=
 of
them is to erase the file. And there's the problem.
The only way I found to delete a line is via the models erase()-method. T=
hey
work fine, but you need to know the type of the model (Gtk::ListStore,
Gtk::TreeStore, ...), which the widget does not. It can call get_model(),=
 but
gets a Gtk::TreeModel, which does not offer an erase().
Maybe I overlooked something, but if not the only "solution" is to dynami=
cally
check for the used model, cast to it and call erase. Of course, that make=
s the
code ugly, clumsy and error-prone.
The only clean solution I can think of is a
  virtual iterator erase (const iterator& iter);
in Gtk::TreeModel (though this breaks probably the ABI)
--=20
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=3Demail
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
--__--__--
_______________________________________________
Gtkmm-forge mailing list
Gtkmm-forge lists sourceforge net
https://lists.sourceforge.net/lists/listinfo/gtkmm-forge
End of Gtkmm-forge Digest
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]