Commit Graph

8644 Commits

Author SHA1 Message Date
Sven Neumann 9000f4a9d8 removed the quit dialog code here.
2004-07-09  Sven Neumann  <sven@gimp.org>

	* app/gui/gui.c: removed the quit dialog code here.

	* app/gui/Makefile.am
	* app/gui/quit-dialog.[ch]: added new files that hold the old code
	for now.

2004-07-09  Sven Neumann  <sven@gimp.org>

	* POTFILES.in: updated.
2004-07-09 20:38:35 +00:00
Michael Natterer dd9cb1c99c #include <glib-object.h> instead of <gtk/gtk.h>.
2004-07-09  Michael Natterer  <mitch@gimp.org>

	* app/pdb/procedural_db.c: #include <glib-object.h> instead of
	<gtk/gtk.h>.
2004-07-09 19:26:34 +00:00
Michael Natterer 8d9e362249 app/gui/Makefile.am app/gui/brush-select.[ch] app/gui/font-select.[ch]
2004-07-09  Michael Natterer  <mitch@gimp.org>

	* app/gui/Makefile.am
	* app/gui/brush-select.[ch]
	* app/gui/font-select.[ch]
	* app/gui/gradient-select.[ch]
	* app/gui/palette-select.[ch]
	* app/gui/pattern-select.[ch]: removed...

	* app/widgets/Makefile.am
	* app/widgets/widgets-types.h
	* app/widgets/gimppdbdialog.[ch]
	* app/widgets/gimpdataselect.[ch]
	* app/widgets/gimpbrushselect.[ch]
	* app/widgets/gimpgradientselect.[ch]
	* app/widgets/gimppaletteselect.[ch]
	* app/widgets/gimppatternselect.[ch]
	* app/widgets/gimpfontselect.[ch]: ...and added here as a
	hierarchy of widgets.

	* app/widgets/gimpdatafactoryview.h: removed typdef
	GimpDataEditFunc, it's in widgets-types.h now.

	* app/gui/convert-dialog.c: changed accordingly.

	* app/core/gimp.[ch]: added vtable entries for creating, closing
	and setting PDB dialogs.

	* app/gui/gui-vtable.c: implement the vtable entries using the new
	widgets.

	* tools/pdbgen/pdb/brush_select.pdb
	* tools/pdbgen/pdb/font_select.pdb
	* tools/pdbgen/pdb/gradient_select.pdb
	* tools/pdbgen/pdb/palette_select.pdb
	* tools/pdbgen/pdb/pattern_select.pdb: use the new functions of
	the Gimp object to create / manage the selection dialogs. The
	generated files don't depend on GUI stuff any longer.

	* app/pdb/brush_select_cmds.c
	* app/pdb/font_select_cmds.c
	* app/pdb/gradient_select_cmds.c
	* app/pdb/palette_select_cmds.c
	* app/pdb/pattern_select_cmds.c: regenerated.
2004-07-09 19:14:59 +00:00
Sven Neumann ac9e95bb6f improved text of the dialog.
2004-07-09  Sven Neumann  <sven@gimp.org>

	* app/gui/file-save-dialog.c (file_save_overwrite): improved text
	of the dialog.
2004-07-09 18:43:27 +00:00
Sven Neumann 9ab84cad13 document that "help-func" and "help-id" properties have been added for
2004-07-09  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpdialog.c (gimp_dialog_class_init): document
	that "help-func" and "help-id" properties have been added for 2.2.
2004-07-08 22:56:29 +00:00
Sven Neumann 458ea9a50e reverted my last change. (gimp_histogram_editor_item_visible): fix the
2004-07-09  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimphistogrameditor.c
	(gimp_histogram_editor_menu_update): reverted my last change.
	(gimp_histogram_editor_item_visible): fix the problem here instead.
2004-07-08 22:45:36 +00:00
Michael Natterer 788ae2fd5f removed "role" property because GtkWindow has an equivalent property now.
2004-07-08  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimpdialog.c: removed "role" property because
	GtkWindow has an equivalent property now. Added "help-func" and
	"help-id" construct properties.

	* app/widgets/gimptexteditor.c
	* app/widgets/gimptooldialog.c
	* app/widgets/gimpviewabledialog.c: removed calls to
	gimp_help_connect() and pass help_func and help_id to
	g_object_new().
2004-07-08 21:57:05 +00:00
Michael Natterer bb8a795e04 fixed typo in API docs.
2004-07-08  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimphelpui.c (gimp_context_help): fixed typo in
	API docs.
