1. 27 Sep, 2004 3 commits
    • Michael Natterer's avatar
      cleanup. · 24f8d7e7
      Michael Natterer authored
      2004-09-27  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/data-commands.c: cleanup.
      
      	* app/actions/vectors-commands.c
      	* app/display/gimpdisplayshell.c
      	* tools/pdbgen/pdb/paint_tools.pdb: removed unused #includes.
      
      	* app/text/gimptext-bitmap.c
      	* app/text/gimptext-parasite.c
      	* app/text/gimptext-vectors.c
      	* app/text/gimptext-xlfd.c
      	* app/text/gimptext.c
      	* app/text/gimptextlayer-xcf.c: include "text-types.h" instead
      	of "text/text-types.h".
      
      	* app/widgets/gimppatternselect.c: create a GimpPatternFactoryView
      	instead of GimpDataFactoryView.
      
      	* app/pdb/paint_tools_cmds.c: regenerated.
      24f8d7e7
    • Michael Natterer's avatar
      app/actions/brushes-actions.c app/actions/gradients-actions.c · 96a27b59
      Michael Natterer authored
      2004-09-27  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/brushes-actions.c
      	* app/actions/gradients-actions.c
      	* app/actions/palettes-actions.c
      	* app/actions/patterns-actions.c: made the "foo-edit" actions
      	GimpStringActions and pass the identifier of the editor dialog
      	to the callback.
      
      	* app/actions/data-commands.[ch] (data_edit_data_cmd_callback):
      	show the editor dialog here instead of calling view->edit_func().
      
      	* app/dialogs/dialogs-constructors.[ch]: removed the brush,
      	gradient and palette edit_funcs.
      
      	* app/widgets/widgets-types.h: removed typedef GimpDataEditFunc.
      
      	* app/widgets/gimpdatafactoryview.[ch]: removed the edit_func
      	member and parameters and create the edit button unconditionally.
      
      	* app/widgets/gimpbrushfactoryview.[ch]
      	* app/widgets/gimppatternfactoryview.[ch]: changed accordingly.
      
      	* app/widgets/Makefile.am
      	* app/widgets/gimpdataselect.[ch]: removed this class, it's not
      	needed any longer.
      
      	* app/widgets/gimpbrushselect.[ch]
      	* app/widgets/gimpgradientselect.[ch]
      	* app/widgets/gimppaletteselect.[ch]
      	* app/widgets/gimppatternselect.[ch]: derive them from GimpPdbDialog
      	and follow the edit_func removal.
      
      	* app/gui/gui-vtable.c (gui_pdb_dialog_new): removed edit_func
      	stuff.
      
      	* app/widgets/gimpcontainereditor.c: minor unrelated cleanup.
      96a27b59
    • Michael Natterer's avatar
      renamed some constructors for consistency and added a (useless) template · f097d886
      Michael Natterer authored
      2004-09-27  Michael Natterer  <mitch@gimp.org>
      
      	* app/dialogs/dialogs-constrcutors.[ch]: renamed some constructors
      	for consistency and added a (useless) template grid.
      
      	* app/dialogs/dialogs.c: make the arrays of GimpDialogFactoryEntries
      	more readable by using macros to define them.
      f097d886
  2. 26 Sep, 2004 9 commits
    • Sven Neumann's avatar
      removed conversion to TempBuf. Instead implement · ab269fc6
      Sven Neumann authored
      2004-09-27  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpimagefile.c: removed conversion to TempBuf.
      	Instead implement GimpViewable::get_new_pixbuf by compositing the
      	thumbnail on a checkerboard.
      
      	* app/widgets/gimpviewrenderer.[ch]: renamed the no_view_pixbuf
      	struct member to pixbuf.
      	(gimp_view_renderer_real_render): try gimp_viewable_get_pixbuf()
      	and render the pixbuf before falling back to the TempBuf preview.
      	(gimp_view_renderer_render_pixbuf): new function that sets a
      	pixbuf for the renderer and flushes the render_buffer.
      
      	* app/widgets/gimpviewrendererimagefile.c
      	(gimp_view_renderer_imagefile_render): render the pixbuf.
      
      	* app/dialogs/dialogs-constructors.c: create the document history
      	dockable with a zero borderwidth.
      ab269fc6
    • Sven Neumann's avatar
      use the GIMP_CHECK_SIZE_SM define, not the enum value · 75a59c68
      Sven Neumann authored
      2004-09-27  Sven Neumann  <sven@gimp.org>
      
      	* tools/pdbgen/pdb/fileops.pdb (file_load_thumbnail_invoker): use
      	the GIMP_CHECK_SIZE_SM define, not the enum value
      	GIMP_CHECK_SIZE_SMALL_CHECKS which is 0 (eeek!).
      
      	* app/pdb/fileops_cmds.c: regenerated.
      
      	* app/widgets/gimphelp.c (gimp_help_get_locales): minor cleanup.
      75a59c68
    • Michael Natterer's avatar
      added "data" property. · 692863b3
      Michael Natterer authored
      2004-09-26  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpdataeditor.[ch]: added "data" property.
      
      	* app/widgets/gimpbrusheditor.c
      	* app/widgets/gimpgradienteditor.c
      	* app/widgets/gimppaletteeditor.c: pass the current data to
      	g_object_new() so we never end up with initially empty editors.
      692863b3
    • Michael Natterer's avatar
      added CONSTRUCT_ONLY "data-factory" property. Removed · db85b169
      Michael Natterer authored
      2004-09-26  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpdataeditor.[ch]: added CONSTRUCT_ONLY
      	"data-factory" property. Removed gimp_data_editor_construct().
      
      	* app/widgets/gimpbrusheditor.c
      	* app/widgets/gimpgradienteditor.c
      	* app/widgets/gimppaletteeditor.c: pass the construct parameters
      	to g_object_new().
      db85b169
    • Sven Neumann's avatar
      changed label alignment to be more HIG conformant and consistent with the · 07e65b01
      Sven Neumann authored
      2004-09-26  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/gimpcolorframe.c: changed label alignment to be more
      	HIG conformant and consistent with the rest of the user interface.
      07e65b01
    • Michael Natterer's avatar
      added "name", "blurb", "stock_id" and "help_id" to struct · 6a50c270
      Michael Natterer authored
      2004-09-26  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpdialogfactory.[ch]: added "name", "blurb",
      	"stock_id" and "help_id" to struct GimpDialogFactoryEntry and to
      	gimp_dialog_factory_dialog_register(). Added typedef
      	GimpDialogConstructor which takes a GimpDialogFactoryEntry in
      	addition to the parameters GimpDialogNewFunc takes. Added a
      	constructor function pointer to GimpDialogFactory which defaults
      	to a function that just returns entry->new_func(). Use that
      	constructor instead of entry->new_func() for creating
      	dialogs. Added public API gimp_dialog_factory_set_constructor().
      
      	* app/dialogs/dialogs.c: register name, blurb, stock_id and
      	help_id for all dockables so all the dialog info lives in one huge
      	ugly table now. For the global_toolbox_factory and the
      	global_dock_factory, set a constructor which creates a dockable
      	around the widget returned by entry->new_func().
      
      	* app/dialogs/dialogs-constructors.[ch]: don't create the dockable
      	in each dialog constructor. Removes tons of code and reduces most
      	constructors to a "return gimp_foo_new(...)" one-liner. Got rid of
      	all static variables, they were from a time when GimpDialogFactory
      	was unable to manage singletons.
      
      	* app/widgets/gimpbrusheditor.[ch]
      	* app/widgets/gimpgradienteditor.[ch]
      	* app/widgets/gimppaletteeditor.[ch]: return GtkWidget, not
      	GimpDataEditor from gimp_foo_editor_new().
      
      	* app/widgets/gimpdataeditor.c: minor cleanups.
      6a50c270
    • Michael Natterer's avatar
      moved stuff from new() to init(). · f6a205f8
      Michael Natterer authored
      2004-09-26  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpcolordialog.c: moved stuff from new() to init().
      f6a205f8
    • Michael Natterer's avatar
      Ported GimpNavigationView to use actions for its buttons: · b4ea222c
      Michael Natterer authored
      2004-09-26  Michael Natterer  <mitch@gimp.org>
      
      	Ported GimpNavigationView to use actions for its buttons:
      
      	* app/menus/menus.c (menus_init): register a <GimpNaviagaionEditor>
      	UI manager containing the "view" action group.
      
      	* app/actions/actions.c (action_data_get_foo): handle "data" being
      	a GimpNavigationEditor.
      
      	* app/actions/view-actions.c (view_actions): added tooltips for
      	the actions used in the editor.
      
      	(view_actions_update): use action_data_get_display() instead of
      	checking the type of "data" manually.
      
      	* app/widgets/gimpeditor.c (gimp_editor_add_action_button): use
      	a GtkToggleButton instead of GimpButton for GtkToggleActions.
      
      	* app/display/gimpnavigationeditor.[ch]: added a GimpMenuFactory
      	parameter to the public constructor and removed all other
      	parameters. Simplified gimp_navigation_editor_new_private() and
      	use gimp_editor_add_action_button() instead of just add_button()
      	for creating the buttons. Made gimp_navigation_view_set_shell()
      	private. Update the UI manager when the shell zooms or scrolls.
      
      	* app/dialogs/dialogs-constructors.c (dialogs_navigation_view_new):
      	pass the menu_factory to gimp_navigation_editor_new().
      
      	Removed #includes which are not needed any more.
      b4ea222c
    • David Odin's avatar
      use the same preview as in all other plug-ins. · 5c6e0c8e
      David Odin authored
      * plug-ins/common/exchange.c: use the same preview as in all other plug-ins.
      5c6e0c8e
  3. 25 Sep, 2004 13 commits
  4. 24 Sep, 2004 10 commits
    • David Odin's avatar
      Added a preview and made some small cleanups. · eb01510e
      David Odin authored
      * plug-ins/common/oilify.c: Added a preview and made some small cleanups.
      eb01510e
    • Sven Neumann's avatar
      try to improve the tooltip for the layer-preview-size gimprc setting. · e06af750
      Sven Neumann authored
      2004-09-24  Sven Neumann  <sven@gimp.org>
      
      	* app/config/gimprc-blurbs.h (LAYER_PREVIEW_SIZE_BLURB): try to
      	improve the tooltip for the layer-preview-size gimprc setting.
      	Addresses bug #153603.
      e06af750
    • Michael Natterer's avatar
      factored common code out of the UNDO amd REDO cases. Use · 877b19c3
      Michael Natterer authored
      2004-09-24  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage-undo-push.c (undo_pop_fs_to_layer): factored
      	common code out of the UNDO amd REDO cases. Use gimp_drawable_update()
      	instead of gimp_viewable_invalidate_preview() so the projection
      	gets updated correctly. Fixes bug #149558.
      
      	* app/core/gimplayer-floating-sel.c (floating_sel_to_layer):
      	removed unused variables and their assignments.
      877b19c3
    • Sven Neumann's avatar
      updated. · f66f8369
      Sven Neumann authored
      2004-09-24  Sven Neumann  <sven@gimp.org>
      
      	* de.po: updated.
      f66f8369
    • Sven Neumann's avatar
      app/app-docs.sgml updated. · 8c0a713f
      Sven Neumann authored
      2004-09-24  Sven Neumann  <sven@gimp.org>
      
      	* app/app-docs.sgml
      	* app/app-sections.txt: updated.
      8c0a713f
    • Sven Neumann's avatar
      added a label that shows the pixel size (as in the initial mockup done by · f4b3d091
      Sven Neumann authored
      2004-09-24  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/gimptemplateeditor.[ch]: added a label that shows
      	the pixel size (as in the initial mockup done by Jimmac).
      f4b3d091
    • Michael Natterer's avatar
      set the folder using gtk_file_chooser_set_current_folder(), not · fd8931f2
      Michael Natterer authored
      2004-09-24  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimpimagemaptool.c
      	(gimp_image_map_tool_settings_dialog): set the folder using
      	gtk_file_chooser_set_current_folder(), not set_filename().
      fd8931f2
    • Sven Neumann's avatar
      app/base/curves.[ch] defined CURVES_NUM_POINTS and use it. · 53ff497a
      Sven Neumann authored
      2004-09-24  Sven Neumann  <sven@gimp.org>
      
      	* app/base/curves.[ch]
      	* app/tools/gimpcurvestool.c: defined CURVES_NUM_POINTS and use it.
      
      	* tools/pdbgen/pdb/color.pdb (curves_spline_invoker): unset the
      	last control point which got initialized to (255,255) by
      	curves_init(). Fixes bug #153635.
      
      	* app/pdb/color_cmds.c: regenerated.
      53ff497a
    • Sven Neumann's avatar
      removed a linebreak from a warning message. · 9e7ebaf5
      Sven Neumann authored
      2004-09-24  Sven Neumann  <sven@gimp.org>
      
      	* app/plug-in/plug-in-message.c: removed a linebreak from a
      	warning message.
      9e7ebaf5
    • Michael Natterer's avatar
      app/paint/gimpairbrushoptions.c app/paint/gimpcloneoptions.c · ff68106b
      Michael Natterer authored
      2004-09-24  Michael Natterer  <mitch@gimp.org>
      
      	* app/paint/gimpairbrushoptions.c
      	* app/paint/gimpcloneoptions.c
      	* app/paint/gimpconvolveoptions.c
      	* app/paint/gimpdodgeburnoptions.c
      	* app/paint/gimperaseroptions.c
      	* app/paint/gimpinkoptions.c
      	* app/paint/gimppaintoptions.c
      	* app/paint/gimppenciloptions.c
      	* app/paint/gimpsmudgeoptions.c
      	* app/tools/gimpblendoptions.c
      	* app/tools/gimpbucketfilloptions.c
      	* app/tools/gimpcoloroptions.c
      	* app/tools/gimpcolorpickeroptions.c
      	* app/tools/gimpcropoptions.c
      	* app/tools/gimpflipoptions.c
      	* app/tools/gimphistogramoptions.c
      	* app/tools/gimpimagemapoptions.c
      	* app/tools/gimpmagnifyoptions.c
      	* app/tools/gimpmeasureoptions.c
      	* app/tools/gimpmoveoptions.c
      	* app/tools/gimppaintoptions-gui.c
      	* app/tools/gimpselectionoptions.c
      	* app/tools/gimptextoptions.c
      	* app/tools/gimptransformoptions.c
      	* app/tools/gimpvectoroptions.c: code cleanup: untabified and
      	trailing whitespace removal, removed empty instance_init()
      	funcions, cleaned up variable declarations/initializations.
      ff68106b
  5. 23 Sep, 2004 5 commits
    • Marco Ciampa's avatar
      Updated italian translation · 6bfa221d
      Marco Ciampa authored
      6bfa221d
    • Michael Natterer's avatar
      app/tools/gimpairbrushtool.c (gimp_airbrush_tool_register) add · db89d80c
      Michael Natterer authored
      2004-09-23  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimpairbrushtool.c (gimp_airbrush_tool_register)
      	* app/tools/gimppenciltool.c (gimp_pencil_tool_register):
      	add GIMP_CONTEXT_GRADIENT_MASK to the tools' context_props because
      	these tools use the current gradient. Fixes bug #153584.
      db89d80c
    • Michael Natterer's avatar
      dialogs/color-dialog.c -> widgets/gimpcolordialog.c · 7d581f4d
      Michael Natterer authored
      2004-09-23  Michael Natterer  <mitch@gimp.org>
      
      	* POTFILES.in: dialogs/color-dialog.c -> widgets/gimpcolordialog.c
      7d581f4d
    • Michael Natterer's avatar
      app/dialogs/Makefile.am removed... · ee5354e4
      Michael Natterer authored
      2004-09-23  Michael Natterer  <mitch@gimp.org>
      
      	* app/dialogs/Makefile.am
      	* app/dialogs/color-dialog.[ch]: removed...
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpcolordialog.[ch]: ...and added as widget.
      
      	* app/core/gimpmarshal.list: new marshaller VOID__BOXED_ENUM.
      
      	* app/widgets/widgets-enums.[ch]: new enum GimpColorDialogState.
      
      	* app/widgets/gimpcolormapeditor.[ch]
      	* app/widgets/gimpcolorpanel.[ch]
      	* app/widgets/gimpgradienteditor.[ch]
      	* app/widgets/gimppaletteeditor.[ch]
      	* app/widgets/gimptoolbox-color-area.c
      	* app/actions/gradient-editor-commands.c
      	* app/actions/view-commands.c: ported to GimpColorDialog. Removes
      	a whole bunch of ugly widgets/ -> dialogs/ dependencies.
      ee5354e4
    • Sven Neumann's avatar
      put the text view into a scrolled window. Removed "changed" callbacks for · 58b08f86
      Sven Neumann authored
      2004-09-23  Sven Neumann  <sven@gimp.org>
      
      	* plug-ins/script-fu/script-fu-interface.c: put the text view into
      	a scrolled window. Removed "changed" callbacks for GtkEntry and
      	GtkTextView. Instead retrieve the final string when the dialog is
      	confirmed.
      
      	* plug-ins/script-fu/scripts/carved-logo.scm
      	* plug-ins/script-fu/scripts/chrome-it.scm
      	* plug-ins/script-fu/scripts/crystal-logo.scm
      	* plug-ins/script-fu/scripts/sota-chrome-logo.scm: use
      	gimp-data-directory instead of the deprecated constant
      	gimp-data-dir.
      
      	* plug-ins/script-fu/scripts/mkbrush.scm: unmarked strings for
      	translation that I marked yesterday. Won't work unfortunately.
      58b08f86