Commit Graph

2178 Commits

Author SHA1 Message Date
Sven Neumann d9c4bdc4aa app/tools/gimpcurvestool.c app/tools/gimplevelstool.c added missing casts.
2005-06-27  Sven Neumann  <sven@gimp.org>

	* app/tools/gimpcurvestool.c
	* app/tools/gimplevelstool.c
	* app/widgets/gimpwidgets-constructors.c: added missing casts.
2005-06-27 15:28:44 +00:00
Sven Neumann b23b035062 added new constructor gimp_enum_combo_box_new_with_model(). Also override
2005-06-27  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpenumcombobox.[ch]: added new constructor
	gimp_enum_combo_box_new_with_model(). Also override the "model"
	property to make it clear that GimpEnumComboBox expects to be
	used with GimpEnumStore.

	* libgimpwidgets/gimpwidgets.def: updated.

	* app/tools/gimpcurvestool.c
	* app/tools/gimplevelstool.c
	* app/widgets/gimpwidgets-constructors.c: use the new constructor.

	* libgimpwidgets/gimpenumlabel.h
	* libgimpwidgets/gimpenumstore.h
	* libgimpwidgets/gimpintcombobox.h
	* libgimpwidgets/gimpintstore.h: use "parent_class", not
	"parent_instance" when including the parent struct.
2005-06-27 13:41:11 +00:00
Sven Neumann 7215e14c34 dialog layout tweaks.
2005-06-27  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpcolordisplayeditor.c: dialog layout tweaks.
2005-06-27 09:35:41 +00:00
Sven Neumann 259e1d13f3 use bold and right-aligned labels for the label titles.
2005-06-25  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpimagepropview.c: use bold and right-aligned
	labels for the label titles.
2005-06-25 18:24:00 +00:00
Sven Neumann feadca6859 use gimp_enum_get_value() to avoid string duplication.
2005-06-25  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpimagepropview.c (gimp_image_prop_view_update):
	use gimp_enum_get_value() to avoid string duplication.
2005-06-25 17:01:50 +00:00
Sven Neumann b40453748b shortened bold labels.
2005-06-25  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpcolordisplayeditor.c: shortened bold labels.
2005-06-25 01:05:22 +00:00
Sven Neumann c002db7b22 use a GtkVPaned.
2005-06-25  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpcolordisplayeditor.c: use a GtkVPaned.
2005-06-25 00:11:59 +00:00
Sven Neumann afddacb1bc added missing id to fix the build.
2005-06-21  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimphelp-ids.h: added missing id to fix the build.
2005-06-20 22:00:57 +00:00
Michael Natterer 213deb5bf1 Oops... 2005-06-20 19:38:07 +00:00
Sven Neumann 57a90113ac capitalization.
2005-06-15  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpgrideditor.c: capitalization.
2005-06-15 21:11:03 +00:00
Sven Neumann 7123168f22 there's no need to keep a reference to the anchor button.
2005-06-15  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimplayertreeview.[ch]: there's no need to keep a
	reference to the anchor button.
