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
;
46 GtkMenuItem
*align_h_l
;
47 GtkMenuItem
*align_h_c
;
48 GtkMenuItem
*align_h_r
;
49 GtkMenuItem
*align_h_e
;
50 GtkMenuItem
*align_h_a
;
52 GtkMenuItem
*align_v_t
;
53 GtkMenuItem
*align_v_c
;
54 GtkMenuItem
*align_v_b
;
55 GtkMenuItem
*align_v_e
;
56 GtkMenuItem
*align_v_a
;
59 typedef struct _UpdatableMenuItems UpdatableMenuItems
;
61 void menus_get_toolbox_menubar (GtkWidget
**menubar
, GtkAccelGroup
**accel
);
62 void menus_get_image_menu (GtkWidget
**menu
, GtkAccelGroup
**accel
);
63 void menus_get_image_menubar (GtkWidget
**menu
, GtkItemFactory
**display_mbar_item_factory
);
65 GtkMenuItem
*menus_get_item_from_path(char *path
, GtkItemFactory
*item_factory
);
66 GtkWidget
*menus_add_path (const gchar
*path
);
67 void menus_initialize_updatable_items (UpdatableMenuItems
*items
,
68 GtkItemFactory
*factory
, const char *display
);