pass a "Gimp" to gui_libs_init(), initialize the GUI before initializing
2001-10-23 Michael Natterer <mitch@gimp.org> * app/app_procs.c: pass a "Gimp" to gui_libs_init(), initialize the GUI before initializing the plug-ins. * app/gui/menus.[ch]: removed menus_last_opened_add() and connect to gimp->documents' "add", "remove" and "reorder" signals to auto-update the "last opened" menu entries. Moved all public functions to the top of the file. Removed global variable "last_opened_raw_filenames". * app/gui/gui.[ch]: removed "last opened" fiddling here, moved menu init functions which need to be called after plug-in query to gui_restore(). * app/gui/session.[ch]: added "Gimp" parameters to all public functions. * app/file-save.c * app/gui/file-commands.c * app/gui/file-open-dialog.c: changed accordingly.
This commit is contained in:

committed by
Michael Natterer

parent
e90d28c480
commit
0da978b8c2
@ -33,8 +33,9 @@ struct _GimpItemFactoryEntry
|
||||
};
|
||||
|
||||
|
||||
extern GSList *last_opened_raw_filenames;
|
||||
|
||||
void menus_init (Gimp *gimp);
|
||||
void menus_exit (Gimp *gimp);
|
||||
void menus_restore (Gimp *gimp);
|
||||
|
||||
GtkItemFactory * menus_get_toolbox_factory (void);
|
||||
GtkItemFactory * menus_get_image_factory (void);
|
||||
@ -54,17 +55,11 @@ void menus_create_item_from_full_path (GimpItemFactoryEntry *entry,
|
||||
gchar *domain_name,
|
||||
gpointer callback_data);
|
||||
|
||||
void menus_reorder_plugins (void);
|
||||
|
||||
void menus_quit (void);
|
||||
|
||||
void menus_set_sensitive (gchar *path,
|
||||
gboolean sensitive);
|
||||
void menus_set_state (gchar *path,
|
||||
gboolean state);
|
||||
void menus_destroy (gchar *path);
|
||||
|
||||
void menus_last_opened_add (const gchar *filename);
|
||||
|
||||
|
||||
#endif /* __MENUS_H__ */
|
||||
|
Reference in New Issue
Block a user