| 12
 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
 529
 530
 531
 532
 533
 534
 535
 536
 537
 538
 539
 540
 541
 542
 543
 544
 545
 546
 547
 548
 549
 550
 551
 552
 553
 554
 555
 556
 557
 558
 559
 560
 561
 562
 563
 564
 565
 566
 567
 568
 569
 570
 571
 572
 573
 574
 575
 576
 577
 578
 579
 580
 581
 582
 583
 584
 585
 586
 587
 588
 589
 590
 591
 592
 593
 594
 595
 596
 597
 598
 599
 600
 601
 602
 603
 604
 605
 606
 607
 608
 609
 610
 611
 612
 613
 614
 615
 616
 617
 618
 619
 620
 621
 622
 623
 624
 625
 626
 627
 628
 629
 630
 631
 632
 633
 634
 635
 636
 637
 638
 639
 640
 641
 642
 643
 644
 645
 646
 647
 648
 649
 650
 651
 652
 653
 654
 655
 656
 657
 658
 659
 660
 661
 662
 663
 664
 665
 666
 667
 668
 669
 670
 671
 672
 673
 674
 675
 676
 677
 678
 679
 680
 681
 682
 683
 684
 685
 686
 687
 688
 689
 690
 691
 692
 693
 694
 695
 696
 697
 698
 699
 700
 701
 702
 703
 704
 705
 706
 707
 708
 709
 710
 711
 712
 713
 714
 715
 716
 717
 718
 719
 720
 721
 722
 723
 724
 725
 726
 727
 728
 729
 730
 731
 732
 733
 734
 735
 736
 737
 738
 739
 740
 741
 742
 743
 744
 745
 746
 747
 748
 749
 750
 751
 752
 753
 754
 755
 756
 757
 758
 759
 760
 761
 762
 763
 764
 765
 766
 767
 768
 769
 770
 771
 772
 773
 774
 775
 776
 777
 778
 779
 780
 781
 782
 783
 784
 785
 786
 787
 788
 789
 790
 791
 792
 793
 794
 795
 796
 797
 798
 799
 800
 801
 802
 803
 804
 805
 806
 807
 808
 809
 810
 811
 812
 813
 814
 815
 816
 817
 818
 819
 820
 821
 822
 823
 824
 825
 826
 827
 828
 829
 830
 831
 832
 833
 834
 835
 836
 837
 838
 839
 840
 841
 842
 843
 844
 845
 846
 847
 848
 849
 850
 851
 852
 853
 854
 855
 856
 857
 858
 859
 860
 861
 862
 863
 864
 865
 866
 867
 868
 869
 870
 871
 872
 873
 874
 875
 876
 877
 878
 879
 880
 881
 882
 883
 884
 885
 886
 887
 888
 889
 890
 891
 892
 893
 894
 895
 896
 897
 898
 899
 900
 901
 902
 903
 904
 905
 906
 907
 908
 909
 910
 911
 912
 913
 914
 915
 916
 917
 918
 919
 920
 921
 922
 923
 924
 925
 926
 927
 928
 929
 930
 931
 932
 933
 934
 935
 936
 937
 938
 939
 940
 941
 942
 943
 944
 945
 946
 947
 948
 949
 950
 951
 952
 953
 954
 955
 956
 957
 958
 959
 960
 961
 962
 963
 964
 965
 966
 967
 968
 969
 970
 971
 972
 973
 974
 975
 976
 977
 978
 979
 980
 981
 982
 983
 984
 985
 986
 987
 988
 989
 990
 991
 992
 993
 994
 995
 996
 997
 998
 999
 1000
 1001
 1002
 1003
 1004
 1005
 1006
 1007
 1008
 1009
 1010
 1011
 1012
 1013
 1014
 1015
 1016
 1017
 1018
 1019
 1020
 1021
 1022
 1023
 1024
 1025
 1026
 1027
 1028
 1029
 1030
 1031
 1032
 1033
 1034
 1035
 1036
 1037
 1038
 1039
 1040
 1041
 1042
 1043
 1044
 1045
 1046
 1047
 1048
 1049
 1050
 1051
 1052
 1053
 1054
 1055
 1056
 1057
 1058
 1059
 1060
 1061
 1062
 1063
 1064
 1065
 1066
 1067
 1068
 1069
 1070
 1071
 1072
 1073
 1074
 1075
 1076
 1077
 1078
 1079
 1080
 1081
 1082
 1083
 1084
 1085
 1086
 1087
 1088
 1089
 1090
 1091
 1092
 1093
 1094
 1095
 1096
 1097
 1098
 1099
 1100
 1101
 1102
 1103
 1104
 1105
 1106
 1107
 1108
 1109
 1110
 1111
 1112
 1113
 1114
 1115
 1116
 1117
 1118
 1119
 1120
 1121
 1122
 1123
 1124
 1125
 1126
 1127
 1128
 1129
 1130
 1131
 1132
 1133
 1134
 1135
 1136
 1137
 1138
 1139
 1140
 1141
 1142
 1143
 1144
 1145
 1146
 1147
 1148
 1149
 1150
 1151
 1152
 1153
 1154
 1155
 1156
 1157
 1158
 1159
 1160
 1161
 1162
 1163
 1164
 1165
 1166
 1167
 1168
 1169
 1170
 1171
 1172
 1173
 1174
 1175
 1176
 1177
 1178
 1179
 1180
 1181
 1182
 1183
 1184
 1185
 1186
 1187
 1188
 1189
 1190
 1191
 1192
 1193
 1194
 1195
 1196
 1197
 1198
 1199
 1200
 1201
 1202
 1203
 1204
 1205
 1206
 1207
 1208
 1209
 1210
 1211
 1212
 1213
 1214
 1215
 1216
 1217
 1218
 1219
 1220
 1221
 1222
 1223
 1224
 1225
 1226
 1227
 1228
 1229
 1230
 1231
 1232
 1233
 1234
 1235
 1236
 1237
 1238
 1239
 1240
 1241
 1242
 1243
 1244
 1245
 1246
 1247
 1248
 1249
 1250
 1251
 1252
 1253
 1254
 1255
 1256
 1257
 1258
 1259
 1260
 1261
 1262
 1263
 1264
 1265
 1266
 1267
 1268
 1269
 1270
 1271
 1272
 1273
 1274
 1275
 1276
 1277
 1278
 1279
 1280
 1281
 1282
 1283
 1284
 1285
 1286
 1287
 1288
 1289
 1290
 1291
 1292
 1293
 1294
 1295
 1296
 1297
 1298
 1299
 1300
 1301
 1302
 1303
 1304
 1305
 1306
 1307
 1308
 1309
 1310
 1311
 1312
 1313
 
 | <!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::UIManager 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 Page</span></a></li>
      <li><a href="pages.html"><span>Related 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 List</span></a></li>
      <li><a href="classes.html"><span>Class Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="namespaceGtk.html">Gtk</a>::<a class="el" href="classGtk_1_1UIManager.html">UIManager</a>
  </div>
