Commit Graph

1153 Commits

Author SHA1 Message Date
Michael Natterer 997111bf0a Use gtk_dialog_get_content_area() instead of dialog->vbox 2009-07-15 16:19:32 +02:00
Michael Natterer facb13fdba Use GtkOrientable API instead of accessing range->orientation directly 2009-07-15 01:53:30 +02:00
Martin Nordholts f1b14dd6b7 Update library .def files 2009-07-12 12:48:06 +02:00
Michael Natterer 77439d689e Bug 584408 - If brush selection popup overlaps color gradient, clicks pass through
Keep track of the drag state the widget is in so it doesn't get confused
by release or motion events that don't have a related press event.
2009-06-01 22:55:43 +02:00
Sven Neumann 6c02aaa802 libgimpwidgets: set Clear icon sensitivity
Only set the Clear icon in the GimpBrowser Search entry sensitive if
there's text in the entry.
2009-05-24 17:24:28 +02:00
Sven Neumann 149cc5da09 libgimpwidgets: check icon position in the 'icon-press' signal handler 2009-05-24 17:06:17 +02:00
Sven Neumann 1832ba6b37 libgimpwidgets: add a Clear icon to the GimpBrowser's Search entry 2009-05-24 17:02:55 +02:00
Sven Neumann a6d8c7c5c4 Revert "Make some GimpCoords* params const"
This reverts commit 063a6f03aa.
2009-05-18 00:01:34 +02:00
Michael Natterer 063a6f03aa Make some GimpCoords* params const
Add const to GimpCoords* params in GimpBrush::select_brush() and
want_null_motio().
2009-05-17 23:14:19 +02:00
Martin Nordholts b4654d5c8d Update .gitignore 2009-05-17 14:11:35 +02:00
Fredrik Alströmer bcee243fa3 Bug 76616 – Size entry widgets could use some simple math
Add a simple parser to the GimpSizeEntry widget so that one can write
things such as "40in" and "50%" in a size entry widget and get that
converted to the current unit.

The parser also handles basic expresions such as "20cm + 20px" and
"2 * 3.14in".
2009-05-17 13:47:37 +02:00
Michael Natterer e6af54a687 use GtkAdjustment's accessors.
2009-03-22  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimpscrolledpreview.c: use GtkAdjustment's
	accessors.


svn path=/trunk/; revision=28199
2009-03-22 20:46:48 +00:00
Michael Natterer 8559d94629 use GtkAdjustment's accessors.
2009-03-22  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimpscaleentry.c: use GtkAdjustment's accessors.


svn path=/trunk/; revision=28198
2009-03-22 20:31:47 +00:00
Michael Natterer 377c376082 use gtk_dialog_get_content_area() instead of dialog->vbox.
2009-03-22  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimpquerybox.c (create_query_box): use
	gtk_dialog_get_content_area() instead of dialog->vbox.


svn path=/trunk/; revision=28197
2009-03-22 19:32:58 +00:00
Michael Natterer 3795f9b9c5 libgimpwidgets/gimpchainbutton.c libgimpwidgets/gimpcolorarea.c
2009-03-22  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimpchainbutton.c
	* libgimpwidgets/gimpcolorarea.c
	* libgimpwidgets/gimpcolorbutton.c
	* libgimpwidgets/gimpcolorscale.c
	* libgimpwidgets/gimpcolorselect.c
	* libgimpwidgets/gimpdialog.c
	* libgimpwidgets/gimphelpui.c
	* libgimpwidgets/gimpmemsizeentry.c
	* libgimpwidgets/gimpoffsetarea.c
	* libgimpwidgets/gimppickbutton.c
	* libgimpwidgets/gimppixmap.c
	* libgimpwidgets/gimppreview.c
	* libgimpwidgets/gimppreviewarea.c
	* libgimpwidgets/gimpruler.c
	* libgimpwidgets/gimpscrolledpreview.c
	* libgimpwidgets/gimpwidgets.c: use accessors for various members
	of GTK+ structures that don't exist any longer when GSEAL_ENABLE
	is defined.


