Xfce Foundation Classes
Main Page  | IndexNamespace List  |  Alphabetical List  |  Class List  |  File List


Xfc::Gtk::CellRendererSignals Class Reference

Abstract base class that implements the virtual signal handlers for Gtk::CellRenderer. More...

#include <xfc/gtk/cellrenderersignals.hh>

Inheritance diagram for Xfc::Gtk::CellRendererSignals:
Xfc::Gtk::ObjectSignals Xfc::G::ObjectSignals Xfc::G::TypeInstance Xfc::Trackable Xfc::Gtk::CellRendererTextSignals Xfc::Gtk::CellRendererToggleSignals

List of all members.

Public Member Functions

Signal Handlers

Protected Member Functions

Constructors

Detailed Description

Abstract base class that implements the virtual signal handlers for Gtk::CellRenderer.


Constructor & Destructor Documentation

Construct a new CellRendererSignals object.

Parameters:
cellA CellRenderer object inheriting the CellRendererSignals implementation.

Member Function Documentation

Called to notify a client program that an editing process was canceled and the changes were not committed.

Called when a cell starts to be edited.

Parameters:
editableThe CellEditable.
pathThe path identifying the edited cell.

The indended use of this signal is to do special setup on editable, e.g. adding a Gtk::EntryCompletion or setting up additional columns in a Gtk::ComboBox. Note that GTK+ doesn't guarantee that cell renderers will continue to use the same kind of widget for editing in future releases, therefore you should check the type of editable before doing any specific setup, as in the following example:

< void
< MyClass::on_editing_started(CellEditable *editable, const String& path)
< {
<     if (editable->is_a(GTK_TYPE_ENTRY))
<     {
<         Gtk::Entry *entry = dynamic_cast<Gtk::Entry*>(editable);
<         // create an entry completion
<         entry->set_completion(completion);
<     }
< }
<

The documentation for this class was generated from the following file:
Xfce Foundation Classes
Copyright © 2004-2005 The XFC Development Team XFC