2004-07-08 21:41:39 +00:00
Shlomi Fish 555c95ea27 converted the newlines in the descriptions to whitespaces, so they'll
* plug-ins/gimpressionist/Presets: converted the newlines in the
descriptions to whitespaces, so they'll simply wrap (in accordance
with making the description label wrappable).
2004-07-08 17:47:17 +00:00
Shlomi Fish d0e884d722 Added the change log entry that was not added in my last commit. Removed
a file that should not be in the CVS.
2004-07-08 16:16:18 +00:00
Sven Neumann 1746c311e7 set the active item of the combo-box after changing the visibility filter.
2004-07-08  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimphistogrameditor.c
	(gimp_histogram_editor_menu_update): set the active item of the
	combo-box after changing the visibility filter.
2004-07-08 13:23:27 +00:00
Michael Natterer c8d9457f07 same fix as below.
2004-07-08  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimppropwidgets.c (gimp_prop_boolean_combo_box_notify):
	same fix as below.
2004-07-08 13:17:06 +00:00
Sven Neumann 822db32134 block gimp_prop_enum_combo_box_callback() before changing the combo-box.
2004-07-08  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimppropwidgets.c (gimp_prop_enum_combo_box_notify):
	block gimp_prop_enum_combo_box_callback() before changing the
	combo-box.
2004-07-08 12:50:15 +00:00
Sven Neumann 8bc46f69f3 only write aux-info for properties that have been changed from their
2004-07-08  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpsessioninfo.c: only write aux-info for properties
	that have been changed from their default values.

	* app/widgets/gimphistogrameditor.c: some code cleanup.