</div>
<div class="contents">
<h1>Gtk::UIManager Class Reference</h1><!-- doxytag: class="Gtk::UIManager" --><!-- doxytag: inherits="Glib::Object" -->
<p>Constructing menus and toolbars from an XML description. <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_1Object.html">Glib::Object</a>.</p>
<div class="dynheader">
Collaboration diagram for Gtk::UIManager:</div>
<div class="dynsection">
<div class="center"><img src="classGtk_1_1UIManager__coll__graph.png" border="0" usemap="#Gtk_1_1UIManager_coll__map" alt="Collaboration graph"/></div>
<map name="Gtk_1_1UIManager_coll__map" id="Gtk_1_1UIManager_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_1Object.html" title="Glib::Object" alt="" coords="20,160,111,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_1UIManager-members.html">List of all members.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef guint </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1UIManager.html#a0682fad15edb0f4418487e555aa6805d">ui_merge_id</a></td></tr>
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1UIManager.html#a3193cf4841782d2efb3836ad87f2bbb8">~UIManager</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">GtkUIManager* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1UIManager.html#adcbc82741d92ed865d1d63eddabb7d99">gobj</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#adcbc82741d92ed865d1d63eddabb7d99"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const GtkUIManager* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1UIManager.html#aae9a90e30c01a024da550dddd9d86363">gobj</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#aae9a90e30c01a024da550dddd9d86363"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">GtkUIManager* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1UIManager.html#a49c2a2f2d2b9c7db91cfce222c6d9139">gobj_copy</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. <a href="#a49c2a2f2d2b9c7db91cfce222c6d9139"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1UIManager.html#aaaa2dd331a1a300e21e8b61b1e9f6c46">set_add_tearoffs</a> (bool add_tearoffs=true)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the "add_tearoffs" property, which controls whether menus generated by this <a class="el" href="classGtk_1_1UIManager.html" title="Constructing menus and toolbars from an XML description.">Gtk::UIManager</a> will have tearoff menu items. <a href="#aaaa2dd331a1a300e21e8b61b1e9f6c46"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1UIManager.html#a199dfed5c1bdae63887ee2bed7c559fd">get_add_tearoffs</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns whether menus generated by this <a class="el" href="classGtk_1_1UIManager.html" title="Constructing menus and toolbars from an XML description.">Gtk::UIManager</a> will have tearoff menu items. <a href="#a199dfed5c1bdae63887ee2bed7c559fd"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1UIManager.html#a50cc8ee94cb48ddef6516883a0dd9047">insert_action_group</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>< <a class="el" href="classGtk_1_1ActionGroup.html">ActionGroup</a> >& action_group, int pos=0)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Inserts an action group into the list of action groups associated with <em>self</em>. <a href="#a50cc8ee94cb48ddef6516883a0dd9047"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1UIManager.html#a13551c32d6aa054c8c6771086727c576">remove_action_group</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>< <a class="el" href="classGtk_1_1ActionGroup.html">ActionGroup</a> >& action_group)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Removes an action group from the list of action groups associated with <em>self</em>. <a href="#a13551c32d6aa054c8c6771086727c576"></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_1ListHandle.html">Glib::ListHandle</a>< <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><br class="typebreak"/>
< <a class="el" href="classGtk_1_1ActionGroup.html">ActionGroup</a> > > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1UIManager.html#ab0fcfc16bf3763645b083848d5f5f33b">get_action_groups</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the list of action groups associated with <em>self</em>. <a href="#ab0fcfc16bf3763645b083848d5f5f33b"></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_1ListHandle.html">Glib::ListHandle</a>< <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><br class="typebreak"/>
< const <a class="el" href="classGtk_1_1ActionGroup.html">ActionGroup</a> > > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1UIManager.html#a6d8e6a1ac268dbbd7fd28d9fbe1c5aa4">get_action_groups</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the list of action groups associated with <em>self</em>. <a href="#a6d8e6a1ac268dbbd7fd28d9fbe1c5aa4"></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>< <a class="el" href="classGtk_1_1AccelGroup.html">AccelGroup</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1UIManager.html#a56f55fb4e8428dbc65c49cf1229775c4">get_accel_group</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the <a class="el" href="classGtk_1_1AccelGroup.html" title="A Gtk::AccelGroup represents a group of keyboard accelerators, typically attached...">Gtk::AccelGroup</a> associated with <em>self</em>. <a href="#a56f55fb4e8428dbc65c49cf1229775c4"></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>< const <a class="el" href="classGtk_1_1AccelGroup.html">AccelGroup</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1UIManager.html#a42211d42cb736b8f2b5b0d0d20f85e05">get_accel_group</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the <a class="el" href="classGtk_1_1AccelGroup.html" title="A Gtk::AccelGroup represents a group of keyboard accelerators, typically attached...">Gtk::AccelGroup</a> associated with <em>self</em>. <a href="#a42211d42cb736b8f2b5b0d0d20f85e05"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGtk_1_1Widget.html">Widget</a>* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1UIManager.html#a93357a4791e1740610fadb0ba088cbf3">get_widget</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_1ustring.html">Glib::ustring</a>& path)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Looks up a widget by following a path. <a href="#a93357a4791e1740610fadb0ba088cbf3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classGtk_1_1Widget.html">Widget</a>* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1UIManager.html#a38de43f04c160b1ddf238da0f0309cc0">get_widget</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_1ustring.html">Glib::ustring</a>& path) const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Looks up a widget by following a path. <a href="#a38de43f04c160b1ddf238da0f0309cc0"></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_1SListHandle.html">Glib::SListHandle</a>< <a class="el" href="classGtk_1_1Widget.html">Widget</a>* > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1UIManager.html#aaf34fa7155944190cf80432e7bccbd52">get_toplevels</a> (<a class="el" href="group__gtkmmEnums.html#ga91226ea137a67080d9b487225aa41d7b">UIManagerItemType</a> types)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Obtains a list of all toplevel widgets of the requested types. <a href="#aaf34fa7155944190cf80432e7bccbd52"></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_1SListHandle.html">Glib::SListHandle</a>< const <a class="el" href="classGtk_1_1Widget.html">Widget</a>* > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1UIManager.html#a5e340833b5766122d0901dc98e42bc0b">get_toplevels</a> (<a class="el" href="group__gtkmmEnums.html#ga91226ea137a67080d9b487225aa41d7b">UIManagerItemType</a> types) const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Obtains a list of all toplevel widgets of the requested types. <a href="#a5e340833b5766122d0901dc98e42bc0b"></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>< <a class="el" href="classGtk_1_1Action.html">Action</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1UIManager.html#a5486fde7529fd2f6e0cfbea2780e5d32">get_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_1ustring.html">Glib::ustring</a>& path)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Looks up an action by following a path. <a href="#a5486fde7529fd2f6e0cfbea2780e5d32"></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>< const <a class="el" href="classGtk_1_1Action.html">Action</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1UIManager.html#ab4b3f27d94dc1363ec10915cffa7f3a7">get_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_1ustring.html">Glib::ustring</a>& path) const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Looks up an action by following a path. <a href="#ab4b3f27d94dc1363ec10915cffa7f3a7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGtk_1_1UIManager.html#a0682fad15edb0f4418487e555aa6805d">ui_merge_id</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1UIManager.html#a403582b15c37408abaa868692d6a7abd">add_ui_from_string</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_1ustring.html">Glib::ustring</a>& buffer)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Parses a string containing a UI definition and merges it with the current contents. <a href="#a403582b15c37408abaa868692d6a7abd"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGtk_1_1UIManager.html#a0682fad15edb0f4418487e555aa6805d">ui_merge_id</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1UIManager.html#ad1377c506a357a7587d5e2bb5377881c">add_ui_from_file</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_1ustring.html">Glib::ustring</a>& filename)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Parses a file containing a <link linkend="XML-UI">UI definition</link> and merges it with the current contents of <em>self</em>. <a href="#ad1377c506a357a7587d5e2bb5377881c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1UIManager.html#a0a23ac89ab23915b675446cc1c10db1f">add_ui</a> (<a class="el" href="classGtk_1_1UIManager.html#a0682fad15edb0f4418487e555aa6805d">ui_merge_id</a> merge_id, 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>& path, 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>& name, 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>& action, <a class="el" href="group__gtkmmEnums.html#ga91226ea137a67080d9b487225aa41d7b">UIManagerItemType</a> type=Gtk::UI_MANAGER_AUTO, bool top=true)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Adds a UI element to the current contents of <em>self</em>. <a href="#a0a23ac89ab23915b675446cc1c10db1f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1UIManager.html#a19b05ae50b353b39b60f467008c0c827">add_ui_separator</a> (<a class="el" href="classGtk_1_1UIManager.html#a0682fad15edb0f4418487e555aa6805d">ui_merge_id</a> merge_id, 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>& path, 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>& name="", <a class="el" href="group__gtkmmEnums.html#ga91226ea137a67080d9b487225aa41d7b">UIManagerItemType</a> type=Gtk::UI_MANAGER_AUTO, bool top=true)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Adds a separator UI element to the current contents. <a href="#a19b05ae50b353b39b60f467008c0c827"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1UIManager.html#a0611594aa9d4df6febe90dbb9fe2fd21">remove_ui</a> (<a class="el" href="classGtk_1_1UIManager.html#a0682fad15edb0f4418487e555aa6805d">ui_merge_id</a> merge_id)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Unmerges the part of <em>selfs</em> content identified by <em>merge_id</em>. <a href="#a0611594aa9d4df6febe90dbb9fe2fd21"></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_1ustring.html">Glib::ustring</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1UIManager.html#ad85b3e2cb26b4535d71a57ac81f61918">get_ui</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a <link linkend="XML-UI">UI definition</link> of the merged UI. <a href="#ad85b3e2cb26b4535d71a57ac81f61918"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1UIManager.html#aa3a3f4e8bdd7488eab875e9bbfd2ae15">ensure_update</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Makes sure that all pending updates to the UI have been completed. <a href="#aa3a3f4e8bdd7488eab875e9bbfd2ae15"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGtk_1_1UIManager.html#a0682fad15edb0f4418487e555aa6805d">ui_merge_id</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1UIManager.html#ac5cb767d3ba718492972e7f9c5f02fb7">new_merge_id</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns an unused merge id, suitable for use with gtk_ui_manager_add_ui(). <a href="#ac5cb767d3ba718492972e7f9c5f02fb7"></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_1SignalProxy1.html">Glib::SignalProxy1</a>< void, <br class="typebreak"/>
<a class="el" href="classGtk_1_1Widget.html">Widget</a>* > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1UIManager.html#a92f803fbd7048cdfeb94d0b395435292">signal_add_widget</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">The add_widget signal is emitted for each generated menubar and toolbar. <a href="#a92f803fbd7048cdfeb94d0b395435292"></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_1SignalProxy0.html">Glib::SignalProxy0</a>< void > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1UIManager.html#ab670a3d562a988c0ed866faaae5e4223">signal_actions_changed</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">The "actions-changed" signal is emitted whenever the set of actions changes. <a href="#ab670a3d562a988c0ed866faaae5e4223"></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_1SignalProxy2.html">Glib::SignalProxy2</a>< void, <br class="typebreak"/>
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>< <a class="el" href="classGtk_1_1Action.html">Action</a> ><br class="typebreak"/>
&, <a class="el" href="classGtk_1_1Widget.html">Widget</a>* > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1UIManager.html#a0fd9d67e67983ee5dd914812a7153e95">signal_connect_proxy</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">The connect_proxy signal is emitted after connecting a proxy to an action in the group. <a href="#a0fd9d67e67983ee5dd914812a7153e95"></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_1SignalProxy2.html">Glib::SignalProxy2</a>< void, <br class="typebreak"/>
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>< <a class="el" href="classGtk_1_1Action.html">Action</a> ><br class="typebreak"/>
&, <a class="el" href="classGtk_1_1Widget.html">Widget</a>* > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1UIManager.html#aa133acc14dd552ad2df62b21ea7e4ebb">signal_disconnect_proxy</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">The disconnect_proxy signal is emitted after disconnecting a proxy from an action in the group. <a href="#aa133acc14dd552ad2df62b21ea7e4ebb"></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_1SignalProxy1.html">Glib::SignalProxy1</a>< void, <br class="typebreak"/>
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>< <a class="el" href="classGtk_1_1Action.html">Action</a> >& > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1UIManager.html#a13c399f0521ccc99a09611879038cee9">signal_pre_activate</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">The pre_activate signal is emitted just before the <em>action</em> is activated. <a href="#a13c399f0521ccc99a09611879038cee9"></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_1SignalProxy1.html">Glib::SignalProxy1</a>< void, <br class="typebreak"/>
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>< <a class="el" href="classGtk_1_1Action.html">Action</a> >& > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1UIManager.html#a0243e755d2a8da7d658000c1b20f221d">signal_post_activate</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">The post_activate signal is emitted just after the <em>action</em> is activated. <a href="#a0243e755d2a8da7d658000c1b20f221d"></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>< bool > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1UIManager.html#abaecd90445fa40cf1b7923845d03f70a">property_add_tearoffs</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Whether tearoff menu items should be added to menus. <a href="#abaecd90445fa40cf1b7923845d03f70a"></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"/>
< bool > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1UIManager.html#abac08a288b27cc0f284aedfbc7289d98">property_add_tearoffs</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Whether tearoff menu items should be added to menus. <a href="#abac08a288b27cc0f284aedfbc7289d98"></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"/>
< <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> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1UIManager.html#aba5843176409db66c211911cce9d6eb8">property_ui</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">An XML string describing the merged UI. <a href="#aba5843176409db66c211911cce9d6eb8"></a><br/></td></tr>
<tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <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>< <a class="el" href="classGtk_1_1UIManager.html">UIManager</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1UIManager.html#af2a1f8d72acc2070660cf6d37dfb37a5">create</a> ()</td></tr>
<tr><td colspan="2"><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1UIManager.html#a2e1be63e14b8cd4b5b0dbb1e74757b3f">UIManager</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1UIManager.html#a543fc31062484f6f230320f3d6f939e8">on_add_widget</a> (<a class="el" href="classGtk_1_1Widget.html">Widget</a>* widget)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1UIManager.html#a79662f2d8e965519097b791f2af96ce3">on_actions_changed</a> ()</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>< <a class="el" href="classGtk_1_1UIManager.html">Gtk::UIManager</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1UIManager.html#ad36176bdb92cd8f85fc7c0fcd5868e9a">wrap</a> (GtkUIManager* object, bool take_copy=false)</td></tr>
<tr><td class="mdescLeft"> </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="#ad36176bdb92cd8f85fc7c0fcd5868e9a"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>Constructing menus and toolbars from an XML description. </p>
<p>A <a class="el" href="classGtk_1_1UIManager.html" title="Constructing menus and toolbars from an XML description.">Gtk::UIManager</a> constructs a user interface (menus and toolbars) from one or more UI definitions, which reference actions from one or more action groups.</p>
<dl class="user"><dt><b>UI Definitions</b></dt><dd></dd></dl>
<p>The UI definitions are specified in an XML format which can be roughly described by the following DTD. </p>
<div class="fragment"><pre class="fragment"> <!ELEMENT ui (menubar|toolbar|popup|accelerator)* >
 <!ELEMENT menubar (menuitem|separator|placeholder|menu)* >
 <!ELEMENT menu (menuitem|separator|placeholder|menu)* >
 <!ELEMENT popup (menuitem|separator|placeholder|menu)* >
 <!ELEMENT toolbar (toolitem|separator|placeholder)* >
 <!ELEMENT placeholder (menuitem|toolitem|separator|placeholder|menu)* >
 <!ELEMENT menuitem EMPTY >
 <!ELEMENT toolitem (menu?) >
 <!ELEMENT separator EMPTY >
 <!ELEMENT accelerator EMPTY >
 <!ATTLIST menubar name #IMPLIED                       action #IMPLIED >
 <!ATTLIST toolbar name #IMPLIED                       action #IMPLIED >
 <!ATTLIST popup name #IMPLIED                       action #IMPLIED >
 <!ATTLIST placeholder name #IMPLIED
                       action #IMPLIED >
 <!ATTLIST separator name #IMPLIED
                       action #IMPLIED
                       expand (<span class="keyword">true</span>|<span class="keyword">false</span>) <span class="preprocessor">#IMPLIED ></span>
