Commit Graph

1322 Commits

Author SHA1 Message Date
Sven Neumann c28b7653f5 make the font scale factor configurable in gtkrc.
2008-10-04  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpruler.c: make the font scale factor
	configurable in gtkrc.

	* themes/Default/gtkrc
	* themes/Small/gtkrc: for documentation, add the default value 
here.


svn path=/trunk/; revision=27121
2008-10-03 22:11:15 +00:00
Hans Breuer d94419a9fd updated include <string.h> for memcmp() include <string.h> for strcmp()
2008-10-03  Hans Breuer  <hans@breuer.org>

	* **/makefie.msc gimpdefs.msc app/gimpcore.def : updated
	* app/core/gimpcurve.c : include <string.h> for memcmp()
	* app/gegl/gimpcurvesconfig.c : include <string.h> for strcmp()

svn path=/trunk/; revision=27118
2008-10-03 19:27:54 +00:00
Michael Natterer 435f6e3974 app/display/gimpdisplayshell-callbacks.c libgimpwidgets/gimpcolorselect.c
2008-09-03  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpdisplayshell-callbacks.c
	* libgimpwidgets/gimpcolorselect.c
	* modules/color-selector-water.c
	* plug-ins/ifs-compose/ifs-compose.c: instead of using
	gdk_window_get_pointer() if GdkEventMotion::is_hint is TRUE,
	simply always use the coords from the event and call
	gdk_event_request_motions() to ask for more motion events. This is
	the recommended way and also works for events from devices other
	than the core pointer.

	* plug-ins/ifs-compose/ifs-compose.c (design_area_motion): some
	code cleanup while i was at it.


svn path=/trunk/; revision=26843
2008-09-03 19:24:51 +00:00
Michael Natterer 5357d42ab3 massively simplified. Don't fiddle in GtkButton's internals (like setting
2008-09-03  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimpbutton.c: massively simplified. Don't fiddle
	in GtkButton's internals (like setting "in_button" and forcing
	redraws). Instead, simply remember the modifier state in
	button_press() and check it in clicked(); if the state is != 0,
	stop the "clicked" emission and emit "extended-clicked" instead.


svn path=/trunk/; revision=26842
2008-09-03 19:03:36 +00:00
Michael Natterer 975f6d0a1a use gtk_widget_get_style() instead of widget->style. Reduce indentation by
2008-09-02  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimpruler.c: use gtk_widget_get_style() instead
	of widget->style. Reduce indentation by one level in
	gimp_ruler_draw_pos().


svn path=/trunk/; revision=26836
2008-09-02 12:30:53 +00:00
Michael Natterer b700d22606 remove g_return_val_if_fail(), this is not a public function.
2008-08-29  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimppreviewarea.c (gimp_preview_area_expose):
	remove g_return_val_if_fail(), this is not a public function.


svn path=/trunk/; revision=26816
2008-08-29 15:55:07 +00:00
Michael Natterer d9bc8db7a3 app/widgets/gimplayertreeview.c libgimpwidgets/gimpcolorscales.c
2008-08-29  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimplayertreeview.c
	* libgimpwidgets/gimpcolorscales.c
	* libgimpwidgets/gimppropwidgets.c
	* libgimpwidgets/gimpscaleentry.c
	* libgimpwidgets/gimpwidgets.c: use gtk_adjustment_get_value()
	instead of adjustment->value.


svn path=/trunk/; revision=26815
2008-08-29 15:54:10 +00:00
Sven Neumann 8a374be95f fixed gtk-doc comment.
2008-08-29  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpruler.c (gimp_ruler_new): fixed gtk-doc 
comment.


svn path=/trunk/; revision=26812
2008-08-29 10:43:21 +00:00
Michael Natterer 067a7e093a Should say make before committing...
svn path=/trunk/; revision=26811
2008-08-29 10:40:38 +00:00
Michael Natterer edcd1e7810 libgimpwidgets/Makefile.am libgimpwidgets/gimpwidgets.h
2008-08-29  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/Makefile.am
	* libgimpwidgets/gimpwidgets.h
	* libgimpwidgets/gimphruler.[ch]
	* libgimpwidgets/gimpvruler.[ch]: remove separate H/VRuler classes.

	* libgimpwidgets/gimpruler.[ch]: add an "orientation" property
	instead. Add gimp_ruler_new().

	* libgimpwidgets/gimpwidgets.def: changed accordingly.

	* app/dialogs/resolution-calibrate-dialog.c
	* app/display/gimpdisplayshell.c
	* plug-ins/gfig/gfig-preview.c
	* plug-ins/imagemap/imap_preview.c: ditto.


svn path=/trunk/; revision=26810
2008-08-29 10:25:29 +00:00
Martin Nordholts b5b51b475f libgimpwidgets/gimpwidgets.c
2008-08-26  Martin Nordholts  <martinn@svn.gnome.org>

	* libgimpwidgets/gimpwidgets.c

	* plug-ins/common/file-xbm.c
	* plug-ins/common/file-wmf.c
	* plug-ins/common/file-svg.c
	* plug-ins/common/file-gih.c
	* plug-ins/common/blur-motion.c
	* plug-ins/file-jpeg/jpeg-save.c
	* plug-ins/lighting/lighting-ui.c
	* plug-ins/map-object/map-object-ui.c

	* app/tools/gimpsheartool.c
	* app/tools/gimpaligntool.c
	* app/tools/gimprotatetool.c
	* app/tools/gimplevelstool.c
	* app/dialogs/resize-dialog.c
	* app/dialogs/offset-dialog.c
	* app/widgets/gimppaletteeditor.c
	* app/widgets/gimpcolormapeditor.c
	* app/dialogs/layer-options-dialog.c
	* app/display/gimpdisplayshell-scale-dialog.c: Pass page_size = 0
	to gimp_spin_button_new() to adapt to new and correct value
	clamping in GTK+.

svn path=/trunk/; revision=26778
2008-08-26 19:32:14 +00:00
Sven Neumann ec12326ccb app/widgets/gimpnavigationview.c hardcode the colors to black and white.
2008-08-22  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpnavigationview.c
	* libgimpwidgets/gimpscrolledpreview.c: hardcode the colors to
	black and white. Using theme colors doesn't make sense here.


svn path=/trunk/; revision=26719
2008-08-22 21:44:52 +00:00
Sven Neumann 943c4dba85 draw the navigation popup using Cairo, just as we do it in the core now.
2008-08-22  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpscrolledpreview.[ch]: draw the navigation
	popup using Cairo, just as we do it in the core now.


svn path=/trunk/; revision=26718
2008-08-22 21:30:33 +00:00
Sven Neumann dcbe611b8e app/widgets/gimpcontrollerinfo.c app/widgets/gimpcontrollerlist.c
2008-07-23  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpcontrollerinfo.c
	* app/widgets/gimpcontrollerlist.c
	* app/widgets/gimpdasheditor.c
	* app/widgets/gimpdock.c
	* app/widgets/gimpeditor.c
	* app/widgets/gimpgrideditor.c
	* app/widgets/gimppdbdialog.c
	* app/widgets/gimppluginaction.c
	* app/widgets/gimpstrokeeditor.c
	* app/widgets/gimptemplateeditor.c
	* libgimpwidgets/gimpcolorprofilecombobox.c: no need to cast the
	return value of g_value_dup_object().


svn path=/trunk/; revision=26290
2008-07-23 07:47:10 +00:00
Michael Natterer 58cfcd4f57 libgimp/gimpgradientselectbutton.c libgimp/gimpmenu.c
2008-06-28  Michael Natterer  <mitch@gimp.org>

	* libgimp/gimpgradientselectbutton.c
	* libgimp/gimpmenu.c
	* libgimpwidgets/gimpbrowser.c
	* libgimpwidgets/gimpcellrenderercolor.c
	* libgimpwidgets/gimpcellrenderertoggle.c
	* libgimpwidgets/gimpchainbutton.c
	* libgimpwidgets/gimpcolorarea.c
	* libgimpwidgets/gimpcolorscale.c
	* libgimpwidgets/gimpcolorscales.c
	* libgimpwidgets/gimpcolorselect.c
	* libgimpwidgets/gimpenumwidgets.c
	* libgimpwidgets/gimpframe.c
	* libgimpwidgets/gimphelpui.c
	* libgimpwidgets/gimpoffsetarea.c
	* libgimpwidgets/gimppreviewarea.c
	* libgimpwidgets/gimppropwidgets.c
	* libgimpwidgets/gimpscrolledpreview.c: use accessors instead of
	accessing members of GTK+ widgets directly.


svn path=/trunk/; revision=26005
2008-06-28 15:09:46 +00:00
Sven Neumann 69465e0575 plug-ins/help-browser/Makefile.am plug-ins/help-browser/wilber-reading.svg
2008-06-12  Sven Neumann  <sven@gimp.org>

	* plug-ins/help-browser/Makefile.am
	* plug-ins/help-browser/wilber-reading.svg
	* plug-ins/help-browser/wilber-reading.png: removed here...

	* themes/Default/images/Makefile.am
	* themes/Default/images/stock-user-manual.svg
	* themes/Default/images/stock-user-manual-16.png
	* themes/Default/images/stock-user-manual-24.png
	* themes/Default/images/stock-user-manual-32.png
	* themes/Default/images/stock-user-manual-64.png
	* libgimpwidgets/gimpstock.[ch]: ... and added as stock icon.

	* plug-ins/help-browser/dialog.c
	* plug-ins/help-browser/gimpthrobber.c: changed accordingly.
	Set the toolbar style to GTK_TOOLBAR_ICONS.

svn path=/trunk/; revision=25933
2008-06-12 12:59:30 +00:00
Sven Neumann 094397ad94 themes/Default/images/tools/stock-tool-polygon-select-16.png removed
2008-05-29  Sven Neumann  <sven@gimp.org>

	* themes/Default/images/Makefile.am (STOCK_TOOL_IMAGES): 
	* themes/Default/images/tools/stock-tool-polygon-select-16.png
	* themes/Default/images/tools/stock-tool-polygon-select-22.png:
	removed unused tool icon.

	* libgimpwidgets/gimpstock.[ch]: don't register
	GIMP_STOCK_TOOL_POLYGON_SELECT.

	* libgimpwidgets/gimphruler.c
	* libgimpwidgets/gimpvruler.c: added missing API docs.

svn path=/trunk/; revision=25855
2008-05-29 12:20:59 +00:00
Sven Neumann 5d0c84696c set the display unit on the ruler.
2008-05-28  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplayshell-scale.c
	(gimp_display_shell_scale_setup): set the display unit on the ruler.

	* libgimpwidgets/gimphruler.c (gimp_hruler_draw_ticks)
	* libgimpwidgets/gimpvruler.c (gimp_vruler_draw_ticks): hack around
	to get nicer subdivisions for rulers showing pixels.

svn path=/trunk/; revision=25839
2008-05-28 14:33:46 +00:00
Sven Neumann fcc0dc50a0 libgimpwidgets/gimpruler.[ch] libgimpwidgets/gimphruler.c removed
2008-05-28  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpruler.[ch]
	* libgimpwidgets/gimphruler.c
	* libgimpwidgets/gimpvruler.c: removed GimpRulerMetric struct from
	public API. Removed gimp_ruler_draw_pos() and gimp_ruler_draw_ticks()
	methods. Added a "unit" property with getter and setter.

	* libgimpwidgets/gimpwidgets.def: updated.

svn path=/trunk/; revision=25838
2008-05-28 11:49:24 +00:00
Sven Neumann e7494c1c0f started to sanitize the ruler API.
2008-05-28  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpruler.[ch]: started to sanitize the ruler 
API.

	* app/dialogs/resolution-calibrate-dialog.c
	* app/display/gimpdisplayshell-scale.c
	* plug-ins/gfig/gfig-preview.c
	* plug-ins/imagemap/imap_preview.c

	* libgimpwidgets/gimpwidgets.def: updated.


