3fd381cc32
Fix bug #261: inconsistent labels in view menu and toolbar, unsynchronized items. * glayout.c (panel_view_menu_uiinfo panel_view_toolbar_uiinfo): Made the view names consistent with the toolbar names. Also, added underscore accelerators to the menu items. (copy_uiinfo_widgets): New function to copy the widgets from an uiinfo array into a widget array. (create_container): Copy the uiinfo widgets to the panel structure. * gcmd.c (set_view_type): New function to set the list view type and synchronize the menu and toolbar items. (gnome_close_panel): Free the view menu/toolbar item arrays.
27 строки
547 B
C
27 строки
547 B
C
#ifndef __GSCREEN_H
|
|
#define __GSCREEN_H
|
|
|
|
|
|
/* GnomeUIInfo information for view types */
|
|
extern GnomeUIInfo panel_view_menu_uiinfo[];
|
|
extern GnomeUIInfo panel_view_toolbar_uiinfo[];
|
|
|
|
WPanel *create_container (Dlg_head *h, char *str, char *geometry);
|
|
|
|
void copy_uiinfo_widgets (GnomeUIInfo *uiinfo, gpointer **dest);
|
|
|
|
typedef struct {
|
|
int splitted;
|
|
|
|
WPanel *panel;
|
|
|
|
enum view_modes other_display;
|
|
Widget *other;
|
|
} PanelContainer;
|
|
|
|
extern PanelContainer *current_panel_ptr, *other_panel_ptr;
|
|
extern GList *containers;
|
|
|
|
|
|
#endif /* __GSCREEN_H */
|