svn path=/trunk/; revision=28190
2009-03-22 15:42:42 +00:00
Martin Nordholts 4d7a6b10d1 Added .gitignore files generated with git svn create-ignore.
svn path=/trunk/; revision=27972
2009-01-31 11:37:44 +00:00
Michael Natterer ef3fbab8bc chain up if a parent impl exists to be safe against future gtk versions
2009-01-26  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimpbutton.c (gimp_button_clicked): chain up if a
	parent impl exists to be safe against future gtk versions doing
	something in GtkButton::clicked() (as happened in GTK+ trunk).


svn path=/trunk/; revision=27958
2009-01-26 20:23:01 +00:00
Martin Nordholts 4d55dd33ef Bug 563337 – Rectangle Select Tool does not allow 1:1 fixed ratio
* libgimpwidgets/gimpnumberpairentry.c: When testing if the value
changed on focus-out we shall test against the current values, not
the default values.

svn path=/trunk/; revision=27914
2009-01-18 07:54:59 +00:00
Michael Natterer d9b5207aa2 Change licence to GPLv3 (and to LGPLv3 for libgimp).
2009-01-17  Michael Natterer  <mitch@gimp.org>

	* all files with a GPL header and all COPYING files:

	Change licence to GPLv3 (and to LGPLv3 for libgimp).

	Cleaned up some copyright headers and regenerated the parsers in
	the ImageMap plugin.


svn path=/trunk/; revision=27913
2009-01-17 22:28:01 +00:00
Sven Neumann 19f72e4471 use the canonical spelling for the 'stock-id' property.
2008-12-28  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpintcombobox.c (gimp_int_combo_box_init): 
use
	the canonical spelling for the 'stock-id' property.


svn path=/trunk/; revision=27839
2008-12-28 00:08:20 +00:00
Sven Neumann ab94f83b90 added gimp_widgets_error_quark.
2008-12-01  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpwidgets.def: added 
gimp_widgets_error_quark.


svn path=/trunk/; revision=27744
2008-12-01 09:14:27 +00:00
Martin Nordholts 43f810870b Added 'Since: GIMP 2.8' to GIMP_WIDGETS_ERROR.
* libgimpwidgets/gimpwidgets-error.h: Added 'Since: GIMP 2.8' to
GIMP_WIDGETS_ERROR.

* libgimpwidgets/gimpwidgets.h: Added gimpwidgets-error.h.

svn path=/trunk/; revision=27743
2008-12-01 07:44:14 +00:00
Martin Nordholts 725cfdfbcb Remove trailing comma in GimpWidgetsError in gimpwidgets-error.h
svn path=/trunk/; revision=27742
2008-11-30 21:28:33 +00:00
Martin Nordholts bb591631fe New files defining GIMP_WIDGETS_ERROR domain with currently only a
* libgimpwidgets/gimpwidgets-error.[ch]: New files defining
GIMP_WIDGETS_ERROR domain with currently only a
GIMP_WIDGETS_PARSE_ERROR error code.

* libgimpwidgets/Makefile.am: Add the new files here.

svn path=/trunk/; revision=27741
2008-11-30 21:25:02 +00:00
Martin Nordholts 5ddcda87e1 Sort entries.
* libgimpwidgets/Makefile.am: Sort entries.

svn path=/trunk/; revision=27715
2008-11-24 22:11:18 +00:00
Sven Neumann 02817081ff use NC_() to mark enum values for translation. Use a lower-case short form
2008-11-06  Sven Neumann  <sven@gimp.org>

	* tools/gimp-mkenums: use NC_() to mark enum values for 
translation.
	Use a lower-case short form of the type name as translation 
