- 25 Mar, 2006 1 commit
-
-
Michael Natterer authored
2006-03-25 Michael Natterer <mitch@gimp.org> * app/tools/gimptool.[ch] * app/tools/tool_manager.[ch]: add "gboolean proximity" parameter to GimpTool::oper_update() in order to emphasize its importance and to avoid peeking around in the GimpDisplayShell struct. * app/tools/gimpbycolorselecttool.c * app/tools/gimpclonetool.c * app/tools/gimpcolorpickertool.c * app/tools/gimpcolortool.c * app/tools/gimpcurvestool.c * app/tools/gimpforegroundselecttool.c * app/tools/gimpiscissorstool.c * app/tools/gimpmovetool.c * app/tools/gimpnewrectselecttool.c * app/tools/gimppainttool.c * app/tools/gimprectangletool.[ch] * app/tools/gimpselectiontool.c * app/tools/gimptransformtool.c * app/tools/gimpvectortool.c: changed accordingly. Got rid of quite some "display/gimpdisplayshell.h" includes. * app/display/gimpdisplayshell-callbacks.c (gimp_display_shell_canvas_tool_events): pass shell->proximity to tool_manager_oper_update_active().
-
- 15 Feb, 2006 1 commit
-
-
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.
-
- 13 Dec, 2005 1 commit
-
-
Michael Natterer authored
2005-12-13 Michael Natterer <mitch@gimp.org> * app/tools/*.c: port to G_DEFINE_TYPE() and friends. Some related cleanup.
-
- 06 Nov, 2005 1 commit
-
-
Michael Natterer authored
2005-11-06 Michael Natterer <mitch@gimp.org> * app/tools/gimpcolorpickertool.c (gimp_color_picker_tool_picked): when picking FG or BG color from an indexed layer, select its index in the colormap editor. Fixes bug #320660.
-
- 26 Sep, 2005 1 commit
-
-
Michael Natterer authored
2005-09-26 Michael Natterer <mitch@gimp.org> Allow to disable the color picker info dialog. Fixes bug #315011: * app/tools/tools-enums.[ch] (enum GimpColorPickerMode): added value GIMP_COLOR_PICK_MODE_PALETTE. * app/tools/gimpcolorpickeroptions.[ch]: deprecated property "add-to-palette" and added property "use-info-window". Changed tool options GUI accordingly. * app/tools/gimpcolorpickertool.c (gimp_color_picker_tool_modifier_key): made <shift> toggle the use-info-window property. (gimp_color_picker_tool_picked): moved palette picking code into the pick_mode switch() statement. * app/tools/gimpcolortool.c (gimp_color_tool_cursor_update): show a "plus" cursor when adding to the palette.
-
- 13 Jul, 2005 1 commit
-
-
Michael Natterer authored
2005-07-13 Michael Natterer <mitch@gimp.org> * app/widgets/gimpdockable.[ch]: added new public function gimp_dockable_blink_cancel() which stops title blinking. * app/tools/gimpcolorpickertool.c (gimp_color_picker_tool_picked): cancel blinking when updating a picked color so the dockable doesn't flicker for each cursor movement.
-
- 09 Mar, 2005 1 commit
-
-
Michael Natterer authored
2005-03-09 Michael Natterer <mitch@gimp.org> More sample point stuff. Addresses bug #137776. * app/core/gimpimage-sample-points.c * app/core/gimpimage-undo-push.c: append, not prepend the sample paints to the image's list because their index matters. Update sample points when their index changes. * app/display/gimpcanvas.[ch]: added own sytles for the sample points. Added gimp_canvas_draw_text() which uses a PangoLayout which is cached in the canvas. * app/display/gimpdisplayshell-draw.c (gimp_display_shell_draw_sample_point): draw the sample points more distinct from guides using the new canvas APIs above. * app/display/gimpdisplayshell-callbacks.c (gimp_display_shell_[hv]ruler_button_press): factored out all code to (gimp_display_shell_ruler_burron_press): which takes a boolean "horizontal" variable and allows to add sample points with <control>+drag. * app/tools/gimpcolortool.[ch]: implement adding, moving and removing of sample points in the same way as the move tool moves guides. * app/tools/gimpcolorpickertool.c (gimp_color_picker_tool_oper_update): chain up.
-
- 25 Jan, 2005 1 commit
-
-
William Skaggs authored
-
- 28 Jul, 2004 1 commit
-
-
Michael Natterer authored
2004-07-28 Michael Natterer <mitch@gimp.org> * app/tools/gimpbycolorselecttool.c (gimp_by_color_select_tool_init) * app/tools/gimpcolorpickertool.c (gimp_color_picker_tool_init): don't call gimp_tool_control_set_preserve (tool->control, FALSE) because these tools don't cashe any image state and don't care about the image changing under their feet.
-
- 30 Jun, 2004 1 commit
-
-
Michael Natterer authored
2004-06-30 Michael Natterer <mitch@gimp.org> Fixed a 1.2 -> 2.0 regression that was forgotten: * app/widgets/widgets-enums.[ch]: added enum GimpColorPickState which can be one of { NEW, UPDATE }. * app/widgets/gimppaletteeditor.[ch]: changed #if 0'ed function gimp_palette_editor_update_color() to gimp_palette_editor_pick_color() and restored the functionality of creating/updating colors via this API Changed button_press handler to only edit the color on double click if it's really a double click on the same color. Fixes bug #141381. * app/tools/gimpcolorpickeroptions.[ch]: added boolean property "add-to-palette" and a GUI for it. * app/core/gimpmarshal.list * app/tools/gimpcolortool.[ch]: added a GimpColorPickState parameter to the "color_picked" signal. Pass NEW on button_press and UPDATE on motion. * app/tools/gimpcurvestool.c (gimp_curves_tool_color_picked) * app/tools/gimplevelstool.c (gimp_levels_tool_color_picked) * app/tools/gimppainttool.c (gimp_paint_tool_color_picked): changed accordingly * app/tools/gimpcolorpickertool.c (gimp_color_picker_tool_picked): If "add-to-palette" is TRUE, get the palette editor and call gimp_palette_editor_pick_color().
-
- 05 May, 2004 1 commit
-
-
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.
-
- 29 Apr, 2004 1 commit
-
-
Michael Natterer authored
2004-04-29 Michael Natterer <mitch@gimp.org> * app/tools/gimp*tool.c (gimp_*_tool_register): stripped the menu paths from the "menu_path". Will be renamed to "action_name" or something soon... * plug-ins/dbbrowser/dbbrowser.c * plug-ins/common/plugindetails.c * plug-ins/common/uniteditor.c: register under the new "Extensions" placeholder.
-
- 16 Apr, 2004 1 commit
-
-
Sven Neumann authored
2004-04-16 Sven Neumann <sven@gimp.org> * app/tools/gimpcolorpickertool.c * app/tools/gimpmeasuretool.c: don't use gtk_window_present() to raise the tool dialog since it also moves the focus away from the image window. Fixes the problem described in bug #139349.
-
- 14 Mar, 2004 1 commit
-
-
Sven Neumann authored
2004-03-14 Sven Neumann <sven@gimp.org> * app/tools/gimpcolorpickertool.c * app/tools/gimpcroptool.c * app/tools/gimpimagemaptool.c * app/tools/gimpmeasuretool.c * app/tools/gimptransformtool.c: don't set tool dialogs transient to the image window. Fixes bug #128833.
-
- 08 Nov, 2003 1 commit
-
-
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.
-
- 06 Nov, 2003 1 commit
-
-
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.
-
- 25 Oct, 2003 1 commit
-
-
Sven Neumann authored
2003-10-25 Sven Neumann <sven@gimp.org> * app/tools/tools-enums.[ch]: added GIMP_COLOR_PICK_MODE_NONE to the GimpColorPickMode enum. * app/tools/gimpcolorpickeroptions.[ch]: removed "update-toolbox" property; the new enum value serves this role better. * app/tools/gimpcolorpickertool.c: handle the new enum value. * app/tools/gimpcolortool.c: default to GIMP_COLOR_PICK_MODE_NONE. Don't set a cursor modifier for this value. Fixes tool cursor for levels and curves tools. * app/tools/gimppainttool.[ch]: added a function to conveniently enable the color picker and set the pick mode at the same time. * app/tools/gimpairbrushtool.c * app/tools/gimppaintbrushtool.c * app/tools/gimppenciltool.c * app/tools/gimpsmudgetool.c: use the new function. * app/tools/gimperasertool.c: enabled color picking in the eraser tool but set the mode to GIMP_COLOR_PICK_MODE_BACKGROUND.
-
- 20 Oct, 2003 1 commit
-
-
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.
-
- 15 Oct, 2003 1 commit
-
-
Michael Natterer authored
2003-10-15 Michael Natterer <mitch@gimp.org> * app/widgets/widgets-enums.[ch]: new enum GimpColorFrameMode. * app/widgets/Makefile.am * app/widgets/gimpcolorframe.[ch]: new widget GimpColorFrame which shows a picked color in an optionmenu-selectable color space. Helps getting rid in InfoDialog. * app/gui/info-window.c: use it for the "extended" page. Cleaned up that page a lot so it can be made dockable in the next step. * app/tools/gimpcolorpickertool.[ch]: use it here too. Don't use InfoDialog any more (and do not depend on gui/ any more).
-
- 26 Sep, 2003 1 commit
-
-
Michael Natterer authored
2003-09-26 Michael Natterer <mitch@gimp.org> Cleaned up all places which pick colors to work consistently: the concept of an "active color" has disappeared, instead <ctrl> picks the BG color all over the place (fixes bug #122931). * app/tools/tools-enums.[ch]: added enum GimpColorPickMode which can be one of { FOREGROUND, BACKGROUND }. Reordered enums so non-registered ones are at the end of the file. Removed trailing whitespace. * app/tools/gimpcolorpickeroptions.[ch]: added a "pick-mode" property and a GUI for it. Renamed the "update-active" property to "update-toolbox". * app/tools/gimpcolorpickertool.c: honor the new option. Toggle pick-mode on <ctrl>. * app/tools/gimpcolortool.[ch]: added pick_mode member and change the cursor accordingly. * app/widgets/gimpcolormapeditor.[ch]: added "GdkModifierType state" to the "selected" signal. Removed the signal's default implementation. * app/gui/dialogs-constructors.c: fixed the signal handler which lives here and set BG if <ctrl> was pressed. * app/widgets/gimppaletteeditor.c: removed weird <ctrl> <-> active_color interaction and pick BG on <ctrl>. Don't change the toolbox color when editing a color in the palette. * app/widgets/gimptoolbox-color-area.[ch]: made the whole active_color stuff private. Will remove these artefacts soon... * app/gui/colormap-editor-menu.c * app/gui/palette-editor-menu.c: added separate menu entries for adding a color from the current FG and BG. * app/gui/colormap-editor-commands.c * app/gui/palette-editor-commands.[ch]: changed callbacks accordingly. * cursors/background.xbm * cursors/background_mask.xbm * cursors/foreground.xbm * cursors/foreground_mask.xbm * cursors/gimp-tool-cursors.xcf: moved the FG/BG cursor modifiers closer to the upper right corner. * app/widgets/gimpcursor.c: ignore the cursor modifiers' hotspots since they are not relevant and I didn't save the hotspot in the updated cursor files for that reason.
-
- 19 Sep, 2003 1 commit
-
-
Michael Natterer authored
2003-09-19 Michael Natterer <mitch@gimp.org> * app/tools/gimpcolorpickertool.c: moved the call to gimp_color_tool_enable() from GimpTool::initialize() to GObject::constructor() so the right cursor is shown before the first button_press. Fixes bug #122693.
-
- 23 Aug, 2003 1 commit
-
-
Michael Natterer authored
2003-08-23 Michael Natterer <mitch@gimp.org> * libgimpwidgets/gimpwidgetstypes.h: changed GimpHelpFunc typedef: - renamed "const gchar *help_data" to "const gchar *help_id". - added "gpointer help_data". * libgimpwidgets/gimphelpui.[ch]: added "gpointer help_data" to gimp_help_connect(). Removed all fiddling with html links and treat all help IDs as opaque identifiers. * app/core/gimptoolinfo.[ch]: changed "help_data" member to "help_id". * app/widgets/gimpitemfactory.[ch]: removed the "help_path" parameter from gimp_item_factory_new() since we don't fiddle with html file paths any more. Simplifies menu item help a lot. Renamed "help_data" member of struct GimpItemFactoryEntry to "help_id". * app/gui/plug-in-menus.c: changed accordingly. 3rd party plug-ins' menu item help IDs are now encoded as "help_path:help_id". * app/gui/file-open-menu.c * app/gui/file-save-menu.c: when constructing the <Load> and <Save> menus, take the resp. procedures' locale_domain and help_path into account. Fixes translation of 3rd party menu items. Also do the right thing for load/save procs which are implemented as temporary procedures (they are impossible to implement currently but it's nice to do the right thing anyway...). * app/widgets/gimphelp-ids.h: added GIMP_HELP_MAIN identifier. * libgimpwidgets/gimpdialog.[ch] * libgimpwidgets/gimpwidgets.[ch] * libgimp/gimpui.c * app/display/gimpdisplayshell.c * app/gui/gui.c * app/gui/about-dialog.c * app/gui/color-notebook.c * app/gui/dialogs-constructors.c * app/gui/file-dialog-utils.[ch] * app/gui/gradients-commands.c * app/gui/help-commands.c * app/gui/image-menu.c * app/gui/menus.c * app/gui/preferences-dialog.c * app/gui/tips-dialog.c * app/tools/gimpcolorpickertool.c * app/tools/gimpcroptool.c * app/tools/gimpcurvestool.c * app/tools/gimphistogramtool.c * app/tools/gimpimagemaptool.c * app/tools/gimplevelstool.c * app/tools/gimpmeasuretool.c * app/tools/gimptransformtool.c * app/widgets/gimperrorconsole.c * app/widgets/gimphelp.[ch] * app/widgets/gimpmenufactory.[ch] * app/widgets/gimptexteditor.c * app/widgets/gimptoolbox.c * app/widgets/gimpviewabledialog.[ch] * plug-ins/common/CEL.c * plug-ins/common/CML_explorer.c * plug-ins/common/gee.c * plug-ins/common/gee_zoom.c * plug-ins/common/gqbist.c * plug-ins/common/spheredesigner.c * plug-ins/flame/flame.c * plug-ins/fp/fp_gtk.c * plug-ins/helpbrowser/helpbrowser.c * plug-ins/ifscompose/ifscompose.c * plug-ins/imagemap/imap_main.c: changed accordingly. Removed trailing whitespace all over the place.
-
- 22 Aug, 2003 1 commit
-
-
Michael Natterer authored
2003-08-22 Michael Natterer <mitch@gimp.org> * app/display/gimpdisplayshell.c * app/gui/brush-select.c * app/gui/channels-menu.c * app/gui/convert-dialog.c * app/gui/file-open-menu.c * app/gui/file-save-menu.c * app/gui/font-select.c * app/gui/gradient-select.c * app/gui/gui.c * app/gui/image-commands.c * app/gui/image-menu.c * app/gui/layers-menu.c * app/gui/menus.c * app/gui/palette-import-dialog.c * app/gui/palette-select.c * app/gui/palettes-commands.c * app/gui/pattern-select.c * app/gui/preferences-dialog.c * app/gui/qmask-commands.c * app/gui/qmask-menu.c * app/gui/templates-commands.c * app/gui/toolbox-menu.c * app/gui/vectors-menu.c * app/tools/[all tools].c * app/widgets/gimperrorconsole.c * app/widgets/gimpitemfactory.c * app/widgets/gimptoolbox.c * app/widgets/gimphelp-ids.h: added, fixed and updated lots of help IDs. Still unfinished.
-
- 18 Jul, 2003 1 commit
-
-
Sven Neumann authored
2003-07-18 Sven Neumann <sven@gimp.org> * app/gui/info-window.c: show CMYK color values. * app/tools/gimpcolorpickertool.c: reduced code duplication.
-
- 08 Jul, 2003 1 commit
-
-
Sven Neumann authored
2003-07-08 Sven Neumann <sven@gimp.org> * app/tools/gimpcolorpickertool.c: show the alpha value in percent as well (as suggested in bug #116384).
-
- 01 Jul, 2003 1 commit
-
-
Jakub Steiner authored
2003-07-01 Jakub Steiner <jimmac@ximian.com> * app/gui/image-menu.c * app/gui/plug-in-menus.c * app/gui/toolbox-menu.c * app/tools/gimp*tool.c: Added mnemonics (bug #106991). Plug-ins and Script-Fus next.
-
- 28 Jun, 2003 1 commit
-
-
Michael Natterer authored
2003-06-28 Michael Natterer <mitch@gimp.org> * app/core/gimpcontext.h: removed enum GimpContextPropType and enum GimpContextPropMask. * app/core/core-enums.[ch]: added them here. * app/core/gimptoolinfo.[ch]: replaced "gboolean tool_context" member by "GimpContextPropMask context_props" so each tool can specify exactly which context properties it wants to have persistently remembered. * app/tools/tools-types.h: changed typedef GimpToolRegisterCallback accordingly. * app/tools/tool_manager.[ch] (tool_manager_register_tool): ditto. Removed the "global_tool_context" and initialize all tool info objects from the user_context after creation. Removed the PAINT_OPTIONS_MASK #define and use the new context_props stored in tool_info insted. * app/tools/gimppainttool.h: #define the common properties of the paint tools as GIMP_PAINT_TOOL_OPTIONS_MASK (which is OPACITY | PAINT_MODE | BRUSH). * app/tools/[all tools].c (gimp_*_tool_register): replaced the "use_context" boolean by the actual mask of context properties the tools need.
-
- 05 Jun, 2003 1 commit
-
-
Sven Neumann authored
2003-06-05 Sven Neumann <sven@gimp.org> * app/tools/gimpcoloroptions.c: changed the default radius. * app/tools/gimpcolortool.[ch]: pass GimpColorOptions to gimp_color_tool_enable(). Added gimp_color_tool_disable() and gimp_color_tool_is_enabled(). * app/tools/gimpcolorpickertool.c: changed accordingly. * app/tools/gimppainttool.[ch]: derived GimpPaintTool from GimpColorTool and removed most color picking code. * app/tools/gimpdodgeburntool.c (gimp_dodgeburn_tool_modifier_key) * app/tools/gimperasertool.c (gimp_eraser_tool_modifier_key): chain up to the parent class. * app/tools/gimppaintbrushtool.c: purely cosmetic change.
-
- 04 Jun, 2003 3 commits
-
-
Sven Neumann authored
2003-06-04 Sven Neumann <sven@gimp.org> * app/core/gimpmarshal.list: added VOID: ENUM, BOXED, INT. * app/tools/gimpcolortool.[ch]: added a default implementation for GimpColorTool::pick. Emit a "picked" signal when a color was successfully picked. * app/tools/gimpcolorpickertool.c: simplified a lot since GimpColorTool does most of the work for us now.
-
Sven Neumann authored
2003-06-04 Sven Neumann <sven@gimp.org> * app/core/gimpimage-pick-color.[ch]: reordered arguments. * app/tools/gimpcolorpickertool.c * app/tools/gimppainttool.c: changed accordingly.
-
Sven Neumann authored
2003-06-04 Sven Neumann <sven@gimp.org> * app/tools/Makefile.am * app/tools/gimpcoloroptions.[ch] * app/tools/gimpcolortool.[ch]: new files that implement base classes moved out of GimpColorPickerOptions and GimpColorPickerTool. * app/tools/gimpcolorpickeroptions.[ch] * app/tools/gimpcolorpickertool.[ch]: derive from the new obejcts. * app/tools/gimpimagemaptool.h * app/tools/gimppainttool.c * app/tools/tools-types.h: moved typedefs into the types file.
-
- 28 May, 2003 1 commit
-
-
Michael Natterer authored
2003-05-28 Michael Natterer <mitch@gimp.org> * app/display/gimpdisplayshell-callbacks.c * app/tools/gimpcolorpickertool.c * app/tools/gimpcroptool.c * app/tools/gimphistogramtool.c * app/tools/gimpimagemaptool.c * app/tools/gimpmeasuretool.c * app/tools/gimptextoptions.c * app/tools/gimptransformtool.c * app/tools/paint_options.c * app/tools/tool_manager.c * app/widgets/gimppaletteeditor.c * app/widgets/gimptoolbox-color-area.c: don't #include "gui/dialogs.h" to get the global factories but use gimp_dialog_factory_from_name() instead.
-
- 25 May, 2003 1 commit
-
-
Michael Natterer authored
2003-05-25 Michael Natterer <mitch@gimp.org> * app/tools/tool_manager.[ch] (tool_manager_set,get): Use g_object_[set|get]_qdata(), not just _data() to speed up tool manager access. Removed tool_manager_active_get_help_data() and tool_manager_help_func(). * app/tools/gimpcolorpickertool.c * app/tools/gimpcroptool.c * app/tools/gimpcurvestool.c * app/tools/gimphistogramtool.c * app/tools/gimpimagemaptool.c * app/tools/gimplevelstool.c * app/tools/gimpmeasuretool.c * app/tools/gimptransformtool.c: use gimp_standard_help_func and tool->tool_info->help_data instead. Don't #include "tool_manager.h".
-
- 08 May, 2003 1 commit
-
-
Michael Natterer authored
2003-05-08 Michael Natterer <mitch@gimp.org> * app/core/gimpdrawable.[ch]: removed gimp_drawable_offsets(). * app/core/gimpitem.[ch]: added gimp_item_offsets(). * app/core/gimpdrawable-blend.c * app/core/gimpdrawable-bucket-fill.c * app/core/gimpdrawable-histogram.c * app/core/gimpedit.c * app/core/gimpimage-convert.c * app/core/gimpimage-crop.c * app/core/gimpimage-mask-select.c * app/core/gimpimage-mask.c * app/core/gimpimage-merge.c * app/core/gimpimage-pick-color.c * app/core/gimpimage-preview.c * app/core/gimpimage-projection.c * app/core/gimpimage-undo-push.c * app/core/gimpimage.c * app/core/gimplayer-floating-sel.c * app/core/gimplayer.c * app/display/gimpdisplay.c * app/display/gimpdisplayshell-transform.c * app/display/gimpdisplayshell.c * app/gui/channels-commands.c * app/gui/layers-commands.c * app/paint/gimppaintcore.c * app/tools/gimpbezierselecttool.c * app/tools/gimpblendtool.c * app/tools/gimpbucketfilltool.c * app/tools/gimpbycolorselecttool.c * app/tools/gimpclonetool.c * app/tools/gimpcolorpickertool.c * app/tools/gimpcroptool.c * app/tools/gimpcurvestool.c * app/tools/gimpeditselectiontool.c * app/tools/gimpfliptool.c * app/tools/gimpfuzzyselecttool.c * app/tools/gimpinktool.c * app/tools/gimplevelstool.c * app/tools/gimppainttool.c * app/tools/gimprectselecttool.c * app/tools/gimptransformtool.c * app/widgets/gimpselectioneditor.c * app/widgets/gimptoolbox.c * tools/pdbgen/pdb/color.pdb * tools/pdbgen/pdb/drawable.pdb: changed accordingly. * app/pdb/color_cmds.c * app/pdb/drawable_cmds.c: regenerated.
-
- 02 May, 2003 1 commit
-
-
Michael Natterer authored
2003-05-02 Michael Natterer <mitch@gimp.org> * app/widgets/gimpdialogfactory.[ch]: added new function gimp_dialog_factory_add_foreign() which adds a dialog that was not created by the factory itself. Its identifier however must be registered with the factory. Connect to all toplevel dialogs' "configure_event" and remember the resulting window geometry so we get session management for *all* dialogs, not only for those which were open on exit. * app/gui/dialogs.c: added the "File New" dialog. Added foreign entries (without constructor) for all dialogs opened by tools. * app/gui/dialogs-constructors.[ch]: added a constructor for the file_new dialog. * app/gui/file-new-dialog.[ch]: renamed file_new_dialog_create() to file_new_dialog_new() and removed the gimage and template paramaters. Adder new function file_new_dialog_set() to set gimage and template after creation. * app/gui/file-commands.c * app/gui/templates-commands.c: changed accordingly. * app/tools/gimpimagemaptool.[ch] * app/tools/gimptransformtool.[ch]: added "const gchar *shell_identifier" to the tool structs. Register the tool dialogs using gimp_dialog_factory_add_foreign(). * app/tools/gimpbrightnesscontrasttool.c * app/tools/gimpcolorbalancetool.c * app/tools/gimpcurvestool.c * app/tools/gimphuesaturationtool.c * app/tools/gimplevelstool.c * app/tools/gimpperspectivetool.c * app/tools/gimpposterizetool.c * app/tools/gimprotatetool.c * app/tools/gimpscaletool.c * app/tools/gimpsheartool.c * app/tools/gimpthresholdtool.c: set "shell_identifier" so the dialogs become session managed. Fixes bug #61091. * app/tools/gimpcroptool.c: register the crop dialog with the dialog factory. Fixes bug #52849. * app/tools/gimpcolorpickertool.c: ditto. Unrelated: * app/tools/gimptool.c: no need to cast the return value of g_object_new().
-
- 15 Apr, 2003 1 commit
-
-
Michael Natterer authored
2003-04-15 Michael Natterer <mitch@gimp.org> * app/tools/gimptool.c: check for GIMP_IS_DISPLAY(gdisp) again. * app/tools/gimptool.h: don't #include "gimptoolcontrol.h" * app/tools/[all tools].c: #include "gimptoolcontrol.h"
-
- 25 Mar, 2003 1 commit
-
-
Sven Neumann authored
2003-03-25 Sven Neumann <sven@gimp.org> * Makefile.am * gimpintl.h: removed this header file. * gimpmiscui.c: include libgimp-intl.h. * gimp.c (gimp_main): call setlocale() and bind to the libgimp textdomain so that plug-ins don't need to do that explicitely. * libgimp/stdplugins-intl.h: added the functionality that used to live in gimpintl.h and removed the libgimp related stuff. Got rid of the INIT_I18N_UI() macro. * plug-ins/*/*.c: removed all occurances of INIT_I18N_UI(). Plug-ins simply call INIT_I18N() once in their run() function. * plug-ins/script-fu/script-fu-intl.h: added the functionality that used to live in gimpintl.h and removed the libgimp related stuff. * app/Makefile.am * app/gimp-intl.h: new file that defines the gettext macros for the GIMP core. * app/*/*.c: include gimp-intl.h instead of libgimp/gimpintl.h. * plug-ins/script-fu/scripts/test-sphere.scm: fixed typos.
-
- 16 Mar, 2003 1 commit
-
-
Sven Neumann authored
2003-03-16 Sven Neumann <sven@gimp.org> * app/gui/info-dialog.c: set a window type hint of GDK_WINDOW_TYPE_HINT_UTILITY for info windows (fixes bug #92175). * app/tools/gimpcolorpickertool.c: give the color area more space.
-
- 10 Mar, 2003 1 commit
-
-
Sven Neumann authored
2003-03-10 Sven Neumann <sven@gimp.org> * app/tools/gimpbycolorselecttool.c * app/tools/gimpcolorpickertool.c * app/tools/gimpconvolvetool.c: resolved conflicts in tool keybindings (bug #107975).
-
- 05 Feb, 2003 1 commit
-
-
Michael Natterer authored
2003-02-05 Michael Natterer <mitch@gimp.org> * app/paint/gimpairbrush.c * app/paint/gimpclone.c * app/paint/gimpconvolve.c * app/paint/gimpdodgeburn.c * app/paint/gimperaser.c * app/paint/gimppaintbrush.c * app/paint/gimppencil.c * app/paint/gimpsmudge.c * app/tools/gimpblendoptions.c * app/tools/gimpblendtool.c * app/tools/gimpbucketfilltool.c * app/tools/gimpcolorpickertool.c * app/tools/gimpinktool.c * app/tools/gimppainttool.c * app/tools/paint_options.c: use GIMP_CONTEXT(tool_options) instead of gimp_get_current_context(). Cleanup.
-