1. 30 Apr, 2004 2 commits
    • Sven Neumann's avatar
      added casts to please the compiler. · 8766f89e
      Sven Neumann authored
      2004-04-30  Sven Neumann  <sven@gimp.org>
      	* app/gui/tool-options-menu.c: added casts to please the compiler.
    • Michael Natterer's avatar
      added signal "update" which is G_SIGNAL_RUN_LAST, so handlers can hook in · 7d7ef188
      Michael Natterer authored
      2004-04-30  Michael Natterer  <mitch@gimp.org>
      	* app/widgets/gimpuimanager.[ch]: added signal "update" which
      	is G_SIGNAL_RUN_LAST, so handlers can hook in before and after
      	the default implementation. Update the action groups
      	in the default implementations.
      	(gimp_ui_manager_ui_get): make sure we always return a widget
      	by calling gtk_ui_manager_ensure_update().
      	* app/widgets/gimpdockable.c (gimp_dockable_show_menu): make
      	sure the dockable menu is loaded before trying to access its
      	Resurrected the dynamic tool options menus:
      	* app/actions/tool-options-actions.c: dynamically destroy/create
      	actions for the tool options' presets.
      	* app/actions/tool-options-commands.[ch]: all callbacks are
      	GimpEnumAction::selected() callbacks now.
      	* app/gui/tool-options-menu.[ch]: connect and connect_after to
      	GimpUIManager::update(). Remove the old preset menu items
      	in the former callback, create the new ones in the latter.
      	Removed the last item factory entries.
      	* app/gui/menus.c
      	* app/widgets/gimptooloptionseditor.c: changed accordingly.
  2. 29 Apr, 2004 1 commit
    • Michael Natterer's avatar
      Switch from GtkItemFactory to GtkUIManager. The migration is almost · 46542801
      Michael Natterer authored
      2004-04-29  Michael Natterer  <mitch@gimp.org>
      	Switch from GtkItemFactory to GtkUIManager. The migration is
      	almost complete, still stuff missing/incomplete, definitely added
      	a bunch of new bugs...
      	* app/actions/*-commands.[ch]: converted all callback from
      	GtkItemFactory callbacks to GtkAction callbacks.
      	* app/actions/debug-actions.c
      	* app/actions/gradient-editor-actions.c
      	* app/actions/help-actions.c
      	* app/actions/plug-in-actions.c
      	* app/actions/qmask-actions.c
      	* app/actions/tool-options-actions.c: various fixes.
      	* app/display/gimpdisplay.[ch]
      	* app/display/gimpdisplayshell-appearance.[ch]
      	* app/display/gimpdisplayshell-callbacks.c
      	* app/display/gimpdisplayshell.[ch]: move everything from
      	GtkItemFactory to GtkUIManager.
      	* app/gui/dialogs.[ch]: added new function dialogs_get_toolbox().
      	Needed because the action callbacks don't have a widget parameter
      	and sometimes we need a parent window for showing dialogs.
      	* app/gui/Makefile.am
      	* app/gui/brushes-menu.[ch]
      	* app/gui/buffers-menu.[ch]
      	* app/gui/channels-menu.[ch]
      	* app/gui/colormap-editor-menu.[ch]
      	* app/gui/dialogs-menu.[ch]
      	* app/gui/documents-menu.[ch]
      	* app/gui/error-console-menu.[ch]
      	* app/gui/fonts-menu.[ch]
      	* app/gui/gradient-editor-menu.[ch]
      	* app/gui/gradients-menu.[ch]
      	* app/gui/images-menu.[ch]
      	* app/gui/layers-menu.[ch]
      	* app/gui/palette-editor-menu.[ch]
      	* app/gui/palettes-menu.[ch]
      	* app/gui/patterns-menu.[ch]
      	* app/gui/qmask-menu.[ch]
      	* app/gui/templates-menu.[ch]
      	* app/gui/vectors-menu.[ch]: removed these files.
      	* app/gui/gui.c: create a global UI manager for the image popup
      	menu and the toolbox menubar.
      	* app/gui/menus.[ch]: removed all GtkItemFactory code.
      	* app/gui/image-menu.[ch]
      	* app/gui/toolbox-menu.[ch]: removed everything except the trivial
      	* app/gui/file-open-menu.c
      	* app/gui/file-save-menu.c
      	* app/gui/tool-options-menu.c: don't use the macros from menus.h
      	any more, they are gone.
      	* app/gui/gui-vtable.c
      	* app/gui/plug-in-menus.[ch]: create/destroy the dynamic plug-in
      	menu entries.
      	* app/tools/gimpimagemaptool.c: s/gimp_item_factory_update/
      	* app/widgets/gimpuimanager.[ch]: added API to get an action
      	group by name.
      	* app/widgets/gimpmenufactory.c: don't choke on the item_factory
      	entries being NULL.
      	* app/widgets/gimpactiongroup.c: make sure booleans set using
      	g_object_set() only have TRUE or FALSE values.
      	* app/widgets/gimpcolormapeditor.c
      	* app/widgets/gimpcomponenteditor.c
      	* app/widgets/gimpcontainereditor.[ch]
      	* app/widgets/gimpcontainergridview.c
      	* app/widgets/gimpcontainertreeview.c
      	* app/widgets/gimpdockable.[ch]
      	* app/widgets/gimpdocked.[ch]
      	* app/widgets/gimpeditor.[ch]
      	* app/widgets/gimperrorconsole.c
      	* app/widgets/gimpgradienteditor.c
      	* app/widgets/gimpitemtreeview.c
      	* app/widgets/gimppaletteeditor.c
      	* app/widgets/gimptoolbox.c
      	* app/widgets/gimptooloptionseditor.c: removed all GtkItemFactory
      	code and enable the #if 0'ed UI manager stuff.
      	* menus/gradient-editor-menu.xml: fixed typos.
      	* menus/image-menu.xml: duplicate everything so we have both
      	an image menubar and an image popup menu. Badly cries for an
      	XSL processor.
      	* menus/toolbox-menu.xml: added an "Extensions" placeholder.
  3. 20 Apr, 2004 1 commit
    • Michael Natterer's avatar
      removed... · 661f6dde
      Michael Natterer authored
      2004-04-20  Michael Natterer  <mitch@gimp.org>
      	* app/gui/*-commands.[ch]: removed...
      	* app/actions/*-commands.[ch]: ...and added here.
      	* app/gui/Makefile.am
      	* app/gui/*-menu.c
      	* app/gui/dialogs-constructors.c
      	* app/gui/gui.c
      	* app/gui/menus.c
      	* app/actions/Makefile.am
      	* app/actions/*-actions.c: changed accordingly.
      	* app/actions/plug-in-actions.[ch]
      	* app/actions/tools-actions.[ch]: new files.
      	* app/Makefile.am: had to add more -u evilness because gui/
      	and actions/ have cyclic dependencies.
      	* menus/image-menu.xml: added some more items.
  4. 11 Mar, 2004 1 commit
  5. 27 Feb, 2004 1 commit
    • Michael Natterer's avatar
      app/widgets/Makefile.am app/widgets/widgets-types.h new widget swallowing · 527aa849
      Michael Natterer authored
      2004-02-27  Michael Natterer  <mitch@gimp.org>
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpfiledialog.[ch]: new widget swallowing most
      	of file-dialog-utils.[ch]'s functionality.
      	* app/widgets/widgets-types.h: added "gpointer callback_data" to
      	GimpItemFactorySetupFunc so the setup_funcs can create items in
      	the same context as the item factory's default items.
      	* app/widgets/gimpmenufactory.c (gimp_menu_factory_menu_new):
      	pass "callback_data" to setup_func().
      	* app/gui/file-open-menu.[ch]
      	* app/gui/file-save-menu.[ch]: use the passed callback_data
      	when creating the menus and attach the file_proc to the
      	menu items using g_object_set_data().
      	* app/gui/file-commands.[ch]: merged separate file type callbacks
      	for open and save dialogs into one callback which simply
      	calls gimp_file_dialog_set_file_proc().
      	* app/gui/file-dialog-utils.[ch]: removed file_dialog_new()
      	and file_dialog_set_proc().
      	* app/gui/file-open-dialog.[ch]
      	* app/gui/file-save-dialog.[ch]: use the new widget and removed
      	global variables except the dialog pointer itself.
      	* app/gui/image-menu.[ch]
      	* app/gui/tool-options-menu.[ch]
      	* app/gui/toolbox-menu.[ch]: changed accordingly.
  6. 08 Jan, 2004 1 commit
    • Michael Natterer's avatar
      app/gui/layers-menu.c app/gui/patterns-menu.c app/gui/tool-options-menu.c · 36c5fb0a
      Michael Natterer authored
      2004-01-08  Michael Natterer  <mitch@gimp.org>
      	* app/gui/layers-menu.c
      	* app/gui/patterns-menu.c
      	* app/gui/tool-options-menu.c
      	* plug-ins/script-fu/scripts/asc2img.scm: added the last missing
      	menu mnemonics. Sorry for the string change but it's IMHO better
      	to un-fuzzy these 14 strings now than to carry them around during
      	the whole 2.0.x cycle. Finally fixes bug #106991.
      	* plug-ins/script-fu/scripts/asc2img.scm: changed "ASCII to Image
      	Layer" to "ASCII to Layer". We never use the term "Image Layer".
  7. 14 Nov, 2003 1 commit
    • Michael Natterer's avatar
      libgimpwidgets/gimpquerybox.c configure the labels in the message dialog · 6eb77294
      Michael Natterer authored
      2003-11-14  Michael Natterer  <mitch@gimp.org>
      	* libgimpwidgets/gimpquerybox.c
      	* app/widgets/gimpwidgets-utils.c: configure the labels in the
      	message dialog and the query boxes to do automatic word wrapping
      	to be HIG compliant.
      	* app/app_procs.c
      	* app/batch.c
      	* app/config/gimpconfig-deserialize.c
      	* app/config/gimpconfig-path.c
      	* app/config/gimpconfig-utils.c
      	* app/config/gimpconfigwriter.c
      	* app/config/gimpscanner.c
      	* app/core/gimpbrush.c
      	* app/core/gimpbrushgenerated.c
      	* app/core/gimpbrushpipe.c
      	* app/core/gimpdatafactory.c
      	* app/core/gimpgradient.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage.c
      	* app/core/gimpimagefile.c
      	* app/core/gimplayer-floating-sel.c
      	* app/core/gimppalette.c
      	* app/core/gimppattern.c
      	* app/core/gimpselection.c
      	* app/display/gimpdisplayshell.c
      	* app/file/file-utils.c
      	* app/gui/brush-select.c
      	* app/gui/dialogs-commands.c
      	* app/gui/drawable-commands.c
      	* app/gui/edit-commands.c
      	* app/gui/file-commands.c
      	* app/gui/file-new-dialog.c
      	* app/gui/font-select.c
      	* app/gui/gradient-select.c
      	* app/gui/gui.c
      	* app/gui/image-commands.c
      	* app/gui/layers-commands.c
      	* app/gui/palette-select.c
      	* app/gui/palettes-commands.c
      	* app/gui/pattern-select.c
      	* app/gui/preferences-dialog.c
      	* app/gui/select-commands.c
      	* app/gui/stroke-dialog.c
      	* app/gui/tool-options-menu.c
      	* app/gui/vectors-commands.c
      	* app/gui/view-commands.c
      	* app/plug-in/plug-in-message.c
      	* app/plug-in/plug-in.c
      	* app/plug-in/plug-ins.c
      	* app/text/gimptextlayer-xcf.c
      	* app/text/gimptextlayer.c
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimphuesaturationtool.c
      	* app/tools/gimplevelstool.c
      	* app/tools/gimptransformtool.c
      	* app/vectors/gimpvectors-export.c
      	* app/widgets/gimpdatafactoryview.c
      	* app/widgets/gimphelp.c
      	* app/widgets/gimptemplateview.c
      	* app/widgets/gimptooloptionseditor.c
      	* app/xcf/xcf.c
      	* tools/pdbgen/pdb/image.pdb: removed explicit newlines from
      	messages. Reduced number of translatable strings by making many
      	file error messages the same. Quote single words and filenames
      	with 'foo', not "foo". Replaced some more "drawable" by "layer".
      	General message cleanup and consistency check.
      	* app/pdb/image_cmds.c: regenerated.
  8. 08 Nov, 2003 1 commit
    • Michael Natterer's avatar
      remember the "create_tearoff" passed to gimp_item_factory_new() in the · c947f0b2
      Michael Natterer authored
      2003-11-08  Michael Natterer  <mitch@gimp.org>
      	* app/widgets/gimpitemfactory.[ch]: remember the "create_tearoff"
      	passed to gimp_item_factory_new() in the GimpItemFactory struct
      	and removed "create_tearoff" from the create_item functions
      	(it makes no sense to pass this per create_item).
      	* app/gui/file-open-menu.c
      	* app/gui/file-save-menu.c
      	* app/gui/image-menu.c
      	* app/gui/menus.c
      	* app/gui/plug-in-menus.c
      	* app/gui/tool-options-menu.c: changed accordingly.
      	* app/display/gimpdisplayshell.c (gimp_display_shell_new): create
      	the menu bar without tearoff entries. It is very confusing to have
      	both the popup menu (which is global and works on the active
      	display) and the menu bar submenus (which are specific to this
      	display) be torn off at the same time.
  9. 05 Oct, 2003 1 commit
    • Sven Neumann's avatar
      removed unused variables. · ee770239
      Sven Neumann authored
      2003-10-05  Sven Neumann  <sven@gimp.org>
      	* app/gui/tool-options-menu.c (tool_options_menu_update): removed
      	unused variables.
  10. 30 Sep, 2003 1 commit
    • Michael Natterer's avatar
      added a "Rename Saved Options" submenu and factored on-the-fly submenu · 36c83350
      Michael Natterer authored
      2003-09-30  Michael Natterer  <mitch@gimp.org>
      	* app/gui/tool-options-menu.c: added a "Rename Saved Options"
      	submenu and factored on-the-fly submenu creation out to a utility
      	* app/gui/tool-options-commands.[ch]: added rename callback.
      	* app/widgets/gimphelp-ids.h: added GIMP_HELP_TOOL_OPTIONS_RENAME.
      	* app/widgets/gimptooloptionseditor.c
      	(gimp_tool_options_editor_menu_popup): pass "button = 0" to
      	gtk_menu_popup() because we show the menu on button_release, not
      	on button_press.
  11. 29 Sep, 2003 2 commits
    • Michael Natterer's avatar
      new function for stuff which needs to be done once, not on every · dedbe33b
      Michael Natterer authored
      2003-09-30  Michael Natterer  <mitch@gimp.org>
      	* app/gui/tool-options-menu.[ch] (tool_options_menu_setup): new
      	function for stuff which needs to be done once, not on every
      	tool_options_menu_update(). Cleanup.
      	* app/gui/menus.c: register it as setup_func of <ToolOptions>.
      	* app/gui/tool-options-commands.c: removed the "Reset"
      	implementations and activate GimpToolOptionsEditor's buttons
      	* app/widgets/gimphelp-ids.h: added GIMP_HELP_TOOL_OPTIONS_DELETE.
      	* app/widgets/gimptooloptionseditor.[ch]: moved "Reset"
      	implementations to this file. Added "Delete" button. Pop up the
      	"Save", "Restore" and "Delete" submenus of the <ToolOptions>
      	item_factory when the resp. buttons are clicked.
    • Michael Natterer's avatar
      added a GimpContainer of tool options presets. · d1ba8704
      Michael Natterer authored
      2003-09-29  Michael Natterer  <mitch@gimp.org>
      	* app/core/gimptoolinfo.[ch]: added a GimpContainer of tool
      	options presets.
      	* app/core/gimptooloptions.[ch] (gimp_tool_options_set_property):
      	silently accept setting the *same* tool_info again.
      	(gimp_tool_options_build_filename): is public now.
      	* app/tools/gimp-tools.c (gimp_tools_restore,save): load and save
      	the presets container.
      	* app/gui/tool-options-dialog.[ch]: removed.
      	* app/gui/tool-options-commands.[ch]
      	* app/gui/tool-options-menu.[ch]: new files implementing a menu
      	for the new GimpToolOptionsEditor widget. Has submenus for saving,
      	loading, and deleting tool options to/from the
      	tool_info->options_presets container.
      	* app/gui/Makefile.am
      	* app/gui/dialogs-constructors.c
      	* app/gui/menus.c: changed accordingly.
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimptooloptionseditor.[ch]: the tool options dialog
      	as proper widget. The "Load" and "Save" buttons still do the same
      	stuff as before. Will make them use the new presets since making
      	them do something useful was the reason for this whole change.
      	* app/widgets/gimphelp-ids.h: added missing help IDs for the tool
      	options dialog.