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. 10 Jun, 2018 1 commit
  4. 20 May, 2018 2 commits
  5. 04 Jul, 2017 1 commit
  6. 17 Jan, 2016 1 commit
  7. 05 Jun, 2014 1 commit
  8. 06 May, 2014 1 commit
  9. 02 May, 2014 1 commit
    • Michael Natterer's avatar
      app: make things behave more reasonable with multiple monitors · 843866e7
      Michael Natterer authored
      There is now a preference option that determines whether windows
      should be opened on the same monitor as before. It should be disabled
      when the machine gets monitors plugged/unplugged dynamically ("laptop")
      and enabled when there is a static multi-monitor setup ("wokstation").
      This is merely the current simplistic policy on top of the newly added
      underlying infrastructure:
      
      - pass integer monitor numbers around in all places where we already
        pass around a GdkScreen. Pass the "current" monitor to these changed
        APIs, where "current" is either the monitor where the action-triggering
        widget is, or if that is unavailable the monitor where the mouse is.
      
      - add gimp_widget_get_monitor() in order to easily get to the monitor,
        just like gtk_widget_get_screen().
      
      - add screen and monitor parameters in some places that were missed
        before.
      
      - in sessionrc, save all window positions relative to the window's
        monitor, and save the monitor separately, if it's not the screen's
        primary monitor.
      
      - when restoring window positions, use the stored monitor when the new
        prefs options says so (use the screen's primary monitor if there is
        no stored monitor), otherwise use current monitor that is now passed
        around.
      843866e7
  10. 07 Jun, 2013 2 commits
  11. 30 Jun, 2012 2 commits
  12. 02 May, 2012 1 commit
  13. 20 Mar, 2011 2 commits
  14. 28 Feb, 2010 2 commits
    • Martin Nordholts's avatar
      app: Introduce gimp_dialog_factory_get_singleton() · 11b1300b
      Martin Nordholts authored
      Instead of including dialogs/dialogs.h everywhere, introduce
      gimp_dialog_factory_get_singleton(). The dialog factory singleton is
      still initialized by dialogs.c though.
      
      Right now the assumption is that we never will have another dialog
      factory instance around. There were so many problems before when we
      had four of them, so let's just keep one of them around.
      11b1300b
    • Martin Nordholts's avatar
      app: Remove gimp_dialog_factory_from_name() · 947e2859
      Martin Nordholts authored
      We only have one dialog factory now, and
      gimp_dialog_factory_from_name() doesn't provide compile-time type
      safety, so use global_dialog_factory directly instead.
      947e2859
  15. 29 Aug, 2009 1 commit
    • Martin Nordholts's avatar
      app: Always use gimp_object_get_name() · 957cf2cf
      Martin Nordholts authored
      Begin to consider GimpObject::name as private and always use
      gimp_object_get_name(). Change gimp_object_get_name() to take an
      untyped pointer so we don't have to do so awfully many casts. There is
      a runtime check for the type inside the function anyway.
      957cf2cf
  16. 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
  17. 09 Dec, 2006 1 commit
  18. 15 May, 2006 1 commit
  19. 15 Feb, 2006 1 commit
    • Sven Neumann's avatar
      do not unset focus-on-map for all tool dialogs. · 3b857894
      Sven Neumann authored
      2006-02-15  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/gimptooldialog.c: do not unset focus-on-map for all
      	tool dialogs.
      
      	* app/tools/gimpcolorpickertool.c
      	* app/tools/gimpmeasuretool.c: explicitely do it here instead.
      3b857894
  20. 19 Dec, 2005 1 commit
  21. 06 Feb, 2005 1 commit
  22. 08 Jul, 2004 1 commit
    • Michael Natterer's avatar
      removed "role" property because GtkWindow has an equivalent property now. · 788ae2fd
      Michael Natterer authored
      2004-07-08  Michael Natterer  <mitch@gimp.org>
      
      	* libgimpwidgets/gimpdialog.c: removed "role" property because
      	GtkWindow has an equivalent property now. Added "help-func" and
      	"help-id" construct properties.
      
      	* app/widgets/gimptexteditor.c
      	* app/widgets/gimptooldialog.c
      	* app/widgets/gimpviewabledialog.c: removed calls to
      	gimp_help_connect() and pass help_func and help_id to
      	g_object_new().
      788ae2fd
  23. 05 May, 2004 1 commit
    • Sven Neumann's avatar
      added construct properties to make it possible to derive from · 58bcea08
      Sven Neumann authored
      2004-05-05  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/gimpviewabledialog.c: added construct properties to
      	make it possible to derive from GimpViewableDialog.
      
      	* app/widgets/gimptooldialog.[ch]: make GimpToolDialog a real
      	object, not just a convenience constructor.
      
      	* themes/Default/gtkrc
      	* themes/Small/gtkrc: set a smaller border_width of 6 pixels for
      	the action area of tool dialogs.
      
      	* app/tools/gimpcolorpickertool.c
      	* app/tools/gimpimagemaptool.c: set a smaller border_width of 6
      	pixels on tool dialogs to make them more compact.
      58bcea08
  24. 14 Mar, 2004 1 commit
  25. 21 Dec, 2003 1 commit
    • Michael Natterer's avatar
      doc fixes. · 11534c9f
      Michael Natterer authored
      2003-12-21  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimptooldialog.c (gimp_tool_dialog_new): doc fixes.
      11534c9f
  26. 20 Nov, 2003 1 commit
  27. 10 Nov, 2003 1 commit
  28. 08 Nov, 2003 1 commit
    • Michael Natterer's avatar
      To be multihead safe, each new window or menu needs to be associated with · b62f8e9a
      Michael Natterer authored
      2003-11-08  Michael Natterer  <mitch@gimp.org>
      
      	To be multihead safe, each new window or menu needs to be
      	associated with a GdkScreen or it will pop up on the default
      	screen.
      
      	* libgimpwidgets/gimpquerybox.[ch]
      	* app/display/gimpdisplayshell-layer-select.[ch]
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpitemfactory.[ch]
      	* app/widgets/gimpitemtreeview.[ch]
      	* app/widgets/gimptemplateview.[ch]
      	* app/widgets/gimptooldialog.[ch]
      	* app/widgets/gimpviewabledialog.[ch]
      	* app/gui/channels-commands.[ch]
      	* app/gui/color-notebook.[ch]
      	* app/gui/convert-dialog.[ch]
      	* app/gui/edit-commands.[ch]
      	* app/gui/grid-dialog.[ch]
      	* app/gui/image-commands.[ch]
      	* app/gui/info-dialog.[ch]
      	* app/gui/layers-commands.[ch]
      	* app/gui/offset-dialog.[ch]
      	* app/gui/resize-dialog.[ch]
      	* app/gui/stroke-dialog.[ch]
      	* app/gui/templates-commands.[ch]
      	* app/gui/vectors-commands.[ch]: added "GtkWidget *parent"
      	paramaters to all functions which create menus, popups or windows
      	and pass "parent" to gimp_dialog_new() or one of the various
      	wrappers around it. As a side effect, this fixes bug #61092.
      
      	* app/widgets/gimpdialogfactory.[ch]: added "GdkScreen *screen"
      	instead of "parent" here since there are no possible parent
      	windows on startup.
      
      	* app/display/gimpdisplayshell-callbacks.c
      	(gimp_display_shell_origin_button_press): added a quick hack to
      	send a display to another screen: click the origin button with the
      	middle mouse button.
      
      	* app/display/gimpdisplayshell.c
      	(gimp_display_shell_screen_changed): don't chain up
      	undonditionally (don't crash).
      
      	* libgimpwidgets/gimpdialog.c (gimp_dialog_new_valist): set the
      	dialog's screen from a non-GtkWidget parent widget. The rest of
      	non-window parent widget handling is still unimplemented.
      
      	* libgimpwidgets/gimpcolorbutton.c
      	* app/widgets/gimpcolormapeditor.c
      	* app/widgets/gimpcolorpanel.c
      	* app/widgets/gimpcomponenteditor.c
      	* app/widgets/gimpcontainereditor.c
      	* app/widgets/gimpcontainergridview.c
      	* app/widgets/gimpcontainerpopup.c
      	* app/widgets/gimpcontainertreeview.c
      	* app/widgets/gimpdatafactoryview.c
      	* app/widgets/gimpdevicestatus.c
      	* app/widgets/gimpdockable.c
      	* app/widgets/gimpdrawabletreeview.c
      	* app/widgets/gimperrorconsole.c
      	* app/widgets/gimpgradienteditor.c
      	* app/widgets/gimphelp.c
      	* app/widgets/gimppaletteeditor.c
      	* app/widgets/gimppreview-popup.c
      	* app/widgets/gimpselectioneditor.c
      	* app/widgets/gimpsessioninfo.c
      	* app/widgets/gimptoolbox-color-area.c
      	* app/widgets/gimptoolbox-indicator-area.c
      	* app/widgets/gimptoolbox.c
      	* app/widgets/gimptooloptionseditor.c
      	* app/widgets/gimpvectorstreeview.c
      	* app/widgets/gimpwidgets-utils.c
      	* app/display/gimpdisplayshell-scale.c
      	* app/display/gimpnavigationview.c
      	* app/gui/module-browser.c
      	* app/gui/dialogs-commands.c
      	* app/gui/dialogs-constructors.c
      	* app/gui/drawable-commands.c
      	* app/gui/file-commands.c
      	* app/gui/file-new-dialog.c
      	* app/gui/file-save-dialog.c
      	* app/gui/gradient-editor-commands.c
      	* app/gui/gui-vtable.c
      	* app/gui/gui.c
      	* app/gui/info-window.c
      	* app/gui/palette-import-dialog.c
      	* app/gui/palettes-commands.c
      	* app/gui/qmask-commands.c
      	* app/gui/select-commands.c
      	* app/gui/tool-options-commands.c
      	* app/gui/view-commands.c
      	* app/tools/gimpcolorpickertool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpimagemaptool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimptransformtool.c
      	* plug-ins/FractalExplorer/FractalExplorer.c
      	* plug-ins/gfig/gfig.c
      	* plug-ins/gflare/gflare.c: changed accordingly. Changed all
      	menu_position funcs to place the menu on the right screen.
      b62f8e9a
  29. 06 Nov, 2003 1 commit
    • Michael Natterer's avatar
      removed our own action_area API and use GtkDialog's one. Create all · 66c5dd87
      Michael Natterer authored
      2003-11-06  Michael Natterer  <mitch@gimp.org>
      
      	* libgimpwidgets/gimpdialog.[ch]: removed our own action_area API
      	and use GtkDialog's one. Create all dialogs without separator.
      	Changed almost everything else too. Fixes bug #125143.
      
      	* libgimpwidgets/gimpquerybox.c
      	* libgimpwidgets/gimpunitmenu.c: changed accordingly.
      
      	* libgimp/gimpexport.[ch]: ditto. Renamed enum GimpExportReturnType
      	to GimpExportReturn.
      
      	* libgimp/gimpcompat.h: added a #define for the old name.
      
      	* themes/Default/gtkrc: increased action_area border to 6 pixels.
      
      	* app/display/gimpdisplayshell-filter-dialog.c
      	* app/display/gimpdisplayshell-scale.c
      	* app/display/gimpprogress.c
      	* app/gui/brush-select.c
      	* app/gui/channels-commands.c
      	* app/gui/color-notebook.c
      	* app/gui/convert-dialog.c
      	* app/gui/file-new-dialog.c
      	* app/gui/font-select.c
      	* app/gui/gradient-editor-commands.c
      	* app/gui/gradient-select.c
      	* app/gui/grid-dialog.c
      	* app/gui/image-commands.c
      	* app/gui/info-window.c
      	* app/gui/layers-commands.c
      	* app/gui/module-browser.c
      	* app/gui/offset-dialog.c
      	* app/gui/palette-import-dialog.c
      	* app/gui/palette-select.c
      	* app/gui/pattern-select.c
      	* app/gui/preferences-dialog.c
      	* app/gui/qmask-commands.c
      	* app/gui/resize-dialog.c
      	* app/gui/resolution-calibrate-dialog.c
      	* app/gui/stroke-dialog.c
      	* app/gui/templates-commands.c
      	* app/gui/user-install-dialog.c
      	* app/gui/vectors-commands.c
      	* app/tools/gimpcolorpickertool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpimagemaptool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimptransformtool.c
      	* app/widgets/gimptexteditor.c
      	* app/widgets/gimptooldialog.[ch]
      	* app/widgets/gimpviewabledialog.[ch]
      	* app/widgets/gimpwidgets-utils.c: changed accordingly and increased
      	the dialogs' outer borders to 6 pixels all over the place.
      
      	* plug-ins/*/*.c: changed accordingly. The plug-ins may be
      	arbitrarily broken, I tested none of them.
      66c5dd87
  30. 23 Oct, 2003 1 commit
    • Sven Neumann's avatar
      fixed inline documentation. · bf87ccec
      Sven Neumann authored
      2003-10-23  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/gimptooldialog.c (gimp_tool_dialog_new): fixed
      	inline documentation.
      bf87ccec
  31. 21 Oct, 2003 1 commit
  32. 20 Oct, 2003 1 commit
    • Sven Neumann's avatar
      app/widgets/Makefile.am added a simple utility function · 445d6bfc
      Sven Neumann authored
      2003-10-20  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/Makefile.am
      	* app/widgets/gimptooldialog.[ch]: added a simple utility function
      	gimp_tool_dialog_new() that creates a GimpVieawableDialog based on
      	GimpToolInfo and registers it with the toplevel dialog factory.
      
      	* app/tools/gimpbrightnesscontrasttool.c
      	* app/tools/gimpcolorbalancetool.c
      	* app/tools/gimpcolorizetool.c
      	* app/tools/gimpcolorpickertool.c
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimphistogramtool.c
      	* app/tools/gimphuesaturationtool.c
      	* app/tools/gimpimagemaptool.[ch]
      	* app/tools/gimplevelstool.c
      	* app/tools/gimpmeasuretool.c: use the new functionality; removed
      	the shell_identifier since it can be created from the tool name.
      
      	* app/tools/gimpperspectivetool.c
      	* app/tools/gimpposterizetool.c
      	* app/tools/gimprotatetool.c
      	* app/tools/gimpscaletool.c
      	* app/tools/gimpsheartool.c
      	* app/tools/gimpthresholdtool.c
      	* app/tools/gimptransformtool.[ch]: removed the shell_identifier
      	here as well. Should also be ported to gimp_tool_dialog_new().
      
      	* NEWS: removed stuff that isn't new at all.
      445d6bfc