<span class="preprocessor"></span> <!ATTLIST menu name #IMPLIED
                       action #REQUIRED
                       position (top|bot) <span class="preprocessor">#IMPLIED ></span>
<span class="preprocessor"></span> <!ATTLIST menuitem name #IMPLIED
                      action #REQUIRED
                      position (top|bot) <span class="preprocessor">#IMPLIED ></span>
<span class="preprocessor"></span> <!ATTLIST toolitem name #IMPLIED
                      action #REQUIRED
                      position (top|bot) <span class="preprocessor">#IMPLIED ></span>
<span class="preprocessor"></span> <!ATTLIST accelerator name #IMPLIED
                       action #REQUIRED >
</pre></div><p>There are some additional restrictions beyond those specified in the DTD, e.g. every toolitem must have a toolbar in its anchestry and every menuitem must have a + menubar or popup in its anchestry. Since a GMarkup parser is used to parse the UI description, it must not only be valid XML, but valid GMarkup.</p>
<p>If a name is not specified, it defaults to the action. If an action is not specified either, the element name is used. The name and action attributes must not contain '/' characters after parsing (since that would mess up path lookup) and must be usable as XML attributes when enclosed in doublequotes, thus they must not '' characters or references to the " entity.</p>
<dl class="user"><dt><b>Example: UI Definition</b></dt><dd><div class="fragment"><pre class="fragment"> <ui>
 <menubar>
   <menu name=<span class="stringliteral">"FileMenu"</span> action=<span class="stringliteral">"FileMenuAction"</span>>
     <menuitem name=<span class="stringliteral">"New"</span> action=<span class="stringliteral">"New2Action"</span> />
     <placeholder name=<span class="stringliteral">"FileMenuAdditions"</span> />
   </menu>
   <menu name=<span class="stringliteral">"JustifyMenu"</span> action=<span class="stringliteral">"JustifyMenuAction"</span>>
     <menuitem name=<span class="stringliteral">"Left"</span> action=<span class="stringliteral">"justify-left"</span>/>
     <menuitem name=<span class="stringliteral">"Centre"</span> action=<span class="stringliteral">"justify-center"</span>/>
     <menuitem name=<span class="stringliteral">"Right"</span> action=<span class="stringliteral">"justify-right"</span>/>
     <menuitem name=<span class="stringliteral">"Fill"</span> action=<span class="stringliteral">"justify-fill"</span>/>
   </menu>
 </menubar>
 <toolbar action=<span class="stringliteral">"toolbar1"</span>>
   <placeholder name=<span class="stringliteral">"JustifyToolItems"</span>>
     <separator/>
     <toolitem name=<span class="stringliteral">"Left"</span> action=<span class="stringliteral">"justify-left"</span>/>
     <toolitem name=<span class="stringliteral">"Centre"</span> action=<span class="stringliteral">"justify-center"</span>/>
     <toolitem name=<span class="stringliteral">"Right"</span> action=<span class="stringliteral">"justify-right"</span>/>
     <toolitem name=<span class="stringliteral">"Fill"</span> action=<span class="stringliteral">"justify-fill"</span>/>
     <separator/>
   </placeholder>
 </toolbar>
 </ui>
