1. 28 May, 2004 1 commit
    • Michael Natterer's avatar
      app/widgets/gimpcontainergridview.[ch] removed "reorderable" from · a9932fca
      Michael Natterer authored
      2004-05-28  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpcontainergridview.[ch]
      	* app/widgets/gimpcontainertreeview.[ch]: removed "reorderable"
      	from gimp_container_foo_view_new().
      
      	* app/widgets/gimpcontainereditor.[ch]: removed "reorderable" from
      	gimp_container_editor_construct(). Automatically set the view to
      	reorderable if the viewed container has no sort_func.
      
      	* app/widgets/gimpbufferview.c
      	* app/widgets/gimpdatafactoryview.c
      	* app/widgets/gimpdocumentview.c
      	* app/widgets/gimpimageview.c
      	* app/widgets/gimptemplateview.c
      	* app/widgets/gimptoolview.c
      	* app/widgets/gimpundoeditor.c: removed reoderable stuff because
      	GimpContainerEditor does this generically now.
      
      	* app/widgets/gimpcontainerpopup.c
      	* app/widgets/gimpfontview.c: set reorderable to FALSE because
      	they should not be reodered even if they don't have a sort_func.
      
      	* app/gui/font-select.c: removed reorderable stuff. Some cleanup.
      
      	* app/gui/brush-select.c
      	* app/gui/gradient-select.c
      	* app/gui/palette-select.c
      	* app/gui/pattern-select.c: same cleanups as in font-select.c
      a9932fca
  2. 13 May, 2004 1 commit
  3. 12 May, 2004 1 commit
    • Michael Natterer's avatar
      app/actions/documents-actions.c app/actions/documents-commands.c · 2632cd8f
      Michael Natterer authored
      2004-05-12  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/documents-actions.c
      	* app/actions/documents-commands.c
      	* app/actions/edit-actions.c
      	* app/actions/edit-commands.[ch]
      	* app/actions/layers-actions.c
      	* app/actions/layers-commands.c
      	* app/actions/select-actions.c
      	* app/actions/select-commands.[ch]
      	* app/actions/vectors-actions.c
      	* app/actions/vectors-commands.[ch]: added tooltips for actions
      	which are now used for dialog buttons, added callback
      	implementations which formerly lived in various widgets, moved
      	some actions around and did some general cleanups.
      
      	* menus/image-menu.xml.in: s/edit-stroke/select-stroke/
      
      	* menus/Makefile.am
      	* menus/selection-editor-menu.xml: new popup menu.
      
      	* app/menus/menus.c: register <SelectionEditor> and <UndoEditor>
      	UI managers.
      
      	* app/widgets/gimpeditor.[ch]: added construct properties
      	"menu-factory", "menu-identifier", "ui-path" and "popup-data".
      	Implement GObject::constructor() and create the UI manager
      	if all needed properties were set. Enables creating action
      	buttons at widget construction time because they need a
      	UI manager.
      
      	(gimp_editor_add_action_button): changed to take a va_list of
      	"extended" actions which are invoked if the resp. button emits
      	"extended_clicked". Store the actions and their modifier masks in
      	a list attached to the button.
      
      	* app/widgets/gimpcontainerview.c
      	(gimp_container_view_item_selected): if the view has container
      	*and* context, simply change the context and return.
      
      	(gimp_container_view_context_changed): don't emit "select_item"
      	manually but simply call gimp_container_view_select_item().
      
      	(gimp_container_view_viewable_dropped): use
      	gimp_container_view_item_selected() instead of changing the
      	context directly.
      
      	* app/widgets/gimpcontainereditor.c
      	(gimp_container_editor_select_item): update the UI manager.
      
      	* app/widgets/gimpdockable.c: don't try to fiddle with the
      	dialog's menu if it doesn't have a ui_path (happens if the UI
      	manager is just a collection of actions for the dialog buttons and
      	has no menu registered).
      
      	* app/widgets/gimpimageeditor.c: connect to the image's "flush"
      	signal and update the UI manager in the callback.
      
      	* app/widgets/gimpitemtreeview.c: use GimpEditor's construct
      	properties to create the UI manager so GimpItemTreeView subclasses
      	can have action buttons. Update the UI manager in
      	gimp_item_tree_view_select_item().
      
      	* app/widgets/gimpbufferview.c
      	* app/widgets/gimpcolormapeditor.c
      	* app/widgets/gimpcontainergridview.c
      	* app/widgets/gimpdatafactoryview.c
      	* app/widgets/gimpfontview.c
      	* app/widgets/gimpimageview.c
      	* app/widgets/gimptemplateview.c
      	* app/widgets/gimptoolview.c: changed calls to
      	gimp_editor_add_action_button() accordingly and removed some
      	unneeded select_item() implementations.
      
      	* app/widgets/gimpchanneltreeview.c
      	* app/widgets/gimpvectorstreeview.[ch]
      	* app/widgets/gimpdocumentview.[ch]
      	* app/widgets/gimplayertreeview.c
      	* app/widgets/gimpselectioneditor.[ch]
      	* app/widgets/gimpundoeditor.[ch]: use action buttons and removed
      	lots of callbacks which went to the resp. action callbacks.
      
      	* app/widgets/widgets-types.h: removed some now unneeded function
      	prototypes.
      
      	* app/gui/dialogs-constructors.c: changed (simplified) many dialog
      	constructors accordingly.
      2632cd8f
  4. 11 May, 2004 1 commit
    • Michael Natterer's avatar
      added action_data_get_context() and macro return_if_no_context(). · 11fa0925
      Michael Natterer authored
      2004-05-11  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/actions.[ch]: added action_data_get_context() and
      	macro return_if_no_context().
      
      	* app/actions/brushes-actions.c
      	* app/actions/buffers-actions.c
      	* app/actions/buffers-commands.c
      	* app/actions/data-commands.c
      	* app/actions/fonts-actions.c
      	* app/actions/fonts-commands.c
      	* app/actions/gradients-actions.c
      	* app/actions/images-actions.c
      	* app/actions/images-commands.c
      	* app/actions/palettes-actions.c
      	* app/actions/patterns-actions.c
      	* app/actions/templates-actions.c
      	* app/actions/templates-commands.[ch]
      	* app/actions/tools-actions.c
      	* app/actions/tools-commands.c: moved lots of code from widgets/
      	to the resp. action callbacks.
      
      	* app/widgets/gimpeditor.[ch]: added gimp_editor_add_action_button()
      	which creates a GtkButton connected to the resp. action.
      
      	* app/widgets/gimpdatafactoryview.[ch]: added "action_group"
      	parameters so we can distinguish brushes, patterns etc. actions.
      
      	* app/widgets/gimpimageview.[ch]
      	* app/widgets/gimpbrushfactoryview.c
      	* app/widgets/gimpbufferview.c
      	* app/widgets/gimpfontview.c
      	* app/widgets/gimpgradienteditor.c
      	* app/widgets/gimppatternfactoryview.c
      	* app/widgets/gimptemplateview.[ch]
      	* app/widgets/gimptoolview.c: removed tons of GtkButton::clicked()
      	callbacks and use gimp_editor_add_action_button() instead
      	of simply _add_button().
      
      	* app/gui/dialogs-constructors.c
      	* app/gui/gradient-select.c
      	* app/gui/palette-select.c
      	* app/gui/pattern-select.c: changed accordingly.
      11fa0925
  5. 10 May, 2004 2 commits
    • Michael Natterer's avatar
      More GimpContainerView chopping: · 3adc0816
      Michael Natterer authored
      2004-05-10  Michael Natterer  <mitch@gimp.org>
      
      	More GimpContainerView chopping:
      
      	* app/widgets/gimpcontainerview.[ch]: added
      	GimpContainerViewPrivate struct (which is currently puclic :-) and
      	removed all members from the GimpContainerView struct. Added
      	accessors for "context", "container" and "preview_size /
      	preview_border_width". Added macro to get the private struct
      	(*not* via G_TYPE_INSTANCE_GET_PRIVATE because that's unavailable
      	for interfaces).
      
      	* app/widgets/gimpbrushfactoryview.c
      	* app/widgets/gimpbufferview.c
      	* app/widgets/gimpchanneltreeview.c
      	* app/widgets/gimpcontainerbox.c
      	* app/widgets/gimpcontainereditor.c
      	* app/widgets/gimpcontainergridview.c
      	* app/widgets/gimpcontainerpopup.c
      	* app/widgets/gimpcontainertreeview-dnd.c
      	* app/widgets/gimpcontainertreeview.c
      	* app/widgets/gimpdatafactoryview.c
      	* app/widgets/gimpdocumentview.c
      	* app/widgets/gimpfontview.c
      	* app/widgets/gimpimageview.c
      	* app/widgets/gimpitemtreeview.c
      	* app/widgets/gimplayertreeview.c
      	* app/widgets/gimpsessioninfo.c
      	* app/widgets/gimptemplateview.c
      	* app/widgets/gimptoolview.c
      	* app/actions/brushes-actions.c
      	* app/actions/buffers-actions.c
      	* app/actions/dockable-actions.c
      	* app/actions/dockable-commands.c
      	* app/actions/documents-actions.c
      	* app/actions/fonts-actions.c
      	* app/actions/gradients-actions.c
      	* app/actions/gradients-commands.c
      	* app/actions/images-actions.c
      	* app/actions/palettes-actions.c
      	* app/actions/palettes-commands.c
      	* app/actions/patterns-actions.c
      	* app/actions/templates-actions.c
      	* app/actions/tools-actions.c
      	* app/actions/tools-commands.c: changed accordingly.
      3adc0816
    • Michael Natterer's avatar
      Started making the toolbox configurable. Addresses bug #105764. Not · da0de087
      Michael Natterer authored
      2004-05-10  Michael Natterer  <mitch@gimp.org>
      
      	Started making the toolbox configurable.
      	Addresses bug #105764. Not finished yet.
      
      	* app/core/gimptoolinfo.[ch]: renamed "in_toolbox" to "visible"
      	and made it a GObject property.
      
      	* app/tools/gimp-tools.[ch]: added new function
      	gimp_tools_get_default_order() which returns a GList of tool
      	identifiers.
      
      	* app/actions/tools-actions.c
      	* app/actions/tools-commands.[ch]: added actions & callbacks for
      	toggling the "visible" boolean and for resetting all tools.
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimptoolview.[ch]: new widget which allows to
      	toggle a tool's visibility and to reorder the tools.
      
      	* app/widgets/gimptoolbox.[ch]: removed member "GtkWidget *trash"
      	and pack all tool buttons into the same wrap box. Connect to
      	"reoder" of the tool container and to "notify::visible" of all
      	tool infos and update the toolbox accordingly.
      
      	* app/gui/dialogs-constructors.c: create a GimpToolView for the
      	tools list/grid.
      
      	* app/menus/menus.c: register a <Tools> menu for the dialog above.
      
      	* menus/Makefile.am
      	* menus/tools-menu.xml: added the menu.
      da0de087