1 /* Dia -- an diagram creation/manipulation program
2 * Copyright (C) 1998 Alexander Larsson
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23 struct zoom_pair
{ const gchar
*string
; const gint value
; };
25 extern const struct zoom_pair zooms
[10];
27 /* all the menu items that can be updated */
28 struct _UpdatableMenuItems
33 GtkMenuItem
*edit_delete
;
34 GtkMenuItem
*edit_duplicate
;
35 GtkMenuItem
*copy_text
;
36 GtkMenuItem
*cut_text
;
37 GtkMenuItem
*paste_text
;
39 GtkMenuItem
*send_to_back
;
40 GtkMenuItem
*bring_to_front
;
41 GtkMenuItem
*send_backwards
;
42 GtkMenuItem
*bring_forwards
;
48 GtkMenuItem
*unparent
;
49 GtkMenuItem
*unparent_children
;
51 GtkMenuItem
*align_h_l
;
52 GtkMenuItem
*align_h_c
;
53 GtkMenuItem
*align_h_r
;
54 GtkMenuItem
*align_h_e
;
55 GtkMenuItem
*align_h_a
;
57 GtkMenuItem
*align_v_t
;
58 GtkMenuItem
*align_v_c
;
59 GtkMenuItem
*align_v_b
;
60 GtkMenuItem
*align_v_e
;
61 GtkMenuItem
*align_v_a
;
63 GtkMenuItem
*properties
;
66 typedef struct _UpdatableMenuItems UpdatableMenuItems
;
68 void menus_get_toolbox_menubar (GtkWidget
**menubar
, GtkAccelGroup
**accel
);
69 void menus_get_image_menu (GtkWidget
**menu
, GtkAccelGroup
**accel
);
70 void menus_get_image_menubar (GtkWidget
**menu
, GtkItemFactory
**display_mbar_item_factory
);
72 GtkMenuItem
*menus_get_item_from_path(char *path
, GtkItemFactory
*item_factory
);
73 GtkWidget
*menus_add_path (const gchar
*path
);
74 void menus_initialize_updatable_items (UpdatableMenuItems
*items
,
75 GtkItemFactory
*factory
, const char *display
);