</pre></div></dd></dl>
<p>The constructed widget hierarchy is very similar to the element tree of the XML, with the exception that placeholders are merged into their parents. The correspondence of XML elements to widgets should be almost obvious:</p>
<ul>
<li>menubar a <a class="el" href="classGtk_1_1MenuBar.html" title="A standard menu bar which usually holds Gtk::Menu submenu items.">Gtk::MenuBar</a></li>
<li>toolbar a <a class="el" href="classGtk_1_1Toolbar.html" title="Bars of buttons and other widgets.">Gtk::Toolbar</a></li>
<li>popup a toplevel <a class="el" href="classGtk_1_1Menu.html" title="A drop-down menu consisting of Gtk::MenuItem objects which can be navigated and activated...">Gtk::Menu</a></li>
<li>menu a <a class="el" href="classGtk_1_1Menu.html" title="A drop-down menu consisting of Gtk::MenuItem objects which can be navigated and activated...">Gtk::Menu</a> attached to a menuitem</li>
<li>menuitem a <a class="el" href="classGtk_1_1MenuItem.html" title="Child item for menus.">Gtk::MenuItem</a> subclass, the exact type depends on the action</li>
<li>toolitem a <a class="el" href="classGtk_1_1ToolItem.html">Gtk::ToolItem</a> subclass, the exact type depends on the action. Note that toolitem elements may contain a menu element, but only if their associated action specifies a <a class="el" href="classGtk_1_1MenuToolButton.html" title="A Gtk::ToolItem containing a toggle button.">Gtk::MenuToolButton</a> as proxy.</li>
<li>separator a <a class="el" href="classGtk_1_1SeparatorMenuItem.html" title="A separator used to group items within a menu.">Gtk::SeparatorMenuItem</a> or <a class="el" href="classGtk_1_1SeparatorToolItem.html" title="A toolbar item that separates groups of other toolbar items.">Gtk::SeparatorToolItem</a></li>
<li>accelerator a keyboard accelerator</li>
</ul>
<p>The "position" attribute determines where a constructed widget is positioned wrt. to its siblings in the partially constructed tree. If it is "top", the widget is prepended, otherwise it is appended.</p>
<dl class="user"><dt><b>UI Merging</b></dt><dd></dd></dl>
<p>The most remarkable feature of <a class="el" href="classGtk_1_1UIManager.html" title="Constructing menus and toolbars from an XML description.">Gtk::UIManager</a> is that it can overlay a set of menuitems and toolitems over another one, and demerge them later.</p>
<p>Merging is done based on the names of the XML elements. Each element is identified by a path which consists of the names of its anchestors, separated by slashes. For example, the menuitem named "Left" in the example above has the path /ui/menubar/JustifyMenu/Left and the toolitem with the same name has path /ui/toolbar1/JustifyToolItems/Left.</p>
<dl class="user"><dt><b>Accelerators</b></dt><dd></dd></dl>
<p>Every action has an accelerator path. Accelerators are installed together with menuitem proxies, but they can also be explicitly added with <accelerator> elements in the UI definition. This makes it possible to have accelerators for actions even if they have no visible proxies.</p>
<dl class="user"><dt><b>Smart Separators</b></dt><dd></dd></dl>
<p>The separators created by <a class="el" href="classGtk_1_1UIManager.html" title="Constructing menus and toolbars from an XML description.">Gtk::UIManager</a> are "smart", i.e. they do not show up in the UI unless they end up between two visible menu or tool items. Separators which are located at the very beginning or end of the menu or toolbar containing them, or multiple separators next to each other, are hidden. This is a useful feature, since the merging of UI elements from multiple sources can make it hard or impossible to determine in advance whether a separator will end up in such an unfortunate position.</p>
<p>For separators in toolbars, you can set expand="true" to turn them from a small, visible separator to an expanding, invisible one. Toolitems following an expanding separator are effectively right-aligned.</p>
<dl class="user"><dt><b>Empty Menus</b></dt><dd></dd></dl>
<p>Submenus pose similar problems to separators inconnection with merging. It is impossible to know in advance whether they will end up empty after merging. <a class="el" href="classGtk_1_1UIManager.html" title="Constructing menus and toolbars from an XML description.">Gtk::UIManager</a> offers two ways to treat empty submenus:</p>
<ul>
<li>make them disappear by hiding the menu item they're attached to</li>
<li>add an insensitive "Empty" item</li>
</ul>
<p>The behaviour is chosen based on the "hide_if_empty" property of the action to which the submenu is associated.</p>
<dl class="since_2_4"><dt><b><a class="el" href="since_2_4.html#_since_2_4000305">Since gtkmm 2.4:</a></b></dt><dd></dd></dl>
<hr/><h2>Member Typedef Documentation</h2>
<a class="anchor" id="a0682fad15edb0f4418487e555aa6805d"></a><!-- doxytag: member="Gtk::UIManager::ui_merge_id" ref="a0682fad15edb0f4418487e555aa6805d" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef guint <a class="el" href="classGtk_1_1UIManager.html#a0682fad15edb0f4418487e555aa6805d">Gtk::UIManager::ui_merge_id</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">
</div>
</div>
<hr/><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" id="a3193cf4841782d2efb3836ad87f2bbb8"></a><!-- doxytag: member="Gtk::UIManager::~UIManager" ref="a3193cf4841782d2efb3836ad87f2bbb8" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual Gtk::UIManager::~UIManager </td>
          <td>(</td>
          <td class="paramname"></td>
          <td> ) </td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
</div>
</div>
<a class="anchor" id="a2e1be63e14b8cd4b5b0dbb1e74757b3f"></a><!-- doxytag: member="Gtk::UIManager::UIManager" ref="a2e1be63e14b8cd4b5b0dbb1e74757b3f" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Gtk::UIManager::UIManager </td>
          <td>(</td>
          <td class="paramname"></td>
          <td> ) </td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a0a23ac89ab23915b675446cc1c10db1f"></a><!-- doxytag: member="Gtk::UIManager::add_ui" ref="a0a23ac89ab23915b675446cc1c10db1f" args="(ui_merge_id merge_id, const Glib::ustring &path, const Glib::ustring &name, const Glib::ustring &action, UIManagerItemType type=Gtk::UI_MANAGER_AUTO, bool top=true)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::UIManager::add_ui </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classGtk_1_1UIManager.html#a0682fad15edb0f4418487e555aa6805d">ui_merge_id</a> </td>
          <td class="paramname"> <em>merge_id</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> & </td>
          <td class="paramname"> <em>path</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> & </td>
          <td class="paramname"> <em>name</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> & </td>
          <td class="paramname"> <em>action</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__gtkmmEnums.html#ga91226ea137a67080d9b487225aa41d7b">UIManagerItemType</a> </td>
          <td class="paramname"> <em>type</em> = <code>Gtk::UI_MANAGER_AUTO</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool </td>
          <td class="paramname"> <em>top</em> = <code>true</code></td><td> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Adds a UI element to the current contents of <em>self</em>. </p>