svn path=/trunk/; revision=25836
2008-05-28 10:18:43 +00:00
Sven Neumann 305e672d3c libgimpwidgets/gimpruler.[ch] libgimpwidgets/gimphruler.c enlarge the
2008-05-28  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpruler.[ch]
	* libgimpwidgets/gimphruler.c
	* libgimpwidgets/gimpvruler.c: enlarge the array of scales to
	prevent ruler numbers from overlapping (bug #535039).


svn path=/trunk/; revision=25835
2008-05-28 09:48:07 +00:00
Sven Neumann 7efbde7f85 minor tweaks and constification
svn path=/trunk/; revision=25830
2008-05-27 13:41:48 +00:00
Sven Neumann 89cd2d483d libgimpwidgets/gimpruler.[ch] libgimpwidgets/gimphruler.c
2008-05-27  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpruler.[ch]
	* libgimpwidgets/gimphruler.c (gimp_hruler_draw_ticks)
	* libgimpwidgets/gimpvruler.c (gimp_vruler_draw_ticks): use an
	extra small font for the tick labels.

	* themes/Default/gtkrc: don't hardcode a font size for the rulers.

svn path=/trunk/; revision=25829
2008-05-27 13:24:18 +00:00
Sven Neumann ae67f09ddd libgimpwidgets/Makefile.am libgimpwidgets/gimpwidgets.h
2008-05-26  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/Makefile.am
	* libgimpwidgets/gimpwidgets.h
	* libgimpwidgets/gimpwidgetstypes.h

	* libgimpwidgets/gimpruler.[ch]
	* libgimpwidgets/gimphruler.[ch]
	* libgimpwidgets/gimpvruler.[ch]: added ruler widgets. These are
	mostly copied from GTK+ and work as a drop-in replacement for
	GtkRuler and friends.

	* libgimpwidgets/gimpwidgets.def: updated.

	* app/display/gimpdisplayshell.c
	* app/display/gimpdisplayshell-scale.c
	* app/dialogs/resolution-calibrate-dialog.c
	* plug-ins/imagemap/imap_preview.c
	* plug-ins/gfig/gfig-preview.c: use the GimpRuler widgets.


svn path=/trunk/; revision=25820
2008-05-26 21:20:16 +00:00
Michael Natterer 598da617b0 Stop including single headers from gtk+ to be prepared for the upcoming
2008-05-23  Michael Natterer  <mitch@gimp.org>

	Stop including single headers from gtk+ to be prepared
	for the upcoming GTK_DISABLE_SINGLE_INCLUDES:

	* configure.in: add -DGTK_DISABLE_SINGLE_INCLUDES to CPPFLAGS.

	* app/display/gimpcanvas.h
	* app/display/gimpscalecombobox.h
	* app/display/gimpstatusbar.h
	* app/widgets/*.h
	* libgimp/gimpprogressbar.h
	* libgimp/gimpselectbutton.h
	* libgimpwidgets/*.h
	* libgimpwidgets/gimpstock.c
	* plug-ins/uri/gimpmountoperation.h: remove inclusion of parent
	classes and single files from gtk+.

	* app/widgets/gtkwrapbox.h
	* libgimp/gimpbrushmenu.c
	* libgimp/gimpfontmenu.c
	* libgimp/gimpgradientmenu.c
	* libgimp/gimppalettemenu.c
	* libgimp/gimppatternmenu.c
	* libgimp/gimpselectbutton.c: #include <gtk/gtk.h>

	* plug-ins/common/poppler.c: undef GTK_DISABLE_SINGLE_INCLUDES
	when including <poppler.h>.


svn path=/trunk/; revision=25781
2008-05-23 20:38:52 +00:00
Sven Neumann 5aa59b3ba0 app/core/gimpchannel-select.c app/core/gimpdrawable-bucket-fill.c
2008-05-23  Sven Neumann  <sven@gimp.org>

	* app/core/gimpchannel-select.c
	* app/core/gimpdrawable-bucket-fill.c
	* app/core/gimpdrawable-transform.c
	* app/core/gimpimage-crop.c
	* app/dialogs/image-scale-dialog.c
	* app/tools/gimpbycolorselecttool.c
	* app/tools/gimpfliptool.c
	* app/tools/gimpforegroundselecttool.c
	* app/tools/gimpfreeselecttool.c
	* app/tools/gimpfuzzyselecttool.c
	* app/tools/gimpmovetool.c
	* app/tools/gimpperspectivetool.c
	* app/tools/gimppolygonselecttool.c
	* app/tools/gimprotatetool.c
	* app/tools/gimpscaletool.c
	* app/tools/gimpsheartool.c
	* libgimpwidgets/gimpcolorprofilestore.c
	* plug-ins/gfig/gfig-dialog.c: use C_() instead of Q_() for
	translations with context.

svn path=/trunk/; revision=25777
2008-05-23 14:09:55 +00:00
Sven Neumann e86e003224 Add Desaturate as an image-map tool with live preview (bug #533808):
2008-05-21  Sven Neumann  <sven@gimp.org>

	Add Desaturate as an image-map tool with live preview (bug #533808):

	* app/gegl/Makefile.am
	* app/gegl/gegl-types.h
	* app/gegl/gimpdesaturateconfig.[ch]: added config object for the
	desaturate point filter.
	
	* app/gegl/gimpoperationdesaturate.[ch]: derive from
	GimpOperationPointFilter. Unrolled the inner loop.

	* app/core/gimpdrawable-desaturate.c: changed accordingly.

	* app/tools/Makefile.am
	* app/tools/gimpdesaturatetool.[ch]: added desaturate as an
	imagemap tool. So far only the GEGL code path is implemented.

	* app/tools/gimp-tools.c: register the new tool.

	* app/dialogs/dialogs.c: register the new tool dialog.

	* app/dialogs/Makefile.am
	* app/dialogs/desaturate-dialog.[ch]: removed the desaturate dialog.

	* app/actions/drawable-actions.c
	* app/actions/drawable-commands.[ch]: removed action
	"drawable-desaturate".

	* app/widgets/gimphelp-ids.h: changed help IDs accordingly.

	* menus/image-menu.xml.in: replaced "drawable-desaturate" with
	"tools-desaturate".

	* libgimpwidgets/gimpstock.h: added a define for
	GIMP_STOCK_TOOL_DESATURATE.

svn path=/trunk/; revision=25726
2008-05-21 13:11:06 +00:00
Sven Neumann 8d00a7d3eb check if the file exists before adding it to the history. Fixes bug
2008-05-06  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpcolorprofilestore.c
	(gimp_color_profile_store_load_profile): check if the file exists
	before adding it to the history. Fixes bug #528958.

svn path=/trunk/; revision=25572
2008-05-06 11:46:12 +00:00
Michael Natterer 561ec036b5 app/widgets/gimpdock.c minor cosmetics.
2008-04-25  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpdock.c
	* libgimpwidgets/gimpcellrenderertoggle.c: minor cosmetics.


svn path=/trunk/; revision=25522
2008-04-25 08:53:11 +00:00
Sven Neumann 734f319bfe formatting.
2008-04-23  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpnumberpairentry.c
	(gimp_number_pair_entry_modify_font): formatting.


svn path=/trunk/; revision=25515
2008-04-23 05:51:34 +00:00
Sven Neumann ef484a6dbc reduced spacing between entry and unit menu.
2008-04-11  Sven Neumann  <sven@gimp.org>

        * libgimpwidgets/gimppropwidgets.c (gimp_prop_size_entry_new):
        reduced spacing between entry and unit menu.


svn path=/trunk/; revision=25470
2008-04-11 23:03:58 +00:00
Mukund Sivaraman 9ed6b3c75f Fixes for some Sparse reported issues in app, libgimp*/
2008-03-28  Mukund Sivaraman  <muks@mukund.org>

        Fixes for some Sparse reported issues in app, libgimp*/

        * app/gui/gui-vtable.c: Included <gdk/gdkx.h>

        * libgimp/gimpprocview.c: author, date, copyright are pointers.

        * libgimpwidgets/gimpcolorprofilestore.c: Last argument of
        g_scanner_scope_add_symbol() is a pointer.


svn path=/trunk/; revision=25293
2008-03-29 00:03:52 +00:00
Sven Neumann e9e4fe2435 use a smaller font for the "Press F1..." label
svn path=/trunk/; revision=25274
2008-03-28 11:13:04 +00:00
Sven Neumann a152374bdd show a custom tooltip for menu items and inform the user the she can get
2008-03-28  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimphelpui.c: show a custom tooltip for menu
	items and inform the user the she can get more help by pressing F1.

svn path=/trunk/; revision=25273
2008-03-28 11:02:37 +00:00
Sven Neumann c6da8a38ca more documentation updates
svn path=/trunk/; revision=25272
2008-03-28 09:50:58 +00:00
Sven Neumann 8ff74eeafa updated documentation.
2008-03-28  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimphelpui.c: updated documentation.

svn path=/trunk/; revision=25271
2008-03-28 09:37:12 +00:00
Sven Neumann c671ea39e0 themes/Default/images/Makefile.am removed...
2008-03-21  Sven Neumann  <sven@gimp.org>

	* themes/Default/images/Makefile.am
	* themes/Default/images/stock-gegl-24.png: removed...

	* themes/Default/images/stock-gegl-22.png: ... and added a 
cropped
	version that goes better with the other tool icons.

	* libgimpwidgets/gimpstock.c: changed accordingly.


svn path=/trunk/; revision=25151
2008-03-21 12:28:24 +00:00
Michael Natterer bc9424a2b5 app/actions/data-commands.c app/actions/debug-commands.c
2008-03-12  Michael Natterer  <mitch@gimp.org>

	* app/actions/data-commands.c
	* app/actions/debug-commands.c
	* app/actions/dockable-commands.c
	* app/dialogs/stroke-dialog.c
	* app/display/gimpdisplayshell-handlers.c
	* app/gui/gui-message.c
	* app/gui/gui.c
	* app/tools/gimpforegroundselectoptions.c
	* app/tools/gimpinkoptions-gui.c
	* app/widgets/gimpcolordialog.c
	* app/widgets/gimpcontainerpopup.c
	* app/widgets/gimpcontainerview-utils.c
	* app/widgets/gimpdock.c
	* app/widgets/gimpdockable.c
	* app/widgets/gimpsessioninfo-book.c
	* app/widgets/gimpsessioninfo-dock.c
	* app/widgets/gimptoolbox.c
	* app/widgets/gimpunitcombobox.c
	* app/widgets/gimpviewablebox.c
	* libgimp/gimpexport.c
	* libgimpmodule/gimpmodule.h
	* libgimpwidgets/gimpenumwidgets.c
	* libgimpwidgets/gimpframe.c
	* libgimpwidgets/gimpoldwidgets.c
	* libgimpwidgets/gimpwidgets.c
	* plug-ins/MapObject/mapobject_ui.c
	* plug-ins/common/papertile.c
	* plug-ins/common/sinus.c
	* plug-ins/flame/flame.c
	* plug-ins/helpbrowser/gimpthrobber.c
	* plug-ins/script-fu/scheme-wrapper.c
	* plug-ins/script-fu/script-fu-console.c: use accessors instead of
	accessing GtkBin.child and GtkPaned.child1,2 directly.


svn path=/trunk/; revision=25095
2008-03-12 16:58:28 +00:00
Sven Neumann b0813ee283 use a private inner class directly derived from GtkWidget for drawing the
2008-02-26  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpchainbutton.c: use a private inner class
	directly derived from GtkWidget for drawing the lines. This 
saves
	us two input windows.


svn path=/trunk/; revision=24983
2008-02-26 19:25:11 +00:00
Sven Neumann b9407d2fc7 use event boxes without visible window instead of drawing areas for the
2008-02-26  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpchainbutton.c: use event boxes without
	visible window instead of drawing areas for the lines besides the
	button. Fixes the background which was drawn wrongly for many
	themes.

svn path=/trunk/; revision=24965
2008-02-26 09:47:29 +00:00
Michael Natterer 23456dc253 app/display/gimpdisplayshell-callbacks.c
2008-02-16  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpdisplayshell-callbacks.c
	* app/tools/gimpforegroundselecttool.c
	* app/tools/gimpimagemaptool.c
	* app/tools/gimpiscissorstool.c
	* app/tools/gimppolygonselecttool.c
	* app/tools/gimprectangletool.c
	* app/tools/gimptransformtool.c
	* app/tools/gimpvectortool.c
	* app/widgets/gimpcontainerpopup.c
	* app/widgets/gimppaletteview.c
	* libgimpwidgets/gimpcolorhexentry.c
	* libgimpwidgets/gimpnumberpairentry.c
	* plug-ins/script-fu/script-fu-console.c: Unify the handling of
	various "Enter" and "Space" keysyms all over the place. Fixes bug
	#516544 (also see gtk bug #515047).


svn path=/trunk/; revision=24894
2008-02-16 17:51:02 +00:00
Michael Natterer 77968a1baa libgimpwidgets/Makefile.am cleanup.
2008-02-14  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/Makefile.am
	* libgimpwidgets/gimpscaleentry.[ch]: cleanup.


svn path=/trunk/; revision=24888
2008-02-14 17:49:53 +00:00
William Skaggs 4397dc25bf Bill Skaggs <weskaggs@primate.ucdavis.edu>
Merged from weskaggs branch at Mitch's request.  Will
	need to update devel docs.
	
	Place scale entry code into separate files, no
	functional changes.

	* libgimpwidgets/gimpscaleentry.c
	* libgimpwidgets/gimpscaleentry.h: new files.
	
	* libgimpwidgets/gimpwidgets.h
	* libgimpwidgets/gimpwidgets.c
	* libgimpwidgets/gimpwidgets.h
	* libgimpwidgets/Makefile.am: changed accordingly.

svn path=/trunk/; revision=24887
2008-02-14 17:02:47 +00:00
Michael Natterer dbadd4c50e themes/Default/images/Makefile.am themes/Default/images/stock-gegl-16.png
2008-02-05  Michael Natterer  <mitch@gimp.org>

	* themes/Default/images/Makefile.am
	* themes/Default/images/stock-gegl-16.png
	* themes/Default/images/stock-gegl-24.png
	* libgimpwidgets/gimpstock.[ch]: new stock icon to be replaced by
	somebody who can draw ;)

	* app/tools/gimpgegltool.c: use it.


svn path=/trunk/; revision=24800
2008-02-05 00:38:08 +00:00
Martin Nordholts 919a298092 Added a Polygon Select Tool which is a primitive selection tool based on
2008-01-30  Martin Nordholts  <martinn@svn.gnome.org>

	Added a Polygon Select Tool which is a primitive selection tool
	based on Free Hand Select. Code filtered through David Gowers who
	also made the tool icon. This version of the tool is a for-now
	solution to bug #119646.

	* app/tools/gimppolygonselecttool.[ch]: The new tool.

	* app/tools/gimp-tools.c: Add the tool.

	* app/tools/Makefile.am: Add tool source.

	* app/widgets/gimphelp-ids.h: Add help id for the tool.

	* libgimpwidgets/gimpstock.[ch]: Setup for the new tool icon.

	* menus/image-menu.xml.in: Add action entry for the tool.

	* themes/Default/images/tools/stock-tool-polygon-select-{16,24}.png:
	Tool icon graphics.

	* themes/Default/images/Makefile.am: Add tool icon graphics.

svn path=/trunk/; revision=24753
2008-01-30 20:33:58 +00:00
Sven Neumann d1b811ce3d removed unused image.
2008-01-24  Sven Neumann  <sven@gimp.org>

	* themes/Default/images/stock-wilber-48.png: removed unused image.

	* themes/Default/images/Makefile.am
	* themes/Default/images/stock-wilber-22.png: moved here from
	libgimpwidgets.

	* libgimpwidgets/gimpstock.c: register Wilber icon in button size.

	* data/images/wilber.png: moved 256x256 icon here from
	libgimpwidgets.

svn path=/trunk/; revision=24702
2008-01-24 16:05:48 +00:00
Sven Neumann c30c5f60a3 libgimpbase/gimpchecks.c libgimp/gimpunitcache.c
2008-01-06  Sven Neumann  <sven@gimp.org>

	* libgimpbase/gimpchecks.c
	* libgimp/gimpunitcache.c
	* libgimpwidgets/gimppageselector.c
	* libgimpwidgets/gimpcolorscales.c: removed redundant checks for
	enum values (which are unsigned) >= 0.


svn path=/trunk/; revision=24546
2008-01-06 02:14:44 +00:00
Sven Neumann 2531fa76f8 use G_GUINT64_CONSTANT() instead of a cast.
2008-01-06  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpmemsizeentry.c: use G_GUINT64_CONSTANT()
	instead of a cast.


