1. 11 Oct, 2003 1 commit
    • Michael Natterer's avatar
      app/widgets/widgets-types.h added new struct GimpSessionInfoAux which · b136228d
      Michael Natterer authored
      2003-10-11  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpsessioninfo.[ch]: added new struct
      	GimpSessionInfoAux which contains "gchar *name" and "gchar *value".
      	Changed sessionrc "aux-info" format again to be really extendable
      	this time. Also breaks everybody's sessionrc again.
      
      	* app/widgets/gimpimagedock.c
      	* etc/sessionrc: changed accordingly.
      
      	Implemented the stuff suggested in bug #122964. Fixes bug #122964
      	and bug #52206:
      
      	* app/widgets/gimpdataeditor.[ch]: replaced the "Gimp" member by a
      	"GimpDataFactory" and changed gimp_data_editor_construct()
      	accordingly. Implement GimpDockedInterface::set_aux_info() and
      	get_aux_info() and remember the currently edited data across
      	sessions.
      
      	* app/gui/gradient-editor-commands.c
      	* app/gui/gradient-editor-menu.c
      	* app/widgets/gimpbrusheditor.c
      	* app/widgets/gimpgradienteditor.c
      	* app/widgets/gimppaletteeditor.c: changed accordingly.
      
      	* app/widgets/gimpcoloreditor.c: remember the active color
      	selector across sessions.
      b136228d
  2. 10 Oct, 2003 1 commit
    • Michael Natterer's avatar
      app/widgets/Makefile.am app/widgets/widgets-types.h new files implementing · 99746e1d
      Michael Natterer authored
      2003-10-10  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpdocked.[ch]: new files implementing
      	GimpDockedInterface, a GTypeInterface which must be implemented by
      	all widgets which want to be packed into a GimpDockable. Has
      	virtual functions similar to the ones GimpDockable had.
      
      	* app/widgets/gimpdockable.[ch]: removed all virtual functions and
      	all function pointers from the instance struct (also the ones just
      	added in the commit below). Make sure only widgets implementing
      	the GimpDockedIface are added and simply call the child's
      	GimpDocked functions where we used to call our own virtual
      	functions and function pointers.
      
      	* app/widgets/gimpcoloreditor.c
      	* app/widgets/gimpcontainereditor.c
      	* app/widgets/gimpcontainergridview.c
      	* app/widgets/gimpcontainerview.c
      	* app/widgets/gimpeditor.c
      	* app/widgets/gimpimageeditor.c
      	* app/widgets/gimpitemtreeview.c
      	* app/widgets/gimpsessioninfo.c
      	* app/widgets/gimptooloptionseditor.c
      	* app/display/gimpnavigationview.c: implement GimpDockedIface.
      
      	* app/gui/dialogs-constructors.c: removed all that get_preview_func(),
      	set_context_func() etc. cruft since that's done by GimpDockedIface.
      	It's really a file of constructors now.
      
      	* app/gui/dialogs-menu.c: changed accordingly.
      
      	* app/widgets/gimpimagedock.c: forgotten in the commit below.
      99746e1d
  3. 08 Oct, 2003 1 commit
    • Michael Natterer's avatar
      added new pure virtual function GimpDock::setup() which configures a dock · 181a2c48
      Michael Natterer authored
      2003-10-08  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpdock.[ch]: added new pure virtual function
      	GimpDock::setup() which configures a dock like a passed template
      	dock.
      
      	* app/widgets/gimpimagedock.c: implement it and set
      	"show_image_menu" and "auto_follow_active" accordingly.
      
      	* app/widgets/gimpdockable.c (gimp_dockable_detach): call
      	gimp_dock_setup() to configure the new dock like the old one.
      	Removed inclusion if "gimpimagedock.h".
      
      	* app/gui/dialogs-commands.c: minor code cleanups.
      181a2c48
  4. 26 Aug, 2003 1 commit
    • Michael Natterer's avatar
      added some toolbox and dock related help IDs. · 576057b1
      Michael Natterer authored
      2003-08-26  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimphelp-ids.h: added some toolbox and dock related
      	help IDs.
      
      	* app/gui/dialogs-menu.c
      	* app/widgets/gimpimagedock.c
      	* app/widgets/gimptoolbox.c: use them.
      576057b1
  5. 08 Jul, 2003 1 commit
    • Michael Natterer's avatar
      Added configurable styles for dockable tabs (fixes bug #87376): · 6fabca2e
      Michael Natterer authored
      2003-07-08  Michael Natterer  <mitch@gimp.org>
      
      	Added configurable styles for dockable tabs (fixes bug #87376):
      
      	* app/widgets/widgets-enums.[ch]: added new enum GimpTabStyle
      	which can be one on { ICON, NAME, ICON_NAME, ICON_BLURB }.
      
      	* app/widgets/gimpdockable.[ch]: added a GimpTabStyle member to
      	the GimpDockable struct which defaults to GIMP_TAB_STYLE_ICON.
      	Renamed "short_name" to "name" and "name" to "blurb". Renamed
      	GimpDockableGetTabFunc to GimpDockableGetIconFunc. Implemented all
      	tab styles in gimp_dockable_real_get_tab_widget() and use the
      	"get_icon_func" only for creating the tab's icon, not the entire
      	tab widget.
      
      	* app/widgets/gimpdockbook.[ch]: changed accordingly. Create the
      	menu widgets and the DND icon using gimp_dockable_get_tab_widget()
      	with tab_style == GIMP_TAB_STYLE_ICON_BLURB instead of duplicating
      	tons of code. Made gimp_dockbook_get_tab_widget() public because
      	it's needed for exchanging tabs on-the-fly.
      
      	* app/widgets/gimpimagedock.c: changed accordingly.
      
      	* app/widgets/gimpdialogfactory.c: remember the dockables' tab
      	style in sessionrc.
      
      	* app/gui/dialogs-menu.c: added a submenu to select the tab style
      	for each dockable.
      
      	* app/gui/dialogs-commands.[ch]: new callback
      	dialogs_tab_style_cmd_callback().
      
      	* app/gui/dialogs-constructors.[ch]: added stock_ids to all
      	dockables, swapped the "name" and "blurb" parameters, reordered
      	functions, cleanup.
      
      	* app/gui/dialogs-menu.c
      	* app/gui/image-menu.c
      	* app/gui/toolbox-menu.c: use GIMP_STOCK_DEFAULT_COLORS for the
      	color editor dockable and renamed it to "FG/BG Color".
      6fabca2e
  6. 17 May, 2003 1 commit
    • Michael Natterer's avatar
      Fixed File->Revert, which was completely broken before: · 9252db58
      Michael Natterer authored
      2003-05-17  Michael Natterer  <mitch@gimp.org>
      
      	Fixed File->Revert, which was completely broken before:
      
      	* app/gui/file-commands.c (file_revert_confirm_callback): set the
      	new image on all GimpContexts which had the old image set.  Unref
      	the new image after the displays are reconnected.
      
      	Added some paranoia code for similar future situations (the
      	functions below were not broken, but affected by the above bug):
      
      	* app/display/gimpdisplay-handlers.c (gimp_display_disconnect):
      	set gdisp->gimage to NULL before unrefing the image.
      
      	* app/widgets/gimpimagedock.c (gimp_image_dock_image_changed):
      	unref the gimage pointer returned by g_object_get() only if it is
      	non-NULL. Cleanup.
      9252db58
  7. 14 May, 2003 1 commit
  8. 03 May, 2003 1 commit
    • Michael Natterer's avatar
      added "dockable_added", "dockable_removed" and "dockable_reordered" · a51bff58
      Michael Natterer authored
      2003-05-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpdockbook.[ch]: added "dockable_added",
      	"dockable_removed" and "dockable_reordered" signals and emit them.
      
      	* app/widgets/gimpimagedock.[ch]: implement GimpDock::book_added()
      	and GimpDock::book_removed(). Connect to the above signals and
      	update the window title as proposed in bug #111971. Idle-update
      	the title so subsequent changes are compressed. Fixes bug #111971.
      
      	* app/widgets/gimpdock.c: cleanup.
      a51bff58
  9. 08 Apr, 2003 1 commit
    • Michael Natterer's avatar
      added vitrual function GimpViewable::get_description() which returns the · 99d93b92
      Michael Natterer authored
      2003-04-08  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpviewable.[ch]: added vitrual function
      	GimpViewable::get_description() which returns the string that
      	should be presented to the user plus an optional tooltip with more
      	information. The default implementation just returns the object's
      	name and no tooltip.
      
      	* app/core/gimpbrush.c
      	* app/core/gimpbuffer.c
      	* app/core/gimpimage.c
      	* app/core/gimppalette.c
      	* app/core/gimppattern.c
      	* app/core/gimptoolinfo.c: implement get_description().
      
      	* app/core/gimpimagefile.[ch]: ditto. Renamed
      	gimp_imagefile_get_description() to
      	gimp_imagefile_get_desc_string(). Well, um, gimme a better name...
      
      	* app/gui/file-open-dialog.c: changed accordingly.
      
      	* app/file/file-utils.[ch]: renamed readXVThumb() to
      	file_utils_readXVThumb().
      
      	* tools/pdbgen/pdb/fileops.pdb: changed accordingly.
      
      	* app/widgets/widgets-types.h: removed GimpItemGetNameFunc typedef.
      
      	* app/widgets/gimpcontainerview-utils.[ch]: removed the the actual
      	get_name_funcs. They now live in the core as
      	GimpViewable::get_description() implementations.
      
      	* app/widgets/gimpcontainermenu.[ch]
      	* app/widgets/gimpcontainergridview.c
      	* app/widgets/gimpcontainermenuimpl.c
      	* app/widgets/gimpcontainertreeview.c
      	* app/widgets/gimpcontainerview.[ch]
      	* app/widgets/gimpmenuitem.[ch]
      	* app/widgets/gimpviewabledialog.c: removed get_name_func stuff
      	and use gimp_viewable_get_description().
      
      	* app/widgets/gimpcontainermenu.[ch]: added "preview_border_width"
      	to gimp_container_menu_set_preview_size().
      
      	* app/widgets/gimpimagedock.c: changed accordingly.
      
      	* app/pdb/fileops_cmds.c: regenerated.
      99d93b92
  10. 04 Apr, 2003 1 commit
    • Michael Natterer's avatar
      removed tree_view->preview_border_width. · ff0ce48c
      Michael Natterer authored
      2003-04-04  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpcontainertreeview.[ch]: removed
      	tree_view->preview_border_width.
      
      	* app/widgets/gimpcontainermenu.[ch]
      	* app/widgets/gimpcontainerview.[ch]: and added it here so it is
      	configurable in all views. Synced the changes in both classes.
      
      	* app/widgets/gimpcontainermenuimpl.[ch]
      	* app/widgets/gimpmenuitem.[ch]: made preview_border_size
      	configurable here, too.
      
      	* app/widgets/gimplayertreeview.c
      	* app/widgets/gimpimagedock.c
      	* app/gui/palette-import-dialog.c: changed accordingly.
      
      	* app/gui/file-new-dialog.c: Removed the border from the template
      	menu previews.
      ff0ce48c
  11. 25 Mar, 2003 1 commit
    • Sven Neumann's avatar
      Makefile.am removed this header file. · 28fddfd5
      Sven Neumann authored
      2003-03-25  Sven Neumann  <sven@gimp.org>
      
      	* Makefile.am
      	* gimpintl.h: removed this header file.
      
      	* gimpmiscui.c: include libgimp-intl.h.
      
      	* gimp.c (gimp_main): call setlocale() and bind to the libgimp
      	textdomain so that plug-ins don't need to do that explicitely.
      
      	* libgimp/stdplugins-intl.h: added the functionality that used to
      	live in gimpintl.h and removed the libgimp related stuff. Got rid
      	of the INIT_I18N_UI() macro.
      
      	* plug-ins/*/*.c: removed all occurances of INIT_I18N_UI().
      	Plug-ins simply call INIT_I18N() once in their run() function.
      
      	* plug-ins/script-fu/script-fu-intl.h: added the functionality
      	that used to live in gimpintl.h and removed the libgimp related
      	stuff.
      
      	* app/Makefile.am
      	* app/gimp-intl.h: new file that defines the gettext macros for
      	the GIMP core.
      
      	* app/*/*.c: include gimp-intl.h instead of libgimp/gimpintl.h.
      
      	* plug-ins/script-fu/scripts/test-sphere.scm: fixed typos.
      28fddfd5
  12. 21 Mar, 2003 1 commit
    • Michael Natterer's avatar
      show the popup preview again. · 87cfd54e
      Michael Natterer authored
      2003-03-21  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpcellrendererviewable.c
      	(gimp_cell_renderer_viewable_clicked): show the popup preview
      	again.
      
      	* app/widgets/gimpcontainertreeview.c
      	* app/widgets/gimpimagedock.c
      	* app/widgets/gimptoolbox.c: removed useless #includes.
      87cfd54e
  13. 05 Jan, 2003 1 commit
  14. 25 Oct, 2002 1 commit
    • Michael Natterer's avatar
      added "book_added" and "book_removed" signals. Removed the · d34647e3
      Michael Natterer authored
      2002-10-25  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpdock.[ch]: added "book_added" and "book_removed"
      	signals. Removed the "destroy_if_empty" flag and destroy empty
      	docks in book_removed's default implementation.
      
      	* app/widgets/gimptoolbox.c: implement "dock_added" and
      	"dock_removed" and set the window to freely resizable vertically
      	if it contains dockbooks, and to the current behaviour of snapping
      	to multiples of tool_button height otherwise. Fixes bug #93309.
      
      	* app/widgets/gimpimagedock.c: changed accordingly.
      d34647e3
  15. 24 Oct, 2002 1 commit
  16. 06 Sep, 2002 1 commit
    • Hans Breuer's avatar
      updated · e17baf71
      Hans Breuer authored
      2002-09-06  Hans Breuer  <hans@breuer.org>
      
      	* */*/makefile.msc : updated
      
      	* libgimptool/makefile.msc : new file, libgimptool
      	is currently build as static lib due to references
      	into app/core
      
      	* themes/Default/makefile.msc : removed
      	* themes/Default/images/makefile.msc : new file
      
      	* libgimpwidgets/makefile.msc libgimpwidgets/gimpwidgets.c
      	updated (externals)
      
      	* app/paint-funcs.c : replaced gccism varibale size array on
      	stack with portable alloca, removed sizeof(buf) check which
      	must fail now.
      
      	* app/config/gimpconfig.c : get write/close protos
      	on win32 from io.h
      	* app/config/gimprc.c : dito and <string.h>
      	* app/config/gimpscanner.c : <string.h> only
      
      	* app/core/gimpcontainer.c : workaround for clumsy
      	compilers not supporting vararg macros
      
      	* app/core/gimpdocumentlist.c app/core/gimpparasitelist.c
      	include <io.h> on win32
      
      	* app/widgets/gimpdocumentview.c
      	  app/widgets/gimpimagedock.c
      	  app/widgets/gimppreview.c : add #ifdef __GNUC__
      	to avoid breaking on non standard pragma #warning.
      
      	* app/gui/session.c : include <string.h>
      
      	* regexrepl/makefile.msc : build as dll
      
      	* plug-ins/makefile.msc : updated
      
      	* plug-ins/common/pix.c : open file binary
      
      	* plug-ins/common/spheredesigner.c : avoid error
      	'incompatible types' while assigning, use memcpy()
      e17baf71
  17. 10 May, 2002 2 commits
    • Michael Natterer's avatar
      We can always create GimpPreviews for any GtkIconSize, but not vice versa. · b521746d
      Michael Natterer authored
      2002-05-10  Michael Natterer  <mitch@gimp.org>
      
      	We can always create GimpPreviews for any GtkIconSize, but
      	not vice versa. therefore:
      
      	* app/widgets/gimpdockable.[ch]: changed the "gint size" parameter
      	used for tab sizes to "GtkIconSize size" all over the place. Added
      	"stock_id" in addition to "name" and "short_name".
      
      	* app/widgets/gimpdockbook.c
      	* app/widgets/gimpimagedock.c: use GtkIconSize instead of integer
      	preview sizes for all widget style properties. Renamed them from
      	"blah_height" to "blah_size" because "height" is an implementation
      	detail.
      
      	* app/gui/dialogs-constructors.c: changed calls to
      	gimp_dockable_new() and all *_tab_func()s accordingly. Removed
      	the hack for the navigation tab and added a general tab_func
      	which returns a hbox with an icon & label.
      
      	* app/gui/menus.c: made the dialog menus found under <Toolbox>,
      	<Image> and <Dialogs> more consistent and added more stock icons.
      
      	* etc/gtkrc_user
      	* themes/Default/gtkrc: changed accordingly.
      b521746d
    • Michael Natterer's avatar
      added a read-only property for the display's image, so it can be retreived · 359990db
      Michael Natterer authored
      2002-05-10  Michael Natterer  <mitch@gimp.org>
      
      	* app/display/gimpdisplay.c: added a read-only property for the
      	display's image, so it can be retreived by the core, which
      	treats displays as simple GimpObjects.
      
      	* app/core/gimpcontext.c: made context->display an object
      	property, not just gpointer. Connect to the "remove" signal of
      	gimp->displays to get notified of disappearing displays. Removed
      	the EEKWrapper and get the display's gimage with g_object_get().
      
      	* app/widgets/gimpimagedock.[ch]: added image_dock->display_container
      	and require it being passed in the constructor. Do voodoo things
      	in the "image_changed" and "display_changed" callbacks to ensure
      	that the dock doesn't end up with no display even if the active
      	image has one. Added a style property for the image menu's preview
      	size.
      
      	* app/gui/dialogs-commands.c (dialogs_menu_update): set the
      	"View as List" and "View as Grid" items insensitive if the
      	other view type doesn't exist. Hide them if the view cannot
      	be classified as "list" or "grid" at all. Also hide the
      	"Preview Size" submenu if it's pointless for the view.
      
      	* app/gui/dialogs-constructors.c: added a special tab for the
      	navigation dialog. Will propbaby add dockable->stock_id to
      	generalize this kind of tab. Pass gimp->displays to
      	gimp_image_dock_new().
      
      	* app/gui/menus.c: reordered the "<Dialogs>" factory entries,
      	added more stock icons, cleanup.
      
      	* etc/gtkrc_user
      	* themes/Default/gtkrc: document usage of GimpImageDock's
      	"menu_preview_height" property.
      359990db
  18. 08 May, 2002 1 commit
    • Michael Natterer's avatar
      removed unused commented out prototype. · ff722d0c
      Michael Natterer authored
      2002-05-08  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimp.h: removed unused commented out prototype.
      
      	* app/core/gimpimage.c (gimp_image_set_tattoo_state): fixed it
      	again after I have b0rked it when using vectors instead of paths.
      
      	* app/display/gimpdisplay.c: some comments and one more
      	g_return_val_if_fail().
      
      	* app/widgets/gimpimagedock.c: more fixes for the subtle
      	active_image <-> active_display difference.
      
      	* tools/pdbgen/pdb/display.pdb (gimp_display_delete): call
      	gimp_display_delete() instead of just destroying it's shell (eek).
      
      	* app/pdb/display_cmds.c: regenerated.
      
      	Added a special view type for the image list so we can implement
      	stuff like deleting images which are left over from crashed
      	plug-ins:
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpimageview.[ch]: new widget: a view on the image
      	container.
      
      	* app/gui/Makefile.am
      	* app/gui/images-commands.[ch]: new callbacks for it's context menu.
      
      	* app/gui/dialogs-constructors.c: use the new widget instead of
      	plain GimpContainerViews.
      
      	* app/gui/menus.c: added an item_factory for it.
      ff722d0c
  19. 07 May, 2002 1 commit
    • Michael Natterer's avatar
      app/Makefile.am removed. · b6c56ff9
      Michael Natterer authored
      2002-05-07  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/nav_window.[ch]: removed.
      
      	* app/display/Makefile.am
      	* app/display/display-types.h
      	* app/display/gimpnavigationview.[ch]: new widget partially based
      	on the removed nav_window.
      
      	* libgimpproxy/gimpproxytypes.h: regnenerated.
      
      	* app/display/gimpdisplay-foreach.[ch]: removed
      	gdisplays_nav_preview_resized(). The new config system will allow
      	us to get notified of changes.
      
      	* app/display/gimpdisplayshell.[ch]: added "scaled" and "scrolled"
      	signals.
      
      	* app/display/gimpdisplayshell-scale.c
      	* app/display/gimpdisplayshell-scroll.c: emit "scaled" and
      	"scrolled" appropriately. Removed nav_window stuff.
      
      	* app/display/gimpdisplay.c
      	* app/display/gimpdisplayshell-callbacks.c: changed accordingly.
      
      	* app/gui/dialogs-constructors.[ch]
      	* app/gui/dialogs.c
      	* app/gui/menus.c: made the navigation dialog dockable.
      
      	* app/gui/view-commands.c: changed the nav_dialog callback accordingly.
      
      	* app/gui/preferences-dialog.c
      	* app/gimprc.[ch]
      	* app/config/gimpguiconfig.[ch]: removed "nav_window_per_display"
      	as it's now a dockable and it's state is saved in sessionrc.
      
      	* app/widgets/gimpnavigationpreview.[ch]: added context sensitive
      	mouse cursors.
      
      	* app/widgets/gimpimagedock.c: made it capable of holding
      	display-related dialogs (like GimpNavigationView) by connecting
      	to the context's "display_changed" signal.
      
      	* app/widgets/widgets-types.h: removed inclusion of
      	"display/display-types.h".
      
      	* app/widgets/gimpbufferview.c
      	* app/widgets/gimpchannellistview.c
      	* app/widgets/gimpcolormapeditor.c
      	* app/widgets/gimpcomponentlistitem.c
      	* app/widgets/gimpdocumentview.c
      	* app/widgets/gimpdrawablelistitem.c
      	* app/widgets/gimpdrawablelistview.c
      	* app/widgets/gimpitemlistitem.c
      	* app/widgets/gimpitemlistview.c
      	* app/widgets/gimplayerlistitem.c
      	* app/widgets/gimplayerlistview.c
      	* app/widgets/gimppreview.c
      	* app/widgets/gimpvectorslistview.c: warn about inclusion of
      	"display/display-types.h".
      b6c56ff9
  20. 18 Mar, 2002 1 commit
    • Michael Natterer's avatar
      app/paint/gimppaintoptions.h put the "Fade Out" and "Gradient" stuff into · 09050a72
      Michael Natterer authored
      2002-03-18  Michael Natterer  <mitch@gimp.org>
      
      	* app/paint/gimppaintoptions.h
      	* app/tools/paint_options.c: put the "Fade Out" and "Gradient" stuff
      	into separate frames with togglebutton titles.
      
      	* app/widgets/gimpchannellistview.c: use
      	gimp_image_mask_select_channel() instead of reinventing the wheel.
      
      	* app/widgets/gimpvectorslistview.c: removed unneeded inclusion
      	of "core/gimpimage-mask.h".
      
      	* app/widgets/gimpcolormapeditor.c: set the hex entry to 7 digits,
      	some cleanup.
      
      	* app/widgets/gimppaletteeditor.c: set the vertical scrollbar
      	to GTK_POLICY_AUTOMATIC.
      
      	Added support for configuring some more GUI dimensions using
      	widget class style properties:
      
      	* app/widgets/gimpdock.c: made "separator_height" work correctly.
      	* app/widgets/gimpdockbook.c: added "tab_height".
      	* app/widgets/gimpeditor.c: added "button_icon_size".
      	* app/widgets/gimpimagedock.c: added "minimal_width".
      	* app/widgets/gimptoolbox.c: added "tool_icon_size".
      
      	* themes/Default/gtkrc: set the properties to their default values
      	for documentation.
      
      	* etc/gtkrc_user: added a (commented out) example style which makes
      	lots of things a smaller.
      09050a72
  21. 14 Mar, 2002 1 commit
    • Michael Natterer's avatar
      g_strdup() the stock_id passed to gimp_tool_info_new() because the · b8798408
      Michael Natterer authored
      2002-03-14  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimptoolinfo.c: g_strdup() the stock_id passed to
      	gimp_tool_info_new() because the caller's memory may disappear
      	after registering the tool (tool modules).
      
      	Made a GimpDock out of the toolbox:
      
      	* app/gui/Makefile.am
      	* app/gui/color-area.[ch]
      	* app/gui/indicator-area.[ch]
      	* app/gui/toolbox.[ch]: removed...
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimptoolbox-color-area.[ch]
      	* app/widgets/gimptoolbox-indicator-area.[ch]
      	* app/widgets/gimptoolbox.[ch]: ...and added here.
      
      	* app/widgets/gimpdock.[ch]: don't set a minimal width. Added a
      	"destroy_if_empty" boolean so we can prevent destruction of the
      	toolbox if it's last dockable is removed. Added gimp_dock_construct()
      	which is called from GimpImageDock and GimpToolbox.
      
      	* app/widgets/gimpimagedock.[ch]: Default to not showing the image
      	menu, set a minimal width here, misc. minor cleanup.
      
      	* app/widgets/gimpdockbook.c: some more GIMP_IS_IMAGE_DOCK()
      	checks, fixed dnd widget creation.
      
      	* app/widgets/gimpdialogfactory.[ch]: changed
      	gimp_dialog_factories_toggle() to take just the toolbox_factory as
      	parameter. When restoring the session use the created dock's
      	dialog factory to create dockables, not the the factory we
      	created the dock from (for the toolbox).
      
      	* app/display/gimpdisplayshell-callbacks.c: changed accordingly.
      
      	* app/gui/dialogs.[ch]: create an own dialog factory for the toolbox
      	and set dialogs_toolbox_new() as it's new_dock_func.
      
      	* app/gui/dialogs-constructors.[ch]: changed dialogs_toolbox_get()
      	accordingly.
      
      	* app/gui/dialogs-commands.[ch]: added dialogs_show_toolbox(), ckeck
      	if a dock is really a GimpImageDock before casting.
      
      	* app/gui/gui.c
      	* app/gui/menus.c
      	* app/widgets/gimppaletteeditor.c: changed accordingly.
      
      	* app/gui/color-notebook.c
      	* app/gui/color-select.c
      	* app/gui/colormap-dialog.c
      	* app/gui/palette-editor-commands.c: removed useless inclusion of
      	"gui/color-area.h".
      
      	* themes/Default/gtkrc: set "gimp-dock-style" for GimpToolbox widgets.
      b8798408
  22. 30 Jan, 2002 2 commits
    • Michael Natterer's avatar
      derive from GtkDrawingArea instead of deprecated GtkPreview. · 074b1cda
      Michael Natterer authored
      2002-01-30  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimppreview.[ch]: derive from GtkDrawingArea
      	instead of deprecated GtkPreview.
      
      	* app/gui/buffers-commands.c
      	* app/gui/device-status-dialog.c
      	* app/gui/dialogs-constructors.c
      	* app/gui/indicator-area.c
      	* app/gui/info-window.c
      	* app/gui/palette-import-dialog.c
      	* app/gui/palettes-commands.c
      	* app/gui/test-commands.c
      	* app/gui/tool-options-dialog.c
      	* app/gui/toolbox.c
      	* app/widgets/gimpdnd.c
      	* app/widgets/gimpimagedock.c
      	* app/widgets/gimpmenuitem.c: removed #undef GTK_DISABLE_DEPRECATED.
      074b1cda
    • Sven Neumann's avatar
      derive from GtkDrawingArea instead of deprecated GtkPreview. · b8fcfd9a
      Sven Neumann authored
      2002-01-30  Sven Neumann  <sven@gimp.org>
      
      	* libgimpwidgets/gimpcolorarea.[ch]: derive from GtkDrawingArea
      	instead of deprecated GtkPreview.
      
      	* app/nav_window.c
      	* app/gui/brush-editor.c
      	* app/gui/buffers-commands.c
      	* app/gui/color-select.c
      	* app/gui/colormap-dialog.c
      	* app/gui/device-status-dialog.c
      	* app/gui/dialogs-constructors.c
      	* app/gui/file-open-dialog.c
      	* app/gui/gradient-editor.c
      	* app/gui/indicator-area.c
      	* app/gui/info-window.c
      	* app/gui/palette-editor.c
      	* app/gui/palette-import-dialog.c
      	* app/gui/palettes-commands.c
      	* app/gui/test-commands.c
      	* app/gui/tool-options-dialog.c
      	* app/gui/toolbox.c
      	* app/tools/gimpbycolorselecttool.c
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimphistogramtool.c
      	* app/tools/gimphuesaturationtool.c
      	* app/tools/gimplevelstool.c
      	* app/widgets/gimpchannellistview.c
      	* app/widgets/gimpcomponentlistitem.c
      	* app/widgets/gimpdnd.c
      	* app/widgets/gimpdrawablelistitem.c
      	* app/widgets/gimpdrawablelistview.c
      	* app/widgets/gimpimagedock.c
      	* app/widgets/gimpitemfactory.c
      	* app/widgets/gimplayerlistitem.c
      	* app/widgets/gimplistitem.c
      	* app/widgets/gimpmenuitem.c
      	* app/widgets/gimppreview.c
      	* libgimp/gimpbrushmenu.c
      	* libgimp/gimpgradientmenu.c
      	* libgimp/gimpmenu.c
      	* libgimp/gimppatternmenu.c
      	* plug-ins/FractalExplorer/Dialogs.c
      	* plug-ins/common/AlienMap.c
      	* plug-ins/common/AlienMap2.c
      	* plug-ins/common/CML_explorer.c
      	* plug-ins/common/blinds.c
      	* plug-ins/common/curve_bend.c
      	* plug-ins/common/depthmerge.c
      	* plug-ins/common/despeckle.c
      	* plug-ins/common/destripe.c
      	* plug-ins/common/diffraction.c
      	* plug-ins/common/emboss.c
      	* plug-ins/common/exchange.c
      	* plug-ins/common/flarefx.c
      	* plug-ins/common/fractaltrace.c
      	* plug-ins/common/glasstile.c
      	* plug-ins/common/gqbist.c
      	* plug-ins/common/grid.c
      	* plug-ins/common/illusion.c
      	* plug-ins/common/iwarp.c
      	* plug-ins/common/jigsaw.c
      	* plug-ins/common/mapcolor.c
      	* plug-ins/common/max_rgb.c
      	* plug-ins/common/newsprint.c
      	* plug-ins/common/nlfilt.c
      	* plug-ins/common/noisify.c
      	* plug-ins/common/nova.c
      	* plug-ins/common/plasma.c
      	* plug-ins/common/polar.c
      	* plug-ins/common/sample_colorize.c
      	* plug-ins/common/scatter_hsv.c
      	* plug-ins/common/sharpen.c
      	* plug-ins/common/sinus.c
      	* plug-ins/common/tileit.c
      	* plug-ins/common/video.c
      	* plug-ins/common/waves.c
      	* plug-ins/common/whirlpinch.c
      	* plug-ins/common/wind.c
      	* plug-ins/flame/flame.c
      	* plug-ins/fp/fp_gtk.c
      	* plug-ins/gimpressionist/brush.c
      	* plug-ins/mosaic/mosaic.c
      	* plug-ins/rcm/rcm_dialog.c: define GTK_DISABLE_DEPRECATED to make
      	it compile.
      
      	We really need a generic plug-in preview system that doesn't use
      	GtkPreview.
      b8fcfd9a
  23. 07 Dec, 2001 1 commit
    • Michael Natterer's avatar
      app/Makefile.am removed, chopped... · bcd208d9
      Michael Natterer authored
      2001-12-07  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/devices.[ch]: removed, chopped...
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/gui/Makefile.am
      
      	* app/widgets/gimpdeviceinfo.[ch]
      	* app/widgets/gimpdevices.[ch]
      	* app/gui/device-status-dialog.[ch]
      	* app/gui/input-dialog.[ch]: ...and added here.
      
      	Made GimpToolInfo a GimpContext subclass. Create a GimpDeviceManager
      	struct in gimpdevices.c and attach it to the Gimp instance.
      
      	* app/core/gimp.[ch]: removed gimp_create_context(). It was a bad
      	idea in the first place beause it prevented GimpContext subclasses
      	from being be properly registered with their Gimp instance.
      
      	* app/core/gimpcontext.c: moved the stuff which used to be in
      	gimp_create_context() back here. Added a "gimp" property which
      	must be set on construction. Added a "dispose" implementation
      	which removes the context from it's Gimp's context_list.
      
      	* app/gimprc.c
      	* app/core/gimptoolinfo.[ch]
      	* app/display/gimpdisplayshell-callbacks.c
      	* app/gui/brush-select.c
      	* app/gui/dialogs-constructors.c
      	* app/gui/gradient-editor.c
      	* app/gui/gradient-select.c
      	* app/gui/gui.c
      	* app/gui/menus.c
      	* app/gui/palette-editor.c
      	* app/gui/palette-select.c
      	* app/gui/pattern-select.c
      	* app/gui/toolbox.c
      	* app/tools/gimppainttool.c
      	* app/tools/tool_manager.c
      	* app/widgets/gimpimagedock.c: changed accordingly.
      
      	* app/gui/tools-commands.[ch]: made all callback signatures
      	the same.
      
      	* app/gui/preferences-dialog.c: cleaned up the
      	display_format_string GtkCombo code.
      bcd208d9
  24. 29 Nov, 2001 1 commit
    • Michael Natterer's avatar
      set the accelerators for the "Open Recent" items > 10 to "" instead of · 34aefd3e
      Michael Natterer authored
      2001-11-29  Michael Natterer  <mitch@gimp.org>
      
      	* app/gui/menus.c: set the accelerators for the "Open Recent"
      	items > 10 to "" instead of NULL so gtk+ doesn't use the stock
      	item's default accel.
      
      	* app/widgets/gimpdock.c
      	* app/widgets/gimpimagedock.c: set the docks' titles to
      	"Gimp Dock #<n>" instead of just "Gimp" so they can be
      	distinguished in the WM's window list or dock or whatever.
      34aefd3e
  25. 17 Oct, 2001 2 commits
    • Michael Natterer's avatar
      added a handler for GimpImage's "alpha_changed" signal (does nothing yet). · 6670bca2
      Michael Natterer authored
      2001-10-17  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpchannellistview.c: added a handler for GimpImage's
      	"alpha_changed" signal (does nothing yet).
      
      	* app/widgets/[lots of files]: somehow my last perl torturing
      	removed my email address from the copyright notice. Another perl
      	hack brought it back now :)
      6670bca2
    • Michael Natterer's avatar
      app/gimpprogress.[ch] s/GDisplay/GimpDisplay/ · 18dd0728
      Michael Natterer authored
      2001-10-16  Michael Natterer  <mitch@gimp.org>
      
      	* app/gimpprogress.[ch]
      	* app/undo.c: s/GDisplay/GimpDisplay/
      
      	* app/plug_in.[ch]: removed unused boolean "destroy" field of
      	the PlugIn struct.
      
      	* app/core/gimpedit.c: don't include "app_procs.h"
      
      	* app/display/gimpdisplay-callbacks.c: moved the "grab_abd_scroll"
      	stuff from gimpdisplay-scroll.* here (less complicated and easier
      	to cleanup...)
      
      	* app/display/gimpdisplay-scroll.[ch]: removed here.
      
      	* app/display/gimpdisplay-render.[ch]
      	* app/display/gimpdisplay-selection.[ch]
      	* app/display/gimpdisplayshell.c: s/GDisplay/GimpDisplay/g
      
      	* app/display/gimpdisplay.[ch]: ditto, removed gdisplay_active()
      	which was just a wrapper around
      	"gimp_context_get_display (gimp_get_user_context (the_gimp))"
      	(which is more to type but makes the use of the global
      	"the_gimp" variable more obvious).
      
      	* app/gui/color-area.h
      	* app/gui/edit-commands.c
      	* app/gui/file-commands.c
      	* app/gui/file-dialog-utils.c
      	* app/gui/image-commands.c
      	* app/gui/info-window.h
      	* app/gui/paths-dialog.h
      	* app/gui/select-commands.c
      	* app/gui/tool-options-dialog.c
      	* app/gui/tools-commands.c
      	* app/gui/view-commands.c: s/GDisplay/GimpDisplay/, gdisplay_active()
      	removal, include "app_procs.h" for "the_gimp".
      
      	* app/tools/gimpbezierselecttool.h
      	* app/tools/gimpbrightnesscontrasttool.[ch]
      	* app/tools/gimpbycolorselecttool.c
      	* app/tools/gimpcolorbalancetool.[ch]
      	* app/tools/gimpcurvestool.[ch]
      	* app/tools/gimpeditselectiontool.h
      	* app/tools/gimphistogramtool.[ch]
      	* app/tools/gimphuesaturationtool.[ch]
      	* app/tools/gimplevelstool.[ch]
      	* app/tools/gimpmovetool.h
      	* app/tools/gimpperspectivetool.h
      	* app/tools/gimpposterizetool.[ch]
      	* app/tools/gimprotatetool.h
      	* app/tools/gimpscaletool.h
      	* app/tools/gimpsheartool.h
      	* app/tools/gimptexttool.h
      	* app/tools/gimpthresholdtool.[ch]
      	* app/tools/gimptool.[ch]
      	* app/tools/gimptransformtool.h
      	* app/tools/tool_manager.[ch]: lots of s/GDisplay/GimpDisplay/, made
      	all *_dialog_hide() functions private, cleanup.
      
      	* app/widgets/*: removed GtkType and gtk_type_* stuff entirely and
      	use GObject functions, removed lots of empty "destroy" methods and
      	use more type checking class cast macros instead of casting
      	directly.
      
      	* app/widgets/gimpcontainermenu.c: fixed item insert order.
      
      	* app/widgets/gimphistogramview.[ch]: cleaned up and renamed all
      	functions.
      
      	* app/widgets/gimpwidgets-utils.[ch]: removed gimp_dialog_hide() as
      	Gtk+ does the right thing (TM) now.
      
      	* tools/pdbgen/pdb/color.pdb: implemented "histogram" without
      	digging into tools/ and widgets/ (needs to be done for all
      	color PDB functions).
      
      	* tools/pdbgen/pdb/gimprc.pdb: no need to use "the_gimp" in a PDB
      	function as a "Gimp" pointer is passed to them all.
      
      	* tools/pdbgen/pdb/image.pdb: don't include "app_procs.h"
      
      	* app/pdb/color_cmds.c
      	* app/pdb/gimprc_cmds.c
      	* app/pdb/image_cmds.c: regenerated.
      
      	* app/pdb/procedural_db.c: don't include "app_procs.h"
      18dd0728
  26. 11 Aug, 2001 1 commit
    • Michael Natterer's avatar
      fsck^^^ -- lovely autofoo wants "changequote([,])dnl" · 5e74fa37
      Michael Natterer authored
      2001-08-11  Michael Natterer  <mitch@gimp.org>
      
      	* configure.in: fsck^^^ -- lovely autofoo wants "changequote([,])dnl"
      
      	* app/core/gimpcontext.[ch]: lots of GObject porting.
      
      	* app/core/gimpobject.[ch]: added a "disconnect" signal, which
      	like gtk's "destroy" is emitted in dispose(). This is ugly but
      	I don't see another "clean" way to implement weak containers.
      
      	* app/core/gimpcontainer.c: connect to the "disconnect" signal of
      	the children of weak containes.
      
      	* app/core/gimpimage.[ch]: replaced the "destroy" implementation
      	with "dispose" + "finalize". Removed gimage->undo_history.
      
      	* app/devices.c
      	* app/gui/dialogs-constructors.c
      	* app/gui/tools-commands.c
      	* app/tools/tool_manager.c
      	* app/widgets/gimpimagedock.c: changed accordingly.
      5e74fa37
  27. 10 Aug, 2001 1 commit
    • Michael Natterer's avatar
      fix compiler warning. · 2353c5d3
      Michael Natterer authored
      2001-08-10  Michael Natterer  <mitch@convergence.de>
      
      	* app/nav_window.c: fix compiler warning.
      
      	* app/core/gimp.[ch]: added gimp->documents which will be an MRU
      	list of GimpImagefile objects.
      
      	* app/core/gimpcontainer.c: added some g_return_if_fail().
      
      	* app/gui/palette-editor.c: use GtkImage instead of GtkPixmap,
      	s/gtk_signal_*/g_signal_*/.
      
      	* app/widgets/gimppreview.c: render the checkerboard only for
      	channel == -1. In particular, don't render it for channel
      	previews.
      
      	* app/module_db.c
      	* app/core/*.c
      	* app/gui/colormap-dialog.c
      	* app/tools/gimpairbrushtool.c
      	* app/tools/gimpdodgeburntool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimperasertool.c
      	* app/tools/gimppaintbrushtool.c
      	* app/tools/gimppenciltool.c
      	* app/tools/gimpsmudgetool.c
      	* app/tools/tool_manager.c
      	* app/widgets/*.c
      	* libgimpwidgets/*.c: s/gtk_type_new/g_object_new/
      2353c5d3
  28. 24 Jul, 2001 1 commit
    • Michael Natterer's avatar
      Port to glib/gtk+ 2.0 episode I (every segfault has it's beginning) · 06b16890
      Michael Natterer authored
      2001-07-24  Michael Natterer  <mitch@gimp.org>
      
      	Port to glib/gtk+ 2.0 episode I (every segfault has it's beginning)
      
      	* configure.in: require glib/gtk+ >= 1.3.7, commented out the
      	gtkxmhtml stuff.
      
      	From now on, you will need glib, pango, atk and gtk+ HEAD from CVS
      	to hack or use GIMP HEAD.
      
      	Beware, it crashes randomly :)
      
      	* app/core/Makefile.am
      	* app/core/gimpmarshal.list: new file plus rules to generate
      	gimpmarshal.[ch] from it.
      
      	* app/core/*
      	* app/tools/*
      	* app/widgets/*
      	* libgimpwidgets/*: started to use the glib object system. All
      	core/ objects are still gtk objects however. All signals are
      	created using g_signal_new(). There are many gtk+ artefacts left.
      	Finally, we will _not_ use the gtk_signal_foo() wrappers and
      	friends any more.
      
      	* app/colormaps.c
      	* app/devices.[ch]
      	* app/disp_callbacks.c
      	* app/errorconsole.c
      	* app/file-save.[ch]
      	* app/interface.c
      	* app/module_db.c
      	* app/nav_window.c
      	* app/ops_buttons.c
      	* app/scroll.c
      	* app/user_install.c
      	* app/gui/about-dialog.c
      	* app/gui/brush-editor.c
      	* app/gui/brushes-commands.c
      	* app/gui/color-notebook.c
      	* app/gui/colormap-dialog.c
      	* app/gui/dialogs-commands.c
      	* app/gui/dialogs-constructors.c
      	* app/gui/file-commands.c
      	* app/gui/file-dialog-utils.c
      	* app/gui/file-new-dialog.c
      	* app/gui/file-open-dialog.[ch]
      	* app/gui/file-save-dialog.c
      	* app/gui/gradient-editor.c
      	* app/gui/gradients-commands.c
      	* app/gui/image-commands.c
      	* app/gui/info-dialog.[ch]
      	* app/gui/layer-select.c
      	* app/gui/layers-commands.c
      	* app/gui/menus.c
      	* app/gui/offset-dialog.c
      	* app/gui/palette-editor.c
      	* app/gui/palettes-commands.c
      	* app/gui/patterns-commands.c
      	* app/gui/preferences-dialog.c
      	* app/gui/resize-dialog.[ch]
      	* app/gui/splash.c
      	* app/gui/tips-dialog.c
      	* app/gui/tool-options-dialog.c
      	* app/gui/toolbox.c
      	* app/gui/tools-commands.c
      	* libgimp/gimpbrushmenu.c
      	* libgimp/gimpmenu.c
      	* libgimp/gimppatternmenu.c
      	* libgimp/gimpui.c
      	* libgimpbase/gimpenv.c: tons and tons of changes like "const
      	gchar*", switch from GdkDeviceInfo to GdkDevice (very incomplete
      	and currently disables), lots of s/gtk_signal/g_signal/,
      	removal/replacement of deprecated stuff,
      	s/GtkSignalFunc/GCallback/ and lots of small changes and fixes
      	while I was on it, zillions of warnings left...
      
      	* modules/Makefile.am: disabled the water color selector
      	temporarily (XInput issues).
      
      	* plug-ins/Makefile.am
      	* plug-ins/common/.cvsignore
      	* plug-ins/common/Makefile.am
      	* plug-ins/common/plugin-defs.pl: simply excluded all plug-ins
      	which did not build (including Script-Fu). They are trivial to
      	fix.
      06b16890
  29. 07 Jul, 2001 1 commit
  30. 04 Jul, 2001 1 commit
    • Michael Natterer's avatar
      app/core/Makefile.am app/core/core-types.h added an "application object" · 01645960
      Michael Natterer authored
      2001-07-04  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/core/gimp.[ch]: added an "application object" called Gimp.
      
      	Currently, it contains the image list, the clipboard, the data
      	factories, the procedural hashtable and the tool info list.  It's
      	the toplevel object of the core object system. Finally, creating a
      	Gimp object will return a standalone gimp core engine instance
      	with no other global states/variables involved.
      
      	* app/app_procs.[ch]: allocate a "Gimp" instance called "the_gimp" :)
      	Removed stuff which is now done by the "Gimp" object. Merged
      	gimp_init() into app_init() because gimp_init() is taken now.
      
      	* app/context_manager.[ch]: removed stuff done by "Gimp".
      
      	* app/batch.[ch]
      	* app/gimage.[ch]
      	* app/xcf/xcf-load.[ch]
      	* app/xcf/xcf.[ch]
      	* app/core/gimpedit.[ch]
      	* app/tools/tool_manager.[ch]: pass around an additional "Gimp"
      	argument.
      
      	* app/pdb/procedural_db.[ch]: pass a "Gimp" pointer as first
      	parameter to all internal procedures and to all procedural_db_*
      	functions.
      
      	* app/core/gimpcontext.[ch]
      	* app/core/gimpimage.[ch]: added a "Gimp" pointer to the structs.
      
      	* app/devices.c
      	* app/errors.c
      	* app/file-open.c
      	* app/file-save.c
      	* app/gimphelp.c
      	* app/gimpunit.c
      	* app/image_new.c
      	* app/main.c
      	* app/nav_window.c
      	* app/plug_in.c
      	* app/base/base.c
      	* app/core/gimpdatafactory.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimptoolinfo.[ch]
      	* app/gui/brush-select.c
      	* app/gui/convert-dialog.c
      	* app/gui/dialogs-constructors.c
      	* app/gui/edit-commands.c
      	* app/gui/file-open-dialog.c
      	* app/gui/file-save-dialog.c
      	* app/gui/gradient-editor.c
      	* app/gui/gradient-select.c
      	* app/gui/gui.c
      	* app/gui/image-commands.c
      	* app/gui/info-window.c
      	* app/gui/menus.c
      	* app/gui/palette-editor.c
      	* app/gui/palette-import-dialog.c
      	* app/gui/palette-select.c
      	* app/gui/paths-dialog.c
      	* app/gui/pattern-select.c
      	* app/gui/preferences-dialog.c
      	* app/gui/test-commands.c
      	* app/gui/toolbox.c
      	* app/gui/tools-commands.c
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimppainttool.h
      	* app/tools/gimptexttool.c
      	* app/tools/gimptransformtool.h
      	* app/widgets/gimpbufferview.c
      	* app/widgets/gimpcontainerview-utils.c
      	* app/widgets/gimpcursor.c
      	* app/widgets/gimpdnd.c
      	* app/widgets/gimpimagedock.c: changed accordingly. Cleaned up
      	lots of includes. Many files still access the global "the_gimp"
      	variable exported by app_procs.h.
      
      	* tools/pdbgen/app.pl
      	* tools/pdbgen/pdb/brush_select.pdb
      	* tools/pdbgen/pdb/brushes.pdb
      	* tools/pdbgen/pdb/convert.pdb
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/fileops.pdb
      	* tools/pdbgen/pdb/gradient_select.pdb
      	* tools/pdbgen/pdb/gradients.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/palette.pdb
      	* tools/pdbgen/pdb/pattern_select.pdb
      	* tools/pdbgen/pdb/patterns.pdb
      	* tools/pdbgen/pdb/procedural_db.pdb: changed accordingly. Don't
      	use "the_gimp" here because all procedures get passed a "Gimp"
      	pointer now.
      
      	* app/pdb/*: regenerated.
      01645960
  31. 02 Jul, 2001 1 commit
    • Michael Natterer's avatar
      app/gui/dialogs-commands.[ch] added dialogs_toggle_auto_cmd_callback() · 8a6f5a10
      Michael Natterer authored
      2001-07-02  Michael Natterer  <mitch@gimp.org>
      
      	* app/gui/dialogs-commands.[ch]
      	* app/gui/menus.c: added dialogs_toggle_auto_cmd_callback() which
      	toggles GimpImageDock's "Auto" button.
      
      	* app/gui/dialogs.c: ref/sink the global dialog factories.
      
      	* app/widgets/gimpdialogfactory.[ch]: added some comments, some
      	cleanups and additional checks. Factored out the "aux-info" stuff
      	to separate functions.
      
      	* app/widgets/gimpdockbook.c: set the state of the "Auto Follow
      	Active Image" menu item.
      
      	* app/widgets/gimpimagedock.[ch]: added a gboolean for
      	"show_image_menu" so we don't need to fiddle around with the
      	widgets to get this info. Added
      	gimp_image_dock_set_auto_follow_active().
      8a6f5a10
  32. 29 Jun, 2001 1 commit
    • Michael Natterer's avatar
      removed GimpFillType. · d81b47ce
      Michael Natterer authored
      2001-06-29  Michael Natterer  <mitch@gimp.org>
      
      	* app/appenums.h: removed GimpFillType.
      
      	* app/gimprc.c: parse the session-info's new "aux-info" field.
      
      	* app/global_edit.[ch]: removed the old "Paste Named" dialog and
      	prefixed all functions with "gimp_".
      
      	* app/core/core-types.h: added GimpFillType.
      
      	* app/core/gimpbrush.[ch]: new signal "spacing_changed".
      
      	* app/gui/Makefile.am
      	* app/gui/tools-commands.[ch]: one more file cut out of commands.[ch].
      
      	* app/gui/commands.[ch]: removed the tools stuff here.
      
      	* app/gui/brush-select.[ch]
      	* app/gui/dialogs-constructors.c: use the new GimpBrushFactoryView
      	(see below).
      
      	* app/gui/dialogs-commands.[ch]
      	* app/gui/menus.[ch]:
      
      	- Made it 64bit safe again by passing the dialog factory's
      	  identifiers as GQuarks, not as guints created by GPOINTER_TO_UINT().
      	- Added a "gchar *quark_string" field to GimpItemFactoryEntry
      	  which gets transformed into a GQuark by menus_create_item().
      	- Added SEPARATOR() and BRANCH() macros which make the *_entries[]
      	  arrays more readable.
      	- Added a menu item to show/hide GimpImageDock's image menu.
      	- Removed file_last_opened_cmd_callback().
      
      	* app/gui/edit-commands.c: the global_edit functions are "gimp_"
      	prefixed now.
      
      	* app/gui/file-commands.[ch]: added file_last_opened_cmd_callback()
      	here.
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpbrushfactoryview.[ch]: new widget: a
      	GimpDataFactory subclass with a "spacing" scale.
      
      	* app/widgets/gimpcontainereditor.[ch]:
      
      	- Connect to the GimpContainerView's "select_item",
      	  "activate_item" and "context_item" signals here once instead of
      	  in each subclass and dispatch them via new virtual functions.
      	- Added a convenience function which makes DND to the buttons much
      	  less painful for subclasses.
      
      	* app/widgets/gimpbufferview.c
      	* app/widgets/gimpdatafactoryview.[ch]: changed accordingly.
      
      	* app/widgets/gimpdialogfactory.[ch]:
      
      	- Added gimp_dialog_factory_dialog_raise() which can raise
      	  toplevel dialogs _and_ dockables (and creates them if they are
      	  not open yet).
      	- Keep track of all created dialogs (not only toplevels).
      	- Added an "aux_info" field to GimpSessionInfo which is a GList of
      	  gchar* and is saved in sessionrc.
      	- Remember if GimpImageDock's image menu is visible by using an
      	  aux_info string.
      	- The code did not become nicer with all those new constraints. I
      	  have to add comments before I forget how it works.
      
      	* app/widgets/gimpdockbook.c: set the state of the "Show Image Menu"
      	menu item before popping up the item factory.
      
      	* app/widgets/gimpimagedock.[ch]: added
      	gimp_image_dock_set_show_image_meu().
      
      	* plug-ins/gdyntext/gdyntext.c
      	* plug-ins/perl/examples/fit-text
      	* plug-ins/perl/examples/terral_text
      	* plug-ins/perl/examples/tex-to-float: register all text rendering
      	plug-ins under <Image>/Filters/Text
      
      	* app/pdb/brush_select_cmds.c
      	* app/pdb/drawable_cmds.c
      	* app/pdb/edit_cmds.c
      	* tools/pdbgen/pdb/brush_select.pdb
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/enums.pl
      	* po/POTFILES.in: changed according to all the stuff above.
      d81b47ce
  33. 13 May, 2001 1 commit
    • Michael Natterer's avatar
      some percentage updates. · 1a5a50d9
      Michael Natterer authored
      2001-05-13  Michael Natterer  <mitch@gimp.org>
      
      	* TODO.xml: some percentage updates.
      
      	* autogen.sh: correctly parse latest autoconf's broken "--version"
      	string.
      
      	* app/widgets/Makefile.am
      	* app/widgets/gimpcontainerview-utils.[ch]: new files which
      	provide a set of built-in get_name_func()s for GimpContainerView
      	and GimpContainerMenu.
      
      	* app/widgets/gimpcontainermenu.c
      	* app/widgets/gimpcontainerview.c: use them.
      
      	* app/widgets/gimpimagedock.c
      	* app/gui/dialogs-constructors.c: removed the get_name_func()s here.
      1a5a50d9
  34. 09 May, 2001 1 commit
    • Michael Natterer's avatar
      configure.in added new directory app/core/ for the core object system. · 8985b107
      Michael Natterer authored
      2001-05-09  Michael Natterer  <mitch@gimp.org>
      
      	* configure.in
      	* app/Makefile.am: added new directory app/core/ for the core
      	object system.
      
      	* app/gimage_mask.[ch]
      	* app/gimpbrush-header.h
      	* app/gimpbrush.[ch]
      	* app/gimpbrushgenerated.[ch]
      	* app/gimpbrushpipe.[ch]
      	* app/gimpchannel.[ch]
      	* app/gimpcontainer.[ch]
      	* app/gimpcontext.[ch]
      	* app/gimpdata.[ch]
      	* app/gimpdatafactory.[ch]
      	* app/gimpdatalist.h
      	* app/gimpdrawable-desaturate.[ch]
      	* app/gimpdrawable-equalize.[ch]
      	* app/gimpdrawable-invert.[ch]
      	* app/gimpdrawable-offset.[ch]
      	* app/gimpdrawable-preview.[ch]
      	* app/gimpdrawable.[ch]
      	* app/gimpgradient.[ch]
      	* app/gimpimage-convert.[ch]
      	* app/gimpimage-duplicate.[ch]
      	* app/gimpimage-undo.[ch]
      	* app/gimpimage.[ch]
      	* app/gimplayer.[ch]
      	* app/gimplayermask.[ch]
      	* app/gimplist.[ch]
      	* app/gimpmarshal.[ch]
      	* app/gimpobject.[ch]
      	* app/gimppalette-import.[ch]
      	* app/gimppalette.[ch]
      	* app/gimppattern-header.h
      	* app/gimppattern.[ch]
      	* app/gimpundo.[ch]
      	* app/gimpundostack.[ch]
      	* app/gimpviewable.[ch]: removed these files...
      
      	* app/core/*: ...and added them here.
      
      	* app/*.c
      	* app/gui/*.c
      	* app/pdb/*.c
      	* app/tools/*.c
      	* app/widgets/*.c
      	* plug-ins/common/gbr.c
      	* plug-ins/common/gih.c
      	* plug-ins/common/pat.c
      	* po/POTFILES.in
      	* tools/pdbgen/Makefile.am
      	* tools/pdbgen/enums.pl
      	* tools/pdbgen/pdb.pl
      	* tools/pdbgen/pdb/*.pdb: changed accordingly.
      8985b107
  35. 08 May, 2001 1 commit
    • Michael Natterer's avatar
      added ChannelType. removed ChannelType. regenerated. · a229702d
      Michael Natterer authored
      2001-05-08  Michael Natterer  <mitch@gimp.org>
      
      	* app/appenums.h: added ChannelType.
      	* app/gimpimage.h: removed ChannelType.
      	* tools/pdbgen/enums.pl: regenerated.
      
      	* app/apptypes.h: don't include libgimpwidgets/gimpwidgetstypes.h
      	and widgets/widgets-types.h any more.
      
      	* app/devices.c
      	* app/gimpdnd.c
      	* app/gimprc.c
      	* app/lc_dialog.c
      	* app/gui/[many].c: include widgets/widgets-types.h
      
      	* app/tools/histogram_tool.h: include widgets/widgets-types.h here
      	because of an ugly dependency from pdb/color_cmds.c
      
      	* app/tools/tool_options_dialog.c
      
      	* app/widgets/widgets-types.h: include
      	libgimpwidgets/gimpwidgetstypes.h and apptypes.h so files in
      	widgets/ only have to include this file.
      
      	* app/widgets/*.c: include widgets-types.h instead of apptypes.h
      
      	* app/gimpdrawable-preview.c
      	* app/gui/gradient-editor.c: removed useless #includes.
      a229702d
  36. 06 May, 2001 1 commit
    • Michael Natterer's avatar
      added GimpDropMode... ...removed from here. · 59b06707
      Michael Natterer authored
      2001-05-06  Michael Natterer  <mitch@gimp.org>
      
      	* app/appenums.h: added GimpDropMode...
      	* app/gimpdnd.h: ...removed from here.
      
      	* app/gimpimage.[ch]:
      	- New signal "mode_changed".
      	- removed "const GimpImage*" from gimp_image_colormap_changed()
      	  because a signal emission is never "const" for the object
      	  which emits the signal.
      	- Fixed gimp_image_[set|get]_component_[active|visible]():
      	  ALPHA_CHANNEL maps to ALPHA_PIX only in RGB mode, use
      	  ALPHA_G_PIX/ALPHA_I_PIX in GRAY/INDEXED mode.
      
      	* app/gimpimage-convert.c
      	* app/undo.c: call gimp_image_mode_changed().
      
      	* app/gimpviewable.c: added an implementation of
      	"invalidate_preview" which frees the preview temp_buf which may be
      	attached to the viewable. Subclasses need to chain up now.
      
      	* app/gimpdrawable.c
      	* app/gimpimage.c: chain up in invalidate_preview().
      
      	* app/widgets/gimpchannellistview.c: connect to the image's
      	"mode_changed" signal and rebuild the channel list in the
      	callback.
      
      	* app/widgets/gimpcontainerview.h: indentation.
      
      	* app/widgets/gimpdockbook.c: set the dockable's context to NULL
      	in gimp_dockbook_remove()
      
      	* app/widgets/gimpimagedock.c: forgot to actually set the dock's
      	image in gimp_image_dock_new().
      
      	* app/gui/dialogs-constructors.c: added a get_name_func() for tool
      	views which returns the tool's "blurb". It's safe to assume now
      	that a dockable's context will exist as long as the dockable
      	exists unless it's explicitely set to NULL, so remove ugly hacks
      	handling context destruction.
      
      	* app/tools/gimptool.c: removed COMPAT_CRUFT and useless #include's.
      59b06707
  37. 03 May, 2001 1 commit
    • Michael Natterer's avatar
      removed typedefs from the widgets/ subdir. · f5f8acf3
      Michael Natterer authored
      2001-05-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/apptypes.h: removed typedefs from the widgets/ subdir.
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h: new file.
      
      	* app/widgets/gimpcontainermenu.[ch]
      	* app/widgets/gimpcontainerview.[ch]: synced them again and added a
      	"get_name_func"
      
      	* app/widgets/gimplistitem.[ch]
      	* app/widgets/gimpmenuitem.[ch]: add a "get_name_func" and use it
      	to get the item's name.
      
      	* app/widgets/gimpcontainerlistview.c
      	* app/widgets/gimpcontainermenuimpl.c: pass the get_name_func to
      	the created items.
      
      	* app/widgets/gimpchannellistview.c: gtk_widget_queue_resize() the
      	component frame after changing the image.
      
      	* app/widgets/gimpcomponentlistitem.c: set a custom
      	get_name_func() so the components are named Red, Green, ... again.
      
      	* app/widgets/gimpimagedock.c: set a custom get_name_func() which
      	returns names like in the old L&C dialog's image menu.
      
      	* tools/pdbgen/Makefile.am: don't scan apptypes.h for enums.
      f5f8acf3