context.

	* libgimp/libgimp-intl.h: define the NC_() macro as noop.

	* libgimpbase/gimpbasetypes.[ch]
	* libgimpbase/gimpbase.def: added new functions to set and
	get a translation context on an enum type.

	* app/base/Makefile.am
	* app/core/Makefile.am
	* app/display/Makefile.am
	* app/paint/Makefile.am
	* app/plug-in/Makefile.am
	* app/text/Makefile.am
	* app/tools/Makefile.am
	* app/widgets/Makefile.am
	* libgimp/Makefile.am
	* libgimpbase/Makefile.am:
	* libgimpconfig/Makefile.am
	* libgimpthumb/Makefile.am
	* libgimpwidgets/Makefile.am: register the translation context
	with the enum types.

	* app/display/display-enums.h
	* libgimpbase/gimpbaseenums.h
	* libgimpconfig/gimpcolorconfig-enums.h: removed old-style 
explicit
	translation context.

	* app/base/base-enums.c
	* app/core/core-enums.c
	* app/display/display-enums.c
	* app/paint/paint-enums.c
	* app/plug-in/plug-in-enums.c
	* app/text/text-enums.c
	* app/tools/tools-enums.c
	* app/widgets/widgets-enums.c
	* libgimpbase/gimpbaseenums.c
	* libgimpconfig/gimpcolorconfig-enums.c
	* libgimpwidgets/gimpwidgetsenums.c: regenerated.


svn path=/trunk/; revision=27562
2008-11-06 08:28:28 +00:00
Sven Neumann fe520925b7 app/base/Makefile.am app/core/Makefile.am app/display/Makefile.am
2008-11-03  Sven Neumann  <sven@gimp.org>

	
	* app/base/Makefile.am
	* app/core/Makefile.am
	* app/display/Makefile.am
	* app/paint/Makefile.am
	* app/plug-in/Makefile.am
	* app/text/Makefile.am
	* app/tools/Makefile.am
	* app/widgets/Makefile.am
	* libgimp/Makefile.am
	* libgimpbase/Makefile.am: 
	* libgimpconfig/Makefile.am
	* libgimpthumb/Makefile.am
	* libgimpwidgets/Makefile.am: micro-optimization in the 
generated
	enum registration code.

	* app/base/base-enums.c
	* app/core/core-enums.c
	* app/display/display-enums.c
	* app/paint/paint-enums.c
	* app/plug-in/plug-in-enums.c
	* app/text/text-enums.c
	* app/tools/tools-enums.c
	* app/widgets/widgets-enums.c
	* libgimpbase/gimpbaseenums.c
	* libgimpconfig/gimpcolorconfig-enums.c
	* libgimpwidgets/gimpwidgetsenums.c: regenerated.


svn path=/trunk/; revision=27538
2008-11-03 21:38:13 +00:00
Michael Natterer 2bdb7d1e98 cosmetics.
2008-10-08  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimpruler.c: cosmetics.


svn path=/trunk/; revision=27179
2008-10-08 18:47:13 +00:00
Sven Neumann 80b9cad58c cache the PangoLayout. Use it not only for drawing the numbers, but also
2008-10-05  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpruler.c: cache the PangoLayout. Use it not
	only for drawing the numbers, but also to calculate the size
	requisition depending on the actual font size.


svn path=/trunk/; revision=27131
2008-10-04 23:32:41 +00:00
Sven Neumann 35b5591585 instead of hardcoding a size request, implement GtkWidget::size_request
2008-10-05  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpruler.c: instead of hardcoding a size
	request, implement GtkWidget::size_request and set the size
	depending on the font-scale.


svn path=/trunk/; revision=27130
2008-10-04 23:13:44 +00:00
Sven Neumann 61f31f307e increased ruler font scale from X_SMALL to SMALL as it appears to be too
2008-10-04  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpruler.c: increased ruler font scale from
	X_SMALL to SMALL as it appears to be too small for many users.

	* themes/Default/gtkrc: follow that change here, but keep the
	ruler font extra small in the Small theme.


svn path=/trunk/; revision=27127
2008-10-04 21:47:53 +00:00
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