<p>If <em>type</em> is <a class="el" href="group__gtkmmEnums.html#gga91226ea137a67080d9b487225aa41d7ba267054a838b50ec380b59488209ec1dc">Gtk::UI_MANAGER_AUTO</a>, GTK+ inserts a menuitem, toolitem or separator if such an element can be inserted at the place determined by <em>path</em>. Otherwise <em>type</em> must indicate an element that can be inserted at the place determined by <em>path</em>.</p>
<p><em>see</em> <a class="el" href="classGtk_1_1UIManager.html#a19b05ae50b353b39b60f467008c0c827" title="Adds a separator UI element to the current contents.">add_ui_separator()</a>.</p>
<dl class="since_2_4"><dt><b><a class="el" href="since_2_4.html#_since_2_4000322">Since gtkmm 2.4:</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>merge_id</em> </td><td>The merge id for the merged UI, see gtk_ui_manager_new_merge_id(). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>path</em> </td><td>A path. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>The name for the added UI element. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>action</em> </td><td>The name of the action to be proxied, if this is not a separator. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>type</em> </td><td>The type of UI element to add. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>top</em> </td><td>If <code>true</code>, the UI element is added before its siblings, otherwise it is added after its siblings. </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a class="anchor" id="ad1377c506a357a7587d5e2bb5377881c"></a><!-- doxytag: member="Gtk::UIManager::add_ui_from_file" ref="ad1377c506a357a7587d5e2bb5377881c" args="(const Glib::ustring &filename)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGtk_1_1UIManager.html#a0682fad15edb0f4418487e555aa6805d">ui_merge_id</a> Gtk::UIManager::add_ui_from_file </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> & </td>
          <td class="paramname"> <em>filename</em></td>
          <td> ) </td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Parses a file containing a <link linkend="XML-UI">UI definition</link> and merges it with the current contents of <em>self</em>. </p>
<dl class="since_2_4"><dt><b><a class="el" href="since_2_4.html#_since_2_4000321">Since gtkmm 2.4:</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>filename</em> </td><td>The name of the file to parse. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The merge id for the merged UI. The merge id can be used to unmerge the UI with gtk_ui_manager_remove_ui(). If an error occurred, the return value is 0. </dd></dl>
</div>
</div>
<a class="anchor" id="a403582b15c37408abaa868692d6a7abd"></a><!-- doxytag: member="Gtk::UIManager::add_ui_from_string" ref="a403582b15c37408abaa868692d6a7abd" args="(const Glib::ustring &buffer)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGtk_1_1UIManager.html#a0682fad15edb0f4418487e555aa6805d">ui_merge_id</a> Gtk::UIManager::add_ui_from_string </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> & </td>
          <td class="paramname"> <em>buffer</em></td>
          <td> ) </td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Parses a string containing a UI definition and merges it with the current contents. </p>
<p>An enclosing <ui> element is added if it is missing.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>buffer</em> </td><td>the string to parse </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The merge id for the merged UI. The merge id can be used to unmerge the UI with <a class="el" href="classGtk_1_1UIManager.html#a0611594aa9d4df6febe90dbb9fe2fd21" title="Unmerges the part of selfs content identified by merge_id.">remove_ui()</a>. If an error occurred, the return value is 0. </dd></dl>
<dl><dt><b>Exceptions:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>exception</em> </td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="since_2_4"><dt><b><a class="el" href="since_2_4.html#_since_2_4000320">Since gtkmm 2.4:</a></b></dt><dd></dd></dl>
</div>
</div>
<a class="anchor" id="a19b05ae50b353b39b60f467008c0c827"></a><!-- doxytag: member="Gtk::UIManager::add_ui_separator" ref="a19b05ae50b353b39b60f467008c0c827" args="(ui_merge_id merge_id, const Glib::ustring &path, const Glib::ustring &name="", UIManagerItemType type=Gtk::UI_MANAGER_AUTO, bool top=true)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::UIManager::add_ui_separator </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classGtk_1_1UIManager.html#a0682fad15edb0f4418487e555aa6805d">ui_merge_id</a> </td>
          <td class="paramname"> <em>merge_id</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> & </td>
          <td class="paramname"> <em>path</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> & </td>
          <td class="paramname"> <em>name</em> = <code>""</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__gtkmmEnums.html#ga91226ea137a67080d9b487225aa41d7b">UIManagerItemType</a> </td>
          <td class="paramname"> <em>type</em> = <code>Gtk::UI_MANAGER_AUTO</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool </td>
          <td class="paramname"> <em>top</em> = <code>true</code></td><td> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Adds a separator UI element to the current contents. </p>
<p>If <em>type</em> is <a class="el" href="group__gtkmmEnums.html#gga91226ea137a67080d9b487225aa41d7ba267054a838b50ec380b59488209ec1dc">Gtk::UI_MANAGER_AUTO</a>, GTK+ inserts a menuitem, toolitem or separator if such an element can be inserted at the place determined by <em>path</em> . Otherwise <em>type</em> must indicate an element that can be inserted at the place determined by <em>path</em>.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classGtk_1_1UIManager.html#a0a23ac89ab23915b675446cc1c10db1f" title="Adds a UI element to the current contents of self.">add_ui()</a>.</dd></dl>
<dl class="since_2_4"><dt><b><a class="el" href="since_2_4.html#_since_2_4000323">Since gtkmm 2.4:</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>merge_id</em> </td><td>The merge id for the merged UI, see gtk_ui_manager_new_merge_id(). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>path</em> </td><td>A path. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>The name for the added UI element. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>type</em> </td><td>The type of UI element to add. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>top</em> </td><td>If <code>true</code>, the UI element is added before its siblings, otherwise it is added after its siblings. </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a class="anchor" id="af2a1f8d72acc2070660cf6d37dfb37a5"></a><!-- doxytag: member="Gtk::UIManager::create" ref="af2a1f8d72acc2070660cf6d37dfb37a5" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <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><<a class="el" href="classGtk_1_1UIManager.html">UIManager</a>> Gtk::UIManager::create </td>
          <td>(</td>
          <td class="paramname"></td>
          <td> ) </td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
</div>
</div>
<a class="anchor" id="aa3a3f4e8bdd7488eab875e9bbfd2ae15"></a><!-- doxytag: member="Gtk::UIManager::ensure_update" ref="aa3a3f4e8bdd7488eab875e9bbfd2ae15" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::UIManager::ensure_update </td>
          <td>(</td>
          <td class="paramname"></td>
          <td> ) </td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Makes sure that all pending updates to the UI have been completed. </p>
<p>This may occasionally be necessary, since <a class="el" href="classGtk_1_1UIManager.html" title="Constructing menus and toolbars from an XML description.">Gtk::UIManager</a> updates the UI in an idle function. A typical example where this function is useful is to enforce that the menubar and toolbar have been added to the main window before showing it: |[ gtk_container_add (GTK_CONTAINER (window), vbox); g_signal_connect (merge, "add-widget", G_CALLBACK (add_widget), vbox); gtk_ui_manager_add_ui_from_file (merge, "my-menus"); gtk_ui_manager_add_ui_from_file (merge, "my-toolbars"); gtk_ui_manager_ensure_update (merge); gtk_widget_show (window); ]|</p>
<dl class="since_2_4"><dt><b><a class="el" href="since_2_4.html#_since_2_4000326">Since gtkmm 2.4:</a></b></dt><dd></dd></dl>
</div>
</div>
<a class="anchor" id="a42211d42cb736b8f2b5b0d0d20f85e05"></a><!-- doxytag: member="Gtk::UIManager::get_accel_group" ref="a42211d42cb736b8f2b5b0d0d20f85e05" 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><const <a class="el" href="classGtk_1_1AccelGroup.html">AccelGroup</a>> Gtk::UIManager::get_accel_group </td>
          <td>(</td>
          <td class="paramname"></td>
          <td> ) </td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns the <a class="el" href="classGtk_1_1AccelGroup.html" title="A Gtk::AccelGroup represents a group of keyboard accelerators, typically attached...">Gtk::AccelGroup</a> associated with <em>self</em>. </p>
<dl class="since_2_4"><dt><b><a class="el" href="since_2_4.html#_since_2_4000313">Since gtkmm 2.4:</a></b></dt><dd></dd></dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The <a class="el" href="classGtk_1_1AccelGroup.html" title="A Gtk::AccelGroup represents a group of keyboard accelerators, typically attached...">Gtk::AccelGroup</a>. </dd></dl>
</div>
</div>
<a class="anchor" id="a56f55fb4e8428dbc65c49cf1229775c4"></a><!-- doxytag: member="Gtk::UIManager::get_accel_group" ref="a56f55fb4e8428dbc65c49cf1229775c4" 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><<a class="el" href="classGtk_1_1AccelGroup.html">AccelGroup</a>> Gtk::UIManager::get_accel_group </td>
          <td>(</td>
          <td class="paramname"></td>
          <td> ) </td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns the <a class="el" href="classGtk_1_1AccelGroup.html" title="A Gtk::AccelGroup represents a group of keyboard accelerators, typically attached...">Gtk::AccelGroup</a> associated with <em>self</em>. </p>
