Commit Graph

1171 Commits

Author SHA1 Message Date
Michael Natterer 1aeb315ecf undef GTK_DISABLE_DEPRECATED in many places which undef GSEAL_ENABLE
because the widget flag access macros (e.g. GTK_WIDGET_REALIZED) are
now deprecated in GTK+ master.
2010-03-06 23:14:29 +01:00
Michael Natterer 5f0255e269 Add GIMP_STOCK_INPUT_DEVICE icons and use them for the devices dialog
From icon masta Jimmac.
2010-02-19 21:25:24 +01:00
Michael Natterer dc05c2687e libgimp: add a frame around the color areas again, but only one frame around both 2010-01-24 23:55:36 +01:00
Kretynofil 6522fdc9b7 Bug 598344 - Make 'Current' and 'Old' colors in color selector adjacent
Make the color selector more slick by removing some UI cruft and
putting the 'Current' and 'Old' color fields right next to each other.
2010-01-23 09:31:05 +01:00
Michael Natterer eac902d065 libgimp: use gtk_widget_get_visible() instead of GTK_WIDGET_VISIBLE() 2010-01-17 16:51:48 +01:00
Sven Neumann 42e31b1cc8 libgimpwidgets: clean up comment
Rephrase a comment so that it does not cause a false positive when
looking for deprecated GDK symbols.
2009-11-09 19:07:54 +01:00
Michael Natterer b2e98c44ec Don't filter out non-existing folders in the path editor
So the user actually has a chance to fix misconfigured paths.
2009-10-30 21:34:07 +01:00
Alexia Death 210a4b5044 Merge resolution 2009-10-17 21:42:02 +03:00
Michael Natterer fcd346a227 Build with GSEAL_ENABLE with a few exceptions
Use the new accessors in GTK+ 2.18 and #undef GSEAL_ENABLE where
accessors are missing or where I'm not quite sure how to fix the
stuff yet.
2009-10-17 18:51:48 +02:00
Michael Natterer ee48b7b06e Use accessors instead of table->children and adjustment->value 2009-10-17 18:49:12 +02:00
Martin Nordholts eb6bef33e4 Use gtk_widget_set_visible()
In places where the pattern

  if (show)
    gtk_widget_show (widget);
  else
    gtk_widget_hide (widget);

is used, change to

  gtk_widget_set_visible (widget, show);

Also do some other minor cleanups.
2009-10-17 15:07:34 +02:00
Alexia Death d2143b8886 Merging master to current state 2009-08-21 19:26:05 +03:00
Massimo Valentini b1bbbb230d Bug 542003 – Reset button breaks field updates on width and height boxes
Update all of the internal state in response to a reset request.
2009-08-05 23:42:58 +02:00
Michael Natterer 656e30cd3a Looking at widget->requisition in size_allocate() is useless
Use the passed GtkAllocation for calculating things, not
widget->requisition.
2009-08-01 18:59:58 +02:00
Michael Natterer 2abca796bf Don't touch widget->requisition in size_request()
gimp_ruler_size_request(): modify the passed GtkRequisition, not
widget->requisition.
2009-08-01 18:57:58 +02:00
Alexia Death 08a88f681d Lo and behold, menu item. 2009-07-30 20:49:10 +03:00
Martin Nordholts b2b2b41e62 Get rid of artificial compiler warnings
Get rid of artificial compiler warnings generated with the #warning
directive. They pollute the build output and don't work as incentives
for fixing stuff.
2009-07-20 12:47:59 +02:00
Sven Neumann cb4aec187f Update license to LGPL version 3 here as well. 2009-07-16 22:37:09 +02:00
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