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

« back to all changes in this revision

Viewing changes to gtk/src/toolitem.hg

  • 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:
1
 
/* $Id: toolitem.hg,v 1.14 2006/04/12 11:11:25 murrayc Exp $ */
2
 
 
3
 
/* box.h
4
 
 * 
 
1
/*
5
2
 * Copyright (C) 1998-2002 The gtkmm Development Team
6
3
 *
7
4
 * This library is free software; you can redistribute it and/or
19
16
 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20
17
 */
21
18
 
 
19
#m4 _PUSH(SECTION_CC_PRE_INCLUDES)
 
20
#undef GTK_DISABLE_DEPRECATED
 
21
#m4 _POP()
22
22
// This is for including the config header before any code (such as
23
23
// the #ifndef GTKMM_DISABLE_DEPRECATED in deprecated classes) is generated:
24
24
_CONFIGINCLUDE(gtkmmconfig.h)
28
28
_DEFS(gtkmm,gtk)
29
29
_PINCLUDE(gtkmm/private/bin_p.h)
30
30
 
31
 
 
32
31
namespace Gtk
33
32
{
34
33
 
35
 
/** 
36
 
 *
 
34
/**
37
35
 * @ingroup Widgets
38
36
 */
39
37
class ToolItem : public Bin
52
50
 
53
51
  _WRAP_METHOD(void set_tooltip_text(const Glib::ustring& text),  gtk_tool_item_set_tooltip_text)
54
52
  _WRAP_METHOD(void set_tooltip_markup(const Glib::ustring& markup), gtk_tool_item_set_tooltip_markup)
55
 
  
 
53
 
56
54
  _WRAP_METHOD(void set_use_drag_window(bool use_drag_window = true), gtk_tool_item_set_use_drag_window)
57
55
  _WRAP_METHOD(bool get_use_drag_window() const, gtk_tool_item_get_use_drag_window)
58
56
 
79
77
  _WRAP_METHOD(void rebuild_menu(), gtk_tool_item_rebuild_menu)
80
78
 
81
79
  _WRAP_METHOD(void toolbar_reconfigured(), gtk_tool_item_toolbar_reconfigured)
82
 
  
 
80
 
83
81
  //TODO: This suggests calling set_proxy_menu_item() with NULL. but the function asserts against that.
84
82
  /** This signal is emitted when the toolbar needs information from @tool_item
85
83
   * about whether the item should appear in the toolbar overflow menu. In
90
88
   * in the overflow menu
91
89
   * </listitem>
92
90
   * <listitem> call set_proxy_menu_item() with a new menu
93
 
   * item and return true, or 
 
91
   * item and return true, or
94
92
   * </listitem>
95
93
   * <listitem> return false to indicate that the signal was not
96
94
   * handled by the item. This means that
107
105
   * @result true if the signal was handled, false if not
108
106
   */
109
107
  _WRAP_SIGNAL(bool create_menu_proxy(), create_menu_proxy)
110
 
  
 
108
 
111
109
  /** This signal is emitted when some property of the toolbar that the
112
110
   * item is a child of changes. For custom subclasses of ToolItem,
113
111
   * the default handler of this signal use the functions
140
138
  //_WRAP_SIGNAL(bool set_tooltip(Tooltips* tooltips, const Glib::ustring& tip_text, const Glib::ustring& tip_private), set_tooltip, no_default_handler, deprecated) //TODO: Implement deprecated for _WRAP_SIGNAL() to avoid hand-coding this:
141
139
  #endif //GTKMM_DISABLE_DEPRECATED
142
140
 
143
 
 
144
141
  _WRAP_PROPERTY("visible_horizontal", bool)
145
142
  _WRAP_PROPERTY("visible_vertical", bool)
146
143
  _WRAP_PROPERTY("is_important", bool)
147
144
};
148
145
 
149
146
} // namespace Gtk
150