2004-07-08 12:04:15 +00:00
Michael Natterer d18097028e added a "const gchar *format" parameter to
2004-07-08  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpselectiondata.[ch]: added a "const gchar *format"
	parameter to gimp_selection_data_set_pixbuf() which selects the
	format in which to encode the pixbuf (was defaulting to "png"
	before).

	* app/widgets/gimpclipboard.c: when copying, offer all formats which
	are savable with GdkPixbuf. Added a GimpClipboard struct which is
	attached to the Gimp and which stores all the persistent data
	needed by the clipboard. Renamed some private functions.

	(unfortunately this change breaks pasting to AbiWord:
	 http://bugzilla.abisource.com/show_bug.cgi?id=7068)
2004-07-08 11:27:48 +00:00
Sven Neumann a4ac4de072 app/config/gimpconfig-deserialize.c removed redundant casts.
2004-07-08  Sven Neumann  <sven@gimp.org>

	* app/config/gimpconfig-deserialize.c
	* app/config/gimpconfig-serialize.c: removed redundant casts.

	* app/widgets/gimpsessioninfo.[ch]: added convenience functions to
	get and set aux-info based on object properties.

	* app/widgets/gimphistogrameditor.c: use the new functions to save
	a histogram's channel and scale in the sessionrc.
2004-07-08 00:09:41 +00:00
Sven Neumann 73b1182c80 sort the list of pixbuf formats so that PNG is the preferred format and
2004-07-07  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpclipboard.c: sort the list of pixbuf formats so
	that PNG is the preferred format and GIF and JPEG come last.
2004-07-07 18:09:14 +00:00
William Skaggs f8869bd1cd Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/gfig/*.[ch]: Use single centralized functions to
	create, load, and save objects, instead of separate functions
	for each type of object. A few other miscellaneous fixes.
2004-07-07 17:52:16 +00:00
Michael Natterer 94163a8beb changed to allow pasting any GdkPixbuf supported format (makes pasting
2004-07-07  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpclipboard.[ch]: changed to allow pasting any
	GdkPixbuf supported format (makes pasting from OpenOffice
	work). Cleaned up a bit to perpare pasting of SVG data.
2004-07-07 16:02:23 +00:00
Sven Neumann b8897d2bfb add an alpha channel if the src tile-manager doesn't have one. Warn on
2004-07-07  Sven Neumann  <sven@gimp.org>

	* app/core/gimplayer.c (gimp_layer_new_from_tiles): add an alpha
	channel if the src tile-manager doesn't have one. Warn on
	unsupported type conversions instead of silently doing the wrong
	thing. Fixes bug #145482.

	* app/core/gimpbuffer.c: cosmetics.
2004-07-07 15:07:17 +00:00
Michael Natterer 8fc8cb487c app/gui/Makefile.am removed...
2004-07-07  Michael Natterer  <mitch@gimp.org>

	* app/gui/Makefile.am
	* app/gui/clipboard.[ch]: removed...

	* app/widgets/Makefile.am
	* app/widgets/gimpclipboard.[ch]: ...and added here.

	* app/actions/edit-commands.c
	* app/gui/gui.c: changed accordingly.
2004-07-07 14:38:23 +00:00
Michael Natterer 525a98f81a Made the undo system robust against the currently pushed undo being too
2004-07-07  Michael Natterer  <mitch@gimp.org>

	Made the undo system robust against the currently pushed undo
	being too large according to prefs settings. Fixes bug #145379.

	* app/core/gimpimage-undo.[ch] (gimp_image_undo_push_undo)
	(gimp_image_undo_group_end): emit "undo-event" *before* calling
	gimp_image_undo_free_space() so the undo history doesn't try to
	remove an item that has never been added.

	(gimp_image_undo_push_undo): added boolean return value indicating
	if the undo could be pushed (FALSE means the undo was to large
	and was discarded right away).

	(gimp_image_undo_push_item): return NULL if the above returned
	FALSE.

	* app/core/gimpimage-undo-push.c (gimp_image_undo_push_text_layer):
	changed accordingly.
2004-07-07 13:58:51 +00:00
Manish Singh 59736893ab Don't try to load EXIF data if any warnings happened, cause that likely
2004-07-07  Manish Singh  <yosh@gimp.org>

        * plug-ins/common/jpeg.c: Don't try to load EXIF data if any warnings
        happened, cause that likely means corruption and libexif doesn't
        handle that very happily. Addresses bug #145212. Perhaps the error and
        warning messages should be propagated to the user in the GUI somehow,
        currently they are not.
2004-07-07 12:33:58 +00:00
Michael Natterer c5640071f5 added "..." to "Clear undo history" because it has a confirmation dialog.
2004-07-07  Michael Natterer  <mitch@gimp.org>

	* app/actions/edit-actions.c (edit_actions): added "..." to "Clear
	undo history" because it has a confirmation dialog.

	* app/actions/edit-commands.c: cleanup: moved static functions to
	the end of the file and prototyped them.
2004-07-07 09:43:35 +00:00
Sven Neumann 2d412472c2 fixed a drawing bug I introduced earlier today.
2004-07-07  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimphistogramview.c (gimp_histogram_view_expose):
	fixed a drawing bug I introduced earlier today.
2004-07-07 01:59:33 +00:00
Michael Natterer 2086cf17cc app/actions/view-actions.c added actions and callbacks for scrolling the
2004-07-07  Michael Natterer  <mitch@gimp.org>

	* app/actions/view-actions.c
	* app/actions/view-commands.[ch]: added actions and callbacks for
	scrolling the view. Not used in menus but useful for controllers.
2004-07-07 01:15:41 +00:00
Sven Neumann 9f25f8608b adapt the arrow key velocity to the display scale factor. Please test and
2004-07-07  Sven Neumann  <sven@gimp.org>

	* app/tools/gimpeditselectiontool.c
	(gimp_edit_selection_tool_key_press): adapt the arrow key velocity
	to the display scale factor. Please test and complain if you
	dislike this behaviour.

	* themes/Default/images/Makefile.am
	* themes/Default/images/stock-color-pick-from-screen-16.png: new
	icon drawn by Jimmac.

	* libgimpwidgets/gimpstock.[ch]: register the new icon.

	* libgimpwidgets/gimppickbutton.c: use it for the screen color
	picker instead of reusing the color picker tool icon.
2004-07-06 22:58:33 +00:00
William Skaggs 2b46a2536f Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/gfig/*.[ch]:  a bunch of code clean-up and
	debugging.  Created "classes" for the objects, and
	attached functions to classes rather than objects.
2004-07-06 19:32:55 +00:00
Sven Neumann ef885f7691 Added an RGB histogram based on a patch by Tor Lillqvist. Fixes bug
2004-07-06  Sven Neumann  <sven@gimp.org>

	Added an RGB histogram based on a patch by Tor Lillqvist. Fixes
	bug #145401.

	* app/base/base-enums.[ch]: added GIMP_HISTOGRAM_RGB, don't export
	it to the PDB.

	* app/base/gimphistogram.c: implemented histogram functions for
	the RGB mode.

	* app/base/levels.c
	* app/tools/gimpcurvestool.c
	* app/tools/gimplevelstool.c
	* app/widgets/gimpcolorbar.c
	* app/widgets/gimphistogrameditor.c: handle the new enum value.

	* app/widgets/gimphistogramview.c: for GIMP_HISTOGRAM_RGB mode,
	draw a histogram that shows the RGB channels simultaneously
2004-07-06 16:33:30 +00:00
Sven Neumann 5b5e8c05fc comply with C99 aliasing rules.
2004-07-06  Sven Neumann  <sven@gimp.org>

	* libgimpmodule/gimpmodule.c: comply with C99 aliasing rules.
2004-07-06 16:05:32 +00:00
Michael Natterer fa668df1ee call gtk_menu_set_monitor() only for GTK+ < 2.4.4 and added a #warning
2004-07-06  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpwidgets-utils.c (gimp_menu_position)
	(gimp_button_menu_position): call gtk_menu_set_monitor() only
	for GTK+ < 2.4.4 and added a #warning about it.
2004-07-06 15:05:47 +00:00
Sven Neumann cc09735a20 applied patch from Shlomi Fish that fixes confusion of filenames and
2004-07-06  Sven Neumann  <sven@gimp.org>

	* plug-ins/gimpressionist: applied patch from Shlomi Fish that
	fixes confusion of filenames and user-visible object names (bug
	#132621). Also removed function remove_trailing_whitespace() that
	used to duplicate functionality from GLib and updated
	preset_create_filename().
2004-07-06 14:17:17 +00:00
Michael Natterer 3b7fc27b5e queue an idle update when setting the viewable to NULL so the view gets
2004-07-06  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimppreviewrenderer.c
	(gimp_preview_renderer_set_viewable): queue an idle update when
	setting the viewable to NULL so the view gets cleared correctly.

	(gimp_preview_renderer_idle_update): call
	gimp_preview_renderer_update() even if renderer->viewable is NULL
	so clearing the viewable gets propagated to the GUI.

	Moved clearing the viewable and removing the idle from
	GObject::finalize() to GObject::dispose() because calling
	set_viewable() with a NULL viewable triggers typechecking casts
	and queuing idle functions, which is not nice in finalize().
2004-07-06 13:18:42 +00:00
Sven Neumann e05541a54a added back $(LCMS_LIBS) that I had accidentally removed.
2004-07-06  Sven Neumann  <sven@gimp.org>

	* modules/Makefile.am (libcdisplay_proof_la_LIBADD): added back
	$(LCMS_LIBS) that I had accidentally removed.
2004-07-06 12:54:45 +00:00
Sven Neumann d5724ff596 return the proper type.
2004-07-06  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpvectorstreeview.c (gimp_vectors_tree_view_drag_svg):
	return the proper type.
2004-07-06 10:54:46 +00:00
Michael Natterer 960c32e94a connect to "editing-canceled" of the name cell renderer and restore the
2004-07-06  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpcontainertreeview.c: connect to
	"editing-canceled" of the name cell renderer and restore the
	original text in the callback. Doesn't work reliably until GTK+
	bug #145463 is fixed.
2004-07-05 22:50:38 +00:00
Sven Neumann 51aa99574e fixed a compiler warning.
2004-07-05  Sven Neumann  <sven@gimp.org>

	* app/plug-in/plug-in-rc.c (plug_in_icon_deserialize): fixed a
	compiler warning.

	* plug-ins/common/dog.c: removed some redundant casts and other
	trivial cleanups.
2004-07-05 22:28:09 +00:00
Michael Natterer cade89ab61 removed #define GIMP_CONTROLLER_PARAM_SERIALIZE.
2004-07-06  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimpcontroller.h: removed #define
	GIMP_CONTROLLER_PARAM_SERIALIZE.

	* libgimpmodule/gimpmoduletypes.h: added
	GIMP_MODULE_PARAM_SERIALIZE instead.

	* modules/controller_linux_input.c
	* modules/controller_midi.c: changed accordingly.

	* modules/cdisplay_colorblind.c
	* modules/cdisplay_gamma.c
	* modules/cdisplay_highcontrast.c
	* modules/cdisplay_proof.c: made the new properties serializable.
2004-07-05 22:12:54 +00:00
Michael Natterer ddd4e1c760 don't scan app/paint-funcs/paint-funcs-types.h for enums.
2004-07-05  Michael Natterer  <mitch@gimp.org>

	* tools/pdbgen/Makefile.am (enum_headers): don't scan
	app/paint-funcs/paint-funcs-types.h for enums.

	* app/paint-funcs/paint-funcs-types.h: removed /*< pdb-skip >*/

	* app/core/core-types.h: reordered opaque typedefs to somehow
	match the categories in the comments.
2004-07-05 21:39:54 +00:00
Michael Natterer d2292ffe35 removed enum SizeType.
2004-07-05  Michael Natterer  <mitch@gimp.org>

	* app/core/core-types.h: removed enum SizeType.

	* app/text/text-enums.h: added it as enum GimpSizeType and added
	comment that it's for backward compatibility only.

	* tools/pdbgen/Makefile.am
	* tools/pdbgen/pdb/text_tool.pdb: changed accordingly.

	* libgimp/gimpenums.h
	* plug-ins/pygimp/gimpenums.py
	* plug-ins/script-fu/script-fu-constants.c
	* tools/pdbgen/enums.pl: regenerated (pdbgen insisted on
	reordering the enums).
2004-07-05 20:55:05 +00:00
Michael Natterer a31bbed6c7 #define MIN and MAX values for GimpCoords.pressure, .tilt and .wheel.
2004-07-05  Michael Natterer  <mitch@gimp.org>

	* app/core/core-types.h: #define MIN and MAX values for
	GimpCoords.pressure, .tilt and .wheel.

	* app/display/gimpdisplayshell-callbacks.c
	(gimp_display_shell_get_event_coords)
	(gimp_display_shell_get_device_coords): use the #defines instead
	of hardcoded magic values when CLAMP()ing event or device values.
2004-07-05 18:48:43 +00:00
Sven Neumann ee163c049b link all modules with libgimpmodule.
2004-07-05  Sven Neumann  <sven@gimp.org>

	* modules/Makefile.am: link all modules with libgimpmodule.
2004-07-05 18:36:24 +00:00
William Skaggs cf0b598199 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/common/dog.c: improved defaults.  use gimp_invert()
	instead of rolling own.  Use nasty hack to get previews to
	work with grayscale images.  Accept grayscale images.
2004-07-05 18:18:32 +00:00
Sven Neumann 6d25d84534 Removed the basename parameter and use the object name instead. Convert it
2004-07-05  Sven Neumann  <sven@gimp.org>

	* app/core/gimpdata.[ch] (gimp_data_create_filename): Removed the
	basename parameter and use the object name instead. Convert it to
	the filesystem encoding.

	* app/core/gimpdatafactory.c: changed accordingly.
2004-07-05 18:10:05 +00:00
Sven Neumann afe4ff8290 applied patch from Shlomi Fish that fixes a number of bugs in the
2004-07-05  Sven Neumann  <sven@gimp.org>

	* plug-ins/gimpressionist: applied patch from Shlomi Fish that
	fixes a number of bugs in the gimpressionst plug-in (bug #145309).

	Also added some const qualifiers, cleaned up includes and removed
	degtorad() and radtodeg() functions that used to duplicate
	functionality from libgimpmath.
2004-07-05 16:50:46 +00:00
Michael Natterer 49a46c76a0 removed unused local variables.
2004-07-05  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimptemplateview.c
	(gimp_template_view_tree_name_edited): removed unused local variables.
2004-07-05 14:57:22 +00:00
Sven Neumann e3d54897c6 don't g_free() a GdkPixbuf, it's an object. Removed trailing whitespace.
2004-07-05  Sven Neumann  <sven@gimp.org>

	* plug-ins/gfig/gfig-dialog.c: don't g_free() a GdkPixbuf, it's an
	object. Removed trailing whitespace.

	* plug-ins/gfig/gfig-preview.c (draw_background): fixed declaration.
2004-07-05 13:28:34 +00:00
Michael Natterer 5ce611e0d8 return TRUE if initialization was successful. Makes the tool->drawable
2004-07-05  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimpcolorizetool.c (gimp_colorize_tool_initialize):
	return TRUE if initialization was successful. Makes the
	tool->drawable pointer being set correctly by the calling code and
	fixes bugs where colorize was leaving the drawable in a modified
	but non-undoable state when cancelling or changing images.
2004-07-05 12:54:58 +00:00
Sven Neumann e119a2eb6f use object properties for the configurable values.
2004-07-05  Sven Neumann  <sven@gimp.org>

	* modules/cdisplay_proof.c: use object properties for the
	configurable values.
2004-07-05 11:26:30 +00:00
Michael Natterer d476ee65ae added signal "color-changed" and emit it in gimp_channel_set_color() and
2004-07-05  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpchannel.[ch]: added signal "color-changed" and emit
	it in gimp_channel_set_color() and gimp_channel_set_opacity().

	* app/core/gimpimage-qmask.[ch]: added new functions
	gimp_image_set,get_qmask_color().

	* app/core/gimpimage.[ch]: install a "color-changed" handler on
	gimage->channels and update gimage->qmask_color when the qmask's
	color changes. Fixes bug #145361.

	* app/actions/qmask-commands.c: use the new qmask color API.
2004-07-05 11:18:34 +00:00