svn path=/trunk/; revision=24542
2008-01-06 00:52:00 +00:00
Hans Breuer 9a1d5f3453 **/makefile.msc app/gimpcore.def : updated so it compiles and links
2008-01-04  Hans Breuer  <hans@breuer.org>

	**/makefile.msc app/gimpcore.def : updated so it compiles and links
	(almost, see bug #507298)

svn path=/trunk/; revision=24533
2008-01-04 18:42:07 +00:00
Jakub Steiner 6df61c12ad update app icon. Add 256x256px OS X and Vista
2008-01-04  Jakub Steiner <jimmac@ximian.com>

* libgimpwidgets/wilber-16.png:
* libgimpwidgets/wilber-22.png:
* libgimpwidgets/wilber-32.png:
* libgimpwidgets/wilber-48.png:
* libgimpwidgets/wilber-64.png:
* libgimpwidgets/wilber-256.png: update app icon. Add 256x256px
OS X and Vista 

svn path=/trunk/; revision=24523
2008-01-04 10:27:17 +00:00
Sven Neumann b194e6fb62 addec const qualifiers to GimpRGB parameters.
2007-12-28  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpcairo-utils.[ch]: addec const qualifiers to
	GimpRGB parameters.

	* app/widgets/gimprender.[ch]: removed global variables for
	checkerboard colors and introduced functions to get the
	checkerboard colors as pointers to GimpRGB structs.

	* app/actions/view-actions.c
	* app/display/gimpdisplayshell-appearance.c
	* app/widgets/gimpviewrenderer.c
	* app/widgets/gimpcolormapeditor.c: changed accordingly.


svn path=/trunk/; revision=24451
2007-12-28 19:14:36 +00:00
Sven Neumann 26f6ca6d1d added light and dark check color parameters to
2007-12-28  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpcairo-utils.[ch]: added light and dark 
check
	color parameters to gimp_cairo_checkerboard_create().

	* libgimpwidgets/gimpcellrenderercolor.c
	* app/widgets/gimpviewrenderer.c (gimp_view_renderer_real_draw):
	changed accordingly.


svn path=/trunk/; revision=24450
2007-12-28 18:44:32 +00:00
William Skaggs 3decfb47af Bill Skaggs <weskaggs@primate.ucdavis.edu>
* libgimpwidgets/gimpstock.h:  fix typo that probably caused
	bug #503834.

svn path=/trunk/; revision=24398
2007-12-18 19:40:56 +00:00
Sven Neumann 1449a6d202 libgimpwidgets/gimpscrolledpreview.c don't rely on the pointer position in
2007-12-18  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpscrolledpreview.c
	* libgimpwidgets/gimpcolorselect.c: don't rely on the pointer
	position in the GdkEventMotion struct, query the pointer instead.

svn path=/trunk/; revision=24396
2007-12-18 17:57:27 +00:00
Sven Neumann 75614f65cc added new function gimp_cairo_set_focus_line_pattern().
2007-12-16  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpcairo-utils.[ch]: added new function
	gimp_cairo_set_focus_line_pattern().

	* libgimpwidgets/gimpcellrenderercolor.c
	(gimp_cell_renderer_color_render): use the focus line pattern to
	emphasize the selected entry.

	* app/widgets/gimppaletteview.c (gimp_palette_view_expose): use 
the
	new utility function.

	* libgimpwidgets/gimpwidgets.def: updated.


svn path=/trunk/; revision=24371
2007-12-16 11:15:36 +00:00
Sven Neumann dbb325eba6 renamed gimp_cairo_set_source_color() to gimp_cairo_set_source_rgb() and
2007-12-12  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpcairo-utils.[ch]: renamed
	gimp_cairo_set_source_color() to gimp_cairo_set_source_rgb() and
	added an RGBA variant.

	* libgimpwidgets/gimpcellrenderercolor.c
	(gimp_cell_renderer_color_render)
	* app/widgets/gimpviewrenderer.c (gimp_view_renderer_draw): changed
	accordingly.

	* libgimpwidgets/gimpwidgets.def: updated.

svn path=/trunk/; revision=24342
2007-12-12 16:14:49 +00:00
Sven Neumann 6f3b1c1e73 minor fix
svn path=/trunk/; revision=24341
2007-12-12 15:37:24 +00:00
Sven Neumann 5faf644bbb added new function gimp_cairo_checkerboard_create() and renamed
2007-12-12  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpcairo-utils.[ch]: added new function
	gimp_cairo_checkerboard_create() and renamed
	gimp_cairo_create_surface_from_pixbuf() to
	gimp_cairo_surface_create_from_pixbuf().

	* libgimpwidgets/gimpcellrenderercolor.c
	(gimp_cell_renderer_color_render): use Cairo utils here.

	* app/widgets/gimpviewrenderer.c (gimp_view_renderer_create_pattern):
	changed accordingly.

	* libgimpwidgets/gimpwidgets.def: updated.

svn path=/trunk/; revision=24340
2007-12-12 14:41:25 +00:00
Sven Neumann a44fa674f0 app/widgets/Makefile.am removed here...
2007-12-12  Sven Neumann  <sven@gimp.org>

	* app/widgets/Makefile.am
	* app/widgets/gimpcairo-utils.[ch]: removed here...

	* libgimpwidgets/Makefile.am
	* libgimpwidgets/gimpcairo-utils.[ch]: and added here after some
	cleanup.

	* libgimpwidgets/gimpwidgets.h: include gimpcairo-utils.h.

	* app/widgets/gimpviewrenderer.c
	* app/widgets/gimpviewrenderergradient.c
	* app/widgets/gimpviewrendererpalette.c: changed accordingly.

	* libgimpwidgets/gimpwidgets.def: updated for Cairo utils.

	* libgimp/gimp.def: added gimp_image_get_vectors_by_tattoo.


svn path=/trunk/; revision=24339
2007-12-12 14:17:19 +00:00
Sven Neumann 89545b9204 draw using Cairo.
2007-12-12  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpcellrenderercolor.c: draw using Cairo.


svn path=/trunk/; revision=24332
2007-12-12 09:10:07 +00:00
Hans Breuer 6f5bbfe0bd updated and removed -GD to let msvc9 complain less
2007-12-09  Hans Breuer  <hans@breuer.org>

	* **/makefile.msc : updated and removed -GD to let msvc9 complain less


svn path=/trunk/; revision=24305
2007-12-09 14:11:09 +00:00
Sven Neumann dc5d601675 use gtk_widget_set_tooltip_text() from gimp_help_set_help() and added
2007-11-22  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimphelpui.[ch]: use
	gtk_widget_set_tooltip_text() from gimp_help_set_help() and added
	gimp_help_set_help_data_with_markup() for the cases where markup
	is needed.

	* libgimpwidgets/gimpwidgets.def: updated.

	* app/tools/gimpselectionoptions.c
	* app/widgets/gimpeditor.c
	* app/widgets/gimpwidgets-utils.c: use the new function where markup
	in tooltips is being used.

	* app/widgets/gimptoolbox-color-area.c: no need to escape the
	ampersand any longer.

svn path=/trunk/; revision=24217
2007-11-22 13:59:06 +00:00
Tor Lillqvist 84fc8263a1 Don't write past end of buffer. (#399484)
2007-11-19  Tor Lillqvist  <tml@novell.com>

	* libgimpwidgets/gimpcolorscale.c
	(gimp_color_scale_render_stipple): Don't write past end of
	buffer. (#399484)


svn path=/trunk/; revision=24193
2007-11-18 22:31:08 +00:00
Sven Neumann 410a6ffabd plugged a memory leak.
2007-11-15  Sven Neumann  <sven@gimp.org>

	* app/tools/gimpselectionoptions.c (gimp_selection_options_gui):
	plugged a memory leak.

	* libgimpwidgets/gimpintstore.c (gimp_int_store_add_empty):
	initialize the iter to avoid using uninitialized memory.


svn path=/trunk/; revision=24169
2007-11-15 20:23:27 +00:00
Sven Neumann c558c7ed84 formatting.
2007-11-10  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimppageselector.c: formatting.


svn path=/trunk/; revision=24114
2007-11-10 16:02:30 +00:00
Michael Natterer 999c5c3745 remove all sorts of workarounds for bugs of GtkFileChooserButton in GTK+
2007-11-10  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimppropwidgets.c
	(gimp_prop_file_chooser_button_*): remove all sorts of workarounds
	for bugs of GtkFileChooserButton in GTK+ versions prior to 2.12.


svn path=/trunk/; revision=24111
2007-11-10 15:00:07 +00:00
Michael Natterer 11969bd484 remove event boxes that were only there for the old tooltips.
2007-11-10  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimppropwidgets.c: remove event boxes that were
	only there for the old tooltips.

	* modules/cdisplay_lcms.c: ditto. Also remove some code that was
	only needed because of the event box hack.


svn path=/trunk/; revision=24110
2007-11-10 14:47:45 +00:00
Michael Natterer a446f3d7fb use the new tooltip API instead of the old deprecated one. Removed
2007-11-09  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimphelpui.[ch]: use the new tooltip API instead
	of the old deprecated one. Removed _gimp_help_init(). Remember
	whether tooltips are enabled or not in a local variable that can
	only be altered at startup time and not after. The API now expects
	markup instead of plain text which might cause warnings and
	perhaps needs to be changed.

	* libgimpwidgets/gimpwidgets-private.c: don't call _gimp_help_init().

	* app/config/gimpguiconfig.c: made show-tooltips a
	GIMP_CONFIG_PARAM_RESTART property.

	* app/widgets/gimptoolbox-color-area.c: don't add the tooltip here...

	* app/widgets/gimptoolbox.c: ...but here (as for all other
	indicators). Also escape '&' properly because we now use markup.

	* app/tools/gimpselectionoptions.c
	* app/widgets/gimpeditor.c
	* app/widgets/gimpwidgets-utils.c: print modifiers and
	shortcuts in bold instead of in ().

	* app/widgets/gimpcontainertreeview.c: show tooltips on rows if
	gimp_viewable_get_description() returns a tip.

	* app/dialogs/preferences-dialog.c
	* plug-ins/jpeg/jpeg-save.c
	* plug-ins/MapObject/mapobject_ui.c
	* plug-ins/Lighting/lighting_ui.c
	* plug-ins/common/animationplay.c
	* plug-ins/common/warp.c: no need to add event boxes just to have
	tooltips, the new ones work on all widgets.


svn path=/trunk/; revision=24093
2007-11-09 11:17:00 +00:00
Sven Neumann aabb94ec92 libgimpwidgets/gimpcolorselect.c use gdk_event_request_motions() to handle
2007-11-04  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpcolorselect.c
	* libgimpwidgets/gimpscrolledpreview.c: use
	gdk_event_request_motions() to handle motion hint events.


svn path=/trunk/; revision=24050
2007-11-04 12:52:47 +00:00
Sven Neumann 5226c66080 changed move cursor to GDK_HAND1 and switch to GDK_FLEUR while the mouse
2007-11-01  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpscrolledpreview.c: changed move cursor to
	GDK_HAND1 and switch to GDK_FLEUR while the mouse button is down.

svn path=/trunk/; revision=24029
2007-11-01 15:50:05 +00:00
Sven Neumann c9c38e5e0d fixed range check.
2007-10-28  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpcolorscales.c 
(gimp_color_scales_set_channel):
	fixed range check.


svn path=/trunk/; revision=23981
2007-10-28 19:15:44 +00:00
Sven Neumann fa3e0fb71a use small-checks for the navigation popup and inherit the check-type from
2007-10-28  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpscrolledpreview.c
	(gimp_scrolled_preview_nav_button_press): use small-checks for 
the
	navigation popup and inherit the check-type from the preview.


svn path=/trunk/; revision=23979
2007-10-27 22:01:25 +00:00
Hans Breuer c17fbf8c14 updated msvc build add ENABLE_TOOLBOX_MENU, it should only vanish on Mac
2007-10-27  Hans Breuer  <hans@breuer.org>

	* app/base/makefile.msc app/file/makefile.msc app/gimpcore.def
	  app/gui/makefile.msc app/plug-in/makefile.msc
	  libgimpwidgets/makefile.msc : updated msvc build
	* config.h.win32 : add ENABLE_TOOLBOX_MENU, it should only
	vanish on Mac OSX (Quartz build)


svn path=/trunk/; revision=23964
2007-10-27 12:41:43 +00:00
Sven Neumann 511579f4ce lower the upper limit for "undo-levels", mainly for getting a smaller
2007-10-18  Sven Neumann  <sven@gimp.org>

	* app/config/gimpcoreconfig.c: lower the upper limit for
	"undo-levels", mainly for getting a smaller entry in the
	Preferences dialog.

	* libgimpwidgets/gimpmemsizeentry.c (gimp_memsize_entry_new):
	seven digits are enough for a memsize entry.


svn path=/trunk/; revision=23869
2007-10-18 13:42:13 +00:00
Sven Neumann 198d8501e1 moved the calculation of the number of characters to a utility function.
2007-10-18  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimppropwidgets.c (gimp_prop_size_entry_new):
	moved the calculation of the number of characters to a utility
	function.


svn path=/trunk/; revision=23865
2007-10-18 08:34:24 +00:00
Sven Neumann 9cf225c997 improved the calculation of the minimum size of the entry.
2007-10-17  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimppropwidgets.c (gimp_prop_size_entry_new):
	improved the calculation of the minimum size of the entry.

svn path=/trunk/; revision=23856
2007-10-17 08:46:08 +00:00
Sven Neumann 5e9914ec2f formatting.
2007-10-17  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimppropwidgets.c: formatting.

svn path=/trunk/; revision=23855
2007-10-17 08:30:03 +00:00
Sven Neumann 6df1155a09 fixed formatting and gtk-doc comment.
2007-10-17  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpnumberpairentry.c: fixed formatting and
	gtk-doc comment.

svn path=/trunk/; revision=23853
2007-10-17 08:20:23 +00:00
Michael Natterer 17eb0c6934 honor the "show-pixels" and "show-percent" properties of the unit param
2007-10-16  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimppropwidgets.c (gimp_prop_size_entry_new):
	honor the "show-pixels" and "show-percent" properties of the unit
	param spec.

	* app/tools/gimprectangletool.c (gimp_rectangle_tool_start): set
	the image's width/height on the size entries so the percent unit
	works correctly.


svn path=/trunk/; revision=23852
2007-10-16 15:39:56 +00:00
Michael Natterer 802a4b435e always connect to refval-changed *and* value-changed of the GimpSizeEntry.
2007-10-16  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimppropwidgets.c (gimp_prop_size_entry_new):
	always connect to refval-changed *and* value-changed of the
	GimpSizeEntry.


svn path=/trunk/; revision=23842
2007-10-16 14:22:28 +00:00
Sven Neumann c1c7afb03a libgimp/gimppatternselectbutton.c libgimp/gimpbrushselectbutton.c
2007-10-16  Sven Neumann  <sven@gimp.org>

	* libgimp/gimppatternselectbutton.c
	* libgimp/gimpbrushselectbutton.c
	* libgimpwidgets/gimpcolorarea.c
	* app/widgets/gimpdnd.c
	* app/widgets/gimpdockbook.c: set GDK_WINDOW_TYPE_HINT_DND on
	popup windows used to implement a DND cursor.

svn path=/trunk/; revision=23841
2007-10-16 13:56:34 +00:00
Michael Natterer 0a824ddba0 added parameter "gboolean property_is_pixel" which indicates that the
2007-10-14  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimppropwidgets.[ch] (gimp_prop_size_entry_new):
	added parameter "gboolean property_is_pixel" which indicates that
	the stored property value is always in pixels and not in the
	selected unit.

	* app/tools/gimptextoptions.c
	* app/widgets/gimpstrokeeditor.c: pass FALSE to keep the old
	behavior.

	* app/tools/gimprectangleoptions.c (gimp_rectangle_options_gui):
	added property "fixed-unit" which is used for all fixed values
	now. Perhaps we need separate units for width/height/size. Enable
	the unit menu on the "Width" and "Height" size entries of the
	"Fixed" section and configure them to store the value in
	pixels. This was the easy part, some other widgets still need unit
	support.

	* app/tools/gimprectangletool.c (gimp_rectangle_tool_start): set
	the image's resolution on the size entries changed above.


svn path=/trunk/; revision=23821
2007-10-14 18:51:58 +00:00
Martin Nordholts 2d3c081224 Correct gtk-doc comment.
2007-10-09  Martin Nordholts  <martinn@svn.gnome.org>

	* libgimpwidgets/gimpnumberpairentry.c
	(gimp_number_pair_entry_get_default_text): Correct gtk-doc
	comment.

svn path=/trunk/; revision=23789
2007-10-09 21:07:20 +00:00
Martin Nordholts d583686878 Connect a new function gimp_rectangle_options_string_current_updates()
2007-10-09  Martin Nordholts  <martinn@svn.gnome.org>

	* app/tools/gimprectangleoptions.[ch]: Connect a new function
	gimp_rectangle_options_string_current_updates() that updates the
	Fixed: Aspect entry with a 'Current' string when aspect of the
	current pending rectangle is used, and sets sensitivity FALSE on
	aspect ratio changing buttons when that string is shown. Prevents
	the confusion mentioned in bug #479999.

	A new Rectangle Options property 'use-string-current' has been
	added that should be refactored away from the options object along
	with references to option widgets.

	* app/tools/gimprectangleselecttool.c
	(gimp_rect_select_tool_update_option_defaults): Set default Fixed:
	Aspect ratio to that of the pending rectangle, and always have
	default Fixed: Size as 100x100.

	* app/tools/gimpcroptool.c
	(gimp_crop_tool_update_option_defaults): Always have default
	Fixed: Size 100x100.

	* libgimpwidgets/gimpnumberpairentry.[ch]
	(gimp_number_pair_entry_class_init): Add a new property
	'default-text' that contains text to be shown instead of numbers
	when default numbers are to be shown.
	(gimp_number_pair_entry_get_default_text)
	(gimp_number_pair_entry_set_default_text): Getter and setter for
	it.

	* libgimpwidgets/gimpwidgets.def: Updated.

svn path=/trunk/; revision=23788
2007-10-09 20:54:07 +00:00
Sven Neumann 54bd29176c use the "file-set" signal if possible (introduced with gtk+ 2.12). Enable
2007-10-09  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimppropwidgets.c
	(gimp_prop_file_chooser_button_setup): use the "file-set" signal
	if possible (introduced with gtk+ 2.12). Enable display of 
hidden
	files if the initial filename is a hidden file.


svn path=/trunk/; revision=23787
2007-10-09 20:50:10 +00:00
Sven Neumann 1e4300cfa2 fixed ambiguous gtk-doc comment.
2007-10-09  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpnumberpairentry.c: fixed ambiguous gtk-doc
	comment.


svn path=/trunk/; revision=23784
2007-10-09 17:49:08 +00:00
Sven Neumann 2a1e461aa0 pass canonical signal names to gtk_binding_entry_add_signal().
2007-10-09  Sven Neumann  <sven@gimp.org>

        * libgimpwidgets/gimphelpui.c (gimp_help_connect): pass canonical
        signal names to gtk_binding_entry_add_signal().

svn path=/trunk/; revision=23776
2007-10-09 14:46:45 +00:00
Sven Neumann 24c7fc1e8d formatting.
2007-09-21  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimppreview.c: formatting.

	* libgimpwidgets/gimpscrolledpreview.c: make use of freeze/thaw to
	reduce the number of updates during initialization.

svn path=/trunk/; revision=23602
2007-09-21 12:19:00 +00:00
Sven Neumann 574a6f7524 libgimpwidgets/gimpcolorprofilestore-private.h
2007-09-13  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpcolorprofilestore-private.h
	* libgimpwidgets/gimpcolorprofilestore.c
	* libgimpwidgets/gimpcolorprofilecombobox.c: only keep the eight
	most recently used profiles in the history.

svn path=/trunk/; revision=23529
2007-09-13 15:42:28 +00:00
Michael Natterer ec11dbc1a1 remove FOO_DISABLE_DEPRECATED for only glib >= 2.15 and gtk+ >= 2.13, GIMP
2007-09-13  Michael Natterer  <mitch@gimp.org>

	* configure.in: remove FOO_DISABLE_DEPRECATED for only glib >= 2.15
	and gtk+ >= 2.13, GIMP builds fine against the 2.14 and 2.12 APIs
	apart from:

	* app/tools/gimpselectionoptions.c
	* libgimpwidgets/gimphelpui.c: undef GTK_DISABLE_DEPRECATED because
	GtkTooltips is deprecated in gtk+ 2.12.

	* libgimp/gimpui.c
	* plug-ins/common/pat.c: the address of an array is always
	non-NULL, no need to check for that. Fixes new gcc warnings.


svn path=/trunk/; revision=23522
2007-09-13 10:44:07 +00:00
Michael Natterer 71443ad04a if the parent toplevel is modal, make the unit selection dialog modal too.
2007-09-12  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimpunitmenu.c (gimp_unit_menu_create_selection):
	if the parent toplevel is modal, make the unit selection dialog
	modal too. Fixes bug #389358.


svn path=/trunk/; revision=23520
2007-09-12 19:03:04 +00:00
Sven Neumann 5690296310 improved documentation
svn path=/trunk/; revision=23513
2007-09-12 16:28:36 +00:00
Sven Neumann 028d523aeb fixed reference count of the profile store.
2007-09-12  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpcolorprofilecombobox.c
	(gimp_color_profile_combo_box_new): fixed reference count of the
	profile store.

svn path=/trunk/; revision=23511
2007-09-12 16:11:39 +00:00
Hans Breuer aface5c12a updated msvc build include <io.h> for get_osfhandle() prototype
2007-08-26  Hans Breuer  <hans@breuer.org>

	* **/makefile.msc : updated msvc build
	* app/main.c : include <io.h> for get_osfhandle()
	* plug-ins/jpeg/jpeg-settings.h : prototype
	jpeg_swap_original_settings


svn path=/trunk/; revision=23377
2007-08-26 18:59:34 +00:00
Martin Nordholts 2fea3f55ad Add a G_END_DECLS.
2007-08-26  Martin Nordholts  <martinn@svn.gnome.org>

	* libgimpwidgets/gimpcolorprofilestore.h: Add a G_END_DECLS.

svn path=/trunk/; revision=23376
2007-08-25 22:04:45 +00:00
Sven Neumann 9e4abb45ad libgimpwidgets/gimpcolorprofilecombobox.c documentation.
2007-08-15  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpcolorprofilecombobox.c
	* libgimpwidgets/gimpcolorprofilestore.c: documentation.

svn path=/trunk/; revision=23266
2007-08-15 10:39:51 +00:00
Sven Neumann 4e5a0169e8 documentation.
2007-08-15  Sven Neumann  <sven@gimp.org>

        * libgimpwidgets/gimpcolorprofilestore.c: documentation.


svn path=/trunk/; revision=23263
2007-08-15 06:55:33 +00:00
Sven Neumann 7cdc24d69e libgimpwidgets/gimpcolorprofilecombobox.[ch]
2007-08-14  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpcolorprofilecombobox.[ch]
	* libgimpwidgets/gimpcolorprofilestore.[ch]
	* libgimpwidgets/gimpcolorprofilestore-private.h: changed API to
	deal with filenames instead of URIs.

	* app/widgets/gimpprofilechooserdialog.[ch]: same here.

	* app/dialogs/preferences-dialog.c
	* plug-ins/common/lcms.c: changed accordingly.


svn path=/trunk/; revision=23260
2007-08-14 22:12:37 +00:00
Sven Neumann e2c32bb452 don't allow NULL URIs in the history list
svn path=/trunk/; revision=23256
2007-08-14 16:36:57 +00:00
Sven Neumann f3675a45ad libgimpwidgets/Makefile.am libgimpwidgets/gimpwidgets.h
2007-08-14  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/Makefile.am
	* libgimpwidgets/gimpwidgets.h
	* libgimpwidgets/gimpwidgetstypes.h
	* libgimpwidgets/gimpcolorprofilecombobox.[ch]
	* libgimpwidgets/gimpcolorprofilestore.[ch]
	* libgimpwidgets/gimpcolorprofilestore-private.h: new widget to
	select color profiles.

	* libgimpwidgets/gimpwidgets.def: updated.

	* app/widgets/gimpprofilechooserdialog.[ch]: remember the name of
	the last previewed profile.

	* app/dialogs/preferences-dialog.c: use the new color profile
	combo-box.

	* plug-ins/common/lcms.c: use the new color profile combo-box.

svn path=/trunk/; revision=23253
2007-08-14 16:01:04 +00:00
Sven Neumann 5df43c2cbb use italic font if not in user-override mode.
2007-08-13  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpnumberpairentry.c: use italic font if not in
	user-override mode.

	* app/tools/gimprectangleoptions.c: removed auto-mode icon.

	* themes/Default/images/Makefile.am
	* themes/Default/images/stock-auto-mode-16.png
	* libgimpwidgets/gimpnumberpairentry.[ch]: removed
	GIMP_STOCK_AUTO_MODE.


svn path=/trunk/; revision=23231
2007-08-13 09:25:27 +00:00
Martin Nordholts b45b8aa096 Setup a GIMP_STOCK_AUTO_MODE GtkImage to be shown in the options when
2007-08-12  Martin Nordholts  <martinn@svn.gnome.org>

	* app/tools/gimprectangleoptions.[ch]: Setup a
	GIMP_STOCK_AUTO_MODE GtkImage to be shown in the options when
	Fixed: Aspect ratio/Size entries are in auto-mode.

	* themes/Default/images/Makefile.am: Added
	stock-auto-mode-16.png (which is a copy of
	preferences/folders-interp-16.png for now).

	* libgimpwidgets/gimpstock.[ch]: Added GIMP_STOCK_AUTO_MODE.

svn path=/trunk/; revision=23224
2007-08-12 08:43:35 +00:00
Sven Neumann b0b7c165ff libgimpwidgets/gimpenumcombobox.h libgimpwidgets/gimpenumlabel.h
2007-08-11  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpenumcombobox.h
	* libgimpwidgets/gimpenumlabel.h
	* libgimpwidgets/gimpenumstore.h
	* libgimpwidgets/gimpenumwidgets.h
	* libgimpwidgets/gimppropwidgets.h: added missing G_BEGIN_DECLS
	and G_END_DECLS.


svn path=/trunk/; revision=23221
2007-08-11 21:52:48 +00:00
Sven Neumann c25f3e445b store separators as gunichar array. Use the default separator in case that
2007-08-10  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpnumberpairentry.c: store separators as
	gunichar array. Use the default separator in case that no
	separator is set. Rewritten gimp_number_pair_entry_parse_text()
	to handle non-ASCII separators.

svn path=/trunk/; revision=23195
2007-08-10 16:54:05 +00:00
Martin Nordholts f1fb36551d Remove code that has not with parsing to do, so that clients that use this
2007-08-10  Martin Nordholts  <martinn@svn.gnome.org>

	* libgimpwidgets/gimpnumberpairentry.c
	(gimp_number_pair_entry_parse_text): Remove code that has not with
	parsing to do, so that clients that use this function can be more
	flexible about what to do with parsing results.
	(gimp_number_pair_entry_events): Handle results of parsing here
	instead.

svn path=/trunk/; revision=23186
2007-08-10 14:48:30 +00:00
Sven Neumann 6ff592db90 added bug number.
2007-08-10  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimppropwidgets.c
	(gimp_prop_file_chooser_button_new_with_dialog): added bug number.

svn path=/trunk/; revision=23181
2007-08-10 08:58:56 +00:00
Sven Neumann 8be31144fe formatting.
2007-08-10  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpnumberpairentry.c: formatting.


svn path=/trunk/; revision=23178
2007-08-10 07:04:11 +00:00
Martin Nordholts 2c9f984c86 Some minor cleanup, and (gimp_number_pair_entry_set_user_override)
2007-08-10  Martin Nordholts  <martinn@svn.gnome.org>

	* libgimpwidgets/gimpnumberpairentry.[ch]: Some minor cleanup, and
	(gimp_number_pair_entry_set_user_override)
	(gimp_number_pair_entry_get_user_override): are now in the API.

	* libgimpwidgets/gimpwidgets.def: Updated.

svn path=/trunk/; revision=23177
2007-08-10 06:58:10 +00:00
Martin Nordholts 5df8a73dc4 Added properties for most of the instance members, and updated API.
2007-08-09  Martin Nordholts  <martinn@svn.gnome.org>

	* libgimpwidgets/gimpnumberpairentry.[ch}: Added properties for
	most of the instance members, and updated API.
	(gimp_number_pair_entry_get_aspect)
	(gimp_number_pair_entry_get_default_values)
	(gimp_number_pair_entry_get_ratio)
	(gimp_number_pair_entry_set_aspect)
	(gimp_number_pair_entry_set_ratio): Added API functions.

	* libgimpwidgets/gimpwidgets.def: Updated.

svn path=/trunk/; revision=23173
2007-08-09 21:01:39 +00:00
Sven Neumann 9804399087 probably better to return 1.0 in case of failed parameter checks
svn path=/trunk/; revision=23157
2007-08-08 19:31:00 +00:00
Sven Neumann aa51fd4c06 formatting. Fixed use of instance private data, added missing parameter
2007-08-08  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpnumberpairentry.[ch]: formatting. Fixed use
	of instance private data, added missing parameter checks.


svn path=/trunk/; revision=23155
2007-08-08 18:46:58 +00:00
Martin Nordholts 93d4dc68de Renamed GimpRatioEntry to GimpNumberPairEntry, and generalized the code a
2007-08-08  Martin Nordholts  <martinn@svn.gnome.org>

	Renamed GimpRatioEntry to GimpNumberPairEntry, and generalized the
	code a lot, so that it can be used both for 'Fixed: Aspect ratio'
	and 'Fixed: Size'. Support is also added for having default values
	and a 'user overrided' value mode.

	* libgimpwidgets/gimpnumberpairentry.[ch]: Now contains the
	rewrite and generalization of GimpRatioEntry.
	(gimp_number_pair_entry_get_type)
	(gimp_number_pair_entry_new)
        (gimp_number_pair_entry_set_default_values)
	(gimp_number_pair_entry_set_values)
        (gimp_number_pair_entry_get_values): New libgimpwidget API.

	* app/widgets/gimppropwidgets.[ch] (gimp_prop_size_2d_new): Added
	new helper widget for setting up a GimpNumberPairEntry for the
	Fixed: Size entry in the Rectangle Options.

	* app/tools/gimprectangleoptions.c (gimp_rectangle_options_gui):
	Use the new gimp_prop_size_2d_entry for the Fixed: Size entry.

	* libgimpwidgets/gimpwidgets.def: Removed gimp_ratio_entry_* and
	added gimp_number_pair_entry_*.

	* libgimpwidgets/gimpwidgets.h * libgimpwidgets/gimpwidgetstypes.h
	* libgimpwidgets/Makefile.am (libgimpwidgets_2_0_la_sources)
	(libgimpwidgetsinclude_HEADERS): Updated accordingly.

svn path=/trunk/; revision=23154
2007-08-08 18:08:24 +00:00
Martin Nordholts 17020f29b2 Migrate entry completion code and put responsability on clients to set
2007-08-08  Martin Nordholts  <martinn@svn.gnome.org>

	* libgimpwidgets/gimpratioentry.[ch]: Migrate entry completion
	code and put responsability on clients to set that up when needed.

	* app/tools/gimprectangleoptions.[ch]: Setup entry completion code
	manually for the GimpRatioEntry widgets by using
	(gimp_rectangle_options_setup_ratio_completion)
	(gimp_ratio_entry_history_select, gimp_ratio_entry_history_add):
	these new functions.

svn path=/trunk/; revision=23149
2007-08-08 12:52:25 +00:00
Sven Neumann 4ab3e92782 modules/cdisplay_lcms.c corrected memory handling. cmsOpenProfileFromMem()
2007-08-08  Sven Neumann  <sven@gimp.org>

	* modules/cdisplay_lcms.c
	* plug-ins/common/lcms.c: corrected memory handling.
	cmsOpenProfileFromMem() actually copies the data.

	* libgimpwidgets/gimpcolordisplay.c
	* libgimpwidgets/gimpcolordisplaystack.c: disconnect in dispose().

svn path=/trunk/; revision=23148
2007-08-08 12:27:11 +00:00
Sven Neumann 6213c7ab19 added buttons to unset the color profiles.
2007-08-08  Sven Neumann  <sven@gimp.org>

	* app/dialogs/preferences-dialog.c: added buttons to unset the
	color profiles.

	* app/widgets/gimppropwidgets.c
	* libgimpwidgets/gimppropwidgets.c: minor cleanup.

svn path=/trunk/; revision=23145
2007-08-08 09:56:51 +00:00
Sven Neumann 35425c7028 app/plug-in/Makefile.am new files defining the GimpPlugIn error domain.
2007-08-07  Sven Neumann  <sven@gimp.org>

	* app/plug-in/Makefile.am
	* app/plug-in/plug-in-error.[ch]: new files defining the
	GimpPlugIn error domain.

	* app/plug-in/plug-in-icc-profile.c (plug_in_icc_profile_apply_rgb):
	set an error code.

	* app/file/file-open.c (file_open_profile_apply_rgb): only do the
	profile conversion if color management is enabled. If the plug-in
	is missing, show a warning and disable color management.
	Fixes bug #434205.

	* modules/cdisplay_lcms.c (cdisplay_lcms_get_rgb_profile): check
	if we actually got a profile before checking its color space.

	* libgimpwidgets/gimpwidgetstypes.h: removed leftover typedef
	for GimpResolutionEntry.


svn path=/trunk/; revision=23130
2007-08-07 09:26:28 +00:00
Sven Neumann a737408eeb added GimpColorConfig and GimpColorManaged as construct-only properties.
2007-08-06  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpcolordisplay.[ch]: added GimpColorConfig 
and
	GimpColorManaged as construct-only properties.
	Deprecated gimp_color_display_new().

	* libgimpwidgets/gimpwidgets.def: updated for new symbols.

	* app/widgets/gimpcolordisplayeditor.c: use g_object_new() 
instead
	of gimp_color_display_new().

	* modules/cdisplay_lcms.c: use the image's embedded color 
profile
	for the display filter. Assume sRGB if no monitor profile is
	configured.

	* app/display/gimpdisplayshell.c: 
	* app/display/gimpdisplayshell-filter.[ch]: pass the display as
	color-managed object to the display filter.


svn path=/trunk/; revision=23127
2007-08-06 22:10:09 +00:00
Hans Breuer 024ef60a49 updated msvc build
2007-08-05  Hans Breuer  <hans@breuer.org>

	* **/makefile.msc app/gimpcore.def : updated msvc build


svn path=/trunk/; revision=23118
2007-08-05 15:16:02 +00:00
Sven Neumann a4acd4f3bf applied modified patch from Aurimas Juška to improve handling of very
2007-08-03  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpoffsetarea.c: applied modified patch from
	Aurimas Juška to improve handling of very small images (bug #463096).

svn path=/trunk/; revision=23106
2007-08-03 13:11:00 +00:00
Sven Neumann 18d3c4835d libgimpwidgets/gimpoffsetarea.c set a cursor to indicate that the area is
2007-07-20  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpoffsetarea.c
	* plug-ins/print/print-preview.c: set a cursor to indicate that
	the area is interactive.

	* plug-ins/print/print-page-layout.c: minor dialog tweaks.

svn path=/trunk/; revision=22963
2007-07-20 12:29:38 +00:00
Sven Neumann edbf144aa6 added evil hack to work around bug #327243 in GtkFileChooserButton.
2007-07-09  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimppropwidgets.c
	(gimp_prop_file_chooser_button_setup): added evil hack to work
	around bug #327243 in GtkFileChooserButton.


svn path=/trunk/; revision=22906
2007-07-09 19:49:22 +00:00
Sven Neumann 7b19c74d10 minor layout tweak.
2007-07-06  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/channel_mixer.c: minor layout tweak.

	* libgimpwidgets/gimppreviewarea.c 
(gimp_preview_area_set_colormap):
	clear the colormap to all zeros before setting the new colors.


svn path=/trunk/; revision=22893
2007-07-06 20:47:44 +00:00
Sven Neumann 09578ea070 removed extra check for gthread and fold it into the GLIB and GTK checks.
2007-06-25  Sven Neumann  <sven@gimp.org>

	* configure.in: removed extra check for gthread and fold it into
	the GLIB and GTK checks.

	* */Makefile.am: changed accordingly.

	* app/main.c (main): always call g_thread_init().

svn path=/trunk/; revision=22832
2007-06-25 12:41:59 +00:00
Sven Neumann f322854007 app/text/Makefile.am app/core/Makefile.am app/tools/Makefile.am
2007-06-07  Sven Neumann  <sven@gimp.org>

	* app/text/Makefile.am
	* app/core/Makefile.am
	* app/tools/Makefile.am
	* app/display/Makefile.am
	* app/widgets/Makefile.am
	* app/base/Makefile.am
	* app/paint/Makefile.am
	* app/plug-in/Makefile.am
	* libgimp/Makefile.am
	* libgimpthumb/Makefile.am
	* tools/pdbgen/Makefile.am
	* libgimpwidgets/Makefile.am: applied the remaining parts of the
	patch from Daniel Richard G. to fix out-of-source-tree builds
	(bug #444960).

svn path=/trunk/; revision=22735
2007-06-07 13:19:44 +00:00
Sven Neumann af942b5bdb bail out with an error if xsltproc is missing and authors.h needs to be
2007-06-07  Sven Neumann  <sven@gimp.org>

	* app/dialogs/Makefile.am: bail out with an error if xsltproc is
	missing and authors.h needs to be regenerated.

	* libgimpwidgets/Makefile.am: let gimpwidgets-private.lo, not the
	C file, depend on gimp-wilber-pixbufs.h. From the patch attached to
	bug #444960.

svn path=/trunk/; revision=22732
2007-06-07 08:35:20 +00:00
Mukund Sivaraman c2d1214551 Changed "The GIMP" to "GIMP" everywhere, where it's used as a name.
2007-06-06  Mukund Sivaraman  <muks@mukund.org>

        Changed "The GIMP" to "GIMP" everywhere, where it's used as a name.


svn path=/trunk/; revision=22715
2007-06-06 08:44:52 +00:00
Michael Natterer ff63dc6b44 revert last change, it looks ugly in themes which actually draw a box
2007-06-04  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimpcolorscale.c (gimp_color_scale_expose):
	revert last change, it looks ugly in themes which actually draw a
	box around the scale.


svn path=/trunk/; revision=22705
2007-06-04 15:37:20 +00:00
Sven Neumann 7588090d85 pass NULL as detail to gtk_paint_box().
2007-06-04  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpcolorscale.c (gimp_color_scale_expose): pass
	NULL as detail to gtk_paint_box().

svn path=/trunk/; revision=22702
2007-06-04 13:55:31 +00:00
Michael Natterer 739da20929 let mouse button 1 jump to the clicked position directly (just as mouse
2007-06-03  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimpcolorscale.c: let mouse button 1 jump to the
	clicked position directly (just as mouse button 2 does). Feels
	much more intuitive because the result of the operation is visible
	before and color scales have no scroll arrows either.


svn path=/trunk/; revision=22695
2007-06-03 21:41:31 +00:00
Sven Neumann 07fcf54ee2 changed back to using EXTRA_PROGRAMS.
2007-06-01  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/Makefile.am: changed back to using 
EXTRA_PROGRAMS.


svn path=/trunk/; revision=22689
2007-06-01 10:26:12 +00:00
Sven Neumann cbe5056dc7 minor improvements.
2007-05-31  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/test-preview-area.c: minor improvements.

svn path=/trunk/; revision=22688
2007-05-31 13:30:35 +00:00
Sven Neumann 905e80d497 build test-preview-area to avoid bit rot.
2007-05-31  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/Makefile.am: build test-preview-area to avoid bit
	rot.

	* libgimpwidgets/test-preview-area.c: fixed compilation.

svn path=/trunk/; revision=22687
2007-05-31 13:18:13 +00:00
Sven Neumann e601d3e704 update the original width and height when the chain-button is changed to
2007-05-26  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpwidgets.c (gimp_coordinates_new): update 
the
	original width and height when the chain-button is changed to 
the
	active state.


svn path=/trunk/; revision=22631
2007-05-26 20:32:56 +00:00
Sven Neumann 3b9f1cc4fa libgimpconfig/gimpscanner.c allocate structs using GSlice.
2007-05-22  Sven Neumann  <sven@gimp.org>

	* libgimpconfig/gimpscanner.c
	* libgimpwidgets/gimpwidgets.c: allocate structs using GSlice.


svn path=/trunk/; revision=22581
2007-05-22 17:58:02 +00:00
Sven Neumann 16ec38275c libgimpwidgets/gimpsizeentry.c allocate structs using GSlice.
2007-05-22  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpsizeentry.c
	* libgimpwidgets/gimpquerybox.c: allocate structs using GSlice.

svn path=/trunk/; revision=22562
2007-05-22 11:49:24 +00:00
Michael Natterer 22188fba45 if we free the iter with gtk_tree_iter_free() we must also allocate it
2007-05-18  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimpintstore.c (gimp_int_store_add_empty): if we
	free the iter with gtk_tree_iter_free() we must also allocate it
	with gtk_tree_iter_copy() or gslice will explode.


svn path=/trunk/; revision=22532
2007-05-18 10:37:00 +00:00
Sven Neumann 502d8f71e8 removed resolution entry symbols. 2007-05-04 Sven Neumann <sven@gimp.org>
2007-05-04  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpwidgets.def: removed resolution entry 
symbols.
2007-05-04  Sven Neumann  <sven@gimp.org>

	* POTFILES.in: removed gimpresolutionentry.c.


svn path=/trunk/; revision=22395
2007-05-03 22:17:27 +00:00
William Skaggs e78be6be72 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* libgimpwidgets/gimpresolutionentry.[ch]: removed
	* libgimpwidgets/gimpwidgets.h
	* libgimpwidgets/Makefile.am: changed accordingly

	* plug-ins/pygimp/gimpui.defs: resolution entry api removed

	* plug-ins/common/poppler.c: resolution entry code added
	here, with unused api removed.

	Addresses (maybe fixes) bug #351281.

svn path=/trunk/; revision=22394
2007-05-03 22:13:48 +00:00
Sven Neumann e3813131b7 also use the middle mouse button for panning.
2007-04-25  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpscrolledpreview.c: also use the middle mouse
	button for panning.

	* plug-ins/common/nova.c: override the default mouse handling of
	the GimpScrolledPreview and allow to reposition the center using
	the left mouse button. Fixes bug #364432.

	* app/tools/gimprectangletool.c: formatting.

svn path=/trunk/; revision=22319
2007-04-25 10:10:43 +00:00
Mukund Sivaraman 9f080a827b updated the API documentation to indicate that the returned array is
2007-04-24  Mukund Sivaraman  <muks@mukund.org>

        * libgimpwidgets/gimppageselector.c: updated the API documentation
        to indicate that the returned array is sorted.


svn path=/trunk/; revision=22313
2007-04-24 18:31:46 +00:00
Sven Neumann 2c6bf5c03c applied patch from Aurimas Juška that fixes positioning of the quick
2007-04-18  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpscrolledpreview.c
	(gimp_scrolled_preview_nav_button_press): applied patch from
	Aurimas Juška that fixes positioning of the quick navigation
	popup (bug #430917).

svn path=/trunk/; revision=22276
2007-04-18 07:55:13 +00:00
Sven Neumann 18d85d40b4 bail out early (before checking other parameters) if width or height are
zero

svn path=/trunk/; revision=22268
2007-04-17 19:09:58 +00:00
Sven Neumann 5dde91daab allow the draw, blend, mask and fill methods to be called with zero width
2007-04-17  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimppreviewarea.c: allow the draw, blend, mask
	and fill methods to be called with zero width or height. Nothing
	will be drawn, but it's still a valid call.


svn path=/trunk/; revision=22267
2007-04-17 19:02:55 +00:00
Sven Neumann fb095cf281 don't redefine the GimpParasite struct, just use it.
2007-04-12  Sven Neumann  <sven@gimp.org>

	* libgimpbase/gimpprotocol.[ch] (struct _GPParam): don't redefine
	the GimpParasite struct, just use it.

	* libgimp/gimp.c: include gimpparasite.h.

	* libgimp/gimpitemcombobox.c (gimp_item_combo_box_new): initialize
	combo_box_type to suppress a compiler warning.

	* libgimpwidgets/gimpmemsizeentry.c (gimp_memsize_entry_new):
	avoid dereferencing a type-punned pointer.


svn path=/trunk/; revision=22237
2007-04-12 14:32:44 +00:00
Sven Neumann 9dbebcab4a fixed implementation for PANGO_ATTR_STRIKETHROUGH, spotted by Behdad
2007-03-13  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpwidgets.c (gimp_label_set_attributes): 
fixed
	implementation for PANGO_ATTR_STRIKETHROUGH, spotted by Behdad
	Esfahbod.


svn path=/trunk/; revision=22107
2007-03-13 07:22:25 +00:00
Sven Neumann 31565ecb6e gimp_prop_string_combo_box_new() takes a GtkTreeModel, not a GtkTreeStore.
2007-03-08  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimppropwidgets.[ch]: gimp_prop_string_combo_box_new()
	takes a GtkTreeModel, not a GtkTreeStore.


svn path=/trunk/; revision=22071
2007-03-08 10:06:31 +00:00
Hans Breuer f8b13080e4 updated
2007-03-04  Hans Breuer  <hans@breuer.org>

	* **/makefile.msc app/gimpcore.def : updated


svn path=/trunk/; revision=22041
2007-03-04 19:04:42 +00:00
Michael Natterer d212161c00 app/core/gimp-utils.[ch] app/core/gimp.c app/widgets/gimpcontrollerinfo.c
2007-02-17  Michael Natterer  <mitch@gimp.org>

	* app/core/gimp-utils.[ch]
	* app/core/gimp.c
	* app/widgets/gimpcontrollerinfo.c
	* libgimpwidgets/gimpcontroller.c: removed various boolean_handled
	signal accumulators and use g_signal_accumulator_true_handled().


svn path=/trunk/; revision=21933
2007-02-17 11:45:59 +00:00
Sven Neumann c1f3b2af61 fixed some issues with the new widget.
2007-02-12  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpstringcombobox.c: fixed some issues with the
	new widget.

	* modules/controller_linux_input.c: define a property for the
	device store and use the device file as provided by the store.

	* modules/gimpinputdevicestore.c: removed debug output.


svn path=/trunk/; revision=21902
2007-02-12 16:36:27 +00:00
Sven Neumann ace0321f83 libgimpwidgets/gimpstringcombobox.c (gimp_string_model_lookup) fixed wrong
2007-02-12  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpstringcombobox.c (gimp_string_model_lookup)
	* modules/gimpinputdevicestore.c (gimp_input_device_store_lookup):
	fixed wrong use of GValue.


svn path=/trunk/; revision=21901
2007-02-12 16:12:00 +00:00
Sven Neumann 0a203e30c4 libgimpwidgets/Makefile.am libgimpwidgets/gimpwidgetstypes.h
2007-02-12  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/Makefile.am
	* libgimpwidgets/gimpwidgetstypes.h
	* libgimpwidgets/gimpwidgets.h
	* libgimpwidgets/gimpstringcombobox.[ch]: added GimpStringComboBox.

	* libgimpwidgets/gimppropwidgets.[ch]: added a prop widget
	constructor that uses the new widget.

	* libgimpwidgets/gimpwidgets.def: updated.

	* app/widgets/gimpcontrollereditor.c: use a GimpStringComboBox if
	the module specifies a tree model with string values.

	* modules/gimpinputdevicestore.c: minor cleanup.

	* modules/controller_linux_input.c: keep a pointer to the input
	device store and unref it in the finalizer.


svn path=/trunk/; revision=21900
2007-02-12 15:29:45 +00:00
Sven Neumann 32514d2d82 app/widgets/gimppropwidgets.c most property widgets rely on a writable
2007-02-12  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimppropwidgets.c
	* libgimpwidgets/gimppropwidgets.c: most property widgets rely on
	a writable property. Check for that or make the widget non-editable
	if the G_PARAM_WRITABLE flag is unset.


svn path=/trunk/; revision=21898
2007-02-12 11:01:08 +00:00
Sven Neumann 6ea68a7d48 minor refactoring.
2007-02-12  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpcontrollereditor.c: minor refactoring.

	* libgimpwidgets/gimppropwidgets.c (gimp_prop_label_new): allow
	this function to be used with properties that are transformable 
to
	string values, not only with string properties.


svn path=/trunk/; revision=21896
2007-02-12 08:44:25 +00:00
Sven Neumann fbc67ff207 reduced default spacing.
2007-02-08  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpenumwidgets.c
	(gimp_enum_stock_box_new_with_range): reduced default spacing.

	* app/tools/gimpcurvestool.c (gimp_curves_tool_dialog): don't
	increase the box's spacing.

	* app/tools/gimprectangleoptions.c: added portrait/landscape
	buttons.

	* app/widgets/gimppropwidgets.c (gimp_prop_aspect_ratio_new):
	reduced default width of entry.  Swap width and height when the
	aspect changes and fixed-aspect is chosen.

svn path=/trunk/; revision=21873
2007-02-08 16:36:23 +00:00
Sven Neumann f102294ad0 use inline completion
svn path=/trunk/; revision=21870
2007-02-08 12:11:19 +00:00
Sven Neumann daf24a906b emit property change notifications.
2007-02-08  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpratioentry.c (gimp_ratio_entry_set_fraction):
	emit property change notifications.

svn path=/trunk/; revision=21869
2007-02-08 12:07:46 +00:00
Sven Neumann 2b2e9ab623 use GTK_RELIEF_NONE for the buttons.
2007-02-08  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpenumwidgets.c
	(gimp_enum_stock_box_new_with_range): use GTK_RELIEF_NONE for the
	buttons.

svn path=/trunk/; revision=21868
2007-02-08 11:33:30 +00:00
Sven Neumann 525b8bd6b5 app/widgets/widgets-enums.c moved enum GimpAspectType to libgimpwidgets.
2007-02-08  Sven Neumann  <sven@gimp.org>

	* app/widgets/widgets-enums.c
	* libgimpwidgets/gimpwidgetsenums.[ch]: moved enum GimpAspectType
	to libgimpwidgets.

	* libgimpwidgets/gimpratioentry.[ch]: added property "aspect" with
	getters and setters.

	* libgimpwidgets/gimpwidgets.def: updated.


svn path=/trunk/; revision=21867
2007-02-08 10:56:17 +00:00
Sven Neumann 50a39fb96e added history and completion. This will need more work.
2007-02-08  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpratioentry.[ch]: added history and 
completion.
	This will need more work.


svn path=/trunk/; revision=21865
2007-02-08 06:43:20 +00:00
Hans Breuer f8d14112c4 updated #include "file/file-utils.h" for file_utils_uri_display_name
2007-01-13  Hans Breuer  <hans@breuer.org>

	* **/makefile.msc app/gimpcore.def : updated
	* app/display/gimpdisplay-handlers.c : #include "file/file-utils.h"
	for file_utils_uri_display_name
	* plug-ins/imagemap/imap_statusbar.c : g_snprintf instead of snprintf


svn path=/trunk/; revision=21705
2007-01-13 22:41:21 +00:00
Sven Neumann 1018f0b02f removed the private data and the constructor method
svn path=/trunk/; revision=21696
2007-01-12 15:30:49 +00:00
Sven Neumann 40d044766b added a construct-only property to specify the enum-type.
2007-01-12  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpenumstore.c: added a construct-only property
	to specify the enum-type.


svn path=/trunk/; revision=21695
2007-01-12 15:15:42 +00:00
Sven Neumann 5bf710beec configure.in depend on glib >= 2.12.3.
2007-01-12  Sven Neumann  <sven@gimp.org>

	* configure.in
	* app/sanity.c: depend on glib >= 2.12.3.

	* HACKING: updated branches.

	* libgimpwidgets/gimpintstore.c: added a construct-only property
	that allows to specify the GType of the user-data column.


svn path=/trunk/; revision=21692
2007-01-12 13:48:30 +00:00
Sven Neumann 511a488aa2 added transform and untransform methods.
2007-01-11  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimppreview.[ch]: added transform and 
untransform
	methods.

	* libgimp/gimpzoompreview.c: more cleanups. Override the new
	GimpPreview methods.

	* plug-ins/common/nova.c: use the new transform functions.

	* libgimpwidgets/gimpwidgets.def: updated.


svn path=/trunk/; revision=21689
2007-01-11 23:41:45 +00:00
Sven Neumann e640ce4443 fixed clipping (bug #392692).
2007-01-04  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimppreviewarea.c: fixed clipping (bug 
#392692).


svn path=/trunk/; revision=21642
2007-01-04 12:14:24 +00:00
Raphael Quinet d2ae6364f2 install gimpratioentry.h, otherwise it is not possible to build any
2007-01-03  Raphael Quinet  <raphael@gimp.org>

	* libgimpwidgets/Makefile.am (libgimpwidgetsinclude_HEADERS):
	install gimpratioentry.h, otherwise it is not possible to build
	any plug-ins including gimpwidgets.h.

svn path=/trunk/; revision=21638
2007-01-03 17:29:52 +00:00
Sven Neumann aeaf778f16 corrected API docs.
2007-01-02  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpratioentry.c: corrected API docs.


svn path=/trunk/; revision=21622
2007-01-02 18:18:06 +00:00
Sven Neumann 1c1656eecc updated.
2006-12-30  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpwidgets.def: updated.


svn path=/trunk/; revision=21614
2006-12-30 16:01:32 +00:00
Simon Budig 7a3eb8dcd3 New files implementing a widget for entering ratios. Will be improved over
2006-12-30  Simon Budig  <simon@gimp.org>

	* libgimpwidgets/gimpratioentry.[ch]: New files implementing a widget
	for entering ratios. Will be improved over time...

	* libgimpwidgets/gimpwidgetstypes.h
	* libgimpwidgets/gimpwidgets.h
	* libgimpwidgets/Makefile.am: changed accordingly.

	* app/widgets/gimppropwidgets.c: use it for the crop/rectangle
	select tools.

svn path=/trunk/; revision=21613
2006-12-30 15:25:11 +00:00
Sven Neumann 930d6149da removed all .cvsignore files from SVN
svn path=/trunk/; revision=21612
2006-12-30 14:31:03 +00:00
Sven Neumann 311e21dfa9 use the toplevel widget as the dialog's parent.
2006-12-28  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpunitmenu.c: use the toplevel widget as the
	dialog's parent.
2006-12-28 19:09:57 +00:00
Sven Neumann 5a56ca0795 minor cleanup.
2006-12-28  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpunitmenu.c: minor cleanup.
2006-12-28 19:04:42 +00:00
Sven Neumann 24f6ad1b51 comment.
2006-12-28  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpsizeentry.c: comment.
2006-12-28 11:30:24 +00:00
Sven Neumann 988e1a442d libgimpwidgets/gimppropwidgets.[ch] added new function
2006-12-18  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimppropwidgets.[ch]
	* libgimpwidgets/gimpwidgets.def: added new function
	gimp_prop_file_chooser_button_new_with_dialog().
2006-12-18 07:28:41 +00:00
Sven Neumann d0e118dc9c slightly increased size of the quick-mask and zoom-mode buttons. Also
2006-12-12  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplayshell.c (gimp_display_shell_new):
	slightly increased size of the quick-mask and zoom-mode buttons.
	Also changed the style to not displace the icon when the buttons
	are pressed.

	* app/display/gimpdisplayshell.[ch]
	* app/display/gimpdisplayshell-appearance.c: changed "origin_button"
	to "origin". Don't draw it as a button but use an event box just
	like we do for the navigation icon in the lower right corner.

	* app/display/gimpdisplayshell-title.c
	(gimp_display_shell_format_title): use the viewable description
	for the drawable's name. We don't want to see "Qmask" in the
	statusbar.

	* app/widgets/gimpwidgets-utils.c (gimp_button_menu_position): fix
	for the case where button is not really a GtkButton but has it's
	own window.

	* app/widgets/gimphelp-ids.h: changed help ID, removed unused one.

	* libgimpwidgets/gimpstock.c
	* themes/Default/images/Makefile.am
	* themes/Default/images/stock-quick-mask-off-12.png
	* themes/Default/images/stock-quick-mask-off-16.png
	* themes/Default/images/stock-quick-mask-on-12.png
	* themes/Default/images/stock-quick-mask-on-16.png: cropped empty
	space from the quick-mask icon.
2006-12-12 11:20:59 +00:00
Simon Budig 223a578b35 libgimpwidgets/gimpresolutionentry.c fix typo in a function name.
2006-11-25  Simon Budig  <simon@gimp.org>

	* libgimpwidgets/gimpresolutionentry.c
	* libgimpwidgets/gimpwidgets.def: fix typo in a function name.

	* app/widgets/gimpgradienteditor.c
	* app/widgets/gimppaletteeditor.c
	* app/actions/gradient-editor-actions.c
	* app/actions/palette-editor-actions.c: handle all enum values
	and use sane ones.

	* app/widgets/gimpcontrollerinfo.c: fix a warning.
2006-11-25 00:13:08 +00:00
Sven Neumann 3d17cc6123 oops 2006-11-22 09:24:33 +00:00
Sven Neumann 886e2f0139 code cleanup, seems to fix bug #376668.
2006-11-22  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpchainbutton.c: code cleanup, seems to fix
bug
	#376668.
2006-11-22 08:05:13 +00:00
Simon Budig cb43966369 hack to check the consistency of the .def files for the libraries. Invoke
2006-10-31  Simon Budig  <simon@gimp.org>

	* tools/defcheck.py: hack to check the consistency of the .def files
	for the libraries. Invoke after building GIMP, needs "nm" to work.

	* libgimpwidgets/gimpwidgets.def: removed obsolete symbol.
2006-10-31 01:44:31 +00:00
Michael Natterer c18faa20fe app/actions/brush-editor-actions.c app/base/tile-manager-crop.c
2006-10-30  Michael Natterer  <mitch@gimp.org>

	* app/actions/brush-editor-actions.c
	* app/base/tile-manager-crop.c
	* app/config/gimpconfig-file.c
	* app/core/gimp-gradients.c
	* app/core/gimpdrawable-histogram.c
	* app/core/gimpimage-colorhash.c
	* app/core/gimpimage-undo-push.c
	* app/dialogs/convert-dialog.c
	* app/dialogs/preferences-dialog.c
	* app/display/gimpdisplayshell-callbacks.c
	* app/gui/gui-vtable.c
	* app/paint/gimpheal.c
	* app/paint/gimppaintcore-undo.c
	* app/plug-in/plug-in-enums.h
	* app/vectors/gimpstroke-new.c
	* app/vectors/gimpvectors-warp.c
	* app/widgets/gimpviewablebox.c
	* app/widgets/gimpviewrenderer-frame.c
	* app/widgets/gimpviewrenderer-utils.c
	* app/xcf/xcf-save.c
	* libgimpwidgets/gimpcontroller.c: all .c files should include
	their headers and all private functions should be static.
	(-Wmissing-declarations -Wmissing-prototypes rocks!)
2006-10-30 10:13:06 +00:00
Simon Budig a8593d8141 Oops. Need to specify both pdb-skip and skip.
2006-10-25  Simon Budig  <simon@gimp.org>

	* app/vectors/vectors-enums.h: Oops. Need to specify both
	pdb-skip and skip.

	* libgimp/gimp.def
	* libgimpconfig/gimpconfig.def
	* libgimpmath/gimpmath.def
	* libgimpthumb/gimpthumb.def
	* libgimpwidgets/gimpwidgets.def: .def-file maintenance. Hope my
	changes are correct...

	With the help from
	   nm .libs/libgimpfoo-2.0.so |\
	   sed -ne "s/.* T \([a-zA-Z0-9][a-zA-Z0-9_]*\)/\t\1/p" |\
	   (echo EXPORTS ; LC_ALL=C sort )

	* libgimpwidgets/gimppageselector.c: marked stretch_frame_image()
	as static.

	* libgimp/gimpenums.c.tail
	* libgimp/gimpenums.h
	* tools/pdbgen/enums.pl: regenerated.

	* devel-docs/libgimp/tmpl/gimpfontselectbutton.sgml: this changed
	again. WTF?
2006-10-25 16:55:20 +00:00
Sven Neumann 64e893e62f there's no need to make GTypeInfo and GInterfaceInfo structs static.
2006-10-18  Sven Neumann  <sven@gimp.org>

        * [lots of files]: there's no need to make GTypeInfo and
        GInterfaceInfo structs static.
2006-10-18 13:17:50 +00:00
Sven Neumann dec954cc2a special case GimpSizeEntry and use the last entry.
2006-10-18  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpwidgets.c (find_mnemonic_widget): special
	case GimpSizeEntry and use the last entry.

	* app/tools/gimprotatetool.c
	* app/tools/gimpsheartool.c: added mnemonics (bug #162541).
2006-10-18 10:29:16 +00:00
Sven Neumann b1de7a084e added a mnemonic for GIMP_STOCK_TOOL_CROP.
2006-10-12  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpstock.c (gimp_stock_items): added a mnemonic
	for GIMP_STOCK_TOOL_CROP.
2006-10-12 10:08:56 +00:00
Michael Natterer c567149f8e libgimpwidgets/gimpcolordisplay.[ch] added "const gchar *stock_id" members
2006-10-01  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimpcolordisplay.[ch]
	* libgimpwidgets/gimpcontroller.[ch]: added "const gchar *stock_id"
	members to the class structs.

	* libgimpwidgets/gimpstock.[ch]
	* themes/Default/images/Makefile.am
	* themes/Default/images/stock-controller-16.png
	* themes/Default/images/stock-controller-24.png
	* themes/Default/images/stock-controller-keyboard-16.png
	* themes/Default/images/stock-controller-keyboard-24.png
	* themes/Default/images/stock-controller-linux-input-16.png
	* themes/Default/images/stock-controller-linux-input-24.png
	* themes/Default/images/stock-controller-midi-16.png
	* themes/Default/images/stock-controller-midi-24.png
	* themes/Default/images/stock-controller-wheel-16.png
	* themes/Default/images/stock-controller-wheel-24.png
	* themes/Default/images/stock-display-filter-colorblind-16.png
	* themes/Default/images/stock-display-filter-colorblind-24.png
	* themes/Default/images/stock-display-filter-contrast-16.png
	* themes/Default/images/stock-display-filter-contrast-24.png
	* themes/Default/images/stock-display-filter-gamma-16.png
	* themes/Default/images/stock-display-filter-gamma-24.png
	* themes/Default/images/stock-display-filter-lcms-16.png
	* themes/Default/images/stock-display-filter-lcms-24.png
	* themes/Default/images/stock-display-filter-proof-16.png
	* themes/Default/images/stock-display-filter-proof-24.png: added
	icons for the various display filters and controllers. Made them
	as ugly as sin to trigger some replacement pain in the relevant
	people ;)

	* modules/cdisplay_colorblind.c
	* modules/cdisplay_gamma.c
	* modules/cdisplay_highcontrast.c
	* modules/cdisplay_lcms.c
	* modules/cdisplay_proof.c
	* modules/controller_linux_input.c
	* modules/controller_midi.c
	* app/widgets/gimpcontrollerkeyboard.c
	* app/widgets/gimpcontrollerwheel.c: set icons.

	* app/widgets/gimpcolordisplayeditor.c
	* app/widgets/gimpcontrollerinfo.c
	* app/widgets/gimpcontrollerlist.c: show them in the display filter
	and controller GUIs.
2006-10-01 17:31:42 +00:00
Sven Neumann ba9efb3433 modules/Makefile.am new CMYK color-selector that uses littleCMS for the
2006-09-26  Sven Neumann  <sven@gimp.org>

	* modules/Makefile.am
	* modules/colorsel_cmyk_lcms.c: new CMYK color-selector that
uses
	littleCMS for the RGB <-> CMYK conversion. This is built instead
	of the standard CMYK color-selector if lcms is available.

	* libgimpwidgets/gimpcolornotebook.c
	* libgimpwidgets/gimpcolorselection.[ch]
	* libgimpwidgets/gimpcolorselector.[ch]
	* libgimpwidgets/gimpwidgets.def: added API to set the color
	management configuration on color selectors.

	* libgimpwidgets/gimpwidgetstypes.h: include
	libgimpconfig/gimpconfigtypes.h.

	* app/dialogs/grid-dialog.c
	* app/dialogs/preferences-dialog.c
	* app/widgets/gimpcolordialog.c
	* app/widgets/gimpcoloreditor.c
	* app/widgets/gimpcolorpanel.c
	* app/widgets/gimpgrideditor.[ch]
	* app/widgets/gimppropwidgets.c
	* app/widgets/gimptoolbox-color-area.c: set the color management
	configuration on (hopefully) all color selectors.

	* modules/cdisplay_lcms.c: use a GimpHintBox widget.
2006-09-26 08:55:41 +00:00
William Skaggs 93d3fd43ca Bill Skaggs <weskaggs@primate.ucdavis.edu>
* libgimpwidgets/gimppropwidgets.[ch]: revert previous
	change; was not necessary.
2006-09-22 18:22:53 +00:00
William Skaggs 0a7140b526 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* libgimpwidgets/gimppropwidgets.[ch]: added
	gimp_prop_toggle_button_new(), and re-implemented
	gimp_prop_check_button_new() in terms of it, as basically
	a convenience function now.
2006-09-21 20:09:57 +00:00
Sven Neumann ecc55bd05e use canonical names for style properties.
2006-09-20  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpcolornotebook.c: use canonical names for
	style properties.
2006-09-20 20:37:15 +00:00
Hans Breuer ccb25e3798 updated
2006-09-08  Hans Breuer  <hans@breuer.org>

	* **/makefile.msc app/gimpcore.def : updated

	* app/paint/gimpperspectiveclone.c : error C2057: expected constant
	expression. Stack allocation of dynamic sized arrays is afaik a GCC
	extension, use g_alloca() instead.
2006-09-08 11:45:06 +00:00
Michael Natterer 1b1497657a Merged the "soc-2006-perspective-clone" branch. That branch is now
2006-09-07  Michael Natterer  <mitch@gimp.org>

	Merged the "soc-2006-perspective-clone" branch. That branch is
	now officially closed and all further fixes and changes have to
	be applied to HEAD.

	Did some minor adjustments, mostly small indentation and spacing
	fixes. Derive the tool from GimpBrushTool and renamed the enum
	added to paint-enums.h and it values, added stock icon and menu
	entry.

	Thanks a lot to Pedro Alonso Ferrer!

	* app/paint/paint-enums.[ch]: new enum GimpPerspectiveCloneMode.

	* app/paint/Makefile.am
	* app/paint/gimpperspectiveclone.[ch]
	* app/paint/gimpperspectivecloneoptions.[ch]: the perspective
	clone core and its options.

	* app/paint/gimp-paint.c: register it.

	* app/tools/Makefile.am
	* app/tools/gimpperspectiveclonetool.[ch]: the perspective clone tool.

	* app/tools/gimp-tools.c: register it.

	* app/tools/gimppaintoptions-gui.c: show the widgets that are used
	by perspective clone.

	* app/widgets/gimphelp-ids.h: the help ID.

	* themes/Default/images/Makefile.am
	* themes/Default/images/tools/stock-tool-perspective-clone-16.png
	* themes/Default/images/tools/stock-tool-perspective-clone-22.png
	* libgimpwidgets/gimpstock.[ch]: its stock ID and icons.

	* menus/image-menu.xml.in: added it to the menu.
2006-09-07 17:10:22 +00:00
Sven Neumann fd56f0631c added "position" construct-only property to allow construction using
2006-09-07  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpchainbutton.c: added "position" construct-only
	property to allow construction using g_object_new().

	* plug-ins/pygimp/gimpui.defs: use new style constructors for some
	more widgets.
2006-09-07 12:23:42 +00:00
Sven Neumann dea33cb255 libgimpwidgets/Makefile.am libgimpwidgets/gimpwidgets.h added simple
2006-09-05  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/Makefile.am
	* libgimpwidgets/gimpwidgets.h
	* libgimpwidgets/gimphintbox.[ch]: added simple widget to
display
	a user hint. Having this as a widget will allow us to change the
	look, perhaps even using style properties.

	* libgimpwidgets/gimpwidgets.def: added the new symbols.

	* app/dialogs/keyboard-shortcuts-dialog.c
	* plug-ins/common/colormap-remap.c
	* plug-ins/common/redeye.c: use the new widget instead of
	duplicating the code.
2006-09-05 21:43:07 +00:00
Michael Natterer db52679583 Merged the "soc-2006-healing-brush" branch. That branch is now officially
2006-09-02  Michael Natterer  <mitch@gimp.org>

	Merged the "soc-2006-healing-brush" branch. That branch is now
	officially closed and all further fixes and changes have to be
	applied to HEAD.

	Did some minor adjustments, mostly small indentation and spacing
	fixes. Derive the tool from the newly introduced GimpBrushTool
	which did not exist when the branch was created.

	Thanks a lot to Kevin Sookocheff for this nice contribution!

	* app/paint/paint-enums.[ch]: new enum GimpHealAlignMode.

	* app/paint/Makefile.am
	* app/paint/makefile.msc
	* app/paint/gimpheal.[ch]
	* app/paint/gimphealoptions.[ch]: the heal core and its options.

	* app/paint/gimp-paint.c: register the heal core.

	* app/tools/Makefile.am
	* app/tools/makefile.msc
	* app/tools/gimphealtool.[ch]: the heal tool.

	* app/tools/gimp-tools.c: register the heal tool.

	* app/tools/gimppaintoptions-gui.c: show the widgets that are used
	by heal.

	* app/widgets/gimphelp-ids.h: the heal help ID.

	* tools/pdbgen/stddefs.pdb
	* tools/pdbgen/pdb/paint_tools.pdb: the heal PDB wrappers.

	* app/widgets/widgets-enums.h
	* app/widgets/gimpcursor.c
	* cursors/Makefile.am
	* cursors/makefile.msc
	* cursors/tool-heal.png
	* cursors/xbm/tool-heal.xbm
	* cursors/xbm/tool-heal-mask.xbm: a new cursor for the heal tool.

	* libgimpwidgets/gimpstock.[ch]
	* themes/Default/images/Makefile.am
	* themes/Default/images/makefile.msc
	* themes/Default/images/tools/stock-tool-heal-16.png
	* themes/Default/images/tools/stock-tool-heal-22.png: new stock
	icons for the heal tool.

	* app/pdb/internal_procs.c
	* app/pdb/paint_tools_cmds.c
	* libgimp/gimppainttools_pdb.[ch]: regenerated.
2006-09-02 18:54:35 +00:00
Sven Neumann bc3c41b648 removed "(Fastest)" from "None" and added translation context (bug
2006-08-23  Sven Neumann  <sven@gimp.org>

        * libgimpbase/gimpbaseenums.[ch]: removed "(Fastest)" from "None"
        and added translation context (bug #343576).

        * app/actions/select-actions.c (select_actions): added translation
        context for "None" and "All".

        * app/widgets/gimpactiongroup.c: strip translation context from
        all labels.

        * libgimpwidgets/gimppageselector.c: fixed singular form.
2006-08-23 14:55:39 +00:00
Sven Neumann d7766d344b libgimpbase/gimpwire.h libgimpbase/gimpreloc.h
2006-08-22  Sven Neumann  <sven@gimp.org>

	* libgimpbase/gimpwire.h
	* libgimpbase/gimpreloc.h
	* libgimp/gimpdrawablepreview.h
	* libgimp/gimptile.h
	* libgimp/gimpunitcache.h
	* libgimpthumb/gimpthumb-utils.h
	* libgimpwidgets/gimpcolorarea.h
	* libgimpwidgets/gimphelpui.h: moved G_GNUC_INTERNAL before the
	return value (bug #352268).

	* tools/pdbgen/lib.pl : changed code generation rules to place
	G_GNUC_INTERNAL before the return value.

	* libgimp/*_pdb.h: regenerated.
2006-08-22 13:18:42 +00:00
Michael Schumacher 4163f6df57 libgimpcolor/gimpcolor.def added some missing entries
2006-08-16  Michael Schumacher  <schumaml@cvs.gnome.org>

	* libgimpcolor/gimpcolor.def
	* libgimpwidgets/gimpwidgets.def: added some missing entries
2006-08-16 23:59:00 +00:00
William Skaggs 55d716e258 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* libgimpwidgets/gimpwidgets.c (gimp_coordinate_callback):
	Don't stop emission of "value-changed" signal.  Fixes
	bug #346088.  Let's see if it breaks anything else...
2006-08-10 19:17:44 +00:00
Sven Neumann 9c638c85c0 use gimp_message().
2006-08-10  Sven Neumann  <sven@gimp.org>

	* app/dialogs/file-save-dialog.c: use gimp_message().

	* app/dialogs/preferences-dialog.c: use a GtkMessageDialog and
	make it transient for the preferences dialog.

	* libgimpwidgets/gimppropwidgets.c
	(gimp_prop_file_chooser_button_notify): use
	gtk_file_chooser_unselect_all() to unset the filename.
2006-08-10 13:12:17 +00:00
Sven Neumann 5d45aed020 minor update for the API reference 2006-08-09 15:44:40 +00:00
Manish Singh bc0c1a85cf add gimp_dialog_add_button[s] API, primarily for language bindings.
2006-07-19  Manish Singh  <yosh@gimp.org>

        * libgimpwidgets/gimpdialog.[ch]: add gimp_dialog_add_button[s] API,
        primarily for language bindings.
2006-07-19 21:41:46 +00:00
Sven Neumann 68f562226c app/widgets/gimpcoloreditor.c in the tooltip for the hex entry, mention
2006-07-07  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpcoloreditor.c
	* libgimpwidgets/gimpcolorselection.c: in the tooltip for the hex
	entry, mention that it also accepts CSS color names.

	* libgimpwidgets/gimpwidgets.c (gimp_scale_entry_new_internal):
	use an invisible event box for the tooltip.
2006-07-07 11:19:52 +00:00
Michael Natterer 6feb7bb82c depend on glib >= 2.10.2, gtk+ >= 2.8.18 and pango >= 1.12.3. Define
2006-07-05  Michael Natterer  <mitch@gimp.org>

	* configure.in: depend on glib >= 2.10.2, gtk+ >= 2.8.18
	and pango >= 1.12.3. Define FOO_DISABLE_DEPRECATED also for
	glib 2.12, gtk+ 2.10 and pango 2.14

	* app/sanity.c
	* app/gui/gui.c: adjusted sanity checks accordingly.

	* app/dialogs/stroke-dialog.c
	* app/widgets/gimpeditor.c
	* app/widgets/gimpuimanager.c
	* libgimpwidgets/gimphelpui.c
	* libgimpwidgets/gimpmemsizeentry.c
	* plug-ins/helpbrowser/gimpthrobber.c: replace gtk_object_sink()
	by combinations of g_object_ref_sink() and g_object_unref().
2006-07-05 13:40:47 +00:00
Sven Neumann 7b1327dd86 I18n improvements based on a patch from Zbigniew Chyla:
2006-06-27  Sven Neumann  <sven@gimp.org>

	I18n improvements based on a patch from Zbigniew Chyla:

	* app/main.c:
	* modules/controller_midi.c
	* plug-ins/script-fu/scripts/guides-new.scm: marked strings for
	translation.

	* app/widgets/gimpdock.c
	* libgimpwidgets/gimppageselector.c
	* plug-ins/common/plugin-browser.c: use ngettext() for plural
forms.
2006-06-27 07:49:14 +00:00
Sven Neumann 0d5e9ed447 themes/Default/images/Makefile.am
2006-06-16  Sven Neumann  <neumann@jpk.com>

	* themes/Default/images/Makefile.am
	* themes/Default/images/stock-colormap-*.png
	* themes/Default/images/stock-indexed-palette-*.png: renamed
	stock-indexed-palette to stock-colormap.

	* libgimpwidgets/gimpstock.[ch]: deprecated
	GIMP_STOCK_INDEXED_PALETTE in favor of GIMP_STOCK_COLORMAP.

	* app/actions/actions.c
	* app/actions/colormap-editor-actions.c
	* app/actions/colormap-editor-commands.c
	* app/actions/context-actions.c
	* app/actions/dialogs-actions.c
	* app/dialogs/dialogs.c: use the new stock-id.
2006-06-16 15:06:57 +00:00
Tor Lillqvist 4af35085a3 Free the string vector returned by g_listenv().
2006-06-13  Tor Lillqvist  <tml@novell.com>

	* app/plug-in/gimpenvirontable.c (gimp_environ_table_populate):
	Free the string vector returned by g_listenv().

	* libgimpwidgets/gimpwidgets.def: Remove deprecated
	gimp_prop_file_entry_new.
2006-06-13 18:06:07 +00:00
Sven Neumann 99f979e118 deprecate the GimpFileEntry widget, use GtkFileChooserButton instead.
2006-06-09  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpfileentry.[ch]: deprecate the GimpFileEntry
	widget, use GtkFileChooserButton instead.

	* libgimpwidgets/gimppatheditor.c: undef GIMP_DISABLE_DEPRECATED
	as long as we are still using GimpFileEntry here.

	* libgimpwidgets/gimppropwidgets.[ch]: removed
	gimp_prop_file_entry_new(); use gimp_prop_file_chooser_button_new()
	instead.
2006-06-09 07:12:33 +00:00
Michael Natterer b668136ae3 fix typo so the "notify" signal doesn't stay blocked.
2006-06-04  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimppropwidgets.c
	(gimp_prop_file_chooser_button_callback): fix typo so the "notify"
	signal doesn't stay blocked.

	* app/dialogs/preferences-dialog.c: added "Reset" button which
	resets all prefs values to their defaults. Fixes bug #342112.
2006-06-04 18:05:53 +00:00
Michael Natterer 2606a93524 removed #define SHADOW 1, it's not a constant value. Use the
2006-05-31  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimpcolorscale.c: removed #define SHADOW 1, it's
	not a constant value. Use the GtkRange::trough-border style
	property instead.
2006-05-31 10:16:08 +00:00
Manish Singh b3ec60ac56 libgimpwidgets/gimpchainbutton.c #include "config.h"
2006-05-29  Manish Singh  <yosh@gimp.org>

        * libgimpwidgets/gimpchainbutton.c
        * libgimpwidgets/gimppixmap.c: #include "config.h"
2006-05-30 02:01:39 +00:00
Tor Lillqvist 76596605cd Sync.
2006-05-30  Tor Lillqvist  <tml@novell.com>

	* libgimpwidgets/gimpwidgets.def: Sync.
2006-05-29 22:28:15 +00:00
Sven Neumann d8e48c5590 renamed a parameter, updated gtk-doc comment.
2006-05-24  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimppatheditor.[ch]: renamed a parameter, updated
	gtk-doc comment.
2006-05-24 13:14:05 +00:00
Sven Neumann 6e3a59ed60 use GTK_STOCK_OPEN instead of "..." to label the "Browse" button. This
2006-05-24  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpfileentry.c: use GTK_STOCK_OPEN instead of
	"..."  to label the "Browse" button. This makes the widget more
	similar to the GtkFileChooserButton and addresses bug #342749.
2006-05-24 07:36:48 +00:00
William Skaggs 1beec26359 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* libgimpwidgets/gimpwidgets.c (gimp_coordinates_callback):
	use ROUND() to prevent incorrect chainbutton logic.  Fixes
	bug #336259.
2006-05-19 20:32:49 +00:00
William Skaggs 6477f2c19a Bill Skaggs <weskaggs@primate.ucdavis.edu>
* themes/Default/images/tools/stock-tool-align-16.png
	* themes/Default/images/tools/stock-tool-align-22.png
	* libgimpwidgets/gimpstock.c
	* libgimpwidgets/gimpstock.h
	* themes/Default/images/Makefile.am: add new (ugly) icon
	for alignment tool.

	* app/tools/gimpaligntool.c: use the new icon; change
	"pressed" to "clicked" for buttons.
2006-05-17 21:48:38 +00:00
Sven Neumann 33abaee881 synced function names with the header file.
2006-05-17  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpresolutionentry.c: synced function names with
	the header file.

	* libgimpwidgets/gimpwidgets.def: added missing entries.
2006-05-17 06:49:49 +00:00
Sven Neumann 6ebcf700d1 removed erroneous semicolon after G_DEFINE_TYPE macros.
2006-05-15  Sven Neumann  <sven@gimp.org>

	* app/*/*.c:
	* lib*/*.c: removed erroneous semicolon after G_DEFINE_TYPE macros.
2006-05-15 09:46:31 +00:00
Hans Breuer 429d71e5e2 updated dont include "config/gimpbaseconfig.c", it gives an redefinition
2006-05-13  Hans Breuer  <hans@breuer.org>

	* **/makefile.msc app/gimpcore.def : updated
	* app/core/gimp-util.c : dont include "config/gimpbaseconfig.c", it
	gives an redefinition error with msvc. Instead include
	config/gimpbaseconfig.h and libgimpconfig/gimpconfig-path.h

	* plug-ins/common/psd_save.c : fix c99isms (declarations only at the
	start of a block)
2006-05-13 17:05:15 +00:00
Sven Neumann e779cf0b0f added "has_alpha" to GimpParamSpecRGB. Made the GimpParamSpecRGB struct
2006-04-27  Sven Neumann  <sven@gimp.org>

	* libgimpcolor/gimprgb.[ch]: added "has_alpha" to GimpParamSpecRGB.
	Made the GimpParamSpecRGB struct public. When validating a color,
	only look at the alpha channel if has_alpha is set.

	* libgimpconfig/gimpconfig-params.h: added "has_alpha" to
	GIMP_CONFIG_INSTALL_PROP_RGB macro definition.

	* libgimpconfig/gimpconfig-serialize.c: serialize color values as
	"(rgb r g b)" if the param-spec indicates that the alpha channel
	is meaningless.

	* app/config/gimpconfig-dump.c: take "has_alpha" into account when
	documenting color properties.

	* app/core/gimpcontext.c
	* app/core/gimpgrid.c
	* app/display/gimpdisplayoptions.c
	* app/text/gimptext.c
	* app/widgets/gimpaction.c
	* app/widgets/gimpcolorbar.c
	* libgimpwidgets/gimpcolorarea.c
	* libgimpwidgets/gimpcolorbutton.c: specify whether color properties
	have an alpha channel.

	* tools/pdbgen/app.pl: handle "has_alpha" for color paramaters.

	* tools/pdbgen/pdb/channel.pdb
	* tools/pdbgen/pdb/context.pdb
	* tools/pdbgen/pdb/grid.pdb
	* tools/pdbgen/pdb/image.pdb: set the "has_alpha" flag where
	appropriate.

	* app/pdb/gimp-pdb-compat.c (gimp_pdb_compat_param_spec): set
	"has_alpha" to TRUE for GIMP_PDB_COLOR.

	* app/pdb/channel_cmds.c
	* app/pdb/context_cmds.c
	* app/pdb/gradient_cmds.c
	* app/pdb/grid_cmds.c
	* app/pdb/image_cmds.c
	* app/pdb/palette_cmds.c
	* app/pdb/palettes_cmds.c
	* app/pdb/selection_tools_cmds.c: regenerated.

	* app/config/gimpdisplayconfig.c (gimp_display_config_class_init):
	removed unused code.
2006-04-27 15:19:59 +00:00
Sven Neumann 54b4773e86 renamed parameters to please gtk-doc.
2006-04-22  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimppropwidgets.[ch] (gimp_prop_scale_entry_new):
	renamed parameters to please gtk-doc.
2006-04-22 02:58:02 +00:00
Sven Neumann f2df31a50e converted tabs to spaces.
2006-04-12  Sven Neumann  <sven@gimp.org>

	* libgimp*/gimp*.[ch]: converted tabs to spaces.
2006-04-12 10:53:28 +00:00
Sven Neumann e0bc81c2e3 declared the array of zoom factors as const.
2006-04-10  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpzoommodel.c (gimp_zoom_model_zoom_step):
	declared the array of zoom factors as const.
2006-04-10 08:17:45 +00:00
Sven Neumann ffa79833dd generate const arrays of const strings.
2006-04-06  Sven Neumann  <sven@gimp.org>

	* app/dialogs/authors.xsl: generate const arrays of const strings.

	* app/dialogs/authors.h: regenerated.
2006-04-06 12:59:44 +00:00
Sven Neumann 37da566934 app/core/gimpcontext.c app/core/gimpimage.c app/paint-funcs/paint-funcs.c
2006-04-06  Sven Neumann  <sven@gimp.org>

	* app/core/gimpcontext.c
	* app/core/gimpimage.c
	* app/paint-funcs/paint-funcs.c
	* app/widgets/gimpcontrollerkeyboard.c
	* app/widgets/gimpcontrollerwheel.c
	* app/widgets/gimpcursor.c
	* app/widgets/gimpdockable.c
	* app/widgets/gimpdockbook.c
	* app/widgets/gimpdockseparator.c
	* libgimp/gimpbrushselect.c
	* libgimp/gimpfontselect.c
	* libgimp/gimpgradientselect.c
	* libgimp/gimppaletteselect.c
	* libgimp/gimppatternselect.c
	* libgimpwidgets/gimpchainbutton.c
	* libgimpwidgets/gimpcolorscales.c
	* libgimpwidgets/gimpcolorselect.c
	* libgimpwidgets/gimppickbutton.c
	* libgimpwidgets/gimpstock.c: sprinkled some const qualifiers.
2006-04-06 12:43:58 +00:00
Sven Neumann 3c704917cb added an explicit dependency to force creation of gimp-wilber-pixbufs.h.
2006-03-29  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/Makefile.am: added an explicit dependency to
	force creation of gimp-wilber-pixbufs.h.
2006-03-29 12:27:29 +00:00
Sven Neumann ca8ef2e312 desktop/Makefile.am removed.
2006-03-29  Sven Neumann  <sven@gimp.org>

        * desktop/Makefile.am
        * desktop/gimp.png: removed.

        * desktop/16x16/gimp.png
        * desktop/22x22/gimp.png
        * desktop/24x24/gimp.png
        * desktop/32x32/gimp.png
        * desktop/48x48/gimp.png
        * desktop/64x64/gimp.png
        * desktop/scalable/gimp.svg: new application icons in different
        sizes, contributed by Jakub Steiner.

        * themes/Default/images/Makefile.am
        * themes/Default/images/stock-wilber-32.png
        * themes/Default/images/stock-wilber-48.png: removed.

        * libgimpwidgets/Makefile.am
        * libgimpwidgets/wilber-16.png
        * libgimpwidgets/wilber-32.png
        * libgimpwidgets/wilber-48.png
        * libgimpwidgets/wilber-64.png: new window icons, identical to the
        new application icons.

        * libgimpwidgets/gimpwidgets-private.c: use the new window icons.
2006-03-29 11:59:51 +00:00
Sven Neumann ea8f0aeb14 added a define for GIMP_STOCK_DETACH to the list of missing icons.
2006-02-25  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpstock.h: added a define for GIMP_STOCK_DETACH
	to the list of missing icons.

	* app/actions/dockable-actions.c: use GIMP_STOCK_DETACH instead of
	GTK_STOCK_CONVERT.

	* plug-ins/common/animationplay.c: unveiled a long-standing secret
	feature of the Animation Playback plug-in by. Needs more love.
2006-02-25 22:04:19 +00:00
Sven Neumann 10bc4df305 fixed check that suppresses the redraw for motion events that don't cause
2006-02-07  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpscrolledpreview.c
	(gimp_scrolled_preview_area_event): fixed check that suppresses
	the redraw for motion events that don't cause the preview to scroll.
2006-02-07 12:34:07 +00:00
Sven Neumann 539ff359a4 connect-after to "realize" and "size-allocate" signals of the preview area
2006-02-06  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimppreview.c: connect-after to "realize" and
	"size-allocate" signals of the preview area and call the
	set-cursor method from the callback.

	* libgimpwidgets/gimpscrolledpreview.c: no need to explicitely set
	the cursor now that the virtual method is used correctly.

	* libgimp/gimpzoompreview.c: implement set-cursor and set the move
	cursor in accordance with the zoom factor.
2006-02-06 11:07:48 +00:00
Sven Neumann 7b24dd8e36 moved GIMP_PARAM defines from here ...
2006-01-30  Sven Neumann  <sven@gimp.org>

	* app/config/config-types.h: moved GIMP_PARAM defines from here ...

	* libgimpbase/gimpparam.h: ... to this new files.

	* libgimpbase/Makefile.am
	* libgimpbase/gimpbasetypes.h: include the new header file.

	* libgimp/gimpfontselectbutton.c
	* libgimpconfig/gimpcolorconfig.c
	* libgimpthumb/gimpthumbnail.c
	* libgimpwidgets/gimpcellrenderercolor.c
	* libgimpwidgets/gimpcellrenderertoggle.c
	* libgimpwidgets/gimpcolorarea.c
	* libgimpwidgets/gimpcolorbutton.c
	* libgimpwidgets/gimpcolordisplay.c
	* libgimpwidgets/gimpcontroller.c
	* libgimpwidgets/gimpdialog.c
	* libgimpwidgets/gimpenumcombobox.c
	* libgimpwidgets/gimpintcombobox.c
	* libgimpwidgets/gimppageselector.c
	* libgimpwidgets/gimppreview.c
	* libgimpwidgets/gimppreviewarea.c
	* libgimpwidgets/gimpzoommodel.c
	* modules/cdisplay_colorblind.c
	* modules/cdisplay_gamma.c
	* modules/cdisplay_highcontrast.c
	* modules/cdisplay_lcms.c
	* modules/cdisplay_proof.c
	* modules/controller_linux_input.c
	* modules/controller_midi.c: use the GIMP_PARAM defines to avoid
	unnecessary string allocations.
2006-01-30 16:10:56 +00:00
Sven Neumann b614bf5e85 libgimpwidgets/gimpintcombobox.[ch] libgimpwidgets/gimppageselector.[ch]
2006-01-25  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpintcombobox.[ch]
	* libgimpwidgets/gimppageselector.[ch]
	* libgimpwidgets/gimpzoommodel.[ch]: added a priv pointer to the
	instance struct and changed the GET_PRIVATE() macro to access the
	private data via that pointer.

	* libgimpwidgets/gimpscrolledpreview.[ch]
	* libgimpwidgets/gimpwidgets.def: added a priv pointer to the
	instance struct and moved all private data to the
	GimpScrolledPreviewPrivate struct. Added freeze/thaw methods so
	that derived widgets can be implemented without accessing private
	data.

	* libgimp/gimpzoompreview.c: changed accordingly.

	* libgimp/gimpfontselectbutton.[ch]: let the priv pointer be an
	anonymous void pointer.
2006-01-25 14:35:56 +00:00
Raphael Quinet 7d8998a99c automatically removed trailing whitespace from 3460 lines.
2006-01-17  Raphael Quinet  <raphael@gimp.org>

	* (about 130 *.[ch] files): automatically removed trailing
	whitespace from 3460 lines.
2006-01-17 12:43:50 +00:00
Michael Natterer 55cc42339b implement GtkWidget::hide() and set the the focus widget to NULL, so a
2006-01-07  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimpdialog.c: implement GtkWidget::hide() and set
	the the focus widget to NULL, so a focussed entry emits focus_out
	and its callbacks are invoked immediately (before the call to
	gtk_widget_hide() returns). Fixes crashes and warnings in tool
	dialogs when hitting escape while a spinbutton is being edited.

	* app/tools/gimptransformtool.c
	(gimp_transform_tool_force_expose_preview): return silently
	instead of warning when being called while the draw tool is not
	active (same scenario as above).
2006-01-07 17:47:24 +00:00
Michael Natterer 703332de75 Argh, third attempt... 2006-01-03 12:46:23 +00:00
Michael Natterer a3ed509b74 connect to our own "response" signal so our callback is the first one
2006-01-03  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimpdialog.c (gimp_dialog_init): connect to our
	own "response" signal so our callback is the first one called.

	(gimp_dialog_response): let the activated widget grab the focus,
	so input fields which update their model and/or constraints on
	focus_out are properly recalculated. Fixes bug #309373.
2006-01-03 12:45:45 +00:00
Michael Natterer a70f015d9e connect to our own "response" signal so our callback is the first one
2006-01-03  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimpdialog.c (gimp_dialog_init): connect to our
	own "response" signal so our callback is the first one called.

	(gimp_dialog_response): let the activated widget grab the focus,
	so input fields which update their model and/or constraints on
	focus_out are properly recalculated. Fixes bug #309373.
2006-01-03 12:40:13 +00:00
Sven Neumann 99d8fa90d0 allow to unset the tooltip by passing NULL.
2005-12-29  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimphelpui.c (gimp_help_set_help_data): allow to
	unset the tooltip by passing NULL.

	* app/widgets/gimpdockseparator.c: unset the tooltip while the same
	text is being shown as a label.
2005-12-29 01:33:38 +00:00
Michael Natterer 33ae55f873 libgimp/*.c libgimpconfig/*.c libgimpmodule/*.c libgimpthumb/*.c port to
2005-12-20  Michael Natterer  <mitch@gimp.org>

	* libgimp/*.c
	* libgimpconfig/*.c
	* libgimpmodule/*.c
	* libgimpthumb/*.c
	* libgimpwidgets/*.c: port to G_DEFINE_TYPE() and friends. Some
	related cleanup.
2005-12-20 20:35:23 +00:00
Sven Neumann a4c54f7aa8 removed unused variable.
2005-12-20  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpscrolledpreview.c: removed unused variable.
2005-12-20 09:18:09 +00:00
Michael Natterer f92880b675 allow to cancel context sensitive help by pressing escape.
2005-12-07  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimphelpui.c: allow to cancel context sensitive
	help by pressing escape.
2005-12-07 20:36:13 +00:00
Sven Neumann 887129a2c3 request motion hints in the navigation popup and redraw the window
2005-11-22  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpscrolledpreview.c: request motion hints in
	the navigation popup and redraw the window immidiately to give
	better feedback.
2005-11-22 13:31:08 +00:00
Sven Neumann e7acde6676 moved the controls closer to the preview.
2005-11-22  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimppreview.c: moved the controls closer to the
	preview.
2005-11-22 12:16:44 +00:00
Sven Neumann 3ac4aab0a1 zoom on Ctrl-Scroll events.
2005-11-22  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpzoompreview.c: zoom on Ctrl-Scroll events.

	* libgimpwidgets/gimpscrolledpreview.c
	(gimp_scrolled_preview_area_event): correctly clamp adjustment
	value on scroll events. Ignore scroll events when Ctrl is pressed.
2005-11-22 11:50:29 +00:00
Sven Neumann 795e2a8be1 scroll using the mouse wheel.
2005-11-21  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpscrolledpreview.c
	(gimp_scrolled_preview_area_event): scroll using the mouse wheel.
2005-11-21 17:53:58 +00:00
Sven Neumann ea03ed8cbe connect to the model's "zoomed" signal and set the button sensitivity.
2005-11-21  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpzoommodel.c (gimp_zoom_button_new): connect
	to the model's "zoomed" signal and set the button sensitivity.
2005-11-21 12:27:13 +00:00
David Odin ce58314257 don't return void in a function returning a gboolean.
* libgimpwidgets/gimpscrolledpreview.c: don't return void in a
  function returning a gboolean.
2005-11-05 12:40:17 +00:00
Michael Natterer f2a4df4e93 app/widgets/gimpaction.c app/widgets/gimpcoloreditor.c
2005-11-02  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpaction.c
	* app/widgets/gimpcoloreditor.c
	* app/widgets/gimpcontainerbox.c
	* app/widgets/gimpcontrollerlist.c
	* app/widgets/gimpmenudock.c
	* app/widgets/gimppluginaction.c
	* app/widgets/gimptooloptionseditor.c
	* app/widgets/gimpwidgets-utils.c
	* libgimpwidgets/gimpcellrenderercolor.c: use gtk_widget_get_settings()
	instead of gtk_settings_get_for_screen(gtk_widget_get_screen())
2005-11-02 20:18:13 +00:00
Sven Neumann e59d9cd898 use g_utf8_strlen().
2005-11-02  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimppropwidgets.c: use g_utf8_strlen().

	* plug-ins/uri/uri-backend-wget.c: use ngettext().
2005-11-02 15:02:06 +00:00
Michael Natterer da5426cceb libgimp/gimpprocbrowserdialog.c libgimpwidgets/gimppropwidgets.c use
2005-11-02  Michael Natterer  <mitch@gimp.org>

	* libgimp/gimpprocbrowserdialog.c
	* libgimpwidgets/gimppropwidgets.c
	* plug-ins/uri/uri-backend-wget.c: use dngettext() for plural
	forms. Fixes bug #320460, bug #320461 and bug #320462.
2005-11-02 14:45:06 +00:00
Sven Neumann 67cd47e9e2 libgimp/gimpprocbrowserdialog.c added translator comments for plural forms
2005-11-02  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpprocbrowserdialog.c
	* plug-ins/uri/uri-backend-wget.c: added translator comments for
	plural forms (bug #320461 and bug #320462).
2005-11-02 10:40:34 +00:00