<dl class="since_2_4"><dt><b><a class="el" href="since_2_4.html#_since_2_4000312">Since gtkmm 2.4:</a></b></dt><dd></dd></dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The <a class="el" href="classGtk_1_1AccelGroup.html" title="A Gtk::AccelGroup represents a group of keyboard accelerators, typically attached...">Gtk::AccelGroup</a>. </dd></dl>
</div>
</div>
<a class="anchor" id="ab4b3f27d94dc1363ec10915cffa7f3a7"></a><!-- doxytag: member="Gtk::UIManager::get_action" ref="ab4b3f27d94dc1363ec10915cffa7f3a7" args="(const Glib::ustring &path) 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><const <a class="el" href="classGtk_1_1Action.html">Action</a>> Gtk::UIManager::get_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_1ustring.html">Glib::ustring</a> & </td>
          <td class="paramname"> <em>path</em></td>
          <td> ) </td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Looks up an action by following a path. </p>
<p>See gtk_ui_manager_get_widget() for more information about paths.</p>
<dl class="since_2_4"><dt><b><a class="el" href="since_2_4.html#_since_2_4000319">Since gtkmm 2.4:</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>path</em> </td><td>A path. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The action whose proxy widget is found by following the path, or <code>0</code> if no widget was found. </dd></dl>
</div>
</div>
<a class="anchor" id="a5486fde7529fd2f6e0cfbea2780e5d32"></a><!-- doxytag: member="Gtk::UIManager::get_action" ref="a5486fde7529fd2f6e0cfbea2780e5d32" args="(const Glib::ustring &path)" -->
<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><<a class="el" href="classGtk_1_1Action.html">Action</a>> Gtk::UIManager::get_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_1ustring.html">Glib::ustring</a> & </td>
          <td class="paramname"> <em>path</em></td>
          <td> ) </td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Looks up an action by following a path. </p>
<p>See gtk_ui_manager_get_widget() for more information about paths.</p>
<dl class="since_2_4"><dt><b><a class="el" href="since_2_4.html#_since_2_4000318">Since gtkmm 2.4:</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>path</em> </td><td>A path. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The action whose proxy widget is found by following the path, or <code>0</code> if no widget was found. </dd></dl>
</div>
</div>
<a class="anchor" id="a6d8e6a1ac268dbbd7fd28d9fbe1c5aa4"></a><!-- doxytag: member="Gtk::UIManager::get_action_groups" ref="a6d8e6a1ac268dbbd7fd28d9fbe1c5aa4" 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_1ListHandle.html">Glib::ListHandle</a>< <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><const <a class="el" href="classGtk_1_1ActionGroup.html">ActionGroup</a>> > Gtk::UIManager::get_action_groups </td>
          <td>(</td>
          <td class="paramname"></td>
          <td> ) </td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns the list of action groups associated with <em>self</em>. </p>
<dl class="since_2_4"><dt><b><a class="el" href="since_2_4.html#_since_2_4000311">Since gtkmm 2.4:</a></b></dt><dd></dd></dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A List of action groups. The list is owned by GTK+ and should not be modified. </dd></dl>
</div>
</div>
<a class="anchor" id="ab0fcfc16bf3763645b083848d5f5f33b"></a><!-- doxytag: member="Gtk::UIManager::get_action_groups" ref="ab0fcfc16bf3763645b083848d5f5f33b" 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_1ListHandle.html">Glib::ListHandle</a>< <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><<a class="el" href="classGtk_1_1ActionGroup.html">ActionGroup</a>> > Gtk::UIManager::get_action_groups </td>
          <td>(</td>
          <td class="paramname"></td>
          <td> ) </td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns the list of action groups associated with <em>self</em>. </p>
<dl class="since_2_4"><dt><b><a class="el" href="since_2_4.html#_since_2_4000310">Since gtkmm 2.4:</a></b></dt><dd></dd></dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A List of action groups. The list is owned by GTK+ and should not be modified. </dd></dl>
</div>
</div>
<a class="anchor" id="a199dfed5c1bdae63887ee2bed7c559fd"></a><!-- doxytag: member="Gtk::UIManager::get_add_tearoffs" ref="a199dfed5c1bdae63887ee2bed7c559fd" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Gtk::UIManager::get_add_tearoffs </td>
          <td>(</td>
          <td class="paramname"></td>
          <td> ) </td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns whether menus generated by this <a class="el" href="classGtk_1_1UIManager.html" title="Constructing menus and toolbars from an XML description.">Gtk::UIManager</a> will have tearoff menu items. </p>
<dl class="since_2_4"><dt><b><a class="el" href="since_2_4.html#_since_2_4000307">Since gtkmm 2.4:</a></b></dt><dd></dd></dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Whether tearoff menu items are added. </dd></dl>
</div>
</div>
<a class="anchor" id="a5e340833b5766122d0901dc98e42bc0b"></a><!-- doxytag: member="Gtk::UIManager::get_toplevels" ref="a5e340833b5766122d0901dc98e42bc0b" args="(UIManagerItemType types) 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_1SListHandle.html">Glib::SListHandle</a><const <a class="el" href="classGtk_1_1Widget.html">Widget</a>*> Gtk::UIManager::get_toplevels </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__gtkmmEnums.html#ga91226ea137a67080d9b487225aa41d7b">UIManagerItemType</a> </td>
          <td class="paramname"> <em>types</em></td>
          <td> ) </td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Obtains a list of all toplevel widgets of the requested types. </p>
<dl class="since_2_4"><dt><b><a class="el" href="since_2_4.html#_since_2_4000317">Since gtkmm 2.4:</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>types</em> </td><td>Specifies the types of toplevel widgets to include. Allowed types are <a class="el" href="group__gtkmmEnums.html#gga91226ea137a67080d9b487225aa41d7ba7b6cfe3efc1ca9f1ad356e12f65acb2c">Gtk::UI_MANAGER_MENUBAR</a>, <a class="el" href="group__gtkmmEnums.html#gga91226ea137a67080d9b487225aa41d7ba33a764d3cd892157f541bc7a0bf83f7e">Gtk::UI_MANAGER_TOOLBAR</a> and <a class="el" href="group__gtkmmEnums.html#gga91226ea137a67080d9b487225aa41d7babc41def3158e549113d2690bcbe79667">Gtk::UI_MANAGER_POPUP</a>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A newly-allocated SList of all toplevel widgets of the requested types. Free the returned list with Glib::slist_free(). </dd></dl>
</div>
</div>
<a class="anchor" id="aaf34fa7155944190cf80432e7bccbd52"></a><!-- doxytag: member="Gtk::UIManager::get_toplevels" ref="aaf34fa7155944190cf80432e7bccbd52" args="(UIManagerItemType types)" -->
<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_1SListHandle.html">Glib::SListHandle</a><<a class="el" href="classGtk_1_1Widget.html">Widget</a>*> Gtk::UIManager::get_toplevels </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__gtkmmEnums.html#ga91226ea137a67080d9b487225aa41d7b">UIManagerItemType</a> </td>
          <td class="paramname"> <em>types</em></td>
          <td> ) </td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Obtains a list of all toplevel widgets of the requested types. </p>
<dl class="since_2_4"><dt><b><a class="el" href="since_2_4.html#_since_2_4000316">Since gtkmm 2.4:</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>types</em> </td><td>Specifies the types of toplevel widgets to include. Allowed types are <a class="el" href="group__gtkmmEnums.html#gga91226ea137a67080d9b487225aa41d7ba7b6cfe3efc1ca9f1ad356e12f65acb2c">Gtk::UI_MANAGER_MENUBAR</a>, <a class="el" href="group__gtkmmEnums.html#gga91226ea137a67080d9b487225aa41d7ba33a764d3cd892157f541bc7a0bf83f7e">Gtk::UI_MANAGER_TOOLBAR</a> and <a class="el" href="group__gtkmmEnums.html#gga91226ea137a67080d9b487225aa41d7babc41def3158e549113d2690bcbe79667">Gtk::UI_MANAGER_POPUP</a>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A newly-allocated SList of all toplevel widgets of the requested types. Free the returned list with Glib::slist_free(). </dd></dl>
</div>
</div>
<a class="anchor" id="ad85b3e2cb26b4535d71a57ac81f61918"></a><!-- doxytag: member="Gtk::UIManager::get_ui" ref="ad85b3e2cb26b4535d71a57ac81f61918" 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_1ustring.html">Glib::ustring</a> Gtk::UIManager::get_ui </td>
          <td>(</td>
          <td class="paramname"></td>
          <td> ) </td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Creates a <link linkend="XML-UI">UI definition</link> of the merged UI. </p>
