This file is indexed.

/usr/include/libgnomeui-2.0/libgnomeui/gnome-app-helper.h is in libgnomeui-dev 2.24.5-3.1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
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
/*
 * Copyright (C) 1998, 1999, 2000 Red Hat, Inc.
 * Copyright (C) 1998, 1999 Miguel de Icaza, Federico Mena, Chris Toshok.
 * All rights reserved.
 *
 * This file is part of the Gnome Library.
 *
 * The Gnome Library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public License as
 * published by the Free Software Foundation; either version 2 of the
 * License, or (at your option) any later version.
 *
 * The Gnome Library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public
 * License along with the Gnome Library; see the file COPYING.LIB.  If not,
 * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA 02111-1307, USA.
 */
/*
  @NOTATION@
 */
/*
 * Originally by Elliot Lee, with hacking by Chris Toshok for *_data,
 * Marc Ewing added menu support, toggle and radio support, and I
 * don't know what you other people did :) menu insertion/removal
 * functions by Jaka Mocnik.  Standard menu items by George Lebl and
 * Nat Friedman.
 *
 * Some subtree hackage (and possibly various justification hacks) by Justin 
 * Maurer.
 *
 * Major cleanups and rearrangements by Federico Mena and Justin Maurer.  */

#ifndef GNOME_APP_HELPER_H
#define GNOME_APP_HELPER_H

#include <gtk/gtk.h>

#include <libgnomeui/gnome-appbar.h>
#include <libgnomeui/gnome-app.h>

G_BEGIN_DECLS

/* This module lets you easily create menus and toolbars for your 
 * applications. You basically define a hierarchy of arrays of GnomeUIInfo 
 * structures, and you later call the provided functions to create menu bars 
 * or tool bars.
 */

/* These values identify the item type that a particular GnomeUIInfo structure 
 * specifies */

/**
 * GnomeUIInfoType:
 * @GNOME_APP_UI_ENDOFINFO: No more items, use it at the end of an array.
 * @GNOME_APP_UI_ITEM: Normal item, or radio item if it is inside a radioitems
 * group.
 * @GNOME_APP_UI_TOGGLEITEM: Toggle (check box) item.
 * @GNOME_APP_UI_RADIOITEMS: Radio item group.
 * @GNOME_APP_UI_SUBTREE: Item that defines a subtree/submenu.
 * @GNOME_APP_UI_SEPARATOR: Separator line (menus) or blank space (toolbars).
 * @GNOME_APP_UI_HELP: Create a list of help topics, used in the Help menu.
 * @GNOME_APP_UI_BUILDER_DATA: Specifies the builder data for the following
 * entries, see code for further info.
 * @GNOME_APP_UI_ITEM_CONFIGURABLE: A configurable menu item.
 * @GNOME_APP_UI_SUBTREE_STOCK: Item that defines a subtree/submenu, same as
 * #GNOME_APP_UI_SUBTREE, but the texts should be looked up in the libgnome
 * catalog.
 * @GNOME_APP_UI_INCLUDE: Almost like @GNOME_APP_UI_SUBTREE, but inserts items
 * into the current menu or whatever, instead of making a submenu.
 *
 * These values identify the item type that a particular GnomeUIInfo structure
 * specifies.
 *
 * One should be careful when using gnome_app_create_[custom|interp|with_data]
 * functions with #GnomeUIInfo arrays containing #GNOME_APP_UI_BUILDER_DATA
 * items, since their #GnomeUIBuilderData structures completely override the
 * ones generated or supplied by the above functions.
 */
typedef enum {
	GNOME_APP_UI_ENDOFINFO,
	GNOME_APP_UI_ITEM,
	GNOME_APP_UI_TOGGLEITEM,
	GNOME_APP_UI_RADIOITEMS,
	GNOME_APP_UI_SUBTREE,
	GNOME_APP_UI_SEPARATOR,
	GNOME_APP_UI_HELP,
	GNOME_APP_UI_BUILDER_DATA,
	GNOME_APP_UI_ITEM_CONFIGURABLE,
	GNOME_APP_UI_SUBTREE_STOCK,
	GNOME_APP_UI_INCLUDE
} GnomeUIInfoType;

/* If you insert a value into this enum it'll break configurations all
   over the place.  Only append.  You should also append a matching
   item in the default types near the top of gnome-app-helper.c */

