2003-10-10 Michael Natterer <mitch@gimp.org> Cleaned up session management and changed the format of sessionrc in a way that allows extensions without changing the format during the 2.0 cycle: * app/widgets/Makefile.am * app/widgets/widgets-types.h * app/widgets/gimpsessioninfo.[ch]: new files implementing the whole GimpSessionInfo stuff (parsing, saving, restoring, utility functions). Save / parse the position of GimpDock's panes (bug #122964). * app/widgets/gimpdialogfactory.[ch]: removed saving, restoring and session related utility functions and use the ones from the new files above. * app/gui/session.c: removed parsing and use the new stuff. * app/widgets/gimpdock.[ch]: added new virtual functions GimpDock::set_aux_info() and GimpDock::get_aux_info(): * app/widgets/gimpimagedock.c: implement them and handle the "auto_follow_active" and "show_image_menu" properties. * app/widgets/gimpdockable.[ch]: added the same virtual functions to the GimpDockable class. Enables forward-compatible per-dockable session management (bug #122964). * app/gui/dialogs-commands.c * app/gui/gui.c: changed accordingly. * etc/sessionrc: ditto. Look at this file and update your own sessionrc manually if you don't want to lose it.
43 lines
1.3 KiB
Text
43 lines
1.3 KiB
Text
# GIMP sessionrc
|
|
#
|
|
# This file takes session-specific info (that is info, you want to keep
|
|
# between two GIMP sessions). You are not supposed to edit it manually, but
|
|
# of course you can do. The sessionrc will be entirely rewritten every time
|
|
# you quit The GIMP. If this file isn't found, defaults are used.
|
|
|
|
(session-info "toolbox" "dock"
|
|
(position 48 48)
|
|
(size 192 660)
|
|
(open-on-exit)
|
|
(dock
|
|
(book
|
|
(dockable "gimp-tool-options"
|
|
(tab-style preview)))))
|
|
(session-info "dock" "dock"
|
|
(position 300 48)
|
|
(size 240 660)
|
|
(open-on-exit)
|
|
(aux-info "menu-shown" "follow-active-image")
|
|
(dock
|
|
(book
|
|
(dockable "gimp-layer-list"
|
|
(tab-style icon)
|
|
(preview-size 32))
|
|
(dockable "gimp-channel-list"
|
|
(tab-style icon)
|
|
(preview-size 32))
|
|
(dockable "gimp-vectors-list"
|
|
(tab-style icon)
|
|
(preview-size 32))
|
|
(dockable "gimp-undo-history"
|
|
(tab-style icon)))
|
|
(book
|
|
(position 370)
|
|
(dockable "gimp-brush-grid"
|
|
(tab-style preview))
|
|
(dockable "gimp-pattern-grid"
|
|
(tab-style preview))
|
|
(dockable "gimp-gradient-list"
|
|
(tab-style preview)))))
|
|
|
|
# end of sessionrc
|