<dl class="since_2_4"><dt><b><a class="el" href="since_2_4.html#_since_2_4000325">Since gtkmm 2.4:</a></b></dt><dd></dd></dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A newly allocated string containing an XML representation of the merged UI. </dd></dl>
</div>
</div>
<a class="anchor" id="a38de43f04c160b1ddf238da0f0309cc0"></a><!-- doxytag: member="Gtk::UIManager::get_widget" ref="a38de43f04c160b1ddf238da0f0309cc0" args="(const Glib::ustring &path) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classGtk_1_1Widget.html">Widget</a>* Gtk::UIManager::get_widget </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> & </td>
          <td class="paramname"> <em>path</em></td>
          <td> ) </td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Looks up a widget by following a path. </p>
<p>The path consists of the names specified in the XML description of the UI. separated by '/'. Elements which don't have a name or action attribute in the XML (e.g. <popup>) can be addressed by their XML element name (e.g. "popup"). The root element ("/ui") can be omitted in the path.</p>
<p>Note that the widget found by following a path that ends in a <menu> element is the menuitem to which the menu is attached, not the menu itself.</p>
<p>Also note that the widgets constructed by a ui manager are not tied to the lifecycle of the ui manager. If you add the widgets returned by this function to some container or explicitly ref them, they will survive the destruction of the ui manager.</p>
<dl class="since_2_4"><dt><b><a class="el" href="since_2_4.html#_since_2_4000315">Since gtkmm 2.4:</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>path</em> </td><td>A path. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The widget found by following the path, or <code>0</code> if no widget was found. </dd></dl>
</div>
</div>
<a class="anchor" id="a93357a4791e1740610fadb0ba088cbf3"></a><!-- doxytag: member="Gtk::UIManager::get_widget" ref="a93357a4791e1740610fadb0ba088cbf3" args="(const Glib::ustring &path)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGtk_1_1Widget.html">Widget</a>* Gtk::UIManager::get_widget </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> & </td>
          <td class="paramname"> <em>path</em></td>
          <td> ) </td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Looks up a widget by following a path. </p>
<p>The path consists of the names specified in the XML description of the UI. separated by '/'. Elements which don't have a name or action attribute in the XML (e.g. <popup>) can be addressed by their XML element name (e.g. "popup"). The root element ("/ui") can be omitted in the path.</p>
<p>Note that the widget found by following a path that ends in a <menu> element is the menuitem to which the menu is attached, not the menu itself.</p>
<p>Also note that the widgets constructed by a ui manager are not tied to the lifecycle of the ui manager. If you add the widgets returned by this function to some container or explicitly ref them, they will survive the destruction of the ui manager.</p>
<dl class="since_2_4"><dt><b><a class="el" href="since_2_4.html#_since_2_4000314">Since gtkmm 2.4:</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>path</em> </td><td>A path. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The widget found by following the path, or <code>0</code> if no widget was found. </dd></dl>
</div>
</div>
<a class="anchor" id="aae9a90e30c01a024da550dddd9d86363"></a><!-- doxytag: member="Gtk::UIManager::gobj" ref="aae9a90e30c01a024da550dddd9d86363" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const GtkUIManager* Gtk::UIManager::gobj </td>
          <td>(</td>
          <td class="paramname"></td>
          <td> ) </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_1ObjectBase.html#a778a94181132976bbfb0519793f3b32e">Glib::ObjectBase</a>.</p>
</div>
</div>
<a class="anchor" id="adcbc82741d92ed865d1d63eddabb7d99"></a><!-- doxytag: member="Gtk::UIManager::gobj" ref="adcbc82741d92ed865d1d63eddabb7d99" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GtkUIManager* Gtk::UIManager::gobj </td>
          <td>(</td>
          <td class="paramname"></td>
          <td> ) </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_1ObjectBase.html#a4c6efc18be8cb9c56e58fc0bd20fafbe">Glib::ObjectBase</a>.</p>
</div>
</div>
<a class="anchor" id="a49c2a2f2d2b9c7db91cfce222c6d9139"></a><!-- doxytag: member="Gtk::UIManager::gobj_copy" ref="a49c2a2f2d2b9c7db91cfce222c6d9139" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GtkUIManager* Gtk::UIManager::gobj_copy </td>
          <td>(</td>
          <td class="paramname"></td>
          <td> ) </td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. </p>
</div>
</div>
<a class="anchor" id="a50cc8ee94cb48ddef6516883a0dd9047"></a><!-- doxytag: member="Gtk::UIManager::insert_action_group" ref="a50cc8ee94cb48ddef6516883a0dd9047" args="(const Glib::RefPtr< ActionGroup > &action_group, int pos=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::UIManager::insert_action_group </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>< <a class="el" href="classGtk_1_1ActionGroup.html">ActionGroup</a> >& </td>
          <td class="paramname"> <em>action_group</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"> <em>pos</em> = <code>0</code></td><td> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Inserts an action group into the list of action groups associated with <em>self</em>. </p>
<p>Actions in earlier groups hide actions with the same name in later groups.</p>
<dl class="since_2_4"><dt><b><a class="el" href="since_2_4.html#_since_2_4000308">Since gtkmm 2.4:</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_group</em> </td><td>The action group to be inserted. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>pos</em> </td><td>The position at which the group will be inserted. </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a class="anchor" id="ac5cb767d3ba718492972e7f9c5f02fb7"></a><!-- doxytag: member="Gtk::UIManager::new_merge_id" ref="ac5cb767d3ba718492972e7f9c5f02fb7" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGtk_1_1UIManager.html#a0682fad15edb0f4418487e555aa6805d">ui_merge_id</a> Gtk::UIManager::new_merge_id </td>
          <td>(</td>
          <td class="paramname"></td>
          <td> ) </td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns an unused merge id, suitable for use with gtk_ui_manager_add_ui(). </p>
<dl class="since_2_4"><dt><b><a class="el" href="since_2_4.html#_since_2_4000327">Since gtkmm 2.4:</a></b></dt><dd></dd></dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>An unused merge id. </dd></dl>
</div>
</div>
<a class="anchor" id="a79662f2d8e965519097b791f2af96ce3"></a><!-- doxytag: member="Gtk::UIManager::on_actions_changed" ref="a79662f2d8e965519097b791f2af96ce3" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Gtk::UIManager::on_actions_changed </td>
          <td>(</td>
          <td class="paramname"></td>
          <td> ) </td>
          <td><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
</div>
</div>
<a class="anchor" id="a543fc31062484f6f230320f3d6f939e8"></a><!-- doxytag: member="Gtk::UIManager::on_add_widget" ref="a543fc31062484f6f230320f3d6f939e8" args="(Widget *widget)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Gtk::UIManager::on_add_widget </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classGtk_1_1Widget.html">Widget</a>* </td>
          <td class="paramname"> <em>widget</em></td>
          <td> ) </td>
          <td><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
</div>
</div>
<a class="anchor" id="abac08a288b27cc0f284aedfbc7289d98"></a><!-- doxytag: member="Gtk::UIManager::property_add_tearoffs" ref="abac08a288b27cc0f284aedfbc7289d98" 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><bool> Gtk::UIManager::property_add_tearoffs </td>
          <td>(</td>
          <td class="paramname"></td>
          <td> ) </td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Whether tearoff menu items should be added to menus. </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="abaecd90445fa40cf1b7923845d03f70a"></a><!-- doxytag: member="Gtk::UIManager::property_add_tearoffs" ref="abaecd90445fa40cf1b7923845d03f70a" 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><bool> Gtk::UIManager::property_add_tearoffs </td>
          <td>(</td>
          <td class="paramname"></td>
          <td> ) </td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Whether tearoff menu items should be added to menus. </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="aba5843176409db66c211911cce9d6eb8"></a><!-- doxytag: member="Gtk::UIManager::property_ui" ref="aba5843176409db66c211911cce9d6eb8" 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><<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>> Gtk::UIManager::property_ui </td>
          <td>(</td>
          <td class="paramname"></td>
          <td> ) </td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>An XML string describing the merged UI. </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="a13551c32d6aa054c8c6771086727c576"></a><!-- doxytag: member="Gtk::UIManager::remove_action_group" ref="a13551c32d6aa054c8c6771086727c576" args="(const Glib::RefPtr< ActionGroup > &action_group)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::UIManager::remove_action_group </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>< <a class="el" href="classGtk_1_1ActionGroup.html">ActionGroup</a> >& </td>
          <td class="paramname"> <em>action_group</em></td>
          <td> ) </td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Removes an action group from the list of action groups associated with <em>self</em>. </p>