/**
 * GnomeUIInfoConfigurableTypes:
 * @GNOME_APP_CONFIGURABLE_ITEM_NEW: The "New" menu.
 * @GNOME_APP_CONFIGURABLE_ITEM_OPEN: The "Open" menu.
 * @GNOME_APP_CONFIGURABLE_ITEM_SAVE: The "Save" menu.
 * @GNOME_APP_CONFIGURABLE_ITEM_SAVE_AS: The "Save as..." menu.
 * @GNOME_APP_CONFIGURABLE_ITEM_REVERT: The "Revert" menu.
 * @GNOME_APP_CONFIGURABLE_ITEM_PRINT: The "Print" menu.
 * @GNOME_APP_CONFIGURABLE_ITEM_PRINT_SETUP: The "Print setup..." menu.
 * @GNOME_APP_CONFIGURABLE_ITEM_CLOSE: The "Close" menu.
 * @GNOME_APP_CONFIGURABLE_ITEM_QUIT: The "Quit" menu.
 * @GNOME_APP_CONFIGURABLE_ITEM_CUT: The "Cut" menu.
 * @GNOME_APP_CONFIGURABLE_ITEM_COPY: The "Copy" menu.
 * @GNOME_APP_CONFIGURABLE_ITEM_PASTE: The "Paste" menu.
 * @GNOME_APP_CONFIGURABLE_ITEM_CLEAR: The "Clear" menu.
 * @GNOME_APP_CONFIGURABLE_ITEM_UNDO: The "Undo" menu.
 * @GNOME_APP_CONFIGURABLE_ITEM_REDO: The "Redo" menu.
 * @GNOME_APP_CONFIGURABLE_ITEM_FIND: The "Find..." menu.
 * @GNOME_APP_CONFIGURABLE_ITEM_FIND_AGAIN: The "Find again" menu.
 * @GNOME_APP_CONFIGURABLE_ITEM_REPLACE: The "Replace..." menu.
 * @GNOME_APP_CONFIGURABLE_ITEM_PROPERTIES: The "Properties..." menu.
 * @GNOME_APP_CONFIGURABLE_ITEM_PREFERENCES: The "Preferences..." menu.
 * @GNOME_APP_CONFIGURABLE_ITEM_ABOUT: The "About..." menu.
 * @GNOME_APP_CONFIGURABLE_ITEM_SELECT_ALL: The "Select all" menu.
 * @GNOME_APP_CONFIGURABLE_ITEM_NEW_WINDOW: The "New window" menu.
 * @GNOME_APP_CONFIGURABLE_ITEM_CLOSE_WINDOW: The "Close window" menu.
 * @GNOME_APP_CONFIGURABLE_ITEM_NEW_GAME: The "New game" menu.
 * @GNOME_APP_CONFIGURABLE_ITEM_PAUSE_GAME: The "Pause game" menu.
 * @GNOME_APP_CONFIGURABLE_ITEM_RESTART_GAME: The "Restart game" menu.
 * @GNOME_APP_CONFIGURABLE_ITEM_UNDO_MOVE: The "Undo move" menu.
 * @GNOME_APP_CONFIGURABLE_ITEM_REDO_MOVE: The "Redo move" menu.
 * @GNOME_APP_CONFIGURABLE_ITEM_HINT: The "Hint" menu.
 * @GNOME_APP_CONFIGURABLE_ITEM_SCORES: The "Scores..." menu.
 * @GNOME_APP_CONFIGURABLE_ITEM_END_GAME: The "End game" menu.
 *
 * A user can redefine the accelerator keys for each menu item (if the
 * application supports this). This enum gives an identifier for each menu
 * shortcut that can possible be redefined. If an application is not using one
 * of these accelerators, then no shortcut redefinition is possible unless the
 * application specifically implements it (moral: use standard menu items).
 */
typedef enum {
        /* 0 */
        GNOME_APP_CONFIGURABLE_ITEM_NEW,
        GNOME_APP_CONFIGURABLE_ITEM_OPEN,
        GNOME_APP_CONFIGURABLE_ITEM_SAVE,
        GNOME_APP_CONFIGURABLE_ITEM_SAVE_AS,
        GNOME_APP_CONFIGURABLE_ITEM_REVERT,
        GNOME_APP_CONFIGURABLE_ITEM_PRINT,
        GNOME_APP_CONFIGURABLE_ITEM_PRINT_SETUP,
        GNOME_APP_CONFIGURABLE_ITEM_CLOSE,
        GNOME_APP_CONFIGURABLE_ITEM_QUIT,
        GNOME_APP_CONFIGURABLE_ITEM_CUT,
	/* 10 */
        GNOME_APP_CONFIGURABLE_ITEM_COPY,
        GNOME_APP_CONFIGURABLE_ITEM_PASTE,
        GNOME_APP_CONFIGURABLE_ITEM_CLEAR,
        GNOME_APP_CONFIGURABLE_ITEM_UNDO,
        GNOME_APP_CONFIGURABLE_ITEM_REDO,
        GNOME_APP_CONFIGURABLE_ITEM_FIND,
        GNOME_APP_CONFIGURABLE_ITEM_FIND_AGAIN,
        GNOME_APP_CONFIGURABLE_ITEM_REPLACE,
        GNOME_APP_CONFIGURABLE_ITEM_PROPERTIES,
        GNOME_APP_CONFIGURABLE_ITEM_PREFERENCES,
	/* 20 */
        GNOME_APP_CONFIGURABLE_ITEM_ABOUT,
	GNOME_APP_CONFIGURABLE_ITEM_SELECT_ALL,
	GNOME_APP_CONFIGURABLE_ITEM_NEW_WINDOW,
	GNOME_APP_CONFIGURABLE_ITEM_CLOSE_WINDOW,
	GNOME_APP_CONFIGURABLE_ITEM_NEW_GAME,
	GNOME_APP_CONFIGURABLE_ITEM_PAUSE_GAME,
	GNOME_APP_CONFIGURABLE_ITEM_RESTART_GAME,
	GNOME_APP_CONFIGURABLE_ITEM_UNDO_MOVE,
	GNOME_APP_CONFIGURABLE_ITEM_REDO_MOVE,
	GNOME_APP_CONFIGURABLE_ITEM_HINT,
	/* 30 */
	GNOME_APP_CONFIGURABLE_ITEM_SCORES,
	GNOME_APP_CONFIGURABLE_ITEM_END_GAME
} GnomeUIInfoConfigurableTypes;

#define GNOME_APP_CONFIGURABLE_ITEM_EXIT	GNOME_APP_CONFIGURABLE_ITEM_QUIT

/**
 * GnomeUIPixmapType:
 * @GNOME_APP_PIXMAP_NONE: No pixmap specified.
 * @GNOME_APP_PIXMAP_STOCK: Use a stock pixmap (#GnomeStock).
 * @GNOME_APP_PIXMAP_DATA: Use a pixmap from inline xpm data.
 * @GNOME_APP_PIXMAP_FILENAME: Use a pixmap from the specified filename.
 *
 * These values identify the type of pixmap used in an item.
 */
typedef enum {
	GNOME_APP_PIXMAP_NONE,
	GNOME_APP_PIXMAP_STOCK,
	GNOME_APP_PIXMAP_DATA,
	GNOME_APP_PIXMAP_FILENAME
} GnomeUIPixmapType;

