1. 18 Sep, 2018 1 commit
    • Ell's avatar
      app, libgimp*, modules: don't use g_type_class_add_private() ... · 3b0040c0
      Ell authored
      ... and G_TYPE_INSTANCE_GET_PRIVATE()
      
      g_type_class_add_private() and G_TYPE_INSTANCE_GET_PRIVATE() were
      deprecated in GLib 2.58.  Instead, use
      G_DEFINE_[ABSTRACT_]TYPE_WITH_PRIVATE(), and
      G_ADD_PRIVATE[_DYNAMIC](), and the implictly-defined
      foo_get_instance_private() functions, all of which are available in
      the GLib versions we depend on.
      
      This commit only covers types registered using one of the
      G_DEFINE_FOO() macros (i.e., most types), but not types with a
      custom registration function, of which we still have a few -- GLib
      currently only provides a (non-deprecated) public API for adding a
      private struct using the G_DEFINE_FOO() macros.
      
      Note that this commit was 99% auto-generated (because I'm not
      *that* crazy :), so if there are any style mismatches... we'll have
      to live with them for now.
      3b0040c0
  2. 11 Jul, 2018 1 commit
  3. 20 May, 2018 2 commits
    • Michael Natterer's avatar
      Enable and fix smooth scrolling and zooming · 2dd2f150
      Michael Natterer authored
      - Fix gimp_scroll_adjustment_values() for smooth scroll events
      - Set GDK_SMOOTH_SCROLL_MASK on all widgets where we set GDK_SCROLL_MASK
      - Add GIMP_ZOOM_SMOOTH to enum GimpZoomType
      - Add "gdouble delta" to gimp_zoom_model_step()
      - Change the meaning of the "scale" parameter to "scale or delta" in
        all functions that take GimpZoomType and a scale factor.
      2dd2f150
    • Michael Natterer's avatar
      libimp*: add private pointers to all instance structs · f4f106ad
      Michael Natterer authored
      even if we don't have private members (yet). Also make class padding 8
      pointers in all headers. This commit moves nothing to private, it just
      makes all headers consistent and adjusts .c files accordigly.
      f4f106ad
  4. 06 Jun, 2017 1 commit
  5. 11 May, 2014 1 commit
  6. 07 May, 2014 1 commit
  7. 05 Jul, 2010 2 commits
  8. 17 Jan, 2009 1 commit
    • Michael Natterer's avatar
      Change licence to GPLv3 (and to LGPLv3 for libgimp). · d9b5207a
      Michael Natterer authored
      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
      d9b5207a
  9. 15 May, 2006 1 commit
  10. 10 Apr, 2006 1 commit
  11. 30 Jan, 2006 1 commit
    • Sven Neumann's avatar
      moved GIMP_PARAM defines from here ... · 7b24dd8e
      Sven Neumann authored
      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.
      7b24dd8e
  12. 25 Jan, 2006 1 commit
    • Sven Neumann's avatar
      libgimpwidgets/gimpintcombobox.[ch] libgimpwidgets/gimppageselector.[ch] · b614bf5e
      Sven Neumann authored
      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.
      b614bf5e
  13. 21 Nov, 2005 1 commit
  14. 01 Oct, 2005 1 commit
    • David Odin's avatar
      added VOID__DOUBLE_DOUBLE marshaller. · 9af9bae0
      David Odin authored
      * libgimpwidgets/gimpwidgetsmarshal.list: added VOID__DOUBLE_DOUBLE
       marshaller.
      
      * libgimpwidgets/gimpzoommodel.[ch]: new signal: "zoomed", emitted
        when the zoom factor changes.  This signal have the old factor and the
        new factor as argument.
      
      * libgimp/gimpzoompreview.c: use the "zoomed" signal instead of the
        "notify::value" one. This allow to use the old and new factors to keep
        the preview centered on the same point.
      9af9bae0
  15. 28 Sep, 2005 1 commit
    • Sven Neumann's avatar
      renamed newly added function to gimp_preview_get_controls(). Increased row · 3670d4c3
      Sven Neumann authored
      2005-09-28  Sven Neumann  <sven@gimp.org>
      
      	* libgimpwidgets/gimppreview.[ch]: renamed newly added function to
      	gimp_preview_get_controls(). Increased row padding for controls.
      
      	* libgimpwidgets/gimpwidgets.def
      	* libgimp/gimpzoompreview.c: changed accordingly.
      
      	* libgimpbase/gimputils.c (gimp_enum_get_value): ref the enum
      	class instead of only peeking at it.
      
      	* libgimpwidgets/gimpzoommodel.c (gimp_zoom_button_new): set a
      	tooltip on zoom buttons that only show an icon.
      3670d4c3
  16. 27 Sep, 2005 1 commit
  17. 25 Sep, 2005 4 commits
    • Sven Neumann's avatar
      removed GimpZoomWidgetType. · 3d0adbf1
      Sven Neumann authored
      2005-09-25  Sven Neumann  <sven@gimp.org>
      
      	* libgimpwidgets/gimpwidgetsenums.[ch]: removed GimpZoomWidgetType.
      
      	* libgimpwidgets/gimpzoommodel.[ch]: removed gimp_zoom_widget_new()
      	in favor of gimp_zoom_button_new().
      
      	* libgimp/gimpzoompreview.c: changed accordingly.
      
      	* libgimpwidgets/gimpwidgets.def: updated.
      
      	* plug-ins/MapObject/mapobject_main.[ch]
      	* plug-ins/MapObject/mapobject_preview.c
      	* plug-ins/MapObject/mapobject_ui.c: use a GimpZoomModel and let
      	it create the zoom buttons.
      
      	* plug-ins/MapObject/mapobject_apply.c
      	* plug-ins/MapObject/mapobject_image.c
      	* plug-ins/MapObject/mapobject_shade.c: include "gimp/gimpui.h".
      3d0adbf1
    • Sven Neumann's avatar
      libgimpwidgets/gimpwidgets.def added gimp_zoom_model_zoom() and changed · 1f0aff2b
      Sven Neumann authored
      2005-09-25  Sven Neumann  <sven@gimp.org>
      
      	* libgimpwidgets/gimpwidgets.def
      	* libgimpwidgets/gimpzoommodel.[ch]: added gimp_zoom_model_zoom()
      	and changed gimp_zoom_model_get_fraction() to take a model instead
      	of the zoom factor.
      
      	* app/display/gimpdisplayshell.[ch]: use a GimpZoomModel for the
      	display scale factor.
      
      	* app/actions/image-commands.c
      	* app/actions/view-actions.c
      	* app/actions/view-commands.c
      	* app/display/gimpdisplayshell-callbacks.c
      	* app/display/gimpdisplayshell-scale.c
      	* app/display/gimpdisplayshell-title.c
      	* app/display/gimpnavigationeditor.c
      	* app/display/gimpstatusbar.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpmagnifytool.c: changed accordingly.
      1f0aff2b
    • Sven Neumann's avatar
      added more values to the GimpZoomType enum. · 13ebb1ca
      Sven Neumann authored
      2005-09-25  Sven Neumann  <sven@gimp.org>
      
      	* libgimpwidgets/gimpwidgetsenums.h: added more values to the
      	GimpZoomType enum.
      
      	* libgimpwidgets/gimpzoommodel.c (gimp_zoom_model_zoom_step):
      	handle the new enum values.
      
      	* app/actions/view-commands.c (view_zoom_cmd_callback) use the new
      	values.
      
      	* app/display/gimpdisplayshell.c (gimp_display_shell_new): cosmetics.
      13ebb1ca
    • Sven Neumann's avatar
      *** empty log message *** · 8d60ac2f
      Sven Neumann authored
      8d60ac2f
  18. 24 Sep, 2005 2 commits
    • David Odin's avatar
      remove the GIMP_ZOOM_LABEL value from GimpZoomWidgetType. · 5f32493c
      David Odin authored
      * libgimpwidgets/gimpwidgetsenums.h: remove the GIMP_ZOOM_LABEL value
        from GimpZoomWidgetType.
      
      * libgimpwidgets/gimpwidgetsenums.c: regenerated.
      
      * libgimp/gimpzoompreview.c: provides two read only properties,
        "fraction" and "percentage" to be used with prop widgets.
      
      * libgimpwidgets/gimpzoommodel.c: use a gimp_prop_label to show the
        zoom fraction.
      5f32493c
    • David Odin's avatar
      Moved the GimpZoomType enum from here... · f94f48f1
      David Odin authored
      * app/widgets/widgets-enums.h: Moved the GimpZoomType enum from	here...
      
      * libgimpwidgets/gimpwidgetsenums.h: ...to here.
      
      * app/widgets/widgets-enums.c
      * libgimpwidgets/gimpwidgetsenums.c: regenerated.
      
      * app/display/gimpdisplayshell-scale.[ch]: removed
        gimp_display_shell_scale_zoom_step and
        gimp_display_shell_scale_get_fraction from here...
      
      * libgimpwidgets/gimpzoommodel.[ch]: ... to here so we can use these
        utility functions in plug-ins and in the core.
        Also removed the step-size property since the zoom-model now use
        gimp_zoom_model_zoom_step.
      
      * app/actions/view-commands.c
      * app/display/gimpdisplayshell-title.c
      * app/display/gimpdisplayshell.c
      * app/tools/gimpmagnifytool.c: modified accordingly.
      
      * libgimp/gimpzoompreview.c: don't pass any argument to the
        gimp_zoom_model_new function.
      
      * libgimpwidgets/gimpwidgets.def: added gimp_zoom_model_zoom_step
        (gimp_zoom_model_get_fraction was already there)
      
      * devel-docs/app/app-sections.txt: removed
        gimp_display_shell_scale_zoom_step and
        gimp_display_shell_scale_get_fraction.
      f94f48f1
  19. 22 Sep, 2005 1 commit
  20. 20 Sep, 2005 1 commit
    • David Odin's avatar
      use private data instead of struct members. Added min-factor and · 68ea16b7
      David Odin authored
      * libgimpwidgets/gimpzoommodel.[ch]: use private data instead of
        struct members. Added min-factor and max-factor properties so we can
        set the zoom range. These can be set by a new utility function:
        gimp_zoom_model_set_range.
      
      * libgimpwidgets/gimpwidgets.def: added gimp_zoom_model_set_range.
      
      * libgimp/gimpzoompreview.c: use gimp_zoom_model_set_range so we can
        only zoom in.
      68ea16b7
  21. 19 Sep, 2005 1 commit
    • David Odin's avatar
      New object to handle zoom factor, and create widgets to control or view · 5b538db8
      David Odin authored
      * libgimpwidgets/gimpzoommodel.[ch]: New object to handle zoom
        factor, and create widgets to control or view this value.
      
      * libgimpwidgets/Makefile.am
      * libgimpwidgets/gimpwidgets.h: Added gimpzoommodel.[ch].
      
      * libgimpwidgets/gimpwidgetsenums.h: new enum: GimpZoomWidgetType.
        This enumerate which knid of widget you can created from the zoom
        model.
      
      * libgimpwidgets/gimpwidgetsenums.c
      * libgimpwidgets/gimpwidgetstypes.h: regenerated.
      
      * libgimpwidgets/gimppreview.c: move the update toggle to the bottom
        of the vbox.
      
      * libgimp/Makefile.am
      * libgimp/gimpui.h
      * libgimp/gimpuitypes.h
      * libgimp/gimpzoompreview.[ch]: New widget, derivated from
        GimpScrolledPreview, which offer the same functionnalities as the
        GimpAspectPreview widget plus zoom facilities.
      
      * plug-ins/common/AlienMap2.c
      * plug-ins/common/apply_lens.c
      * plug-ins/common/blinds.c
      * plug-ins/common/channel_mixer.c
      * plug-ins/common/colorify.c
      * plug-ins/common/flarefx.c
      * plug-ins/common/illusion.c
      * plug-ins/common/jigsaw.c
      * plug-ins/common/mapcolor.c
      * plug-ins/common/max_rgb.c
      * plug-ins/common/nova.c
      * plug-ins/common/polar.c
      * plug-ins/common/retinex.c
      * plug-ins/common/waves.c
      * plug-ins/common/whirlpinch.c: use a GimpZoomPreview instead of a
        GimpAspectPreview.
      5b538db8