1. 02 May, 2004 1 commit
    • Michael Natterer's avatar
      added help IDs to all actions representing the toplevel popups and menus · 9377b26e
      Michael Natterer authored
      2004-05-02  Michael Natterer  <mitch@gimp.org>
      	* app/actions/*-actions.c: added help IDs to all actions
      	representing the toplevel popups and menus (as fallbacks for the
      	still-to-be-written help system intrgration of GimpUIManager).
      	* app/display/gimpdisplayshell.c (gimp_display_shell_new): removed
      	call to gtk_ui_manager_ensure_update() because that's done by
      	gimp_ui_manager_ui_get() now.
      	* app/widgets/gimpmenufactory.[ch]: removed API to register and
      	create item factories.
      	* app/gui/menus.c: changed accordingly.
      	* app/gui/dialogs.c
      	* app/actions/plug-in-commands.c
      	* app/gui/file-dialog-utils.c
      	* app/gui/file-save-dialog.c
      	* app/widgets/gimpdataeditor.c
      	* app/widgets/gimpdockable.c
      	* app/widgets/gimpdockbook.[ch]
      	* app/widgets/gimpimagedock.c
      	* app/widgets/gimpitemtreeview.c: removed leftover item factory
      	* app/widgets/widgets-types.h: removed item factory typedefs...
      	* app/widgets/gimpitemfactory.h: ...and added them here.
      	* app/widgets/gimpactiongroup.[ch]: added new function
      	* app/actions/plug-in-actions.c: use it here instead of adding
      	the actions manually.
      	* app/widgets/gimptoolbox.c: ported the code which dynamically
      	updates the tool button tooltips on accelerator changes to
      	GtkAction. Disabled the whole stuff because GTK+ lacks
  2. 30 Apr, 2004 3 commits
    • Pedro Gimeno's avatar
      Cleanups. (gimp_rect_select_tool_coords_to_integer): Undo my bogus fix for · c8d982c1
      Pedro Gimeno authored
      2004-04-30  Pedro Gimeno  <pggimeno@wanadoo.es>
      	* app/tools/gimprectselecttool.c: Cleanups.
      	(gimp_rect_select_tool_coords_to_integer): Undo my bogus fix for
      	bug #138103, which led to bug #140649.
      	* app/pdb/procedural_db.c (procedural_db_init_procs): Add missing
      	compat procs: gimp_channel_ops_duplicate, gimp_channel_ops_offset.
    • 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.
  3. 29 Apr, 2004 5 commits
    • Simon Budig's avatar
      when glibc is used, call mallopt, so that memory chunks >= 4k (= 64*64 · 656795fa
      Simon Budig authored
      2004-04-29  Simon Budig  <simon@gimp.org>
      	* app/main.c: when glibc is used, call mallopt, so that memory
      	chunks >= 4k (= 64*64 pixels, 1bpp - the smallest full tile)
      	get allocated via mmap. This ensures that after closing an image
      	the memory allocated for image data gets returned to the system.
      	Thanks to Phil Blundell <pb@nexus.co.uk> for bringing mallopt
      	to my attention.
      	Please watch closely for performance problems.
    • Michael Natterer's avatar
      app/actions/Makefile.am app/actions/file-open-actions.[ch] actions for the · 0e1af3ee
      Michael Natterer authored
      2004-04-29  Michael Natterer  <mitch@gimp.org>
      	* app/actions/Makefile.am
      	* app/actions/file-open-actions.[ch]
      	* app/actions/file-save-actions.[ch]: actions for the <Load> and
      	<Save> menus...
      	* menus/Makefile.am
      	* menus/file-open-menu.xml
      	* menus/file-save-menu.xml: ...and the menus.
      	* app/gui/file-open-menu.[ch]
      	* app/gui/file-save-menu.[ch]: ported to UI Manager.
      	* app/widgets/gimpfiledialog.[ch]: ditto.
      	* app/actions/actions.c
      	* app/gui/menus.c
      	* app/gui/file-open-dialog.c
      	* app/gui/file-save-dialog.c: changed accordingly.
      	* app/widgets/gimpuimanager.c: removed debugging code which
      	automatically loaded all registered menus. They are now loaded on
    • Michael Natterer's avatar
      new function which does the opposite of gimp_strip_uline(). · d79ed2a0
      Michael Natterer authored
      2004-04-29  Michael Natterer  <mitch@gimp.org>
      	* libgimpbase/gimputils.[ch] (gimp_escape_uline): new function
      	which does the opposite of gimp_strip_uline().
      	* app/actions/file-actions.c (file_actions_last_opened_update):
      	escape ulines in filenames so they don't end up as mnemonics.
      	Spotted by Pedro Gimeno.
    • Michael Natterer's avatar
      stripped the menu paths from the "menu_path". Will be renamed to · 2a84015e
      Michael Natterer authored
      2004-04-29  Michael Natterer  <mitch@gimp.org>
      	* app/tools/gimp*tool.c (gimp_*_tool_register): stripped the menu
      	paths from the "menu_path". Will be renamed to "action_name" or
      	something soon...
      	* plug-ins/dbbrowser/dbbrowser.c
      	* plug-ins/common/plugindetails.c
      	* plug-ins/common/uniteditor.c: register under the new
      	"Extensions" placeholder.
    • 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.
  4. 27 Apr, 2004 4 commits
    • Michael Natterer's avatar
      app/widgets/Makefile.am app/widgets/widgets-types.h new GtkAction subclass · aae726ee
      Michael Natterer authored
      2004-04-27  Michael Natterer  <mitch@gimp.org>
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimppluginaction.[ch]: new GtkAction subclass which
      	remembers the PlugInProcDef.
      	* app/widgets/gimpactiongroup.[ch]: added "gpointer user_data" to
      	the GimpActionGroup struct and to gimp_action_group_new(). Removed
      	the user_data parameter from gimp_action_group_add_*_actions().
      	* app/widgets/gimpactionfactory.[ch]: changed accordingly.
      	* app/actions/*-actions.[ch]: removed user_data from all setup_funcs.
      	* app/actions/plug-in-actions.c: use a GimpPlugInAction and
      	finally use the right user_data for the callback so plug-in
      	callbacks have a proper context.
      	* app/gui/plug-in-menus.[ch]: renamed plug_in_menus_create2() to
      	* app/gui/image-menu.c
      	* app/gui/toolbox-menu.c: changed accordingly.
    • Michael Natterer's avatar
      removed "translation-domain" property and simply use gettext(). Plug-In · a5130581
      Michael Natterer authored
      2004-04-27  Michael Natterer  <mitch@gimp.org>
      	* app/widgets/gimpactiongroup.[ch]: removed "translation-domain"
      	property and simply use gettext(). Plug-In domains are handled
      	by plug-in-actions.c
      	The following change finally starts breaking the old menu system
      	while the new one is not fully in place yet. Have fun:
      	* menus/image-menu.xml: added several <placeholder>s for plug-ins
      	to register their menu entries in the middle of already existing
      	* app/gui/menus.c
      	* plug-ins/common/mail.c
      	* plug-ins/print/print.c
      	* plug-ins/script-fu/scripts/copy-visible.scm: use the new
      	placeholders to register menu entries.
    • Michael Natterer's avatar
      Correctly translated & sorted plug-in actions & menu entries: · 4e8105c1
      Michael Natterer authored
      2004-04-27  Michael Natterer  <mitch@gimp.org>
      	Correctly translated & sorted plug-in actions & menu entries:
      	* app/widgets/gimpuimanager.[ch]: added a "gchar *name" property
      	and a hash table which keeps all created UI managers (similar to
      	GimpActionGroup's hash table). Added function
      	gimp_ui_managers_from_name() which returns a list of all managers
      	with the given name.
      	* app/widgets/gimpmenufactory.c: register a name per UI manager
      	and pass the name to gimp_ui_manager_new().
      	* app/actions/plug-in-actions.c: added code which correctly
      	translates the created plug-in actions and also creates translated
      	menu actions for the plug-in's menu_path elements.
      	* app/gui/plug-in-menus.[ch]: sort the plug-ins' menu entries
      	using a GTree. For each entry, recursivlely create submenus
      	from the dynamic menu actions created above before creating
      	the plug-in's menu entry itself.
      	* app/gui/image-menu.c (image_menu_setup2)
      	* app/gui/toolbox-menu.c (toolbox_menu_setup2): call
      	* app/gui/gui-vtable.c (gui_menus_create_entry)
      	(gui_menus_delete_entry): added some uglyness which maps old <Prefix>
      	menu identifiers to new-style UI manager plus ui_path tuples and
      	call plug_in_menus_add,remove_proc() accordingly.
      	* menus/image-menu.xml
      	* menus/toolbox-menu.xml: added name="Foo" attributes to all menus
      	so plug-in entries find their place.
    • Michael Natterer's avatar
      call actions_init() (gui_exit_after_callback): call actions_exit(). · 11309f8e
      Michael Natterer authored
      2004-04-27  Michael Natterer  <mitch@gimp.org>
      	* app/gui/gui.c (gui_restore_callback): call actions_init()
      	(gui_exit_after_callback): call actions_exit().
      	* app/gui/menus.c (menus_init)
      	(menu_exit): don't call them here.
  5. 26 Apr, 2004 2 commits
    • Michael Natterer's avatar
      added GimpUIManagerSetupFunc typedef. · bb0f359a
      Michael Natterer authored
      2004-04-26  Michael Natterer  <mitch@gimp.org>
      	* app/widgets/widgets-types.h: added GimpUIManagerSetupFunc typedef.
      	* app/widgets/gimpuimanager.[ch]: added the setup_func to the
      	GimpUIManagerUIEntry struct and to gimp_ui_manager_ui_register().
      	Call the setup_func after creating the UI. Replaced the term
      	"identifier" by "ui_path".
      	* app/widgets/gimpmenufactory.c: ditto.
      	* app/gui/menus.c (menus_init): register the new setup_funcs below.
      	* app/gui/menus.[ch] (menus_open_recent_add)
      	* app/gui/image-menu.[ch] (image_menu_setup2)
      	* app/gui/toolbox-menu.[ch] (toolbox_menu_setup2): new setup_funcs
      	which add the "Open Recent" menu items.
      	* app/actions/file-actions.c: removed "file-open-recent-empty"
      	action because it's not needed.
      	* menus/image-menu.xml
      	* menus/toolbox-menu.xml: removed "file-open-recent-empty" menu
      	items and added <placeholder>s for the "Open Recent" menu items.
    • Michael Natterer's avatar
      removed "locale_domain" and "help_domain" parameters from · b69ddb39
      Michael Natterer authored
      2004-04-26  Michael Natterer  <mitch@gimp.org>
      	* app/core/gimp.[ch]: removed "locale_domain" and "help_domain"
      	parameters from GimpMenusCreateFunc.
      	* app/plug-in/plug-ins.c (plug_ins_temp_proc_def_add)
      	* app/actions/plug-in-actions.[ch] (plug_in_actions_add_proc_def):
      	changed accordingly.
      	* app/widgets/gimpactiongroup.[ch]: remember all created action
      	groups is a hash table in GimpActionGroupClass.  Added
      	gimp_action_groups_from_name() which returns a GList of all groups
      	with the given name.
      	* app/actions/plug-in-actions.[ch] (plug_in_actions_setup):
      	removed the tree sorting code. Actions don't need to be ordered
      	(plug_in_actions_update): copied & ported plug_in_menus_update().
      	* app/gui/gui-vtable.c (gui_menus_create,delete_entry):
      	dynamically add/remove plug-in actions in all "plug-in" action
  6. 25 Apr, 2004 1 commit
  7. 22 Apr, 2004 4 commits
    • Sven Neumann's avatar
      app/gui/dialogs-constructors.c silent the compiler. · 1afe7960
      Sven Neumann authored
      2004-04-22  Sven Neumann  <sven@gimp.org>
      	* app/gui/dialogs-constructors.c
      	* app/gui/preferences-dialog.c: silent the compiler.
      	* plug-ins/winicon/icodialog.c: simplified by using a
    • Michael Natterer's avatar
      remember and ref the created widgets. Added gimp_ui_manager_ui_popup() · 10718425
      Michael Natterer authored
      2004-04-22  Michael Natterer  <mitch@gimp.org>
      	* app/widgets/gimpuimanager.[ch]: remember and ref the created
      	widgets.  Added gimp_ui_manager_ui_popup() which pops up a GtkMenu
      	with a custom GimpMenuPositionFunc and a GtkDestroyNotify which is
      	called on popdown.
      	* app/widgets/gimpmenufactory.c (gimp_menu_factory_finalize):
      	don't forget to free the list of managed UIs.
      	* app/widgets/gimpdockable.[ch]
      	* app/widgets/gimpdockbook.[ch]
      	* app/widgets/gimpdocked.[ch]
      	* app/widgets/gimpeditor.[ch]: added GimpUIManager stuff parallel
      	to the to-be-removed GtkItemFactory stuff.
      	* app/widgets/gimpcolormapeditor.c
      	* app/widgets/gimpcomponenteditor.c
      	* app/widgets/gimpcontainereditor.c
      	* app/widgets/gimpcontainergridview.c
      	* app/widgets/gimpcontainertreeview.c
      	* app/widgets/gimperrorconsole.c
      	* app/widgets/gimpgradienteditor.c
      	* app/widgets/gimpitemtreeview.c
      	* app/widgets/gimppaletteeditor.c
      	* app/widgets/gimptooloptionseditor.c: changed accordingly and added
      	#if 0'ed code which actually uses all the UI managers.
      	* app/display/gimpdisplay.c
      	* app/display/gimpdisplayshell.c
      	* app/gui/gui-vtable.c: disabled some gimp_ui_manager_update()
      	calls because they were invoking toggle and radio callbacks
      	which still have the wrong signature.
    • Michael Natterer's avatar
      fixed some typos in the UI Manager registration code. · 1f7a5870
      Michael Natterer authored
      2004-04-22  Michael Natterer  <mitch@gimp.org>
      	* app/gui/menus.c (menus_init): fixed some typos in the UI Manager
      	registration code.
    • Michael Natterer's avatar
      implemented gimp_action_group_set_action_color() and · 42f79826
      Michael Natterer authored
      2004-04-22  Michael Natterer  <mitch@gimp.org>
      	* app/widgets/gimpactiongroup.[ch]: implemented
      	gimp_action_group_set_action_color() and
      	* app/actions/*-actions.c: added stock IDs to all actions which
      	represent toplevel popup menus. Fixed typos.
      	* menus/brushes-menu.xml
      	* menus/colormap-editor-menu.xml
      	* menus/dockable-menu.xml
      	* menus/gradients-menu.xml
      	* menus/patterns-menu.xml
      	* menus/toolbox-menu.xml: fixed typos.
  8. 21 Apr, 2004 3 commits
    • 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.
    • Michael Natterer's avatar
      forgot to register the "patterns" actions. · 2c601c7d
      Michael Natterer authored
      2004-04-21  Michael Natterer  <mitch@gimp.org>
      	* app/actions/actions.c: forgot to register the "patterns" actions.
      	* app/actions/*-actions.c: added actions representing the toplevel
      	menus (popups and menubars). Fixed some typos.
      	* menus/*-menu.xml: added action="foo" attributes to all toplevel
      	menus. Fixed typos here too.
      	* menus/gtkuimanager.dtd: fixed possible attributes.
    • Michael Natterer's avatar
      app/actions/qmask-actions.c prepared qmask_actions_update() and the qmask · 62dcfaec
      Michael Natterer authored
      2004-04-21  Michael Natterer  <mitch@gimp.org>
      	* app/actions/qmask-actions.c
      	* app/actions/qmask-commands.c: prepared qmask_actions_update()
      	and the qmask callbacks to be merged into the image ui manager.
      	* app/actions/dialogs-actions.c
      	* app/actions/edit-actions.c
      	* app/actions/file-actions.c
      	* app/actions/image-actions.c
      	* app/actions/layers-actions.c
      	* app/actions/plug-in-actions.c
      	* app/actions/tools-actions.c
      	* app/actions/view-actions.c: fixed lots of typos and buglets
      	spotted in my first test run.
      	* app/gui/menus.c: register the needed action groups with the
      	<Image> menu.
      	* app/tools/gimp-tools.c
      	* app/tools/gimpdodgeburntool.[ch]
      	* app/tools/gimppaintoptions-gui.c: s/dodgeburn/dodge_burn/g.
      	* app/widgets/gimpactionfactory.c
      	* app/widgets/gimpmenufactory.[ch]: s/G_GNUC_FUNCTION/G_STRFUNC/g,
      	updated copyright header.
      	* menus/image-menu.xml: fixed typos and added the "Filters"
  9. 20 Apr, 2004 9 commits
    • Michael Natterer's avatar
      More unused action stuff: · 27a2c8c0
      Michael Natterer authored
      2004-04-21  Michael Natterer  <mitch@gimp.org>
      	More unused action stuff:
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpactionfactory.[ch]: added a simple factory which
      	produces GimpActionGroups.
      	* app/widgets/gimpactiongroup.[ch]: added an "update_func" member
      	to the GimpActionGroup struct. Added it as parameter to
      	gimp_action_group_new(). Added function gimp_action_group_update().
      	* app/widgets/gimpmenufactory.[ch]: added an "action_factory"
      	member and constructor parameter. Added code to create
      	GtkUIManagers from registered action group identifiers.
      	* app/actions/Makefile.am
      	* app/actions/actions.[ch]: new files: create a
      	"global_action_factory" and register all action groups with it.
      	* app/actions/edit-actions.c: s/edit_action_update/edit_actions_update/
      	* app/actions/plug-in-actions.[ch]: added API to add/remove
      	plug-in procedure actions dynamically (unfinished).
      	* app/gui/menus.c (menus_init): call actions_init().
      	(menus_exit): call actions_exit().
    • Sven Neumann's avatar
      removed color cast. Merged from stable branch. · ff06d050
      Sven Neumann authored
      2004-04-20  Sven Neumann  <sven@gimp.org>
      	* tools/pdbgen/pdb/fileops.pdb (file_load_thumbnail): removed
      	color cast. Merged from stable branch.
      	* app/pdb/fileops_cmds.c: regenerated.
    • Sven Neumann's avatar
      libgimpwidgets/Makefile.am libgimpwidgets/gimpwidgets.h · 5766718d
      Sven Neumann authored
      2004-04-20  Sven Neumann  <sven@gimp.org>
      	* libgimpwidgets/Makefile.am
      	* libgimpwidgets/gimpwidgets.h
      	* libgimpwidgets/gimpwidgetstypes.h
      	* libgimpwidgets/gimpintstore.[ch]: added a GimpIntStore, derived
      	from GtkListStore, to be used by GimpIntComboBox and also by the
      	image and drawable menus.
      	* libgimpwidgets/gimpintcombobox.c: use the new GimpIntStore.
      	* app/widgets/gimpenumstore.[ch]: derive from GimpIntStore,
      	removed API that is provided by the parent class.
      	* app/widgets/gimpenumcombobox.[ch]: derive from GimpIntComboBox,
      	removed API that is provided by the parent class.
      	* app/gui/resize-dialog.c
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimplevelstool.c
      	* app/widgets/gimpcolorframe.c
      	* app/widgets/gimphistogrameditor.c
      	* app/widgets/gimppropwidgets.c
      	* app/widgets/gimpstrokeeditor.c: changed accordingly.
    • Sven Neumann's avatar
      app/widgets/gimpenumstore.[ch] let the pixbuf renderer take care of · 8ea259bb
      Sven Neumann authored
      2004-04-20  Sven Neumann  <sven@gimp.org>
      	* app/widgets/gimpenumstore.[ch]
      	* app/widgets/gimpenumcombobox.c: let the pixbuf renderer take care
      	of rendering the pixbuf from the stock_id.
    • Sven Neumann's avatar
      libgimpwidgets/gimpmemsizeentry.c ported to GimpIntComboBox. · a0e845c8
      Sven Neumann authored
      2004-04-20  Sven Neumann  <sven@gimp.org>
      	* libgimpwidgets/gimpmemsizeentry.c
      	* modules/cdisplay_proof.c: ported to GimpIntComboBox.
      	* libgimpwidgets/gimpwidgets.[ch]: declared the gimp option_menu
      	API as deprecated and removed the code here.
      	* libgimpwidgets/Makefile.am
      	* libgimpwidgets/gimpoldwidgets.[ch]: new files with deprecated
      	code, guarded with #ifndef GIMP_DISABLE_DEPRECATED ... #endif.
      	* libgimpwidgets/gimpintcombobox.h: added G_BEGIN_DECLS, G_END_DECLS.
      	* configure.in (CPP_FLAGS): added -DGIMP_DISABLE_DEPRECATED.
      	* app/widgets/gimpwidgets-constructors.c: added a #warning and
      	#undef GIMP_DISABLE_DEPRECATED. The paint mode menu is the last
      	remaining user of gimp_int_option_menu_new().
    • Michael Natterer's avatar
      renamed convert_to_indexed() to convert_dialog_new() and return the · c8efb903
      Michael Natterer authored
      2004-04-20  Michael Natterer  <mitch@gimp.org>
      	* app/gui/convert-dialog.[ch]: renamed convert_to_indexed()
      	to convert_dialog_new() and return the dialog. Removed
      	convert_to_rgb() and convert_to_grayscale().
      	* app/gui/offset-dialog.[ch]: renamed offset_dialog_create()
      	to offset_dialog_new() and return the dialog.
      	* app/Makefile.am
      	* app/actions/drawable-commands.c
      	* app/actions/image-commands.c: changed accordingly.
    • 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.
    • Sven Neumann's avatar
      added new function gimp_paint_mode_menu_set_history(). · 5e3b9ec3
      Sven Neumann authored
      2004-04-20  Sven Neumann  <sven@gimp.org>
      	* app/widgets/gimpwidgets-constructors.[ch]: added new function
      	* app/gui/brush-select.c
      	* app/widgets/gimplayertreeview.c
      	* app/widgets/gimppropwidgets.c: use the new function instead of
      	the deprecated gimp_int_option_menu API.
    • Sven Neumann's avatar
      added more sanity checks. · 8339ba7f
      Sven Neumann authored
      2004-04-20  Sven Neumann  <sven@gimp.org>
      	* app/widgets/gimpenumcombobox.c: added more sanity checks.
      	* libgimpwidgets/gimpintcombobox.[ch]: added another GimpIntComboBox
      	constructor: gimp_int_combo_box_new_array().
      	* plug-ins/Lighting/lighting_ui.c
      	* plug-ins/MapObject/mapobject_ui.c
      	* plug-ins/common/CML_explorer.c: ported to GimpIntComboBox.
  10. 19 Apr, 2004 6 commits
    • Sven Neumann's avatar
      app/widgets/gimpactiongroup.c app/widgets/gimpenumcombobox.c fixed inline · 2e3ac558
      Sven Neumann authored
      2004-04-19  Sven Neumann  <sven@gimp.org>
      	* app/widgets/gimpactiongroup.c
      	* app/widgets/gimpenumcombobox.c
      	* app/widgets/gimpenumstore.c: fixed inline docs.
      	* app/widgets/gimpenumaction.c:	fixed property declaration.
    • Michael Natterer's avatar
      app/gui/colormap-editor-commands.[ch] app/gui/debug-commands.[ch] · a7ffe94b
      Michael Natterer authored
      2004-04-19  Michael Natterer  <mitch@gimp.org>
      	* app/gui/colormap-editor-commands.[ch]
      	* app/gui/debug-commands.[ch]
      	* app/gui/dockable-commands.[ch]
      	* app/gui/error-console-commands.[ch]
      	* app/gui/file-commands.[ch]
      	* app/gui/gradient-editor-commands.[ch]
      	* app/gui/help-commands.[ch]
      	* app/gui/qmask-commands.[ch]
      	* app/gui/tool-options-commands.[ch]: removed "guint action"
      	parameter from all callbacks which don't need it.
    • Sven Neumann's avatar
      menus/Makefile.am added a DTD (basically copied from the GTK+ API docs). · 957015e3
      Sven Neumann authored
      2004-04-19  Sven Neumann  <sven@gimp.org>
      	* menus/Makefile.am
      	* menus/gtkuimanager.dtd: added a DTD (basically copied from the
      	GTK+ API docs). Added a "validate" rule that allows to easily
      	validate the XML files.
      	* menus/*.xml: added a DOCTYPE declaration that refers to the
      	newly added DTD.
      	* app/widgets/gimpenumstore.[ch]:
      	* app/widgets/gimpenumcombobox.c: documented the new API.
    • Michael Natterer's avatar
      app/actions/Makefile.am oops, forgot to commit this one. · a4f6eca8
      Michael Natterer authored
      2004-04-19  Michael Natterer  <mitch@gimp.org>
      	* app/actions/Makefile.am
      	* app/actions/actions-types.h: oops, forgot to commit this one.
    • Michael Natterer's avatar
      More GtkAction stuff (still unused): · 8848558f
      Michael Natterer authored
      2004-04-19  Michael Natterer  <mitch@gimp.org>
      	More GtkAction stuff (still unused):
      	* configure.in: added new directories menus/ and app/actions/
      	* Makefile.am: build menus/
      	* menus/.cvsignore
      	* menus/Makefile.am
      	* menus/*-menu.xml: new files: XML menu descriptions for each menu
      	which is now defined in gui/*-menu.c.
      	* app/widgets/widgets-types.h: some typedefs for GimpActionGroup.
      	* app/widgets/gimpactiongroup.[ch]: added a "Gimp" construct-only
      	property. Added APIs to set actions visible/sensitive/active
      	and an unimplemented stub for setting the action's color.
      	* app/Makefile.am: build actions/ and link libappactions.a
      	* app/actions/.cvsignore
      	* app/actions/Makefile.am
      	* app/actions/*-actions.[ch]: new files: GtkActions for each
      	*-commands.c file in gui/. Ported all "update" functions from the
      	*-menu.c files.
      	(everything completely unused, untested and partly #if 0'ed)
      	* app/core/gimpimage.[ch]: for reasons of (action-) symmetry, added
      	API to raise/lower channels/vectors to top/bottom.
      	* app/gui/channels-commands.[ch]
      	* app/gui/vectors-commands.[ch]: added callbacks for the new
      	to top/bottom functions.
      	* app/gui/Makefile.am
      	* app/gui/dockable-commands.[ch]: new files split out of
      	* app/gui/dialogs-commands.[ch]
      	* app/gui/dialogs-menu.c: changed accordingly.
      	* app/gui/edit-commands.[ch]: added edit_paste_into_cmd_callback()
      	and remove usage of "guint action".
      	* app/gui/image-menu.c: changed accordingly.
      	* app/gui/palette-editor-commands.[ch]: split
      	+palette_editor_new_color_cmd_callback() into separate callbacks
      	for adding from FG and BG.
      	* app/gui/palette-editor-menu.c: changed accordingly.
    • Sven Neumann's avatar
      removed unused includes. · 2921a530
      Sven Neumann authored
      2004-04-19  Sven Neumann  <sven@gimp.org>
      	* app/widgets/gimpdrawabletreeview.c: removed unused includes.
  11. 18 Apr, 2004 2 commits
    • Sven Neumann's avatar
      app/widgets/gimppropwidgets.[ch] replaced · 1d2976f9
      Sven Neumann authored
      2004-04-19  Sven Neumann  <sven@gimp.org>
      	* app/widgets/gimppropwidgets.[ch]
      	* app/gui/preferences-dialog.c: replaced
      	gimp_prop_boolean_option_menu_new() with
    • Sven Neumann's avatar
      avoid unnecessary casts. · e2709b97
      Sven Neumann authored
      2004-04-19  Sven Neumann  <sven@gimp.org>
      	* app/widgets/gimpenumstore.[ch]: avoid unnecessary casts.
      	* app/widgets/gimpenumcombobox.[ch]: added an API that inserts a
      	GtkTreeModelFilter to make items invisible. This is a kludge to
      	workaround bug #135875.
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimplevelstool.c
      	* app/widgets/gimphistogrameditor.c: use the new function to hide
      	histogram channels that are not available with the current