typedef struct {
	GnomeUIInfoType type;		/* Type of item */
	gchar const *label;		/* String to use in item's label */
	gchar const *hint;		/* Tooltip for toolbar items, status 
					   bar message for menu items. */
	gpointer moreinfo;		/* Extra information; depends on the
					   type. */
	gpointer user_data;		/* User data sent to the callback. */
	gpointer unused_data;		/* Should be NULL (reserved). */
	GnomeUIPixmapType pixmap_type;	/* Type of pixmap for this item. */
	gconstpointer pixmap_info;	/* Pointer to pixmap information. */
	guint accelerator_key;		/* Accelerator key, or 0 for none. */
	GdkModifierType ac_mods;	/* Mask of modifier keys for the 
					   accelerator. */
	GtkWidget *widget;		/* Filled in by the gnome_app_create* 
					   functions. */
} GnomeUIInfo;

/* Callback data */

#define GNOMEUIINFO_KEY_UIDATA		"uidata"
#define GNOMEUIINFO_KEY_UIBDATA		"uibdata"

/* Handy GnomeUIInfo macros */

/* Used to terminate an array of GnomeUIInfo structures */
#define GNOMEUIINFO_END			{ GNOME_APP_UI_ENDOFINFO, NULL, NULL, NULL, NULL, NULL,		\
					  (GnomeUIPixmapType) 0, NULL, 0, (GdkModifierType) 0, NULL }

/* Insert a separator line (on a menu) or a blank space (on a toolbar) */
#define GNOMEUIINFO_SEPARATOR		{ GNOME_APP_UI_SEPARATOR, NULL, NULL, NULL, NULL, NULL,		\
					  (GnomeUIPixmapType) 0, NULL, 0, (GdkModifierType) 0, NULL }

/* Insert an item with an inline xpm icon */
#define GNOMEUIINFO_ITEM(label, tooltip, callback, xpm_data) \
	{ GNOME_APP_UI_ITEM, label, tooltip, (gpointer)callback, NULL, NULL, \
		GNOME_APP_PIXMAP_DATA, xpm_data, 0, (GdkModifierType) 0, NULL}

/* Insert an item with a stock icon */
#define GNOMEUIINFO_ITEM_STOCK(label, tooltip, callback, stock_id) \
	{ GNOME_APP_UI_ITEM, label, tooltip, (gpointer)callback, NULL, NULL, \
		GNOME_APP_PIXMAP_STOCK, stock_id, 0, (GdkModifierType) 0, NULL }

/* Insert an item with no icon */
#define GNOMEUIINFO_ITEM_NONE(label, tooltip, callback) \
	{ GNOME_APP_UI_ITEM, label, tooltip, (gpointer)callback, NULL, NULL, \
		GNOME_APP_PIXMAP_NONE, NULL, 0, (GdkModifierType) 0, NULL }

/* Insert an item with an inline xpm icon and a user data pointer */
#define GNOMEUIINFO_ITEM_DATA(label, tooltip, callback, user_data, xpm_data) \
	{ GNOME_APP_UI_ITEM, label, tooltip, (gpointer)callback, user_data, NULL, \
		GNOME_APP_PIXMAP_DATA, xpm_data, 0, (GdkModifierType) 0, NULL }

/* Insert a toggle item (check box) with an inline xpm icon */
#define GNOMEUIINFO_TOGGLEITEM(label, tooltip, callback, xpm_data) \
	{ GNOME_APP_UI_TOGGLEITEM, label, tooltip, (gpointer)callback, NULL, NULL, \
		GNOME_APP_PIXMAP_DATA, xpm_data, 0, (GdkModifierType) 0, NULL }

/* Insert a toggle item (check box) with an inline xpm icon and a user data pointer */
#define GNOMEUIINFO_TOGGLEITEM_DATA(label, tooltip, callback, user_data, xpm_data)		\
					{ GNOME_APP_UI_TOGGLEITEM, label, tooltip, (gpointer)callback,	\
					  user_data, NULL, GNOME_APP_PIXMAP_DATA, xpm_data,	\
					  0, (GdkModifierType) 0, NULL }

/* Insert all the help topics based on the application's id */
#define GNOMEUIINFO_HELP(app_name) \
	{ GNOME_APP_UI_HELP, NULL, NULL, (void *)app_name, NULL, NULL, \
		(GnomeUIPixmapType) 0, NULL, 0,	(GdkModifierType) 0, NULL }

/* Insert a subtree (submenu) */
#define GNOMEUIINFO_SUBTREE(label, tree) \
	{ GNOME_APP_UI_SUBTREE, label, NULL, tree, NULL, NULL, \
		(GnomeUIPixmapType) 0, NULL, 0,	(GdkModifierType) 0, NULL }

/* Insert a subtree with a hint */
#define GNOMEUIINFO_SUBTREE_HINT(label, hint, tree) \
	{ GNOME_APP_UI_SUBTREE, label, hint, tree, NULL, NULL, \
		(GnomeUIPixmapType) 0, NULL, 0,	(GdkModifierType) 0, NULL }

/* Insert a subtree (submenu) with a stock icon */
#define GNOMEUIINFO_SUBTREE_STOCK(label, tree, stock_id) \
	{ GNOME_APP_UI_SUBTREE, label, NULL, tree, NULL, NULL, \
		GNOME_APP_PIXMAP_STOCK, stock_id, 0, (GdkModifierType) 0, NULL }

#define GNOMEUIINFO_INCLUDE(tree) \
	{ GNOME_APP_UI_INCLUDE, NULL, NULL, tree, NULL, NULL, \
		(GnomeUIPixmapType) 0, NULL, 0,	(GdkModifierType) 0, NULL }

/* Insert a list of radio items */
#define GNOMEUIINFO_RADIOLIST(list) \
	{ GNOME_APP_UI_RADIOITEMS, NULL, NULL, list, NULL, NULL, \
		(GnomeUIPixmapType) 0, NULL, 0,	(GdkModifierType) 0, NULL }

/* Insert a radio item with an inline xpm icon */
#define GNOMEUIINFO_RADIOITEM(label, tooltip, callback, xpm_data) \
	{ GNOME_APP_UI_ITEM, label, tooltip, (gpointer)callback, NULL, NULL, \
		GNOME_APP_PIXMAP_DATA, xpm_data, 0, (GdkModifierType) 0, NULL }