<dl class="since_2_4"><dt><b><a class="el" href="since_2_4.html#_since_2_4000309">Since gtkmm 2.4:</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_group</em> </td><td>The action group to be removed. </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a class="anchor" id="a0611594aa9d4df6febe90dbb9fe2fd21"></a><!-- doxytag: member="Gtk::UIManager::remove_ui" ref="a0611594aa9d4df6febe90dbb9fe2fd21" args="(ui_merge_id merge_id)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::UIManager::remove_ui </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classGtk_1_1UIManager.html#a0682fad15edb0f4418487e555aa6805d">ui_merge_id</a> </td>
          <td class="paramname"> <em>merge_id</em></td>
          <td> ) </td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Unmerges the part of <em>selfs</em> content identified by <em>merge_id</em>. </p>
<dl class="since_2_4"><dt><b><a class="el" href="since_2_4.html#_since_2_4000324">Since gtkmm 2.4:</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>merge_id</em> </td><td>A merge id as returned by gtk_ui_manager_add_ui_from_string(). </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a class="anchor" id="aaaa2dd331a1a300e21e8b61b1e9f6c46"></a><!-- doxytag: member="Gtk::UIManager::set_add_tearoffs" ref="aaaa2dd331a1a300e21e8b61b1e9f6c46" args="(bool add_tearoffs=true)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::UIManager::set_add_tearoffs </td>
          <td>(</td>
          <td class="paramtype">bool </td>
          <td class="paramname"> <em>add_tearoffs</em> = <code>true</code></td>
          <td> ) </td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Sets the "add_tearoffs" property, which controls whether menus generated by this <a class="el" href="classGtk_1_1UIManager.html" title="Constructing menus and toolbars from an XML description.">Gtk::UIManager</a> will have tearoff menu items. </p>
<p>Note that this only affects regular menus. Generated popup menus never have tearoff menu items.</p>
<dl class="since_2_4"><dt><b><a class="el" href="since_2_4.html#_since_2_4000306">Since gtkmm 2.4:</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>add_tearoffs</em> </td><td>Whether tearoff menu items are added. </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a class="anchor" id="ab670a3d562a988c0ed866faaae5e4223"></a><!-- doxytag: member="Gtk::UIManager::signal_actions_changed" ref="ab670a3d562a988c0ed866faaae5e4223" 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_1SignalProxy0.html">Glib::SignalProxy0</a>< void > Gtk::UIManager::signal_actions_changed </td>
          <td>(</td>
          <td class="paramname"></td>
          <td> ) </td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>The "actions-changed" signal is emitted whenever the set of actions changes. </p>
<dl class="user"><dt><b>Prototype:</b></dt><dd><code>void on_my_actions_changed()</code> </dd></dl>
</div>
</div>
<a class="anchor" id="a92f803fbd7048cdfeb94d0b395435292"></a><!-- doxytag: member="Gtk::UIManager::signal_add_widget" ref="a92f803fbd7048cdfeb94d0b395435292" 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_1SignalProxy1.html">Glib::SignalProxy1</a>< void,<a class="el" href="classGtk_1_1Widget.html">Widget</a>* > Gtk::UIManager::signal_add_widget </td>
          <td>(</td>
          <td class="paramname"></td>
          <td> ) </td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>The add_widget signal is emitted for each generated menubar and toolbar. </p>
<p>It is not emitted for generated popup menus, which can be obtained by <a class="el" href="classGtk_1_1UIManager.html#a93357a4791e1740610fadb0ba088cbf3" title="Looks up a widget by following a path.">get_widget()</a>.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>widget</em> </td><td>the added widget</td></tr>
  </table>
  </dd>
</dl>
<dl class="user"><dt><b>Prototype:</b></dt><dd><code>void on_my_add_widget(Widget* widget)</code> </dd></dl>
</div>
</div>
<a class="anchor" id="a0fd9d67e67983ee5dd914812a7153e95"></a><!-- doxytag: member="Gtk::UIManager::signal_connect_proxy" ref="a0fd9d67e67983ee5dd914812a7153e95" 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_1SignalProxy2.html">Glib::SignalProxy2</a>< void,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><<a class="el" href="classGtk_1_1Action.html">Action</a>>&,<a class="el" href="classGtk_1_1Widget.html">Widget</a>* > Gtk::UIManager::signal_connect_proxy </td>
          <td>(</td>
          <td class="paramname"></td>
          <td> ) </td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>The connect_proxy signal is emitted after connecting a proxy to an action in the group. </p>
<p>This is intended for simple customizations for which a custom action class would be too clumsy, e.g. showing tooltips for menuitems in the statusbar.</p>
<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> </td><td>the action </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>widget</em> </td><td>the proxy</td></tr>
  </table>
  </dd>
</dl>
<dl class="user"><dt><b>Prototype:</b></dt><dd><code>void on_my_connect_proxy(const Glib::RefPtr<Action>& action, Widget* widget)</code> </dd></dl>
</div>
</div>
<a class="anchor" id="aa133acc14dd552ad2df62b21ea7e4ebb"></a><!-- doxytag: member="Gtk::UIManager::signal_disconnect_proxy" ref="aa133acc14dd552ad2df62b21ea7e4ebb" 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_1SignalProxy2.html">Glib::SignalProxy2</a>< void,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><<a class="el" href="classGtk_1_1Action.html">Action</a>>&,<a class="el" href="classGtk_1_1Widget.html">Widget</a>* > Gtk::UIManager::signal_disconnect_proxy </td>
          <td>(</td>
          <td class="paramname"></td>
          <td> ) </td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>The disconnect_proxy signal is emitted after disconnecting a proxy from an action in the group. </p>
<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> </td><td>the action </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>widget</em> </td><td>the proxy</td></tr>
  </table>
  </dd>
</dl>
<dl class="user"><dt><b>Prototype:</b></dt><dd><code>void on_my_disconnect_proxy(const Glib::RefPtr<Action>& action, Widget* widget)</code> </dd></dl>
</div>
</div>
<a class="anchor" id="a0243e755d2a8da7d658000c1b20f221d"></a><!-- doxytag: member="Gtk::UIManager::signal_post_activate" ref="a0243e755d2a8da7d658000c1b20f221d" 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_1SignalProxy1.html">Glib::SignalProxy1</a>< void,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><<a class="el" href="classGtk_1_1Action.html">Action</a>>& > Gtk::UIManager::signal_post_activate </td>
          <td>(</td>
          <td class="paramname"></td>
          <td> ) </td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>The post_activate signal is emitted just after the <em>action</em> is activated. </p>
<p>This is intended for applications to get notification just after any action is activated.</p>
<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> </td><td>the action</td></tr>
  </table>
  </dd>
</dl>
<dl class="user"><dt><b>Prototype:</b></dt><dd><code>void on_my_post_activate(const Glib::RefPtr<Action>& action)</code> </dd></dl>
</div>
</div>
<a class="anchor" id="a13c399f0521ccc99a09611879038cee9"></a><!-- doxytag: member="Gtk::UIManager::signal_pre_activate" ref="a13c399f0521ccc99a09611879038cee9" 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_1SignalProxy1.html">Glib::SignalProxy1</a>< void,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><<a class="el" href="classGtk_1_1Action.html">Action</a>>& > Gtk::UIManager::signal_pre_activate </td>
          <td>(</td>
          <td class="paramname"></td>
          <td> ) </td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>The pre_activate signal is emitted just before the <em>action</em> is activated. </p>
<p>This is intended for applications to get notification just before any action is activated.</p>
<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> </td><td>the action</td></tr>
  </table>
  </dd>
</dl>
<dl class="user"><dt><b>Prototype:</b></dt><dd><code>void on_my_pre_activate(const Glib::RefPtr<Action>& action)</code> </dd></dl>
</div>
</div>
<hr/><h2>Friends And Related Function Documentation</h2>
<a class="anchor" id="ad36176bdb92cd8f85fc7c0fcd5868e9a"></a><!-- doxytag: member="Gtk::UIManager::wrap" ref="ad36176bdb92cd8f85fc7c0fcd5868e9a" args="(GtkUIManager *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>< <a class="el" href="classGtk_1_1UIManager.html">Gtk::UIManager</a> > wrap </td>
          <td>(</td>
          <td class="paramtype">GtkUIManager * </td>
          <td class="paramname"> <em>object</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool </td>
          <td class="paramname"> <em>take_copy</em> = <code>false</code></td><td> </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> </td><td>The C instance. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>take_copy</em> </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/uimanager.h</li>
</ul>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Tue May 4 13:22:07 2010 for gtkmm by 
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>
</html>
 |