Send Gtkmm-forge mailing list submissions to
[EMAIL PROTECTED]
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
[EMAIL PROTECTED]
You can reach the person managing the list at
[EMAIL PROTECTED]
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: [EMAIL PROTECTED]
From: "gtkmm (bugzilla.gnome.org)" <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
QAContact: [EMAIL PROTECTED]
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
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/gtkmm-forge
End of Gtkmm-forge Digest
_______________________________________________
gtkmm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkmm-list