/* Insert a radio item with an inline xpm icon and a user data pointer */
#define GNOMEUIINFO_RADIOITEM_DATA(label, tooltip, callback, user_data, xpm_data)		\
					{ GNOME_APP_UI_ITEM, label, tooltip, (gpointer)callback,	\
					  user_data, NULL, GNOME_APP_PIXMAP_DATA, xpm_data,	\
					  0, (GdkModifierType) 0, NULL }
					  
/*
 * Stock menu item macros for some common menu items.  Please see
 * gnome-libs/devel-docs/suggestions.txt about GNOME menu standards.
 */

/*
 * The 'File' menu
 */

/*
 * Note: New item requires to to specify what is new, so you need
 * to specify the document type, so you need to supply the label
 * as well (it should start with "_New ")
 */
#define GNOMEUIINFO_MENU_NEW_ITEM(label, tip, cb, data)                     \
        { GNOME_APP_UI_ITEM_CONFIGURABLE, label, tip,                       \
          (gpointer)cb, (gpointer)(data), NULL,                             \
          GNOME_APP_PIXMAP_NONE, NULL,                                      \
          GNOME_APP_CONFIGURABLE_ITEM_NEW, (GdkModifierType) 0, NULL }

/* If you have more then one New type, use this tree */
#define GNOMEUIINFO_MENU_NEW_SUBTREE(tree)                                  \
        { GNOME_APP_UI_SUBTREE_STOCK, N_("_New"), NULL, tree, NULL, NULL,   \
          GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_MENU_NEW,                     \
          GNOME_KEY_NAME_NEW, GNOME_KEY_MOD_NEW, NULL }

#define GNOMEUIINFO_MENU_OPEN_ITEM(cb, data)                                \
        { GNOME_APP_UI_ITEM_CONFIGURABLE, NULL, NULL,                       \
          (gpointer)cb, (gpointer)(data), NULL,                             \
          GNOME_APP_PIXMAP_NONE, NULL,                                      \
          GNOME_APP_CONFIGURABLE_ITEM_OPEN, (GdkModifierType) 0, NULL }

#define GNOMEUIINFO_MENU_SAVE_ITEM(cb, data)                                \
        { GNOME_APP_UI_ITEM_CONFIGURABLE, NULL, NULL,                       \
          (gpointer)cb, (gpointer)(data), NULL,                             \
          GNOME_APP_PIXMAP_NONE, NULL,                                      \
          GNOME_APP_CONFIGURABLE_ITEM_SAVE, (GdkModifierType) 0, NULL }

#define GNOMEUIINFO_MENU_SAVE_AS_ITEM(cb, data)                             \
        { GNOME_APP_UI_ITEM_CONFIGURABLE, NULL, NULL,                       \
          (gpointer)cb, (gpointer)(data), NULL,                             \
          GNOME_APP_PIXMAP_NONE, NULL,                                      \
          GNOME_APP_CONFIGURABLE_ITEM_SAVE_AS, (GdkModifierType) 0, NULL }

#define GNOMEUIINFO_MENU_REVERT_ITEM(cb, data)                              \
        { GNOME_APP_UI_ITEM_CONFIGURABLE, NULL, NULL,                       \
          (gpointer)cb, (gpointer)(data), NULL,                             \
          GNOME_APP_PIXMAP_NONE, NULL,                                      \
          GNOME_APP_CONFIGURABLE_ITEM_REVERT, (GdkModifierType) 0, NULL }

#define GNOMEUIINFO_MENU_PRINT_ITEM(cb, data)                               \
        { GNOME_APP_UI_ITEM_CONFIGURABLE, NULL, NULL,                       \
          (gpointer)cb, (gpointer)(data), NULL,                             \
          GNOME_APP_PIXMAP_NONE, NULL,                                      \
          GNOME_APP_CONFIGURABLE_ITEM_PRINT, (GdkModifierType) 0, NULL }

#define GNOMEUIINFO_MENU_PRINT_SETUP_ITEM(cb, data)                         \
        { GNOME_APP_UI_ITEM_CONFIGURABLE, NULL, NULL,                       \
          (gpointer)cb, (gpointer)(data), NULL,                             \
          GNOME_APP_PIXMAP_NONE, NULL,                                      \
          GNOME_APP_CONFIGURABLE_ITEM_PRINT_SETUP, (GdkModifierType) 0, NULL }

#define GNOMEUIINFO_MENU_CLOSE_ITEM(cb, data)                               \
        { GNOME_APP_UI_ITEM_CONFIGURABLE, NULL, NULL,                       \
          (gpointer)cb, (gpointer)(data), NULL,                             \
          GNOME_APP_PIXMAP_NONE, NULL,                                      \
          GNOME_APP_CONFIGURABLE_ITEM_CLOSE, (GdkModifierType) 0, NULL }

#define GNOMEUIINFO_MENU_EXIT_ITEM(cb, data)	GNOMEUIINFO_MENU_QUIT_ITEM(cb, data)
#define GNOMEUIINFO_MENU_QUIT_ITEM(cb, data)                                \
        { GNOME_APP_UI_ITEM_CONFIGURABLE, NULL, NULL,                       \
          (gpointer)cb, (gpointer)(data), NULL,                             \
          GNOME_APP_PIXMAP_NONE, NULL,                                      \
          GNOME_APP_CONFIGURABLE_ITEM_QUIT, (GdkModifierType) 0, NULL }

#define GNOMEUIINFO_MENU_QUIT_ITEM(cb, data)                                \
        { GNOME_APP_UI_ITEM_CONFIGURABLE, NULL, NULL,                       \
          (gpointer)cb, (gpointer)(data), NULL,                             \
          GNOME_APP_PIXMAP_NONE, NULL,                                      \
          GNOME_APP_CONFIGURABLE_ITEM_QUIT, (GdkModifierType) 0, NULL }
