File: classGtk_1_1Activatable.html

package info (click to toggle)
gtkmm2.4 1%3A2.20.3-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 73,860 kB
  • ctags: 20,553
  • sloc: xml: 79,575; sh: 10,120; cpp: 8,347; makefile: 290
file content (528 lines) | stat: -rw-r--r-- 40,885 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>gtkmm: Gtk::Activatable Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="namespaceGtk.html">Gtk</a>::<a class="el" href="classGtk_1_1Activatable.html">Activatable</a>
  </div>
</div>
<div class="contents">
<h1>Gtk::Activatable Class Reference</h1><!-- doxytag: class="Gtk::Activatable" --><!-- doxytag: inherits="Glib::Interface" -->
<p><a class="el" href="classGtk_1_1Activatable.html" title="Activatable widgets can be connected to a Gtk::Action and reflect the state of the...">Activatable</a> widgets can be connected to a <a class="el" href="classGtk_1_1Action.html" title="An action which can be triggered by a menu or toolbar item.">Gtk::Action</a> and reflect the state of the action. <a href="#_details">More...</a></p>

<p>Inherits <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1Interface.html">Glib::Interface</a>.</p>
<div class="dynheader">
Collaboration diagram for Gtk::Activatable:</div>
<div class="dynsection">
<div class="center"><img src="classGtk_1_1Activatable__coll__graph.png" border="0" usemap="#Gtk_1_1Activatable_coll__map" alt="Collaboration graph"/></div>
<map name="Gtk_1_1Activatable_coll__map" id="Gtk_1_1Activatable_coll__map">
<area shape="rect" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1Interface.html" title="Glib::Interface" alt="" coords="13,160,117,189"/><area shape="rect" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ObjectBase.html" title="Glib::ObjectBase" alt="" coords="5,83,125,112"/><area shape="rect" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/structsigc_1_1trackable.html" title="sigc::trackable" alt="" coords="12,5,119,35"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="classGtk_1_1Activatable-members.html">List of all members.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Activatable.html#abb3865a61bb642ed81cc1fa96611c4ba">~Activatable</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">GtkActivatable*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Activatable.html#a2c56156cd0908e2cda41be373cb6a418">gobj</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#a2c56156cd0908e2cda41be373cb6a418"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const GtkActivatable*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Activatable.html#a51afc18115d01603f5b851186767beaa">gobj</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#a51afc18115d01603f5b851186767beaa"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Activatable.html#af298882960c97b52f23baf88ecc39244">do_set_related_action</a> (const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGtk_1_1Action.html">Action</a> &gt;&amp; action)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">This is a utility function for <a class="el" href="classGtk_1_1Activatable.html" title="Activatable widgets can be connected to a Gtk::Action and reflect the state of the...">Gtk::Activatable</a> implementors. <a href="#af298882960c97b52f23baf88ecc39244"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGtk_1_1Action.html">Action</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Activatable.html#a3e0bc78f47afb22e91ea30d53381cb4f">get_related_action</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the related <a class="el" href="classGtk_1_1Action.html" title="An action which can be triggered by a menu or toolbar item.">Gtk::Action</a> for <em>activatable</em>. <a href="#a3e0bc78f47afb22e91ea30d53381cb4f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; const <a class="el" href="classGtk_1_1Action.html">Action</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Activatable.html#af0bc4a12ced4d9b12c68d60e8e68ce14">get_related_action</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the related <a class="el" href="classGtk_1_1Action.html" title="An action which can be triggered by a menu or toolbar item.">Gtk::Action</a> for <em>activatable</em>. <a href="#af0bc4a12ced4d9b12c68d60e8e68ce14"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Activatable.html#ac2029fb33a2b14417051d00a1bc9b592">get_use_action_appearance</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets whether this activatable should reset its layout and appearance when setting the related action or when the action changes appearance. <a href="#ac2029fb33a2b14417051d00a1bc9b592"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Activatable.html#af9b8ce1cf67419978c49caae59b4602e">sync_action_properties</a> (const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGtk_1_1Action.html">Action</a> &gt;&amp; action)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">This is called to update the activatable completely, this is called internally when the Gtk::Activatable::related-action property is set or unset and by the implementing class when Gtk::Activatable::use-action-appearance changes. <a href="#af9b8ce1cf67419978c49caae59b4602e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Activatable.html#a1f5010ca913e20455e7c7eb2ff1a0c45">set_related_action</a> (const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGtk_1_1Action.html">Action</a> &gt;&amp; action)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the related action on the <em>activatable</em> object. <a href="#a1f5010ca913e20455e7c7eb2ff1a0c45"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Activatable.html#adf2a66b8a9834161daa283a82e2ed3b5">set_use_action_appearance</a> (bool use_appearance=true)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets whether this activatable should reset its layout and appearance when setting the related action or when the action changes appearance. <a href="#adf2a66b8a9834161daa283a82e2ed3b5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a><br class="typebreak"/>
&lt; <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGtk_1_1Action.html">Action</a> &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Activatable.html#aab80092c9e997cc8e0ec0476a6a262d0">property_related_action</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The action this activatable will activate and receive updates from. <a href="#aab80092c9e997cc8e0ec0476a6a262d0"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><br class="typebreak"/>
&lt; <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGtk_1_1Action.html">Action</a> &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Activatable.html#a4516b5eec6b21121cda5aec00e9f0731">property_related_action</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The action this activatable will activate and receive updates from. <a href="#a4516b5eec6b21121cda5aec00e9f0731"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a>&lt; bool &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Activatable.html#a216f1d8aecf18ebb793fea3768466458">property_use_action_appearance</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Whether to use the related actions appearance properties. <a href="#a216f1d8aecf18ebb793fea3768466458"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><br class="typebreak"/>
&lt; bool &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Activatable.html#a1b62a0d283da092c356b224aa416eb61">property_use_action_appearance</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Whether to use the related actions appearance properties. <a href="#a1b62a0d283da092c356b224aa416eb61"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Activatable.html#a28030e0b75146c2928e87edcbfa1a4d3">update_vfunc</a> (const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGtk_1_1Action.html">Action</a> &gt;&amp; action, const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a>&amp; property_name)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Activatable.html#a9ffad21bf5d037c6b5c8b24d998abc71">sync_action_properties_vfunc</a> (const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGtk_1_1Action.html">Action</a> &gt;&amp; action)</td></tr>
<tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Activatable.html#a81e20adb433841acbd90b0b39c6f8cf0">add_interface</a> (GType gtype_implementer)</td></tr>
<tr><td colspan="2"><h2>Related Functions</h2></td></tr>
<tr><td colspan="2"><p>(Note that these are not member functions.) </p>
<br/><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGtk_1_1Activatable.html">Gtk::Activatable</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Activatable.html#a9f974c0da2d012a1083845a65c9d645d">wrap</a> (GtkActivatable* object, bool take_copy=false)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">A <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. <a href="#a9f974c0da2d012a1083845a65c9d645d"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p><a class="el" href="classGtk_1_1Activatable.html" title="Activatable widgets can be connected to a Gtk::Action and reflect the state of the...">Activatable</a> widgets can be connected to a <a class="el" href="classGtk_1_1Action.html" title="An action which can be triggered by a menu or toolbar item.">Gtk::Action</a> and reflect the state of the action. </p>
<p>An <a class="el" href="classGtk_1_1Activatable.html" title="Activatable widgets can be connected to a Gtk::Action and reflect the state of the...">Activatable</a> can also provide feedback through its action, as it is responsible for activating the related action.</p>
<dl class="since_2_16"><dt><b><a class="el" href="since_2_16.html#_since_2_16000023">Since gtkmm 2.16:</a></b></dt><dd></dd></dl>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="abb3865a61bb642ed81cc1fa96611c4ba"></a><!-- doxytag: member="Gtk::Activatable::~Activatable" ref="abb3865a61bb642ed81cc1fa96611c4ba" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual Gtk::Activatable::~Activatable </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a81e20adb433841acbd90b0b39c6f8cf0"></a><!-- doxytag: member="Gtk::Activatable::add_interface" ref="a81e20adb433841acbd90b0b39c6f8cf0" args="(GType gtype_implementer)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void Gtk::Activatable::add_interface </td>
          <td>(</td>
          <td class="paramtype">GType&#160;</td>
          <td class="paramname"> <em>gtype_implementer</em></td>
          <td>&#160;)&#160;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="af298882960c97b52f23baf88ecc39244"></a><!-- doxytag: member="Gtk::Activatable::do_set_related_action" ref="af298882960c97b52f23baf88ecc39244" args="(const Glib::RefPtr&lt; Action &gt; &amp;action)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::Activatable::do_set_related_action </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGtk_1_1Action.html">Action</a> &gt;&amp;&#160;</td>
          <td class="paramname"> <em>action</em></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>This is a utility function for <a class="el" href="classGtk_1_1Activatable.html" title="Activatable widgets can be connected to a Gtk::Action and reflect the state of the...">Gtk::Activatable</a> implementors. </p>
<p>When implementing <a class="el" href="classGtk_1_1Activatable.html" title="Activatable widgets can be connected to a Gtk::Action and reflect the state of the...">Gtk::Activatable</a> you must call this when handling changes of the <a class="el" href="classGtk_1_1Activatable.html" title="Activatable widgets can be connected to a Gtk::Action and reflect the state of the...">Gtk::Activatable</a>:related-action, and you must also use this to break references in Object-&gt;dispose().</p>
<p>This function adds a reference to the currently set related action for you, it also makes sure the <a class="el" href="classGtk_1_1Activatable.html" title="Activatable widgets can be connected to a Gtk::Action and reflect the state of the...">Gtk::Activatable</a>-&gt;update() method is called when the related <a class="el" href="classGtk_1_1Action.html" title="An action which can be triggered by a menu or toolbar item.">Gtk::Action</a> properties change and registers to the action's proxy list.</p>
<p>&lt;note&gt;</p>
<p>Be careful to call this before setting the local copy of the <a class="el" href="classGtk_1_1Action.html" title="An action which can be triggered by a menu or toolbar item.">Gtk::Action</a> property, since this function uses gtk_activatable_get_action() to retrieve the previous action</p>
<p>&lt;/note&gt;</p>
<dl class="since_2_16"><dt><b><a class="el" href="since_2_16.html#_since_2_16000024">Since gtkmm 2.16:</a></b></dt><dd></dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>action</em>&#160;</td><td>The <a class="el" href="classGtk_1_1Action.html" title="An action which can be triggered by a menu or toolbar item.">Gtk::Action</a> to set. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="af0bc4a12ced4d9b12c68d60e8e68ce14"></a><!-- doxytag: member="Gtk::Activatable::get_related_action" ref="af0bc4a12ced4d9b12c68d60e8e68ce14" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;const <a class="el" href="classGtk_1_1Action.html">Action</a>&gt; Gtk::Activatable::get_related_action </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Gets the related <a class="el" href="classGtk_1_1Action.html" title="An action which can be triggered by a menu or toolbar item.">Gtk::Action</a> for <em>activatable</em>. </p>
<dl class="since_2_16"><dt><b><a class="el" href="since_2_16.html#_since_2_16000026">Since gtkmm 2.16:</a></b></dt><dd></dd></dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The related <a class="el" href="classGtk_1_1Action.html" title="An action which can be triggered by a menu or toolbar item.">Gtk::Action</a> if one is set. </dd></dl>

</div>
</div>
<a class="anchor" id="a3e0bc78f47afb22e91ea30d53381cb4f"></a><!-- doxytag: member="Gtk::Activatable::get_related_action" ref="a3e0bc78f47afb22e91ea30d53381cb4f" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGtk_1_1Action.html">Action</a>&gt; Gtk::Activatable::get_related_action </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Gets the related <a class="el" href="classGtk_1_1Action.html" title="An action which can be triggered by a menu or toolbar item.">Gtk::Action</a> for <em>activatable</em>. </p>
<dl class="since_2_16"><dt><b><a class="el" href="since_2_16.html#_since_2_16000025">Since gtkmm 2.16:</a></b></dt><dd></dd></dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The related <a class="el" href="classGtk_1_1Action.html" title="An action which can be triggered by a menu or toolbar item.">Gtk::Action</a> if one is set. </dd></dl>

</div>
</div>
<a class="anchor" id="ac2029fb33a2b14417051d00a1bc9b592"></a><!-- doxytag: member="Gtk::Activatable::get_use_action_appearance" ref="ac2029fb33a2b14417051d00a1bc9b592" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Gtk::Activatable::get_use_action_appearance </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Gets whether this activatable should reset its layout and appearance when setting the related action or when the action changes appearance. </p>
<dl class="since_2_16"><dt><b><a class="el" href="since_2_16.html#_since_2_16000027">Since gtkmm 2.16:</a></b></dt><dd></dd></dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Whether <em>activatable</em> uses its actions appearance. </dd></dl>

</div>
</div>
<a class="anchor" id="a51afc18115d01603f5b851186767beaa"></a><!-- doxytag: member="Gtk::Activatable::gobj" ref="a51afc18115d01603f5b851186767beaa" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const GtkActivatable* Gtk::Activatable::gobj </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Provides access to the underlying C GObject. </p>

<p>Reimplemented from <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1Interface.html#a70a443071a69d3372c2cdd7128a91ed1">Glib::Interface</a>.</p>

</div>
</div>
<a class="anchor" id="a2c56156cd0908e2cda41be373cb6a418"></a><!-- doxytag: member="Gtk::Activatable::gobj" ref="a2c56156cd0908e2cda41be373cb6a418" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GtkActivatable* Gtk::Activatable::gobj </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Provides access to the underlying C GObject. </p>

<p>Reimplemented from <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1Interface.html#a969e9396f75132a9577428f4fa932d42">Glib::Interface</a>.</p>

</div>
</div>
<a class="anchor" id="a4516b5eec6b21121cda5aec00e9f0731"></a><!-- doxytag: member="Gtk::Activatable::property_related_action" ref="a4516b5eec6b21121cda5aec00e9f0731" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a>&lt; <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGtk_1_1Action.html">Action</a>&gt; &gt; Gtk::Activatable::property_related_action </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The action this activatable will activate and receive updates from. </p>
<p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl>

</div>
</div>
<a class="anchor" id="aab80092c9e997cc8e0ec0476a6a262d0"></a><!-- doxytag: member="Gtk::Activatable::property_related_action" ref="aab80092c9e997cc8e0ec0476a6a262d0" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a>&lt; <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGtk_1_1Action.html">Action</a>&gt; &gt; Gtk::Activatable::property_related_action </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The action this activatable will activate and receive updates from. </p>
<p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl>

</div>
</div>
<a class="anchor" id="a1b62a0d283da092c356b224aa416eb61"></a><!-- doxytag: member="Gtk::Activatable::property_use_action_appearance" ref="a1b62a0d283da092c356b224aa416eb61" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a>&lt;bool&gt; Gtk::Activatable::property_use_action_appearance </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Whether to use the related actions appearance properties. </p>
<p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl>

</div>
</div>
<a class="anchor" id="a216f1d8aecf18ebb793fea3768466458"></a><!-- doxytag: member="Gtk::Activatable::property_use_action_appearance" ref="a216f1d8aecf18ebb793fea3768466458" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a>&lt;bool&gt; Gtk::Activatable::property_use_action_appearance </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Whether to use the related actions appearance properties. </p>
<p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl>

</div>
</div>
<a class="anchor" id="a1f5010ca913e20455e7c7eb2ff1a0c45"></a><!-- doxytag: member="Gtk::Activatable::set_related_action" ref="a1f5010ca913e20455e7c7eb2ff1a0c45" args="(const Glib::RefPtr&lt; Action &gt; &amp;action)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::Activatable::set_related_action </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGtk_1_1Action.html">Action</a> &gt;&amp;&#160;</td>
          <td class="paramname"> <em>action</em></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the related action on the <em>activatable</em> object. </p>
<p>&lt;note&gt;</p>
<p><a class="el" href="classGtk_1_1Activatable.html" title="Activatable widgets can be connected to a Gtk::Action and reflect the state of the...">Gtk::Activatable</a> implementors need to handle the <a class="el" href="classGtk_1_1Activatable.html" title="Activatable widgets can be connected to a Gtk::Action and reflect the state of the...">Gtk::Activatable</a>:related-action property and call <a class="el" href="classGtk_1_1Activatable.html#af298882960c97b52f23baf88ecc39244" title="This is a utility function for Gtk::Activatable implementors.">do_set_related_action()</a> when it changes.</p>
<p>&lt;/note&gt;</p>
<dl class="since_2_16"><dt><b><a class="el" href="since_2_16.html#_since_2_16000029">Since gtkmm 2.16:</a></b></dt><dd></dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>action</em>&#160;</td><td>The <a class="el" href="classGtk_1_1Action.html" title="An action which can be triggered by a menu or toolbar item.">Gtk::Action</a> to set. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="adf2a66b8a9834161daa283a82e2ed3b5"></a><!-- doxytag: member="Gtk::Activatable::set_use_action_appearance" ref="adf2a66b8a9834161daa283a82e2ed3b5" args="(bool use_appearance=true)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::Activatable::set_use_action_appearance </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"> <em>use_appearance</em> = <code>true</code></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets whether this activatable should reset its layout and appearance when setting the related action or when the action changes appearance. </p>
<p>&lt;note&gt;</p>
<p><a class="el" href="classGtk_1_1Activatable.html" title="Activatable widgets can be connected to a Gtk::Action and reflect the state of the...">Gtk::Activatable</a> implementors need to handle the <a class="el" href="classGtk_1_1Activatable.html" title="Activatable widgets can be connected to a Gtk::Action and reflect the state of the...">Gtk::Activatable</a>:use-action-appearance property and call <a class="el" href="classGtk_1_1Activatable.html#af9b8ce1cf67419978c49caae59b4602e" title="This is called to update the activatable completely, this is called internally when...">sync_action_properties()</a> to update <em>activatable</em> if needed.</p>
<p>&lt;/note&gt;</p>
<dl class="since_2_16"><dt><b><a class="el" href="since_2_16.html#_since_2_16000030">Since gtkmm 2.16:</a></b></dt><dd></dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>use_appearance</em>&#160;</td><td>Whether to use the actions appearance. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="af9b8ce1cf67419978c49caae59b4602e"></a><!-- doxytag: member="Gtk::Activatable::sync_action_properties" ref="af9b8ce1cf67419978c49caae59b4602e" args="(const Glib::RefPtr&lt; Action &gt; &amp;action)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::Activatable::sync_action_properties </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGtk_1_1Action.html">Action</a> &gt;&amp;&#160;</td>
          <td class="paramname"> <em>action</em></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>This is called to update the activatable completely, this is called internally when the Gtk::Activatable::related-action property is set or unset and by the implementing class when Gtk::Activatable::use-action-appearance changes. </p>
<dl class="since_2_16"><dt><b><a class="el" href="since_2_16.html#_since_2_16000028">Since gtkmm 2.16:</a></b></dt><dd></dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>action</em>&#160;</td><td>The related <a class="el" href="classGtk_1_1Action.html" title="An action which can be triggered by a menu or toolbar item.">Gtk::Action</a> or <code>0</code>. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a9ffad21bf5d037c6b5c8b24d998abc71"></a><!-- doxytag: member="Gtk::Activatable::sync_action_properties_vfunc" ref="a9ffad21bf5d037c6b5c8b24d998abc71" args="(const Glib::RefPtr&lt; Action &gt; &amp;action)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Gtk::Activatable::sync_action_properties_vfunc </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGtk_1_1Action.html">Action</a> &gt;&amp;&#160;</td>
          <td class="paramname"> <em>action</em></td>
          <td>&#160;)&#160;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a28030e0b75146c2928e87edcbfa1a4d3"></a><!-- doxytag: member="Gtk::Activatable::update_vfunc" ref="a28030e0b75146c2928e87edcbfa1a4d3" args="(const Glib::RefPtr&lt; Action &gt; &amp;action, const Glib::ustring &amp;property_name)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Gtk::Activatable::update_vfunc </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGtk_1_1Action.html">Action</a> &gt;&amp;&#160;</td>
          <td class="paramname"> <em>action</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&#160;</td>
          <td class="paramname"> <em>property_name</em></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/><h2>Friends And Related Function Documentation</h2>
<a class="anchor" id="a9f974c0da2d012a1083845a65c9d645d"></a><!-- doxytag: member="Gtk::Activatable::wrap" ref="a9f974c0da2d012a1083845a65c9d645d" args="(GtkActivatable *object, bool take_copy=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGtk_1_1Activatable.html">Gtk::Activatable</a> &gt; wrap </td>
          <td>(</td>
          <td class="paramtype">GtkActivatable *&#160;</td>
          <td class="paramname"> <em>object</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"> <em>take_copy</em> = <code>false</code></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [related]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>A <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>object</em>&#160;</td><td>The C instance. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>take_copy</em>&#160;</td><td>False if the result should take ownership of the C instance. True if it should take a new copy or ref. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A C++ instance that wraps this C instance. </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>gtkmm/activatable.h</li>
</ul>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Tue May 4 13:21:45 2010 for gtkmm by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>
</html>