1. 04 Jun, 2005 1 commit
    • Sven Neumann's avatar
      don't include gimpeditor.h. · 2832700c
      Sven Neumann authored
      2005-06-04  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/gimpcontainerview.h: don't include gimpeditor.h.
      
      	* app/widgets/gimpbufferview.c
      	* app/widgets/gimpdocumentview.c
      	* app/widgets/gimpfontview.c
      	* app/widgets/gimpimageview.c: include it here instead.
      2832700c
  2. 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
  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 2 commits
    • 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
    • Michael Natterer's avatar
      app/widgets/gimpchanneltreeview.c app/widgets/gimpcontainerbox.[ch] · 181a581f
      Michael Natterer authored
      2004-05-11  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpchanneltreeview.c
      	* app/widgets/gimpcontainerbox.[ch]
      	* app/widgets/gimpcontainereditor.c
      	* app/widgets/gimpcontainergridview.[ch]
      	* app/widgets/gimpcontainerpopup.c
      	* app/widgets/gimpcontainertreeview.[ch]
      	* 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/gimppatternfactoryview.c
      	* app/widgets/gimptemplateview.c
      	* app/widgets/gimpvectorstreeview.c: code review / cleanup.
      181a581f
  5. 10 May, 2004 1 commit
    • 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
  6. 21 Apr, 2004 1 commit
    • Michael Natterer's avatar
      app/widgets/Makefile.am app/widgets/widgets-types.h new GtkUIManager · 0b8c4b3e
      Michael Natterer authored
      2004-04-21  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpuimanager.[ch]: new GtkUIManager subclass. Adds
      	API to update all action groups and knows which UIs it can create
      	from which XML files.
      
      	* app/widgets/gimpmenufactory.[ch]: register the XML file
      	basenames along with path of their toplevel menus. Create
      	GimpUIManagers instead of GtkUIManagers and register the
      	XML files and menu paths with them.
      
      	* app/gui/menus.c: register all XML files and their toplevel
      	menu paths.
      
      	* app/widgets/gimpeditor.[ch]: also create a GimpUIManager when
      	creating the GtkItemFactory. Added "const gchar *ui_identifier"
      	parameter to gimp_editor_create_menu().
      
      	* app/widgets/gimpcontainereditor.[ch]
      	* app/widgets/gimpdataeditor.[ch]
      	* app/widgets/gimpdatafactoryview.[ch]
      	* app/widgets/gimpitemtreeview.[ch]: added "ui_identifier"
      	parameters to all constructors.
      
      	* app/widgets/gimpbrusheditor.c
      	* app/widgets/gimpbrushfactoryview.c
      	* app/widgets/gimpbufferview.c
      	* app/widgets/gimpcolormapeditor.c
      	* app/widgets/gimpcomponenteditor.c
      	* app/widgets/gimpcontainerpopup.c
      	* app/widgets/gimpdocumentview.c
      	* app/widgets/gimperrorconsole.c
      	* app/widgets/gimpfontview.c
      	* app/widgets/gimpgradienteditor.c
      	* app/widgets/gimpimageview.c
      	* app/widgets/gimppaletteeditor.c
      	* app/widgets/gimppatternfactoryview.c
      	* app/widgets/gimptemplateview.c
      	* app/widgets/gimptooloptionseditor.c
      	* app/gui/dialogs-constructors.c
      	* app/gui/gradient-select.c
      	* app/gui/palette-select.c
      	* app/gui/pattern-select.c: pass UI identifiers to the changed
      	functions above.
      
      	* app/display/gimpdisplayshell.[ch]: added a GimpUIManager for
      	the menubar (menubar creating code still commented out).
      
      	* app/display/gimpdisplay.c
      	* app/gui/gui-vtable.c: update the ui manager.
      0b8c4b3e
  7. 06 Mar, 2004 1 commit
  8. 18 Oct, 2003 1 commit
    • Michael Natterer's avatar
      added gimp_container_freeze() / _thaw() around font list reloading. · 78b61533
      Michael Natterer authored
      2003-10-18  Michael Natterer  <mitch@gimp.org>
      
      	* app/text/gimp-fonts.c (gimp_fonts_load): added
      	gimp_container_freeze() / _thaw() around font list reloading.
      
      	* app/tools/gimp-tools.c (gimp_tools_init): added missing
      	gimp_container_freeze().
      
      	* app/widgets/gimpcontainerview.c: connect to the container's
      	"freeze" and "thaw" signals and empty / refill the view
      	accordingly. Ignore "add", "remove" and "reorder" signals while
      	the container is frozen. Fixes font list sorting after refresh and
      	speeds up refreshing of fonts, brushes, patterns etc.
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpfontview.[ch]: new widget for the font list/grid.
      
      	* app/widgets/gimphelp-ids.h: added GIMP_HELP_FONT_REFRESH.
      
      	* app/gui/dialogs-constructors.c: changed accordingly.
      
      	* app/gui/Makefile.am
      	* app/gui/fonts-commands.[ch]
      	* app/gui/fonts-menu.[ch]: new files: a menu for the font view.
      
      	* app/gui/menus.c (menus_init): register the new <Fonts> menu.
      
      	* app/gui/preferences-dialog.c (prefs_dialog_new): removed the
      	fonts refreshing hack from the "Environment" page.
      78b61533