/*
 * The "Edit" menu
 */

#define GNOMEUIINFO_MENU_CUT_ITEM(cb, data)                                 \
        { GNOME_APP_UI_ITEM_CONFIGURABLE, NULL, NULL,                       \
          (gpointer)cb, (gpointer)(data), NULL,                             \
          GNOME_APP_PIXMAP_NONE, NULL,                                      \
          GNOME_APP_CONFIGURABLE_ITEM_CUT, (GdkModifierType) 0, NULL }

#define GNOMEUIINFO_MENU_COPY_ITEM(cb, data)                                \
        { GNOME_APP_UI_ITEM_CONFIGURABLE, NULL, NULL,                       \
          (gpointer)cb, (gpointer)(data), NULL,                             \
          GNOME_APP_PIXMAP_NONE, NULL,                                      \
          GNOME_APP_CONFIGURABLE_ITEM_COPY, (GdkModifierType) 0, NULL }

#define GNOMEUIINFO_MENU_PASTE_ITEM(cb, data)                               \
        { GNOME_APP_UI_ITEM_CONFIGURABLE, NULL, NULL,                       \
          (gpointer)cb, (gpointer)(data), NULL,                             \
          GNOME_APP_PIXMAP_NONE, NULL,                                      \
          GNOME_APP_CONFIGURABLE_ITEM_PASTE, (GdkModifierType) 0, NULL }

#define GNOMEUIINFO_MENU_SELECT_ALL_ITEM(cb, data)                          \
        { GNOME_APP_UI_ITEM_CONFIGURABLE, NULL, NULL,                       \
          (gpointer)cb, (gpointer)(data), NULL,                             \
          GNOME_APP_PIXMAP_NONE, NULL,                                      \
          GNOME_APP_CONFIGURABLE_ITEM_SELECT_ALL, (GdkModifierType) 0, NULL }

#define GNOMEUIINFO_MENU_CLEAR_ITEM(cb, data)                               \
        { GNOME_APP_UI_ITEM_CONFIGURABLE, NULL, NULL,                       \
          (gpointer)cb, (gpointer)(data), NULL,                             \
          GNOME_APP_PIXMAP_NONE, NULL,                                      \
          GNOME_APP_CONFIGURABLE_ITEM_CLEAR, (GdkModifierType) 0, NULL }

#define GNOMEUIINFO_MENU_UNDO_ITEM(cb, data)                                \
        { GNOME_APP_UI_ITEM_CONFIGURABLE, NULL, NULL,                       \
          (gpointer)cb, (gpointer)(data), NULL,                             \
          GNOME_APP_PIXMAP_NONE, NULL,                                      \
          GNOME_APP_CONFIGURABLE_ITEM_UNDO, (GdkModifierType) 0, NULL }

#define GNOMEUIINFO_MENU_REDO_ITEM(cb, data)                                \
        { GNOME_APP_UI_ITEM_CONFIGURABLE, NULL, NULL,                       \
          (gpointer)cb, (gpointer)(data), NULL,                             \
          GNOME_APP_PIXMAP_NONE, NULL,                                      \
          GNOME_APP_CONFIGURABLE_ITEM_REDO, (GdkModifierType) 0, NULL }

#define GNOMEUIINFO_MENU_FIND_ITEM(cb, data)                                \
        { GNOME_APP_UI_ITEM_CONFIGURABLE, NULL, NULL,                       \
          (gpointer)cb, (gpointer)(data), NULL,                             \
          GNOME_APP_PIXMAP_NONE, NULL,                                      \
          GNOME_APP_CONFIGURABLE_ITEM_FIND, (GdkModifierType) 0, NULL }

#define GNOMEUIINFO_MENU_FIND_AGAIN_ITEM(cb, data)                          \
        { GNOME_APP_UI_ITEM_CONFIGURABLE, NULL, NULL,                       \
          (gpointer)cb, (gpointer)(data), NULL,                             \
          GNOME_APP_PIXMAP_NONE, NULL,                                      \
          GNOME_APP_CONFIGURABLE_ITEM_FIND_AGAIN, (GdkModifierType) 0, NULL }

#define GNOMEUIINFO_MENU_REPLACE_ITEM(cb, data)                             \
        { GNOME_APP_UI_ITEM_CONFIGURABLE, NULL, NULL,                       \
          (gpointer)cb, (gpointer)(data), NULL,                             \
          GNOME_APP_PIXMAP_NONE, NULL,                                      \
          GNOME_APP_CONFIGURABLE_ITEM_REPLACE, (GdkModifierType) 0, NULL }

#define GNOMEUIINFO_MENU_PROPERTIES_ITEM(cb, data)                          \
        { GNOME_APP_UI_ITEM_CONFIGURABLE, NULL, NULL,                       \
          (gpointer)cb, (gpointer)(data), NULL,                             \
          GNOME_APP_PIXMAP_NONE, NULL,                                      \
          GNOME_APP_CONFIGURABLE_ITEM_PROPERTIES, (GdkModifierType) 0, NULL }

/*
 * The Settings menu
 */
#define GNOMEUIINFO_MENU_PREFERENCES_ITEM(cb, data)                         \
        { GNOME_APP_UI_ITEM_CONFIGURABLE, NULL, NULL,                       \
          (gpointer)cb, (gpointer)(data), NULL,                             \
          GNOME_APP_PIXMAP_NONE, NULL,                                      \
          GNOME_APP_CONFIGURABLE_ITEM_PREFERENCES, (GdkModifierType) 0, NULL }

/*
 * The Windows menu
 */
#define GNOMEUIINFO_MENU_NEW_WINDOW_ITEM(cb, data)                          \
        { GNOME_APP_UI_ITEM_CONFIGURABLE, NULL, NULL,                       \
          (gpointer)cb, (gpointer)(data), NULL,                             \
          GNOME_APP_PIXMAP_NONE, NULL,                                      \
          GNOME_APP_CONFIGURABLE_ITEM_NEW_WINDOW, (GdkModifierType) 0, NULL }

