~ubuntu-branches/ubuntu/karmic/gtkmm2.4/karmic

« back to all changes in this revision

Viewing changes to gtk/gtkmm/treeviewcolumn.h

  • Committer: Bazaar Package Importer
  • Author(s): Robert Ancell
  • Date: 2009-09-22 10:14:59 UTC
  • mfrom: (1.2.42 upstream)
  • Revision ID: james.westby@ubuntu.com-20090922101459-pespb00fbm1mlqbd
Tags: 1:2.18.1-0ubuntu1
* New upstream release: (LP: #434355)
  - RecentManager: Undeprecate get_default().
  - Clipboard: wait_for_targets): Fix a crash.
  - Window: Added set_icon_name().
  - Require a recent pangomm.
  - Style: Fix a compiler error with the Intel C++ compiler.
  - Fix recently-introduced problems with disable-deprecated options.
* debian/control.in:
  - Bump libpangomm-1.4-dev depends and build-depends

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
 
9
9
#include <glibmm.h>
10
10
 
11
 
/* $Id: treeviewcolumn.hg,v 1.16 2006/07/08 16:31:38 murrayc Exp $ */
12
 
 
13
11
/* Copyright(C) 2002 The gtkmm Development Team
14
12
 *
15
13
 * This library is free software; you can redistribute it and/or
27
25
 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
28
26
 */
29
27
 
30
 
// This is for including the config header before any code (such as
 
28
 // This is for including the config header before any code (such as
31
29
// the #ifndef GTKMM_DISABLE_DEPRECATED in deprecated classes) is generated:
32
30
 
33
31
 
86
84
{
87
85
 
88
86
 
89
 
// We use GTKMM_API here because gcc needs the extra help on win32 , even 
90
 
// when using --export-all and auto-import. 
 
87
// We use GTKMM_API here because gcc needs the extra help on win32 , even
 
88
// when using --export-all and auto-import.
91
89
// See http://bugzilla.gnome.org/show_bug.cgi?id=309030.
92
90
 
93
91
//TODO: This should derive+implement from CellLayout when we can break ABI.
235
233
    */
236
234
  const CellRenderer* get_first_cell_renderer() const;
237
235
 
 
236
  // TODO: Should be deprecated, but we cannot derive from CellLayout
 
237
  // without breaking API and ABI.
238
238
  
239
239
  /** Returns a list of all the cell renderers in the column,
240
240
   * in no particular order.
293
293
   *
294
294
   * @param cell_renderer A Gtk::CellRenderer
295
295
   * @param slot The callback slot to use. Create this with sigc::mem_fun(), or sigc::ptr_fun().
296
 
   */  
 
296
   */
297
297
  void set_cell_data_func(CellRenderer& cell_renderer, const SlotCellData& slot);
298
298
 
299
299
  /** Removes a previously set callback slot. See set_cell_data_func().
300
 
   */ 
 
300
   */
301
301
  void unset_cell_data_func(CellRenderer& cell_renderer);
302
302
 
303
303
  
965
965
  set_renderer(*pCellRenderer, column);
966
966
}
967
967
 
968
 
 
969
968
template <class T_ModelColumnType> inline
970
969
TreeViewColumn::TreeViewColumn(const Glib::ustring& title,
971
970
                               const TreeModelColumn<T_ModelColumnType>& column)
976
975
  pack_start(column, true /* expand */);
977
976
}
978
977
 
979
 
 
980
978
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
981
979
 
982
980
} // namespace Gtk