2005-06-15 14:52:01 +00:00
Sven Neumann e3800a406e don't display a preview and don't attempt to create one if the image file
2005-06-15  Sven Neumann  <sven@gimp.org>

	* app/core/gimpimagefile.c (gimp_imagefile_load_thumb):
	* app/widgets/gimpthumbbox.c (gimp_thumb_box_auto_thumbnail):
	don't display a preview and don't attempt to create one if the
	image file does not exist any longer (bug #307672).
2005-06-15 10:57:33 +00:00
Michael Natterer 699ad10f79 Allow to use the selected font in the text editor (bug #170299):
2005-06-11  Michael Natterer  <mitch@gimp.org>

	Allow to use the selected font in the text editor (bug #170299):

	* app/widgets/gimptexteditor.[ch]: added a "Use selected font"
	toggle and an API to set/get the selected font name.

	* app/tools/gimptextoptions.c: update the editor's font when the
	text option's font changes. Renamed text editor callbacks to
	gimp_text_options_editor_foo().
2005-06-11 14:18:51 +00:00
Sven Neumann 365f79262b removed unused variable.
2005-06-06  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpcellrendererdashes.c: removed unused variable.
2005-06-06 09:40:07 +00:00
Sven Neumann 157fd5bbca if the area is larger than the brush, center the brush.
2005-06-05  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpviewrendererbrush.c
	(gimp_view_renderer_brush_render_timeout): if the area is larger
	than the brush, center the brush.
2005-06-05 00:03:24 +00:00
Sven Neumann e09ee5e501 app/widgets/gimpcoloreditor.c app/widgets/gimpcursorview.c
2005-06-05  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpcoloreditor.c
	* app/widgets/gimpcursorview.c
	* app/widgets/gimpdataeditor.c
	* app/widgets/gimpeditor.c
	* app/widgets/gimphistogrameditor.c
	* app/widgets/gimppaletteeditor.c: peek at the default interface to
	get the parent interface. Unconditionally chain up in get_aux_info()
	and set_aux_info() methods.
2005-06-04 22:49:53 +00:00
Sven Neumann f173198669 app/widgets/gimpdocked.[ch] moved button-bar API to the GimpDocked
2005-06-05  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpdocked.[ch]
	* app/widgets/gimpeditor.[ch]: moved button-bar API to the
	GimpDocked interface.

	* app/widgets/gimpcontainereditor.c: implement the new interface
	methods and proxy them to the embedded docked.

	* app/actions/dockable-actions.c
	* app/actions/dockable-commands.c: changed accordingly.
2005-06-04 22:32:31 +00:00
Sven Neumann 2832700c04 don't include gimpeditor.h.
2005-06-04  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpcontainerview.h: don't include gimpeditor.h.

	* app/widgets/gimpbufferview.c
	* app/widgets/gimpdocumentview.c
	* app/widgets/gimpfontview.c
	* app/widgets/gimpimageview.c: include it here instead.
2005-06-04 21:20:31 +00:00
Sven Neumann 5412fac02b app/actions/dockable-actions.c app/actions/dockable-commands.[ch]
2005-06-04  Sven Neumann  <sven@gimp.org>

	* app/actions/dockable-actions.c
	* app/actions/dockable-commands.[ch]
	* app/widgets/gimpeditor.[ch]
	* app/widgets/gimphelp-ids.h
	* menus/dockable-menu.xml.in: allow to show/hide the button-bar in
	GimpEditor. Should be merged into the GimpDocked interface.
2005-06-04 21:00:48 +00:00
Sven Neumann 1d59a0c818 validate the iter after appending to the text buffer.
2005-06-04  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpwidgets-utils.c (gimp_text_buffer_load):
	validate the iter after appending to the text buffer.
2005-06-04 17:38:27 +00:00
Sven Neumann 8404a9e4e3 use the viewable's description in the drag icon. Use a larger preview.
2005-06-04  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpdnd.c (gimp_dnd_get_viewable_icon): use the
	viewable's description in the drag icon. Use a larger preview.

	* app/widgets/gimpdockbook.c: tweak spacing and border-width of
	the tab widget if it is being used as drag icon.
2005-06-04 12:54:24 +00:00
Sven Neumann be3a1dcc08 reduced the number of characters to show before ellipsizing the label.
2005-06-04  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpdnd.c (gimp_dnd_get_viewable_icon): reduced the
	number of characters to show before ellipsizing the label.

	* libgimpwidgets/gimpcolorarea.c: added a "draw-border" property.

	* app/widgets/gimpcolorframe.c: draw a border around the color area.
2005-06-04 10:12:03 +00:00
Sven Neumann b9186b8378 added property for "mode", fixed some implementation issues.
2005-06-04  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpcolorframe.[ch]: added property for "mode",
	fixed some implementation issues.

	* app/widgets/gimpsamplepointeditor.c: create the color frames
	using g_object_new().
2005-06-04 00:56:00 +00:00
William Skaggs 48845d0a05 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/widgets/gimpcolorframe.[ch]: add "has-color-area" property,
	FALSE by default.

	* app/widgets/gimpsamplepointeditor.c: explicitly add a color
	area to the color frames.
2005-06-03 23:57:02 +00:00
Sven Neumann 33131e6a82 show the viewable's name in the drag icon.
2005-06-04  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpdnd.c (gimp_dnd_get_viewable_icon): show the
	viewable's name in the drag icon.
2005-06-03 23:55:05 +00:00
Michael Natterer 5dd7b6443b bail out early if the view has no container (instead of crashing).
2005-06-04  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpcontainertreeview-dnd.c
	(gimp_container_tree_view_drop_status): bail out early if the view
	has no container (instead of crashing).
2005-06-03 23:53:48 +00:00
Michael Natterer 39a8c9685a added API to show a number in front of the color area.
2005-06-04  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpcolorframe.[ch]: added API to show a number in
	front of the color area.

	* app/widgets/gimpsamplepointeditor.c: use the new API to put the
	sample points' numbers there.
2005-06-03 22:34:28 +00:00
Michael Natterer 635795cc50 pack the color area and the labels into different vboxes to make the
2005-06-03  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpcolorframe.c (gimp_color_frame_init): pack the
	color area and the labels into different vboxes to make the widget
	compact again.
2005-06-03 21:36:29 +00:00
William Skaggs b2465d29f7 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/widgets/gimpcolorframe.[ch]: add a color area, to make
	sample points dialog show a swatch of color for each point.
2005-06-01 20:10:39 +00:00
Sven Neumann 07d6c60432 added missing cast.
2005-05-31  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpaction.c (gimp_action_set_proxy): added missing
	cast.
2005-05-31 14:51:13 +00:00
Michael Natterer 82d1b13b5c re-enabled tooltips on the "Open Recent" menu items, using an evil but
2005-05-31  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpaction.c (gimp_action_set_proxy): re-enabled
	tooltips on the "Open Recent" menu items, using an evil but
	documented heuristic.
2005-05-31 13:56:46 +00:00
Sven Neumann 101c5a2dc9 pass GIMP_COLOR_AREA_CHECKS_SMALL instead of TRUE for the type of the
2005-05-29  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpdnd.c (gimp_dnd_get_color_icon): pass
	GIMP_COLOR_AREA_CHECKS_SMALL instead of TRUE for the type of the
	GimpColorArea.

	* app/widgets/gimpcoloreditor.c: added a "context" property.

	* libgimpwidgets/gimpcolorarea.c (gimp_color_area_set_color):
	always use gimp_rgba_distance(), regardless of the area's type.
2005-05-29 13:48:03 +00:00
Sven Neumann 3dcd00c127 Use the canonical form for signal names.
2005-05-27  Sven Neumann  <sven@gimp.org>

	* (lots of files): Use the canonical form for signal names.
2005-05-28 00:21:58 +00:00
Sven Neumann 93eab43eef Use the canonical form for signal names.
2005-05-27  Sven Neumann  <sven@gimp.org>

	* (lots of files): Use the canonical form for signal names.
2005-05-27 16:51:39 +00:00
Sven Neumann 3ca90a182e Use the canonical form for signal names in lots of places (but by far not
2005-05-27  Sven Neumann  <sven@gimp.org>

	* (lots of files): Use the canonical form for signal names in lots
	of places (but by far not all).
2005-05-27 13:05:26 +00:00
Sven Neumann 9a5cd29c69 connect to "name-changed" of the active drawable and change the name
2005-05-27  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimphistogrameditor.[ch]: connect to "name-changed"
	of the active drawable and change the name displayed in the editor.
2005-05-27 11:48:50 +00:00
Sven Neumann 684591f81c added a name label (with properties to show/hide and to set it).
2005-05-27  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpeditor.[ch]: added a name label (with properties
	to show/hide and to set it).

	* app/widgets/gimpcontainergridview.[ch]
	* app/widgets/gimphistogrameditor.[ch]: removed the label here and
	use the functionality now provided by GimpEditor instead.

	* app/widgets/gimpcontainerpopup.c: changed accordingly.
2005-05-27 11:40:06 +00:00
Sven Neumann e0b3fdfc3c fixed gtk-doc comments.
2005-05-25  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpclipboard.[ch]: fixed gtk-doc comments.
2005-05-25 11:23:06 +00:00
Michael Natterer 7abaab62e0 added virtual function GimpViewable::get_size() and public API
2005-05-25  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpviewable.[ch]: added virtual function
	GimpViewable::get_size() and public API gimp_viewable_get_size()
	which return width and height and a boolean indicating if the
	viewable has a size at all.
	Added default implementation of GimpViewable::get_popup_size()
	using the new get_size() API.

	* app/core/gimpbrush.c
	* app/core/gimpbuffer.c
	* app/core/gimpdrawable.c
	* app/core/gimpimage.c
	* app/core/gimppattern.c: implement GimpViewable::get_size().

	* app/core/gimpbrush.c
	* app/core/gimppattern.c: removed GimpViewable::get_popup_size()
	implementations, the default one is good enough.

	* app/core/gimpbrushpipe.c (gimp_brush_pipe_get_popup_size):
	redirect to gimp_viewable_get_size() instead of duplicating its
	return values.

	* app/widgets/gimpcontainertreeview.c
	* app/widgets/gimpview.c: allow pixbuf dragging out of any
	viewable that has a size.

	* app/widgets/gimpdrawabletreeview.c: removed pixbuf dragging code
	here.

	* app/widgets/gimpdnd.c: set gimp busy around encoding/decoding
	pixbufs into/from GtkSelectionData, because it can be a time
	consuming operation.
2005-05-25 10:05:17 +00:00
Michael Natterer 4bbeec9640 fixed type of the dropped layer.
2005-05-25  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimptoolbox-dnd.c (gimp_toolbox_drop_pixbuf): fixed
	type of the dropped layer.
2005-05-25 09:54:05 +00:00
Sven Neumann 8f141bcb08 ellipsize the dockable title if it is too wide.
2005-05-25  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpdockable.c: ellipsize the dockable title if it
	is too wide.

	* app/widgets/gimpstrokeeditor.c: added mnemonic for the presets
	combo.
2005-05-25 09:45:06 +00:00
Michael Natterer 6ada399543 oops... 2005-05-24 22:24:44 +00:00
Michael Natterer a398aba3d2 implemented dropping of pixbufs. Bail out early from all callbacks if
2005-05-25  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimptoolbox-dnd.c: implemented dropping of pixbufs.
	Bail out early from all callbacks if gimp->busy is TRUE.
2005-05-24 22:22:24 +00:00
Sven Neumann ed19b5aabe we don't actually need to keep a pointer to the dashes array.
2005-05-23  Sven Neumann  <neumann@jpk.com>

	* app/widgets/gimpcellrendererdashes.[ch]: we don't actually need to
	keep a pointer to the dashes array.
	(gimp_cell_renderer_dashes_render): respect horizontal padding.

	* app/widgets/gimpstrokeeditor.c: added 2 pixels horizontal
	padding for the dashes cell-renderer.
2005-05-23 09:37:05 +00:00
Sven Neumann 7358758f68 minor cleanup.
2005-05-22  Sven Neumann  <sven@gimp.org>

	* app/core/gimpdashpattern.c: minor cleanup.

	* app/widgets/gimpcellrendererdashes.c: don't draw a background,
	draw the dash pattern twice, use the correct widget state.
2005-05-22 12:20:25 +00:00
Sven Neumann a8318e18c5 added utility functions to copy and to free a dash pattern.
2005-05-21  Sven Neumann  <sven@gimp.org>

	* app/core/gimpdashpattern.[ch]: added utility functions to copy
	and to free a dash pattern.

	* app/widgets/Makefile.am
	* app/widgets/widgets-types.h
	* app/widgets/gimpcellrendererdashes.[ch]: added a simple cell
	renderer to visualize a dash pattern.

	* app/widgets/gimpstrokeeditor.c: show previews of the dash
	presets in the combo-box.
2005-05-21 20:24:42 +00:00
Sven Neumann 5dd652faba improved reporting of errors while parsing the menu definitions.
2005-05-21  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpuimanager.c: improved reporting of errors
	while parsing the menu definitions.
2005-05-21 14:13:33 +00:00
Sven Neumann 282da81e53 moved the color picker button out of the row of notebook switching buttons
2005-05-20  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpcoloreditor.c: moved the color picker button out
	of the row of notebook switching buttons next to the hex entry.
2005-05-20 10:54:44 +00:00
Sven Neumann 38f5546f5b removed the hex entry from the GimpColorScales widget.
2005-05-19  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpcolorscales.c: removed the hex entry from the
	GimpColorScales widget.

	* libgimpwidgets/gimpcolorselection.c: added it here instead.

	* app/widgets/gimpcoloreditor.[ch]: and here, next to the FG/BG
	editor.
2005-05-19 17:08:03 +00:00
Sven Neumann 9b29707961 renamed property "miter" to "miter-limit" and added a description to be
2005-05-19  Sven Neumann  <sven@gimp.org>

	* app/core/gimpstrokeoptions.[ch]: renamed property "miter" to
	"miter-limit" and added a description to be used as a tooltip in
	the stroke editor.

	* app/core/gimpdrawable-stroke.c
	* app/widgets/gimpstrokeeditor.c: changed accordingly.
2005-05-19 15:17:30 +00:00