#define GNOMEUIINFO_MENU_CLOSE_WINDOW_ITEM(cb, data)                        \
        { GNOME_APP_UI_ITEM_CONFIGURABLE, NULL, NULL,                       \
          (gpointer)cb, (gpointer)(data), NULL,                             \
          GNOME_APP_PIXMAP_NONE, NULL,                                      \
          GNOME_APP_CONFIGURABLE_ITEM_CLOSE_WINDOW, (GdkModifierType) 0, NULL }

/*
 * And the "Help" menu
 */
#define GNOMEUIINFO_MENU_ABOUT_ITEM(cb, data)                               \
        { GNOME_APP_UI_ITEM_CONFIGURABLE, NULL, NULL,                       \
          (gpointer)cb, (gpointer)(data), NULL,                             \
          GNOME_APP_PIXMAP_NONE, NULL,                                      \
          GNOME_APP_CONFIGURABLE_ITEM_ABOUT, (GdkModifierType) 0, NULL }

/* 
 * The "Game" menu
 */

#define GNOMEUIINFO_MENU_NEW_GAME_ITEM(cb, data)                            \
        { GNOME_APP_UI_ITEM_CONFIGURABLE, NULL, NULL,                       \
          (gpointer)cb, (gpointer)(data), NULL,                             \
          GNOME_APP_PIXMAP_NONE, NULL,                                      \
          GNOME_APP_CONFIGURABLE_ITEM_NEW_GAME, (GdkModifierType) 0, NULL }
	  
#define GNOMEUIINFO_MENU_PAUSE_GAME_ITEM(cb, data)                          \
        { GNOME_APP_UI_ITEM_CONFIGURABLE, NULL, NULL,                       \
          (gpointer)cb, (gpointer)(data), NULL,                             \
          GNOME_APP_PIXMAP_NONE, NULL,                                      \
          GNOME_APP_CONFIGURABLE_ITEM_PAUSE_GAME, (GdkModifierType) 0, NULL }
	  
#define GNOMEUIINFO_MENU_RESTART_GAME_ITEM(cb, data)                        \
        { GNOME_APP_UI_ITEM_CONFIGURABLE, NULL, NULL,                       \
          (gpointer)cb, (gpointer)(data), NULL,                             \
          GNOME_APP_PIXMAP_NONE, NULL,                                      \
          GNOME_APP_CONFIGURABLE_ITEM_RESTART_GAME, (GdkModifierType) 0, NULL }
	  
#define GNOMEUIINFO_MENU_UNDO_MOVE_ITEM(cb, data)                           \
        { GNOME_APP_UI_ITEM_CONFIGURABLE, NULL, NULL,                       \
          (gpointer)cb, (gpointer)(data), NULL,                             \
          GNOME_APP_PIXMAP_NONE, NULL,                                      \
          GNOME_APP_CONFIGURABLE_ITEM_UNDO_MOVE, (GdkModifierType) 0, NULL }
	  
#define GNOMEUIINFO_MENU_REDO_MOVE_ITEM(cb, data)                           \
        { GNOME_APP_UI_ITEM_CONFIGURABLE, NULL, NULL,                       \
          (gpointer)cb, (gpointer)(data), NULL,                             \
          GNOME_APP_PIXMAP_NONE, NULL,                                      \
          GNOME_APP_CONFIGURABLE_ITEM_REDO_MOVE, (GdkModifierType) 0, NULL }
	  
#define GNOMEUIINFO_MENU_HINT_ITEM(cb, data)                                \
        { GNOME_APP_UI_ITEM_CONFIGURABLE, NULL, NULL,                       \
          (gpointer)cb, (gpointer)(data), NULL,                             \
          GNOME_APP_PIXMAP_NONE, NULL,                                      \
          GNOME_APP_CONFIGURABLE_ITEM_HINT, (GdkModifierType) 0, NULL }
	  
#define GNOMEUIINFO_MENU_SCORES_ITEM(cb, data)                              \
        { GNOME_APP_UI_ITEM_CONFIGURABLE, NULL, NULL,                       \
          (gpointer)cb, (gpointer)(data), NULL,                             \
          GNOME_APP_PIXMAP_NONE, NULL,                                      \
          GNOME_APP_CONFIGURABLE_ITEM_SCORES, (GdkModifierType) 0, NULL }
	  
#define GNOMEUIINFO_MENU_END_GAME_ITEM(cb, data)                            \
        { GNOME_APP_UI_ITEM_CONFIGURABLE, NULL, NULL,                       \
          (gpointer)cb, (gpointer)(data), NULL,                             \
          GNOME_APP_PIXMAP_NONE, NULL,                                      \
          GNOME_APP_CONFIGURABLE_ITEM_END_GAME, (GdkModifierType) 0, NULL }

const gchar * gnome_app_helper_gettext (const gchar *string);

#ifdef ENABLE_NLS
#define D_(x) dgettext (GETTEXT_PACKAGE, x)
#define L_(x) gnome_app_helper_gettext(x)
#else
#define D_(x) x
#define L_(x) x
#endif

/* Some standard menus */
#define GNOMEUIINFO_MENU_FILE_TREE(tree) \
	{ GNOME_APP_UI_SUBTREE_STOCK, N_("_File"), NULL, tree, NULL, NULL, \
		(GnomeUIPixmapType) 0, NULL, 0,	(GdkModifierType) 0, NULL }
#define GNOMEUIINFO_MENU_EDIT_TREE(tree) \
	{ GNOME_APP_UI_SUBTREE_STOCK, N_("_Edit"), NULL, tree, NULL, NULL, \
		(GnomeUIPixmapType) 0, NULL, 0,	(GdkModifierType) 0, NULL }
#define GNOMEUIINFO_MENU_VIEW_TREE(tree) \
	{ GNOME_APP_UI_SUBTREE_STOCK, N_("_View"), NULL, tree, NULL, NULL, \
		(GnomeUIPixmapType) 0, NULL, 0,	(GdkModifierType) 0, NULL }
