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
34 GtkMenuItem
*edit_delete
;
36 GtkMenuItem
*copy_text
;
37 GtkMenuItem
*cut_text
;
38 GtkMenuItem
*paste_text
;
40 GtkMenuItem
*send_to_back
;
41 GtkMenuItem
*bring_to_front
;
42 GtkMenuItem
*send_backwards
;
43 GtkMenuItem
*bring_forwards
;
49 GtkMenuItem
*unparent
;
50 GtkMenuItem
*unparent_children
;
52 GtkMenuItem
*align_h_l
;
53 GtkMenuItem
*align_h_c
;
54 GtkMenuItem
*align_h_r
;
55 GtkMenuItem
*align_h_e
;
56 GtkMenuItem
*align_h_a
;
58 GtkMenuItem
*align_v_t
;
59 GtkMenuItem
*align_v_c
;
60 GtkMenuItem
*align_v_b
;
61 GtkMenuItem
*align_v_e
;
62 GtkMenuItem
*align_v_a
;
65 typedef struct _UpdatableMenuItems UpdatableMenuItems
;
67 void menus_get_toolbox_menubar (GtkWidget
**menubar
, GtkAccelGroup
**accel
);
68 void menus_get_image_menu (GtkWidget
**menu
, GtkAccelGroup
**accel
);
69 void menus_get_image_menubar (GtkWidget
**menu
, GtkItemFactory
**display_mbar_item_factory
);
71 GtkMenuItem
*menus_get_item_from_path(char *path
, GtkItemFactory
*item_factory
);
72 GtkWidget
*menus_add_path (const gchar
*path
);
73 void menus_initialize_updatable_items (UpdatableMenuItems
*items
,
74 GtkItemFactory
*factory
, const char *display
);