Re: ComboBox/ComboBoxEntry don't inherit from CellEditable
- From: Armin Burgmeier <armin arbur net>
- To: Karthik Ganesan <kganesan handylab com>
- Cc: gtkmm-list gnome org
- Subject: Re: ComboBox/ComboBoxEntry don't inherit from CellEditable
- Date: Fri, 25 Apr 2008 10:12:33 +0200
On Thu, 2008-04-24 at 23:27 -0400, Karthik Ganesan wrote:
> Hi,
> Shouldn't ComboBox/ComboBoxEntry inherit from CellEditable : The
> following program verifies it (dynamic casting to CellEditable returns
> NULL pointers).
It should, but this would break ABI. GtkComboBox implements
GtkCellEditable since GTK+ 2.6, and we cannot add the new base class
without breaking ABI.
> I was trying to grab the combo box instance used by CellRendererCombo in
> the editing_started signal and get a NULL pointer. Any workarounds?
You can bind the ComboBox to the signal handler, like
void editing_started(Gtk::CellEditable* editable, const Glib::ustring&
path, Gtk::ComboBox& box) { ... }
crc.signal_editing_started().connect(sigc::bind(sigc::ptr_fun(&editing_started), sigc::ref(cb)));
Armin
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]