#define GNOMEUIINFO_MENU_SETTINGS_TREE(tree) \
	{ GNOME_APP_UI_SUBTREE_STOCK, N_("_Settings"), NULL, tree, NULL, NULL, \
		(GnomeUIPixmapType) 0, NULL, 0,	(GdkModifierType) 0, NULL }
#define GNOMEUIINFO_MENU_FILES_TREE(tree) \
	{ GNOME_APP_UI_SUBTREE_STOCK, N_("Fi_les"), NULL, tree, NULL, NULL, \
		(GnomeUIPixmapType) 0, NULL, 0,	(GdkModifierType) 0, NULL }
#define GNOMEUIINFO_MENU_WINDOWS_TREE(tree) \
	{ GNOME_APP_UI_SUBTREE_STOCK, N_("_Windows"), NULL, tree, NULL, NULL, \
		(GnomeUIPixmapType) 0, NULL, 0,	(GdkModifierType) 0, NULL }
#define GNOMEUIINFO_MENU_HELP_TREE(tree) \
	{ GNOME_APP_UI_SUBTREE_STOCK, N_("_Help"), NULL, tree, NULL, NULL, \
		(GnomeUIPixmapType) 0, NULL, 0,	(GdkModifierType) 0, NULL }
#define GNOMEUIINFO_MENU_GAME_TREE(tree) \
	{ GNOME_APP_UI_SUBTREE_STOCK, N_("_Game"), NULL, tree, NULL, NULL, \
		(GnomeUIPixmapType) 0, NULL, 0,	(GdkModifierType) 0, NULL }
		
/*these are strings to be used for paths when working with the menus stuff*/
#define GNOME_MENU_FILE_STRING D_("_File")
#define GNOME_MENU_FILE_PATH D_("_File/")
#define GNOME_MENU_EDIT_STRING D_("_Edit")
#define GNOME_MENU_EDIT_PATH D_("_Edit/")
#define GNOME_MENU_VIEW_STRING D_("_View")
#define GNOME_MENU_VIEW_PATH D_("_View/")
#define GNOME_MENU_SETTINGS_STRING D_("_Settings")
#define GNOME_MENU_SETTINGS_PATH D_("_Settings/")
#define GNOME_MENU_NEW_STRING D_("_New")
#define GNOME_MENU_NEW_PATH D_("_New/")
#define GNOME_MENU_FILES_STRING D_("Fi_les")
#define GNOME_MENU_FILES_PATH D_("Fi_les/")
#define GNOME_MENU_WINDOWS_STRING D_("_Windows")
#define GNOME_MENU_WINDOWS_PATH D_("_Windows/")


/* Types useful to language bindings */
    
typedef struct _GnomeUIBuilderData GnomeUIBuilderData;

typedef void (* GnomeUISignalConnectFunc) (GnomeUIInfo        *uiinfo,
					   const char         *signal_name,
					   GnomeUIBuilderData *uibdata);

/**
 * GnomeUIBuilderData:
 * @connect_func: Function that connects to the item's signals.
 * @data: User data pointer for the signal callback.
 * @is_interp: If %TRUE, the signal should be connected with
 * g_signal_connect_closure_by_id(), otherwise, g_signal_connect() is used.
 * @relay_func: Marshaller function for language bindings.
 * @destroy_func: Destroy notification function for language bindings.
 *
 * This structure defines how the relevant menu items are to have their signals
 * connected. This includes the activations signals, as well as the destroy
 * notifications. The affected menu items are either the items following aA
 * #GNOME_APP_UI_BUILDER_DATA item in an array of #GnomeUIInfo structures or
 * all   of the menu items that are connected as a result of a call to
 * gnome_app_create_menu_custom() and similar functions.
 */
struct _GnomeUIBuilderData {
	GnomeUISignalConnectFunc connect_func;
	gpointer data;
	gboolean is_interp;
	GtkCallbackMarshal relay_func;
	GDestroyNotify destroy_func;
};

/* Flush the accelerator definitions into the application specific
 * configuration file ~/.gnome/accels/<app-id>.
 */
void gnome_accelerators_sync (void);
     

/* Fills the specified menu shell with items created from the specified
 * info, inserting them from the item no. pos on.
 * The accel group will be used as the accel group for all newly created
 * sub menus and serves as the global accel group for all menu item
 * hotkeys. If it is passed as NULL, global hotkeys will be disabled.
 * The uline_accels argument determines whether underline accelerators
 * will be featured from the menu item labels.
 */
void gnome_app_fill_menu (GtkMenuShell	*menu_shell,
			  GnomeUIInfo	*uiinfo,
			  GtkAccelGroup	*accel_group,
			  gboolean	 uline_accels,
			  gint		 pos);

/* Same as gnome_app_fill_menu, but sets all the user data pointers to
 * the specified value.
 */
void gnome_app_fill_menu_with_data (GtkMenuShell	*menu_shell,
				    GnomeUIInfo		*uiinfo,
				    GtkAccelGroup	*accel_group,
				    gboolean		 uline_accels,
				    gint		 pos,
				    gpointer		 user_data);

/* Fills the specified menu shell with items created from the specified
 * info, inserting them from item no. pos on and using the specified
 * builder data -- this is intended for language bindings.
 * The accel group will be used as the accel group for all newly created
 * sub menus and serves as the global accel group for all menu item
 * hotkeys. If it is passed as NULL, global hotkeys will be disabled.
 * The uline_accels argument determines whether underline accelerators
 * will be featured from the menu item labels.
 */
void gnome_app_fill_menu_custom (GtkMenuShell	    *menu_shell,
				 GnomeUIInfo	    *uiinfo,
				 GnomeUIBuilderData *uibdata,
				 GtkAccelGroup	    *accel_group,
				 gboolean	     uline_accels,
				 gint		     pos);

/* Converts GNOME_APP_UI_ITEM_CONFIGURABLE menu GnomeUIInfos to the
   corresponding standard GNOME_APP_UI_ITEMs.  gnome_app_create_menus
   calls this for you, but if you need to alter something afterwards,
   you can call this function first.  The main reason for this being a
   public interface is so that it can be called from
   gnome_popup_menu_new which clears a copy of the passed
   GnomeUIInofs. */
void gnome_app_ui_configure_configurable (GnomeUIInfo* uiinfo);


/* Constructs a menu bar and attaches it to the specified application window */
void gnome_app_create_menus (GnomeApp *app, GnomeUIInfo *uiinfo);

/* Constructs a menu bar and attaches it to the specified application window -- this version is
 * intended for language bindings.
 */
void gnome_app_create_menus_interp (GnomeApp *app, GnomeUIInfo *uiinfo,
				    GtkCallbackMarshal relay_func, gpointer data,
				    GDestroyNotify destroy_func);

/* Constructs a menu bar, sets all the user data pointers to the specified value, and attaches it to
 * the specified application window.
 */
void gnome_app_create_menus_with_data (GnomeApp *app, GnomeUIInfo *uiinfo, gpointer user_data);

/* Constructs a menu bar and attaches it to the specified application window, using the
 * specified builder data -- intended for language bindings.
 */
void gnome_app_create_menus_custom (GnomeApp *app, GnomeUIInfo *uiinfo, GnomeUIBuilderData *uibdata);

/* Fills the specified toolbar with buttons created from the specified info.  If accel_group is not
 * NULL, then the items' accelerator keys are put into it.
 */
void gnome_app_fill_toolbar (GtkToolbar *toolbar, GnomeUIInfo *uiinfo, GtkAccelGroup *accel_group);

/* Same as gnome_app_fill_toolbar, but sets all the user data pointers
 * to the specified value.
 */
void gnome_app_fill_toolbar_with_data (GtkToolbar *toolbar, GnomeUIInfo *uiinfo,
				       GtkAccelGroup *accel_group, gpointer user_data);

/* Fills the specified toolbar with buttons created from the specified info, using the specified
 * builder data -- this is intended for language bindings.  If accel_group is not NULL, then the
 * items' accelerator keys are put into it.
 */
void gnome_app_fill_toolbar_custom (GtkToolbar *toolbar, GnomeUIInfo *uiinfo, GnomeUIBuilderData *uibdata,
				    GtkAccelGroup *accel_group);

/* Constructs a toolbar and attaches it to the specified application window */
void gnome_app_create_toolbar (GnomeApp *app, GnomeUIInfo *uiinfo);

/* Constructs a toolbar and attaches it to the specified application window -- this version is
 * intended for language bindings.
 */
void gnome_app_create_toolbar_interp (GnomeApp *app, GnomeUIInfo *uiinfo,
				      GtkCallbackMarshal relay_func, gpointer data,
				      GDestroyNotify destroy_func);

/* Constructs a toolbar, sets all the user data pointers to the specified value, and attaches it to
 * the specified application window.
 */
void gnome_app_create_toolbar_with_data (GnomeApp *app, GnomeUIInfo *uiinfo, gpointer user_data);

/* Constructs a toolbar and attaches it to the specified application window, using the specified
 * builder data -- intended for language bindings.
 */
void gnome_app_create_toolbar_custom (GnomeApp *app, GnomeUIInfo *uiinfo, GnomeUIBuilderData *uibdata);

/* finds menu item described by path (see below for details) starting in the GtkMenuShell top
 * and returns its parent GtkMenuShell and the position after this item in pos:
 * gtk_menu_shell_insert(p, w, pos) would then insert widget w in GtkMenuShell p right after
 * the menu item described by path.
 * the path argument should be in the form "File/.../.../Something".
 * "" will insert the item as the first one in the menubar
 * "File/" will insert it as the first one in the File menu
 * "File/Settings" will insert it after the Setting item in the File menu
 * use of  "File/<Separator>" should be obvious. however this stops after the first separator.
 */
GtkWidget *gnome_app_find_menu_pos (GtkWidget *parent, const gchar *path, gint *pos);

/* removes num items from the existing app's menu structure begining with item described
 * by path
 */
void gnome_app_remove_menus (GnomeApp *app, const gchar *path, gint items);

/* Same as the above, except it removes the specified number of items 
 * from the existing app's menu structure begining with item described by path,
 * plus the number specified by start - very useful for adding and removing Recent
 * document items in the File menu.
 */
void gnome_app_remove_menu_range (GnomeApp *app, const gchar *path, gint start, gint items);

/* inserts menus described by uiinfo in existing app's menu structure right after the item described by path.
 */
void gnome_app_insert_menus_custom (GnomeApp *app, const gchar *path, GnomeUIInfo *uiinfo, GnomeUIBuilderData *uibdata);

void gnome_app_insert_menus (GnomeApp *app, const gchar *path, GnomeUIInfo *menuinfo);

void gnome_app_insert_menus_with_data (GnomeApp *app, const gchar *path, GnomeUIInfo *menuinfo, gpointer data);

void gnome_app_insert_menus_interp (GnomeApp *app, const gchar *path, GnomeUIInfo *menuinfo,
				    GtkCallbackMarshal relay_func, gpointer data,
				    GDestroyNotify destroy_func);


/* Activate the menu item hints, displaying in the given appbar.
   This can't be automatic since we can't reliably find the 
   appbar. */
void gnome_app_install_appbar_menu_hints    (GnomeAppBar* appbar,
                                             GnomeUIInfo* uiinfo);

void gnome_app_install_statusbar_menu_hints (GtkStatusbar* bar,
                                             GnomeUIInfo* uiinfo);

/* really? why can't it be automatic? */
void gnome_app_install_menu_hints           (GnomeApp *app,
                                             GnomeUIInfo *uiinfo);

void gnome_app_setup_toolbar                (GtkToolbar *toolbar,
                                             BonoboDockItem *dock_item);

G_END_DECLS

#endif