mirror of https://github.com/GNOME/gimp.git
62 Commits
Author | SHA1 | Message | Date |
---|---|---|---|
Sven Neumann | e65d666f94 |
remember the size of the levels tool dialog. Fixes bug #127896.
2003-11-25 Sven Neumann <sven@gimp.org> * app/gui/dialogs.c (toplevel_entries): remember the size of the levels tool dialog. Fixes bug #127896. |
|
Michael Natterer | 32bc599dc3 |
forgot to declare gimp_color_display_stack_clone().
2003-11-21 Michael Natterer <mitch@gimp.org> * libgimpwidgets/gimpcolordisplaystack.h: forgot to declare gimp_color_display_stack_clone(). * app/display/gimpdisplayshell.[ch]: replaced the GList of GimpColorDisplays by a single GimpColorDisplayStack. * app/display/gimpdisplayshell-render.c (gimp_display_shell_render): changed accordingly. * app/display/gimpdisplayshell-filter.[ch]: reduced API to a single function, gimp_display_shell_filter_set(), which exchanges the whole filter stack. Idle update the display on GimpColorDisplayStack::update(). * app/display/gimpdisplayshell-filter-dialog.[ch]: changed accordingly. Return the created dialog instead of assigning shell->filters_dialog. * app/gui/view-commands.c (view_display_filters_cmd_callback): set shell->filters_dialog here and raise it it if already exists. Don't use the dialog factory to create it because it's a transient dialog for the display which does not need to be session managed. * app/gui/dialogs-constructors.[ch] * app/gui/dialogs.c: removed display filter dialog stuff. |
|
Sven Neumann | dcf50dc2a9 |
Replaced the histogram tool by a histogram dialog:
2003-11-01 Sven Neumann <sven@gimp.org> Replaced the histogram tool by a histogram dialog: * themes/Default/images/Makefile.am * themes/Default/images/tools/stock-tool-histogram-[16|22].png: removed here ... * themes/Default/images/stock-histogram-[16|22].png: ,,, and added under these new names. * libgimpwidgets/gimpstock.[ch]: register the icons as GIMP_STOCK_HISTOGRAM and removed the histogram tool stock icons. * app/base/gimphistogram.c: don't crash when uncalculated values are requested from a GimpHistogram. Allow to reset the histogram by calling gimp_histogram_calculate() with a NULL region. * app/widgets/gimphistogrambox.[ch]: renamed the GimpHistogramView struct member to "view". * app/tools/gimpthresholdtool.c: changed accordingly. * app/widgets/gimphistogramview.[ch] (gimp_histogram_view_events): return TRUE when events were handled. * app/tools/Makefile.am * app/tools/gimp-tools.c * app/tools/gimphistogramtool.[ch]: removed the histogram tool. * app/widgets/Makefile.am * app/widgets/gimphelp-ids.h * app/widgets/widgets-types.h * app/widgets/gimphistogrameditor.[ch]: added GimpHistogramEditor. Has some rough edges still... * app/gui/dialogs-constructors.[ch] * app/gui/dialogs.c * app/gui/image-menu.c: register the new dialog instead of the histogram tool. |
|
Michael Natterer | 878ee7b03e |
app/gui/Makefile.am removed...
2003-07-07 Michael Natterer <mitch@gimp.org> * app/gui/Makefile.am * app/gui/device-status-dialog.[ch]: removed... * app/widgets/Makefile.am * app/widgets/widgets-types.h * app/widgets/gimpdevicestatus.[ch]: ...added here as widget. The thing is narrower now but not nicer and needs some polishing. * app/widgets/gimppropwidgets.[ch]: added gimp_prop_color_area_new() and gimp_prop_stock_image_new() (the latter is still unused). * app/gui/dialogs-constructors.[ch] * app/gui/dialogs.c: made the device status a dockable. * app/gui/dialogs-menu.c * app/gui/image-menu.c * app/gui/toolbox-menu.c: changed accordingly. * app/gui/gui.c: update the device status dialog indirectly now using the new gui_device_change_notify() callback. |
|
Sven Neumann | ef45090462 |
app/gui/dialogs.c app/gui/module-browser.c changed "Module Browser" to
2003-06-30 Sven Neumann <sven@gimp.org> * app/gui/dialogs.c * app/gui/module-browser.c * app/gui/toolbox-menu.c: changed "Module Browser" to "Module Manager" as suggested in bug #116171. |
|
Michael Natterer | e40a5b5370 |
added an entry for the text tool editor.
2003-06-27 Michael Natterer <mitch@gimp.org> * app/gui/dialogs.c (toplevel_entries): added an entry for the text tool editor. * app/tools/gimptexttool.c (gimp_text_tool_editor): register the editor window with the dialog factory so it becomes session-menaged. |
|
Michael Natterer | 487f71ba05 |
Removed the old paths and the remaining legacy stuff it needed. Fixes bug
2003-05-21 Michael Natterer <mitch@gimp.org> Removed the old paths and the remaining legacy stuff it needed. Fixes bug #104471. * Makefile.am * configure.in * pixmaps/*: removed the pixmaps/ directory. * app/ops_buttons.[ch] * app/path.[ch] * app/pathP.h * app/path_transform.h * app/gui/paths-dialog.[ch] * app/tools/gimpbezierselecttool.[ch]: removed these files. * app/Makefile.am * app/gui/Makefile.am * app/tools/Makefile.am: changed accordingly. * app/core/core-types.h: removed the Path* types. * app/core/gimpimage.[ch] * app/core/gimpimage-duplicate.c: removed gimage->paths. * app/gui/about-dialog.c: inline wilber2_xpm for now. * app/gui/dialogs-constructors.c * app/gui/dialogs-menu.c * app/gui/dialogs.c * app/gui/menus.c: removed the old paths dialog. * app/gui/gui.c: removed gui_rotate_the_shield_harmonics() hack which was broken anyway. * app/tools/gimptransformtool.c: #if 0 path_transform preview stuff. * app/tools/gimpiscissorstool.c: removed useless include. * app/tools/tools.c: removed the bezier select tool. * app/vectors/gimpvectors.c (gimp_vectors_real_stroke_add): use g_list_append(), not g_list_prepend() so some ugly side conditions of legacy path loading are honored. * app/xcf/xcf-load.c * app/xcf/xcf-save.c: load and save only GimpVectors. |
|
Michael Natterer | 49b851780e |
fixed to work like gimp_hls_to_rgb_int() (does the right thing now for the
2003-05-19 Michael Natterer <mitch@gimp.org> * libgimpcolor/gimpcolorspace.c (gimp_hsl_to_rgb): fixed to work like gimp_hls_to_rgb_int() (does the right thing now for the saturation == 0 case). Some minor cleanups. Implemented "Colorize" as suggested in bug #20509. It's not a toggle in the "Hue/Saturation" tool dialog (which would be a gross hack IMHO) but a separate tool. Fixes bug #20509. * app/base/Makefile.am * app/base/base-types.h * app/base/colorize.[ch]: the actual mapping function lives here. Its algorithm was taken from the "colorify" plug-in. * app/tools/Makefile.am * app/tools/gimpcolorizetool.[ch]: the tool. * app/tools/tools.c: register it. * app/gui/dialogs.c: session-manage its dialog. * libgimpwidgets/gimpstock.[ch] * themes/Default/images/Makefile.am * themes/Default/images/tools/stock-tool-colorize-16.png * themes/Default/images/tools/stock-tool-colorize-22.png: new icons from Jimmac. Unrelated: * app/tools/gimpbrightnesscontrasttool.c * app/tools/gimpcolorbalancetool.c * app/tools/gimphuesaturationtool.c * app/tools/gimpposterizetool.c * app/tools/gimpthresholdtool.c: don't #include "tool_manager.h" |
|
Michael Natterer | a8598c6969 |
added dialog_factory and dialog_identifier parameters to the constructors
2003-05-16 Michael Natterer <mitch@gimp.org> * app/gui/color-notebook.[ch]: added dialog_factory and dialog_identifier parameters to the constructors and register the color_notebook with the passed factory as foreign dialog. * app/widgets/gimpcolorpanel.c: changed accordingly. * app/gui/dialogs.c * app/gui/colormap-editor-commands.c * app/gui/gradient-editor-commands.c * app/gui/palette-editor-commands.c * app/widgets/gimptoolbox-color-area.c: added session management for the color notebooks created here. |
|
Michael Natterer | 95f8fca15e |
set GDK_HINT_USER_POS for all session managed dialogs, not only for those
2003-05-04 Michael Natterer <mitch@gimp.org> * app/widgets/gimpdialogfactory.c: set GDK_HINT_USER_POS for all session managed dialogs, not only for those which already have saved session info. This way the dialogs keep their position acrosss hide/show within the same session, even if they have never been used before. * app/gui/dialogs.c: added entries for the file open/save dialogs. Fixed some entries. * app/gui/file-dialog-utils.[ch] * app/gui/file-open-dialog.c * app/gui/file-save-dialog.c: register the file dialogs with the dialog factory. |
|
Michael Natterer | c18b6554b1 |
app/gui/dialogs.c app/tools/gimphistogramtool.c register their dialogs
2003-05-03 Michael Natterer <mitch@gimp.org> * app/gui/dialogs.c * app/tools/gimphistogramtool.c * app/tools/gimpmeasuretool.c: register their dialogs too. |
|
Michael Natterer | fefaf61b28 |
added new function gimp_dialog_factory_add_foreign() which adds a dialog
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(). |
|
Michael Natterer | e7fbd8106f |
reset object properties only if they are GIMP_PARAM_SERIALIZABLE.
2003-04-05 Michael Natterer <mitch@gimp.org> * app/config/gimpconfig-utils.c (gimp_config_reset_properties): reset object properties only if they are GIMP_PARAM_SERIALIZABLE. * app/core/gimpcontext.[ch]: added a GimpTemplate property. * app/gui/dialogs-constructors.[ch] * app/gui/dialogs.c: added a template dialog. * app/gui/dialogs-menu.c * app/gui/image-menu.c * app/gui/toolbox-menu.c: and menu entries to open it. * app/widgets/gimpdnd.[ch]: added DND for GimpTemplates. |
|
Michael Natterer | c2a22d5d52 |
added gimp_font_list_restore() which loads the fonts (not yet).
2003-03-25 Michael Natterer <mitch@gimp.org> * app/text/gimpfontlist.[ch]: added gimp_font_list_restore() which loads the fonts (not yet). * app/core/gimp.c: call it. * app/gui/dialogs-constructors.[ch] * app/gui/dialogs-menu.c * app/gui/dialogs.c * app/gui/image-menu.c * app/gui/toolbox-menu.c: added font list and grid views. * app/gui/menus.c: cosmetic. |
|
Michael Natterer | c1dffc05e0 |
Removed deprecated and broken list views based on GtkList[Item] (fixes bug
2003-03-20 Michael Natterer <mitch@gimp.org> Removed deprecated and broken list views based on GtkList[Item] (fixes bug #90965): * app/widgets/gimpchannellistitem.[ch] * app/widgets/gimpchannellistview.[ch] * app/widgets/gimpcontainerlistview.[ch] * app/widgets/gimpdrawablelistitem.[ch] * app/widgets/gimpdrawablelistview.[ch] * app/widgets/gimpitemlistitem.[ch] * app/widgets/gimpitemlistview.[ch] * app/widgets/gimplayerlistitem.[ch] * app/widgets/gimplayerlistview.[ch] * app/widgets/gimplistitem.[ch] * app/widgets/gimpvectorslistview.[ch]: removed. * app/widgets/Makefile.am * app/widgets/widgets-types.h * app/widgets/widgets-enums.h * app/widgets/gimpcontainereditor.c * app/widgets/gimpcontainerview-utils.c * app/widgets/gimpdatafactoryview.c * app/gui/channels-commands.c * app/gui/channels-menu.c * app/gui/drawable-commands.c * app/gui/layers-commands.c * app/gui/layers-menu.c * app/gui/palettes-commands.c * app/gui/test-commands.c * app/gui/vectors-commands.c * app/gui/vectors-menu.c: changed accordingly. * app/gui/dialogs-commands.c * app/gui/dialogs-constructors.[ch] * app/gui/dialogs-menu.c * app/gui/dialogs.c: removed the term "tree" from all user visible places and create tree views when lists are requested. 2003-03-20 Michael Natterer <mitch@gimp.org> * POTFILES.in: app/widgets/*list* -> *tree* |
|
Michael Natterer | 205cdf1353 |
Added GtkTreeView versions of layers/channels/vectors:
2003-03-16 Michael Natterer <mitch@gimp.org> Added GtkTreeView versions of layers/channels/vectors: * app/core/core-enums.[ch]: renamed GIMP_UNDO_GROUP_LAYER_PROPERTIES to GIMP_UNDO_GROUP_ITEM_PROPERTIES. * app/core/gimpcontainer.c (gimp_container_reorder): don't try to reorder containers with num_children == 1. * app/core/gimpmarshal.list: added VOID: STRING, UINT marshaller. * app/widgets/Makefile.am * app/widgets/widgets-types.h * app/widgets/gimpchanneltreeview.[ch] * app/widgets/gimpdrawabletreeview.[ch] * app/widgets/gimpitemtreeview.[ch] * app/widgets/gimplayertreeview.[ch] * app/widgets/gimpvectorstreeview.[ch]: new widgets. * app/widgets/gimpcellrenderertoggle.c: draw the frame only if the cell is prelit. * app/widgets/gimpcellrendererviewable.[ch]: added "clicked" signal, unref the renderer in finalize(). Set the renderer's border color to black if the cell is not selected (a hack that saves tons of code in GimpLayerTreeView). * app/widgets/gimpcomponenteditor.c: no need to gtk_list_store_set() stuff we just got from the store. * app/widgets/gimpcontainertreeview.[ch]: added lots of state used by the new subclasses to the GimpContainerTreeView struct. Create the GtkListStore/GtkTreeView in GObject::constructor() and only collect parameters in init() so subclasses can modify store/view creation. Do most of the button_press_event stuff manually and return TRUE from the handler. * app/widgets/gimpcontainerview.c: cleanup. * app/widgets/gimpitemlistview.h * app/widgets/gimpvectorslistview.h: temp hacks before they die. * app/widgets/gimppreviewrenderer.[ch]: added gimp_preview_renderer_update_idle() which idle-emits "update" without invalidating. * app/gui/dialogs-constructors.[ch] * app/gui/dialogs.c: added constructors for the new dialogs. * app/gui/channels-commands.c * app/gui/channels-menu.c * app/gui/layers-commands.c * app/gui/layers-menu.c * app/gui/vectors-commands.c * app/gui/vectors-menu.c: accept tree views as callback data. |
|
Sven Neumann | 01745138f9 |
made the GimpPreviewSize enum values a little bit smaller. What used to be
2003-03-13 Sven Neumann <sven@gimp.org> * app/core/core-enums.h: made the GimpPreviewSize enum values a little bit smaller. What used to be small is now called medium. * app/config/gimpcoreconfig.c * app/gui/dialogs.c: changed accordingly. |
|
Michael Natterer | 3c33140fc1 |
themes/Default/images/stock-delete-16.png
2003-03-06 Michael Natterer <mitch@gimp.org> * themes/Default/images/stock-delete-16.png * themes/Default/images/stock-lower-16.png * themes/Default/images/stock-new-16.png * themes/Default/images/stock-paste-16.png * themes/Default/images/stock-raise-16.png * themes/Default/images/stock-refresh-16.png: removed these files since we use the icons provided by GTK+ now. * themes/Default/gtkrc * themes/Default/images/Makefile.am: removed them here hoo. * libgimpwidgets/gimpstock.[ch]: reordered stuff to be consistent in the header and the .c file. Added GIMP_STOCK_ERROR and GIMP_STOCK_QUESTION which are available in all sizes (unlike GTK_STOCK_DIALOG_ERROR and GTK_STOCK_DIALOG_QUESTION). * app/core/gimpviewable.c * app/display/gimpdisplayshell.c * app/gui/file-commands.c * app/gui/file-new-dialog.c * app/gui/file-save-dialog.c * app/widgets/gimpwidgets-utils.c * app/widgets/gimpdatafactoryview.c: use the new stock IDs. * app/config/gimpcoreconfig.[ch]: renamed "preview_size" to "layer_preview_size" and added "gboolean layer_previews" which switches layer previews on/off independent of their size. * app/config/gimprc-blurbs.h: added/changed their blurbs. * app/core/core-enums.[ch]: removed GIMP_PREVIEW_SIZE_NONE. * app/core/gimpdrawable-preview.c * app/core/gimpdrawable.c * app/core/gimpimage.c: return NULL previews if core_config->layer_previews is FALSE. Invalidate all layer/channel previews whenever "layer_previews" changes. * app/widgets/gimppreviewrendererdrawable.c * app/widgets/gimppreviewrendererimage.c: render the stock_id if the drawable/image returns a NULL preview. Fixes bug #107242. * app/display/gimpdisplayshell-handlers.c: don't set the sensitivity of the navigation button because it can no longer be disabled. * app/display/gimpdisplayshell-layer-select.c * app/gui/dialogs-constructors.c * app/gui/dialogs.c * app/gui/paths-dialog.c: changed accordingly. * app/gui/preferences-dialog.c: added a toggle button for the new "layer_previews" boolean. * app/widgets/gimpcontainergridview.c * app/widgets/gimpcontainerlistview.c: chain up unconditionally in GimpContainerView::clear_items(). * app/widgets/gimpcontainertreeview.c: ditto. Made the reorder() implementation lengthy and eeky (but working) again... Stop signal emission on double clicks so GtkTreeView doesn't re-select the item we are about change. * app/widgets/gimpcontainerview.c (gimp_container_view_real_clear_items): need to use g_hash_table_new_full() here too or everything will b0rk. * app/widgets/gimppreviewrenderer.c (gimp_preview_renderer_default_render_stock): use gtk_widget_render_icon() instead of gtk_icon_set_render_icon(). * tools/pdbgen/enums.pl: this file wanted to be regenerated... |
|
Michael Natterer | 305db405b2 |
added "gchar *stock_id" to the GimpViewable struct. It is used by the GUI
2003-02-26 Michael Natterer <mitch@gimp.org> * app/core/gimpviewable.[ch]: added "gchar *stock_id" to the GimpViewable struct. It is used by the GUI if the get_preview() functions return NULL. Default to GTK_STOCK_DIALOG_QUESTION. * app/core/gimptoolinfo.[ch]: set the tool's stock_id. Removed the cached GdkPixbuf. Don't implement any preview function so the GUI uses the stock_id. * app/tools/tool_manager.c: removed GdkPixbuf creation, removed the #warning about the buggy way we created the pixbuf. * app/gui/dialogs-constructors.c * app/gui/image-menu.c * app/tools/gimpcroptool.c * app/tools/gimphistogramtool.c * app/tools/gimpimagemaptool.c * app/tools/gimpmeasuretool.c * app/tools/gimptransformtool.c * app/widgets/gimptoolbox.c: use viewable->stock_id instead of tool_info->stock_id. * app/core/gimpbrush.c * app/core/gimpgradient.c * app/core/gimpimagefile.c * app/core/gimpundo.c: simplified get_preview() implementations: - never scale previews up, only down. - don't render white or checks backgrounds but simply return TempBufs with alpha and let the preview system do its job. - don't add padding but simply return previews smaller than requested. * app/display/gimpdisplayshell-render.[ch]: added "render_blend_white", a 2d lookup table for blending on white, just as the check lookup tables. Added "render_white_buf". * app/widgets/gimppreview.[ch]: changed a lot: - don't render the preview's border into the buffer. - added "GdkGC *border_gc" and draw the preview's border in expose() using gdk_draw_rectangle(). - added "GdkPixbuf *no_preview_pixbuf" and create it in gimp_preview_real_render() if gimp_viewable_get_preview() returned NULL. - factored the actual preview rendering out to gimp_preview_render_to_buffer(). Added configurable background rendering for the preview itself and it's padding area (the area the preview is larger than the buffer returned by gimp_viewable_get_preview()). - changed gimp_preview_render_and_flush() to gimp_preview_render_preview() and added "inside_bg" and "outside_bg" parameters. - use the new render buffers for blending on white. * app/widgets/gimpbrushpreview.c * app/widgets/gimpbufferpreview.c * app/widgets/gimpdrawablepreview.c * app/widgets/gimpgradientpreview.c * app/widgets/gimpimagepreview.c * app/widgets/gimppalettepreview.c * app/widgets/gimppatternpreview.c: don't create large white TempBufs to center the previews in but simply set the TempBuf's offsets to get them centered. Simplified & cleaned up many preview render functions. Pass the correct GimpPreviewBG modes to gimp_preview_render_preview(). * app/widgets/gimpcellrendererviewable.[ch]: new GtkCellRenderer class derived from GtkCellRendererPixbuf which knows how to use gimp_viewable_get_preview_size() and renders the viewable's stock item if no preview can be created. * app/widgets/gimpcontainertreeview.c: added a GtkTreeCellDataFunc which creates the preview pixbuf if needed so we don't create it unconditionally upon item insertion. Fixed preview size assertion to use GIMP_PREVIEW_MAX_SIZE, not "64". Block "selection_changed" while reordering the selected item. * app/widgets/gimpcontainerview.c: cosmetic. * app/widgets/gimpimagefilepreview.[ch] * app/widgets/gimptoolinfopreview.[ch] * app/widgets/gimpundopreview.[ch]: removed because the default implementation is good enough. * app/widgets/Makefile.am * app/widgets/widgets-types.h * app/widgets/gimppreview-utils.c: changed accordingly. * app/gui/dialogs-constructors.[ch] * app/gui/dialogs-menu.c * app/gui/dialogs.c * app/gui/image-menu.c * app/gui/toolbox-menu.c: register grid and tree view variants of the document history. Unrelated: * app/gui/gui.c (gui_exit_finish_callback): disconnect from signals earlier. * app/gui/user-install-dialog.c: create the "tool-options" subdir of the user's ~/.gimp-1.3 directory. |
|
Michael Natterer | 9ee632a656 |
Started migration from GtkList to GtkTreeView:
2003-02-21 Michael Natterer <mitch@gimp.org> Started migration from GtkList to GtkTreeView: * app/widgets/Makefile.am * app/widgets/widgets-types.h * app/widgets/gimpcontainertreeview.[ch]; new GimpContainerView subclass using GtkListStore/GtkTreeView. * app/widgets/widgets-enums.h: added GIMP_VIEW_TYPE_TREE to thje GimpViewType enum. * app/widgets/gimpcontainereditor.c: added GimpContainerTreeView to the switch() which selects the view type. * app/gui/dialogs-commands.c * app/gui/dialogs-constructors.[ch] * app/gui/dialogs-menu.c * app/gui/dialogs.c: added tree view versions of many dialogs. * app/widgets/gimppreview.[ch]: removed the get_size() virtual function and gimp_preview_calc_size(). * app/core/gimpviewable.[ch]: added virtual function get_preview_size() and gimp_viewable_calc_preview_size(). * app/core/gimpbuffer.c * app/core/gimpdrawable-preview.[ch] * app/core/gimpdrawable.c * app/core/gimpgradient.c * app/core/gimpimage.c * app/core/gimppalette.c: added get_preview_size() implementations. * app/widgets/gimpbufferpreview.c * app/widgets/gimpdrawablepreview.c * app/widgets/gimpgradientpreview.c * app/widgets/gimpimagepreview.c * app/widgets/gimppalettepreview.c * app/widgets/gimpselectioneditor.c * app/widgets/gimpundopreview.c * app/display/gimpnavigationview.c: changed accordingly, removed get_size() implementations. * app/widgets/widgets-types.h: changed the first param of GimpItemGetNameFunc from GtkWidget to GObject. * app/widgets/gimpcontainerview-utils.c: accept a GimpViewable as object in the built-in get_name funcs. * app/widgets/gimpcomponentlistitem.c * app/widgets/gimpcontainergridview.c * app/widgets/gimplistitem.c * app/widgets/gimpmenuitem.c: changed accordingly. |
|
Michael Natterer | c8b4394d71 |
Reimplemented the undo history:
2003-02-20 Michael Natterer <mitch@gimp.org> Reimplemented the undo history: * app/Makefile.am * app/undo_history.[ch]: removed. Changes/cleanups to the undo system to enable/simplify the new undo history implementation: * app/core/core-types.h: removed enum undo_event_t. Removed the GimpImage parameter from GimpUndoPopFunc and GimpUndoFreeFunc because GimpUndo has a GimpImage pointer now (see below). * app/core/core-enums.[ch]: added enum GimpUndoEvent. Added an enum value for REDO_EXPIRED. * app/core/gimpimage.[ch]: added a GimpUndo pointer to the "undo_event" signal which needs to be passed for all events except UNDO_FREE. * app/display/gimpdisplayshell-handlers.c: changed accordingly. * app/core/gimpundo.[ch]: added a GimpImage pointer to the GimpUndo struct. Removed GimpImage parameters all over the place. Added preview stuff. The preview creation needs to be triggered explicitly using gimp_undo_create_preview() because the GimpUndo can't know when it's possible to create the preview. * app/core/gimpimage-undo-push.c * app/paint/gimppaintcore-undo.c * app/tools/gimptransformtool-undo.c: changed accordingly, cleanup. * app/core/gimpundostack.[ch]: ditto. Return the freed undo from gimp_undo_stack_free_bottom(). Removed unused container signal handlers. * app/core/gimpimage-undo.c: free the redo stack the same way old undos are freed (from bottom up). Emit "undo_event" with event == REDO_EXPIRED for each removed redo. * app/core/gimpmarshal.list: added new marshallers. New undo history implementation: * app/widgets/Makefile.am * app/widgets/widgets-types.h * app/widgets/gimpundoeditor.[ch] * app/widgets/gimpundopreview.[ch]: new widgets for the undo step previews and the history itself. * app/widgets/gimppreview-utils.c: added GimpUndoPreview to the list of possible preview types. * app/gui/dialogs-constructors.[ch] * app/gui/dialogs-menu.c * app/gui/dialogs.c * app/gui/image-menu.c * app/gui/toolbox-menu.c: removed the old and added the new undo history to the dialog factory and the various dialog menus. * app/widgets/gimpdnd.[ch]: don't warn if a GType has no corresponding DND type. Instead, return FALSE from the function that failed. * app/widgets/gimppreview.c: check the return value of gimpdnd functions. Not only add drag sources but also remove them when no longer needed. * app/widgets/gimpselectioneditor.h: removed unneeded inclusion of "gui/gui-types.h". |
|
Michael Natterer | 8d86ec25e0 |
Move away from creating all item_factories statically in menus_init() but
2003-01-10 Michael Natterer <mitch@gimp.org> Move away from creating all item_factories statically in menus_init() but create a new one for each place where one is needed: * app/widgets/Makefile.am * app/widgets/widgets-types.h * app/widgets/gimpmenufactory.[ch]: new factory which creates and configures the GimpItemFactories it knows about on-the-fly. * app/widgets/gimpitemfactory.[ch]: added gimp_item_factory_update() which calls the "update_func". Added "gboolean update_on_popup" so item_factories can be configured to require manual updates (used for the <Image> factory). * app/gui/menus.[ch]: create a "global_menu_factory" and register all menus we have with it. Added various setup functions which do stuff like adding the "Open Recent" menu or reorder plug-in menu entries. Removed the debugging stuff... * app/gui/Makefile.am * app/gui/debug-commands.[ch]: ...and added it here. * app/gui/gui.c: create the <Toolbox>, the popup-<Image> and the <Paths> factories here because they are still global. * app/gui/plug-in-menus.[ch]: changed the "image_factory" parameters to "item_factory" and create/update the entries for the passed item_factory only. Makes the whole stuff much more straightforward. * app/plug-in/plug-ins.c: don't call plug_in_make_menu(). * app/display/gimpdisplay.[ch] * app/display/gimpdisplayshell.[ch]: added "menu_factory" and "popup_factory" parameters to gimp_display_new() and gimp_display_shell_new(). Create the menubar_factory and the qmask_factory dynamically. Pass the shell, not a Gimp to the QMask callbacks. Changed gimp_display_shell_set_menu_sensitivity() to gimp_display_shell_menu_update() and don't call it directly (it's a GimpItemFactory update_func now). Call gimp_item_factory_update() on the resp. factories instead. * app/gui/qmask-commands.c * app/display/gimpdisplayshell-callbacks.c * app/tools/gimpimagemaptool.c: changed accordingly. * app/widgets/gimpbrusheditor.c * app/widgets/gimpbrushfactoryview.[ch] * app/widgets/gimpbufferview.[ch] * app/widgets/gimpcolormapeditor.[ch] * app/widgets/gimpcontainereditor.[ch] * app/widgets/gimpdataeditor.[ch] * app/widgets/gimpdatafactoryview.[ch] * app/widgets/gimpdialogfactory.[ch] * app/widgets/gimpdock.c * app/widgets/gimpdockbook.[ch] * app/widgets/gimpdocumentview.[ch] * app/widgets/gimpgradienteditor.[ch] * app/widgets/gimpimageview.[ch] * app/widgets/gimpitemlistview.[ch] * app/widgets/gimppaletteeditor.[ch]: pass around lots of GimpMenuFactory pointers and menu_identifiers so all views can create their item_factories themselves. Unref the factories when they are no longer needed because they belong to the views now. * app/gui/dialogs-commands.c * app/gui/dialogs-constructors.c * app/gui/dialogs.c * app/gui/brush-select.c * app/gui/gradient-select.c * app/gui/palette-select.c * app/gui/pattern-select.c: changed accordingly. * app/gui/file-dialog-utils.[ch] (file_dialog_new): require menu_factory and menu_identifier parameters. * app/gui/file-open-dialog.[ch] * app/gui/file-save-dialog.[ch]: removed file_*_dialog_menu_init() (they went to menus.c as setup_funcs). Added file_*_dialog_set_type() and moved the <Load> and <Save> factory callbacks to file-commands.c * app/gui/file-commands.[ch]: changed accordingly. * app/gui/view-commands.c: changed the statusbar, menubar, rulers and guides callbacks to do their job only if the setting has actually changed. Don't update whole item factories afterwards. Instead, just change the state of the items that actually need update. Unrelated: * app/core/gimpchannel.c (gimp_channel_init): set "bounds_known" and friends to FALSE since we don't know that the new channel will be empty (fixes QMask and probably other stuff). * app/gui/image-commands.c * app/gui/vectors-commands.c: cleanup. |
|
Manish Singh | 1a44f2126c |
cleanup, removed unecessary G_OBJECT() casts. Should do the same for
2003-01-05 Manish Singh <yosh@gimp.org> * many files in app, modules and libgimp*: cleanup, removed unecessary G_OBJECT() casts. Should do the same for plug-ins, when more of them get undeprecated. |
|
Michael Natterer | 1229d8c84c |
added gimp_config_diff() which returns the difference beween two
2002-11-25 Michael Natterer <mitch@gimp.org> * app/config/gimpconfig-utils.[ch]: added gimp_config_diff() which returns the difference beween two GimpConfig objects as a GList of GParamSpecs. * app/config/gimpconfig-params.c (gimp_param_color_cmp): compare the colors as integers to get rid of rounding foobar. * app/config/gimpconfig-serialize.c: use gimp_config_diff(). * app/display/gimpdisplayshell-handlers.c: only need to call gimp_display_shell_scale_setup() on resolution change if the display is not in dot-for-dot mode. * app/display/gimpdisplayshell.c: changed a separator in the padding color menu. * app/gui/dialogs.c: made the prefs dialog a singleton again. * app/gui/preferences-dialog.c: Should be fully functional again: Apply GIMP_PARAM_CONFIRM properties on "OK". Save gimprc on "OK". Parse a temporaty GimpRc on dialog creation to get the current GIMP_PARAM_RESTART values. Use gimp_config_diff() for all config comparisons. |
|
Michael Natterer | 0005b5d2e5 |
app/widgets/Makefile.am new files containing constructors for views on
2002-11-20 Michael Natterer <mitch@gimp.org> * app/widgets/Makefile.am * app/widgets/gimppropwidgets.[ch]: new files containing constructors for views on GObject properties. * app/gui/Makefile.am: the build preferences-dialog again. * app/gui/dialogs-constructors.c * app/gui/dialogs.c * app/gui/menus.c: added it back to the dialog system (as a non signleton to get the new model <-> view stuff some testing). * app/gui/preferences-dialog.c: here it is again, using property view widgets. Lots of stuff removed & simplified. Some things still #if 0'ed and/or non-working. No saving yet, stuff... |
|
Michael Natterer | 2743f9fae1 |
added virtual functions set_toggles_visible() and set_toggles_sensitive().
2002-11-05 Michael Natterer <mitch@gimp.org> * libgimpwidgets/gimpcolorselector.[ch]: added virtual functions set_toggles_visible() and set_toggles_sensitive(). Added a stock_id. Emit "color_changed" and "channel_changed" on set_color() and set_channel() resp. * libgimpwidgets/gimpcolornotebook.[ch]: implement the new methods. Added gimp_color_notebook_set_has_page() to control which selectors a notebook contains. * libgimpwidgets/gimpcolorscales.[ch]: removed the toggle API and implement the new methods. * libgimpwidgets/gimpcolorselect.c: added toggle buttons for the channels so the widget doesn't need external ones. * app/gui/color-notebook.c: changed accordingly. * libgimpwidgets/gimpstock.[ch] * themes/Default/images/Makefile.am * themes/Default/images/stock-color-triangle-16.png: added a (bad) icon for the triangle color selector. * modules/colorsel_triangle.c: use the new icon. * modules/colorsel_water.c: use the "Paintbrush" icon for now. * app/widgets/gimpcoloreditor.[ch]: new widget for editing the FG/BG color featuring a color notebook, stock buttons for selecting the pages and a GimpPickButton. * app/widgets/Makefile.am * app/widgets/widgets-types.h: changed accordingly. * app/gui/dialogs-constructors.[ch] * app/gui/dialogs.c: added a dockable wrapper for GimpColorEditor. * app/gui/menus.c: added it to the menus. Also added separate Layers, Channels and Paths entries. Bind <ctrl>L to the new callback so it doesn't always create a new layers dialog. |
|
Michael Natterer | e62c2c58c7 |
bumped version number to 1.3.9
2002-08-22 Michael Natterer <mitch@gimp.org> * configure.in: bumped version number to 1.3.9 * app/tools/gimpbycolorselecttool.[ch]: removed the ByColorDialog and cleaned up the code. * app/widgets/Makefile.am * app/widgets/widgets-types.h * app/widgets/gimpselectioneditor.[ch]: added new widget GimpSelectionEditor with same same functionality as the old ByColorDialog which can be open all the time (independent of the active tool). * app/widgets/gimppreview.[ch]: added gimp_preview_new_by_type() so previews can be created without a viewable. * app/widgets/gimppreview-utils.[ch]: changed gimp_preview_type_from_viewable() to gimp_preview_type_from_viewable_type(). * app/gui/dialogs-constructors.[ch] * app/gui/dialogs.c * app/gui/menus.c: register the new dialog type. |
|
Michael Natterer | b6c56ff9ac |
app/Makefile.am removed.
2002-05-07 Michael Natterer <mitch@gimp.org> * app/Makefile.am * app/nav_window.[ch]: removed. * app/display/Makefile.am * app/display/display-types.h * app/display/gimpnavigationview.[ch]: new widget partially based on the removed nav_window. * libgimpproxy/gimpproxytypes.h: regnenerated. * app/display/gimpdisplay-foreach.[ch]: removed gdisplays_nav_preview_resized(). The new config system will allow us to get notified of changes. * app/display/gimpdisplayshell.[ch]: added "scaled" and "scrolled" signals. * app/display/gimpdisplayshell-scale.c * app/display/gimpdisplayshell-scroll.c: emit "scaled" and "scrolled" appropriately. Removed nav_window stuff. * app/display/gimpdisplay.c * app/display/gimpdisplayshell-callbacks.c: changed accordingly. * app/gui/dialogs-constructors.[ch] * app/gui/dialogs.c * app/gui/menus.c: made the navigation dialog dockable. * app/gui/view-commands.c: changed the nav_dialog callback accordingly. * app/gui/preferences-dialog.c * app/gimprc.[ch] * app/config/gimpguiconfig.[ch]: removed "nav_window_per_display" as it's now a dockable and it's state is saved in sessionrc. * app/widgets/gimpnavigationpreview.[ch]: added context sensitive mouse cursors. * app/widgets/gimpimagedock.c: made it capable of holding display-related dialogs (like GimpNavigationView) by connecting to the context's "display_changed" signal. * app/widgets/widgets-types.h: removed inclusion of "display/display-types.h". * app/widgets/gimpbufferview.c * app/widgets/gimpchannellistview.c * app/widgets/gimpcolormapeditor.c * app/widgets/gimpcomponentlistitem.c * app/widgets/gimpdocumentview.c * app/widgets/gimpdrawablelistitem.c * app/widgets/gimpdrawablelistview.c * app/widgets/gimpitemlistitem.c * app/widgets/gimpitemlistview.c * app/widgets/gimplayerlistitem.c * app/widgets/gimplayerlistview.c * app/widgets/gimppreview.c * app/widgets/gimpvectorslistview.c: warn about inclusion of "display/display-types.h". |
|
Michael Natterer | a74a8997b4 |
devel-docs/Makefile.am new file documenting the core's include policy.
2002-05-03 Michael Natterer <mitch@gimp.org> * devel-docs/Makefile.am * devel-docs/includes.txt: new file documenting the core's include policy. * HACKING: mention it here. * libgimptool/gimptooltypes.h: removed GimpToolOptions here. * app/core/core-types.h: and added it here. This is a temp hack needed because GimpToolInfo needs to know the GimpToolOptions type. * libgimpproxy/gimpproxytypes.h: regenerated. * libgimptool/gimptoolmodule.h: don't include gimptooltypes.h here... * libgimptool/gimptoolmodule.c: ...but here. * app/config/gimpconfig-params.c: include "libgimpbase/gimpbase.h" entirely, not single files from it. * app/core/gimp.c * app/core/gimpcontext.c * app/core/gimpcoreconfig.c * app/core/gimpdatafactory.c * app/core/gimpdocuments.c * app/core/gimpdrawable-blend.c * app/core/gimpdrawable-bucket-fill.c * app/core/gimpdrawable-offset.c * app/core/gimpdrawable-transform.c * app/core/gimpdrawable.c * app/core/gimpedit.c * app/core/gimpimage-convert.c * app/core/gimpimage-crop.c * app/core/gimpimage-duplicate.c * app/core/gimpimage-guides.c * app/core/gimpimage-mask.c * app/core/gimpimage-merge.c * app/core/gimpimage-new.c * app/core/gimpimage-projection.c * app/core/gimpimage-qmask.c * app/core/gimpimage-resize.c * app/core/gimpimage-scale.c * app/core/gimpimage.c * app/core/gimpitem.c * app/core/gimpmodules.c * app/core/gimppaintinfo.c * app/core/gimpparasite.c * app/core/gimppreviewcache.c * app/core/gimptoolinfo.c * app/core/gimpunit.c: include "core-types.h" and no other types file. * app/display/gimpdisplay.c * app/display/gimpdisplayshell-callbacks.c * app/display/gimpdisplayshell.c: include "tools/tools-types.h" instead of "libgimptool/gimptooltypes.h", warn about inclusion on "gui/gui-types.h" * app/file/file-open.c * app/file/file-save.c: don't include "libgimptool/gimptooltypes.h". * app/gui/about-dialog.c * app/gui/brush-select.c * app/gui/brushes-commands.c * app/gui/color-select.c * app/gui/data-commands.c * app/gui/device-status-dialog.c * app/gui/dialogs.c * app/gui/gradients-commands.c * app/gui/help-commands.c * app/gui/info-window.c * app/gui/palettes-commands.c * app/gui/patterns-commands.c * app/gui/resize-dialog.c * app/gui/tips-dialog.c * app/gui/tool-options-dialog.c: include "gui-types.h" and no other types file. * 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/gimppaintcore-stroke.c * app/paint/gimppaintcore.c * app/paint/gimppaintoptions.c * app/paint/gimppencil.c * app/paint/gimpsmudge.c * app/paint/paint.c: include "paint-types.h" and no other types file. * app/pdb/pdb-types.h: don't include "libgimptool/gimptooltypes.h". * app/plug-in/plug-in-progress.c: warn about inclusion of "display/display-types.h" * app/tools/tools-types.h: include "libgimptool/gimptooltypes.h". * app/tools/gimpairbrushtool.c * app/tools/gimpbezierselecttool.c * app/tools/gimpblendtool.c * app/tools/gimpbrightnesscontrasttool.c * app/tools/gimpbucketfilltool.c * app/tools/gimpbycolorselecttool.c * app/tools/gimpclonetool.c * app/tools/gimpcolorbalancetool.c * app/tools/gimpcolorpickertool.c * app/tools/gimpconvolvetool.c * app/tools/gimpcroptool.c * app/tools/gimpcurvestool.c * app/tools/gimpdodgeburntool.c * app/tools/gimpdrawtool.c * app/tools/gimpeditselectiontool.c * app/tools/gimpellipseselecttool.c * app/tools/gimperasertool.c * app/tools/gimpfliptool.c * app/tools/gimpfreeselecttool.c * app/tools/gimpfuzzyselecttool.c * app/tools/gimphistogramtool.c * app/tools/gimphuesaturationtool.c * app/tools/gimpinktool.c * app/tools/gimplevelstool.c * app/tools/gimpmagnifytool.c * app/tools/gimpmeasuretool.c * app/tools/gimpmovetool.c * app/tools/gimppaintbrushtool.c * app/tools/gimppainttool.c * app/tools/gimppathtool.c * app/tools/gimppenciltool.c * app/tools/gimpperspectivetool.c * app/tools/gimpposterizetool.c * app/tools/gimprectselecttool.c * app/tools/gimprotatetool.c * app/tools/gimpscaletool.c * app/tools/gimpselectiontool.c * app/tools/gimpsheartool.c * app/tools/gimpsmudgetool.c * app/tools/gimptexttool.c * app/tools/gimpthresholdtool.c * app/tools/gimptoolcontrol.c * app/tools/gimptoolcontrol.h * app/tools/gimptransformtool.c * app/tools/gimpvectortool.c * app/tools/tools.c: include "tools-types.h" and no other types file, warn about inclusion of "gui/gui-types.h". * app/widgets/gimpcolorpanel.c * app/widgets/gimptoolbox-color-area.c: warn about inclusion of "gui/gui-types.h". * app/xcf/xcf-load.c * app/xcf/xcf.c: don't include "libgimptool/gimptooltypes.h". Split tool-safe-mode up in two files, one including libgimpproxy, one libgimp. * plug-ins/tools/Makefile.am * plug-ins/tools/tool-safe-mode-plug-in.[ch]: new files including libgimp/ stuff only. * plug-ins/tools/tool-safe-mode.[ch]: include libgimpproxy/ and libgimptool/ but don't include libgimp/ because of conflicting declarations. Unrelated: * app/tools/gimpclonetool.c: create the clone core so we don't crash. * app/gui/file-open-dialog.c: changed the way we create previews so that only out-of-date previews are created on a click in the preview area. Unconditional creation can still be forced by <Ctrl>+click. Changed the tooltip to document this. |
|
Michael Natterer | ffcb0bfa3f |
./mitch --sanitize-identifier-namespace
2002-03-20 Michael Natterer <mitch@gimp.org> ./mitch --sanitize-identifier-namespace * app/core/gimpcontext.c * app/display/gimpdisplayshell-callbacks.c * app/display/gimpdisplayshell-dnd.c * app/gui/dialogs-commands.c * app/gui/dialogs-constructors.c * app/gui/dialogs.c * app/gui/edit-commands.c * app/gui/gui.c * app/gui/menus.c * app/gui/vectors-commands.c * app/gui/view-commands.c * app/tools/gimpairbrushtool.c * app/tools/gimpbezierselecttool.c * app/tools/gimpblendtool.c * app/tools/gimpbrightnesscontrasttool.c * app/tools/gimpbucketfilltool.c * app/tools/gimpbycolorselecttool.c * app/tools/gimpclonetool.c * app/tools/gimpcolorbalancetool.c * app/tools/gimpcolorpickertool.c * app/tools/gimpconvolvetool.c * app/tools/gimpcroptool.c * app/tools/gimpcurvestool.c * app/tools/gimpdodgeburntool.c * app/tools/gimpellipseselecttool.c * app/tools/gimperasertool.c * app/tools/gimpfliptool.c * app/tools/gimpfreeselecttool.c * app/tools/gimpfuzzyselecttool.c * app/tools/gimphistogramtool.c * app/tools/gimphuesaturationtool.c * app/tools/gimpinktool.c * app/tools/gimpiscissorstool.c * app/tools/gimplevelstool.c * app/tools/gimpmagnifytool.c * app/tools/gimpmeasuretool.c * app/tools/gimpmovetool.c * app/tools/gimppaintbrushtool.c * app/tools/gimppathtool.c * app/tools/gimppenciltool.c * app/tools/gimpperspectivetool.c * app/tools/gimpposterizetool.c * app/tools/gimprectselecttool.c * app/tools/gimprotatetool.c * app/tools/gimpscaletool.c * app/tools/gimpsheartool.c * app/tools/gimpsmudgetool.c * app/tools/gimptexttool.c * app/tools/gimpthresholdtool.c * app/tools/gimpvectortool.c * app/widgets/gimpdnd.c * app/widgets/gimptoolbox-indicator-area.c * app/widgets/gimptoolbox.c: s/gimp:/gimp-/g and s/_/-/g for all identifier strings (e.g. gimp:eraser_tool -> gimp-eraser-tool, gimp:layer-list -> gimp-layer-list, ...) * plug-ins/tools/common/gimpbrushselecttool.c: s/gimp:brush_select_tool/gimp-brush-select-tool-module/ Don't quite remember why I introduced the "gimp:" prefix in the first place, but we can always add it back if we need it (for whatever reason) You may want to edit your ~/.gimp-1.3/sessionrc and devicerc or all session settings will be lost due to parse errors. |
|
Michael Natterer | b879840890 |
g_strdup() the stock_id passed to gimp_tool_info_new() because the
2002-03-14 Michael Natterer <mitch@gimp.org> * app/core/gimptoolinfo.c: g_strdup() the stock_id passed to gimp_tool_info_new() because the caller's memory may disappear after registering the tool (tool modules). Made a GimpDock out of the toolbox: * app/gui/Makefile.am * app/gui/color-area.[ch] * app/gui/indicator-area.[ch] * app/gui/toolbox.[ch]: removed... * app/widgets/Makefile.am * app/widgets/widgets-types.h * app/widgets/gimptoolbox-color-area.[ch] * app/widgets/gimptoolbox-indicator-area.[ch] * app/widgets/gimptoolbox.[ch]: ...and added here. * app/widgets/gimpdock.[ch]: don't set a minimal width. Added a "destroy_if_empty" boolean so we can prevent destruction of the toolbox if it's last dockable is removed. Added gimp_dock_construct() which is called from GimpImageDock and GimpToolbox. * app/widgets/gimpimagedock.[ch]: Default to not showing the image menu, set a minimal width here, misc. minor cleanup. * app/widgets/gimpdockbook.c: some more GIMP_IS_IMAGE_DOCK() checks, fixed dnd widget creation. * app/widgets/gimpdialogfactory.[ch]: changed gimp_dialog_factories_toggle() to take just the toolbox_factory as parameter. When restoring the session use the created dock's dialog factory to create dockables, not the the factory we created the dock from (for the toolbox). * app/display/gimpdisplayshell-callbacks.c: changed accordingly. * app/gui/dialogs.[ch]: create an own dialog factory for the toolbox and set dialogs_toolbox_new() as it's new_dock_func. * app/gui/dialogs-constructors.[ch]: changed dialogs_toolbox_get() accordingly. * app/gui/dialogs-commands.[ch]: added dialogs_show_toolbox(), ckeck if a dock is really a GimpImageDock before casting. * app/gui/gui.c * app/gui/menus.c * app/widgets/gimppaletteeditor.c: changed accordingly. * app/gui/color-notebook.c * app/gui/color-select.c * app/gui/colormap-dialog.c * app/gui/palette-editor-commands.c: removed useless inclusion of "gui/color-area.h". * themes/Default/gtkrc: set "gimp-dock-style" for GimpToolbox widgets. |
|
Michael Natterer | 17d655c1c3 |
app/gimprc.[ch] app/gui/preferences-dialog.c
2002-03-12 Michael Natterer <mitch@gimp.org> * app/gimprc.[ch] * app/gui/preferences-dialog.c * app/paint/gimppaintoptions.[ch] * app/tools/paint_options.[ch] * app/tools/tool_manager.[ch]: removed the "global_paint_options" gimprc option because it doesn't quite fit the new dockable dialog architecture. * app/gui/brush-select.[ch] * app/gui/gradient-select.[ch] * app/gui/palette-select.[ch] * app/gui/pattern-select.[ch]: removed the "Global Brush/Pattern/... Selection" part of them. They are now only used for temp popup selections and the PDB. *Lots* of cleanup. * app/gui/convert-dialog.c * app/gui/dialogs-constructors.[ch] * app/gui/dialogs.c * app/gui/gui.c * app/gui/menus.c * app/gui/palette-import-dialog.c * app/plug-in/plug-in.c: changed accordingly. Cleaned up the palette and other data PDB stuff: * tools/pdbgen/Makefile.am * tools/pdbgen/groups.pl: added "palette_select" and "palettes". * tools/pdbgen/pdb/palette_select.pdb: new file. Makes the palette selection PDB controllable. * tools/pdbgen/pdb/palettes.pdb: new file cut out of palette.pdb because of API symmetry with brushes, patterns, ... * tools/pdbgen/pdb/palette.pdb: removed from here. * tools/pdbgen/pdb/brush_select.pdb * tools/pdbgen/pdb/brushes.pdb * tools/pdbgen/pdb/gradient_select.pdb * tools/pdbgen/pdb/gradients.pdb * tools/pdbgen/pdb/palette.pdb * tools/pdbgen/pdb/pattern_select.pdb * tools/pdbgen/pdb/patterns.pdb: lots of cleanup. Autogenerated stuff: * app/pdb/Makefile.am * app/pdb/palette_select_cmds.c * app/pdb/palettes_cmds.c: new files. * app/pdb/brush_select_cmds.c * app/pdb/brushes_cmds.c * app/pdb/gradient_select_cmds.c * app/pdb/gradients_cmds.c * app/pdb/internal_procs.c * app/pdb/palette_cmds.c * app/pdb/pattern_select_cmds.c * app/pdb/patterns_cmds.c: regenerated. * libgimp/Makefile.am * libgimp/gimp_pdb.h * libgimp/gimppalettes_pdb.[ch] * libgimp/gimppaletteselect_pdb.[ch]: new files. * libgimp/gimpgradientselect_pdb.[ch] * libgimp/gimppalette_pdb.[ch] * libgimp/gimppatterns_pdb.c: regenerated. * devel-docs/libgimp/tmpl/gimpgradients.sgml * devel-docs/libgimp/tmpl/gimppalette.sgml: regenerated. |
|
Michael Natterer | 8b8442e9f4 |
app/gui/dialogs-constructors.[ch] app/gui/dialogs.c made the tool options
2002-03-10 Michael Natterer <mitch@gimp.org> * app/gui/dialogs-constructors.[ch] * app/gui/dialogs.c * app/gui/tool-options-dialog.[ch]: made the tool options dialog dockable. Create a fancy tab for it which looks like the old dialog header. * app/gui/gui.c * app/gui/menus.c * app/gui/toolbox.c: changed accordingly. * app/tools/gimpbucketfilltool.c * app/tools/gimpcroptool.c * app/tools/gimperasertool.c: moved the tool toggling widgets to the top. * app/tools/paint_options.c: show the paint mode menu for all paint tools but set it insensitive where it makes no sense. Reduces flickering and makes the tools' similarity more obvious. * app/widgets/gimpdataeditor.c: fixed segfault in gimp_data_editor_set_data() (data may be NULL), don't pass NULL to gtk_entry_set_text(), make the name entry insensitive if data == NULL. * app/widgets/gimpdialogfactory.c: fixed longstanding bug which made newly created docks steal the first session entry with a NULL widget instead of the first _dock_ session entry with a NULL widget. Added even more debugging output. Cleanup. * app/widgets/gimpdockbook.c: made the tab/menu widget code more general to cover the tool options tab. |
|
Michael Natterer | b0e05cda4a |
added GimpPaletteEntry typedef.
2002-03-08 Michael Natterer <mitch@gimp.org> * app/core/core-types.h: added GimpPaletteEntry typedef. * app/core/gimppalette.h: removed it here. * app/widgets/Makefile.am * app/widgets/widgets-types.h * app/widgets/gimpeditor.[ch]: new widget which is the base class for everything which is a vbox and has a button area at the bottom. * app/widgets/gimpcontainerview.[ch]: derived from GimpEditor now. * app/widgets/gimpdataeditor.[ch]: a GimpEditor subclass which is the base class for the new data editors below. * app/widgets/gimpbrushfactoryview.c * app/widgets/gimpbufferview.c * app/widgets/gimpchannellistview.c * app/widgets/gimpdatafactoryview.c * app/widgets/gimpdocumentview.c * app/widgets/gimpitemlistview.c * app/widgets/gimplayerlistview.c * app/widgets/gimpvectorslistview.c * themes/Default/gtkrc: chagec accordingly. * app/gui/Makefile.am * app/gui/brush-editor.[ch] * app/gui/gradient-editor.[ch] * app/gui/palette-editor.[ch]: removed... * app/widgets/gimpbrusheditor.[ch] * app/widgets/gimpgradienteditor.[ch] * app/widgets/gimppaletteeditor.[ch]: ...and added back as GimpDataEditor subclasses. Lots of cleanup and stuff... * app/gui/dialogs-constructors.[ch] * app/gui/dialogs.c * app/gui/gradient-editor-commands.c * app/gui/gui-types.h * app/gui/palette-select.c * app/tools/gimpcolorpickertool.c: changed accordingly. |
|
Michael Natterer | 83e49555ce |
app/gimprc.[ch] app/config/gimpguiconfig.[ch] removed the
2002-02-28 Michael Natterer <mitch@gimp.org> * app/gimprc.[ch] * app/config/gimpguiconfig.[ch] * app/gui/toolbox.c: removed the "show_indicators" gimprc option. The toolbox layout will change and thus obsolete it anyway. * app/gui/Makefile.am * app/gui/input-dialog.[ch]: removed. * app/gui/dialogs-constructors.[ch] * app/gui/dialogs.c * app/gui/menus.c: changed accordingly. * app/gui/preferences-dialog.c: Added an "Input Devices" page and embed the input_dialog stuff there. Put "Display" and "Monitor" under "Interface". Removed the "Session" page. Lots of cleanup and reordering of options. Please comment... * themes/Default/images/preferences/Makefile.am * themes/Default/images/preferences/input-devices.png: new icon. * themes/Default/images/preferences/session.png: removed. |
|
Michael Natterer | cdf2a90b03 |
app/core/Makefile.am app/core/core-types.h new base class for something
2002-02-25 Michael Natterer <mitch@gimp.org> * app/core/Makefile.am * app/core/core-types.h * app/core/gimpitem.[ch]: new base class for something which is a child of an image, has a PDB ID, a tattoo, parasites and emits a "removed" signal. * app/core/gimpdrawable.[ch] * app/vectors/gimpvectors.[ch]: derive from GimpItem. Removed lots of stuff from GimpDrawable. * app/core/gimp.[ch]: changed gimp->drawable_table and gimp->next_drawable_ID to gimp->item_table and gimp->next_item_id. * app/undo.[ch]: s/undo_push_drawable_parasite/undo_push_item_parasite/, minor cleanups. * app/core/gimplayer.[ch]: changed gimp_layer_new_from_tiles() and gimp_layer_new_from_drawable() to take the "dest_gimage" as second, not first parameter. * app/image_map.c * app/core/gimpchannel.c * app/core/gimpdrawable-blend.c * app/core/gimpdrawable-bucket-fill.c * app/core/gimpdrawable-histogram.c * app/core/gimpdrawable-offset.c * app/core/gimpdrawable-preview.c * app/core/gimpdrawable-transform.c * app/core/gimpedit.c * app/core/gimpimage-duplicate.c * app/core/gimpimage-mask.c * app/core/gimpimage-merge.c * app/core/gimpimage-pick-color.c * app/core/gimpimage.c * app/core/gimplayer-floating-sel.c * app/display/gimpdisplayshell-dnd.c * app/file/file-save.c * app/gui/channels-commands.c * app/gui/file-save-dialog.c * app/gui/layers-commands.c * app/gui/offset-dialog.c * app/gui/paths-dialog.c * app/gui/toolbox.c * 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/gimppaintcore.c * app/paint/gimppencil.c * app/paint/gimpsmudge.c * app/plug-in/plug-in.c * app/tools/gimpbezierselecttool.c * app/tools/gimpbycolorselecttool.c * app/tools/gimpinktool.c * app/tools/gimppainttool.c * app/xcf/xcf-load.c * app/xcf/xcf-save.c * app/widgets/gimpdrawablepreview.c: changed accordingly. * app/widgets/Makefile.am * app/widgets/widgets-types.h * app/widgets/gimpitemlistview.[ch]: new widget implementing most of the stuff formerly done by GimpDrawableListView. * app/widgets/gimpchannellistview.c * app/widgets/gimpdrawablelistitem.c * app/widgets/gimpdrawablelistview.[ch] * app/widgets/gimplayerlistview.c: changed accordingly. * app/widgets/gimpdnd.[ch]: added a vectors DND type. * app/gui/menus.c * app/gui/dialogs.c * app/gui/dialogs-constructors.[ch]: added a vectors dialog and a vectors item_factory. * app/gui/Makefile.am * app/gui/vectors-commands.[ch]: new files implementing the callbacks for the new vectors dialog and item_factory. * app/pdb/pdb_glue.h: some more ugly hacks to keep intermediate perl code working... * tools/pdbgen/pdb.pl: added a vectors type, use GimpItem for all ID lookups. * tools/pdbgen/pdb/channel.pdb * tools/pdbgen/pdb/color.pdb * tools/pdbgen/pdb/drawable.pdb * tools/pdbgen/pdb/edit.pdb * tools/pdbgen/pdb/image.pdb * tools/pdbgen/pdb/layer.pdb * tools/pdbgen/pdb/misc_tools.pdb * tools/pdbgen/pdb/parasite.pdb * tools/pdbgen/pdb/selection.pdb * tools/pdbgen/pdb/selection_tools.pdb: misc changes according to stuff above. * app/pdb/channel_cmds.c * app/pdb/color_cmds.c * app/pdb/drawable_cmds.c * app/pdb/edit_cmds.c * app/pdb/floating_sel_cmds.c * app/pdb/image_cmds.c * app/pdb/layer_cmds.c * app/pdb/misc_tools_cmds.c * app/pdb/paint_tools_cmds.c * app/pdb/parasite_cmds.c * app/pdb/selection_cmds.c * app/pdb/selection_tools_cmds.c * app/pdb/text_tool_cmds.c * app/pdb/transform_tools_cmds.c: regenerated. |
|
Michael Natterer | 9dd403f7b2 |
CPPFLAGS: added -DGTK_DISABLE_DEPRECATED
2002-01-25 Michael Natterer <mitch@gimp.org> * configure.in: CPPFLAGS: added -DGTK_DISABLE_DEPRECATED * libgimpwidgets/gimpdialog.c: still use the deprecated gtk_window_set_policy() but spit out a #warning. * app/widgets/widgets-types.h * app/widgets/gimpitemfactory.[ch]: made it a GtkItemFactory subclass. This way we can reproduce the effect of gtk_item_factory_get_from_path() which is deprectated for good reasons. For GIMP, using it its perfectly OK since we only have one item factory per "<prefix>". * app/widgets/gimpbrushfactoryview.[ch] * app/widgets/gimpbufferview.[ch] * app/widgets/gimpcontainereditor.[ch] * app/widgets/gimpdatafactoryview.[ch] * app/widgets/gimpdialogfactory.[ch] * app/widgets/gimpdock.c * app/widgets/gimpdockbook.c * app/widgets/gimpdocumentview.[ch] * app/widgets/gimpdrawablelistview.[ch] * app/widgets/gimppreview.c * app/display/gimpdisplayshell-callbacks.c * app/display/gimpdisplayshell.[ch]: pass around GimpItemFactory pointers instead of "const gchar *" item factory identifiers. Replaced gtk_window_set_policy() by gtk_window_set_resizable() and other recommended stuff. * app/gui/about-dialog.c * app/gui/dialogs-constructors.c * app/gui/dialogs.c * app/gui/file-open-dialog.c * app/gui/file-save-dialog.c * app/gui/gradient-editor.c * app/gui/menus.c * app/gui/offset-dialog.c * app/gui/splash.c * app/gui/tips-dialog.c * app/gui/toolbox.c: lots of s/gtk_item_factory_from_path/gimp_item_factory_from_path/, gtk_window_set_policy() replacements, misc fixes. * plug-ins/gdyntext/charmap_window.c * plug-ins/gdyntext/gdyntext_ui.c * plug-ins/gdyntext/message_window.c * plug-ins/imagemap/imap_main.c: replaced gtk_window_set_policy(). |
|
Michael Natterer | 653f6999e1 |
app/widgets/Makefile.am put the whole generic stuff from gui/menus.[ch]
2001-11-27 Michael Natterer <mitch@gimp.org> * app/widgets/Makefile.am * app/widgets/gimpitemfactory.[ch]: put the whole generic stuff from gui/menus.[ch] here (where generic == less_evil because it at least does not depend on particular menu entries). * app/gui/menus.[ch]: removed the stuff here. Only the global menu definitions and bad hacks to adjust them to our needs left. Removed all menus_get_foobar_factory() functions because we can use gtk_item_factory_from_path("<FooBar>") all over the place. * app/plug_in.c * app/display/gimpdisplayshell.c * app/gui/brushes-commands.c * app/gui/buffers-commands.c * app/gui/channels-commands.c * app/gui/dialogs.c * app/gui/documents-commands.c * app/gui/file-dialog-utils.c * app/gui/file-open-dialog.c * app/gui/file-save-dialog.c * app/gui/gradient-editor-commands.c * app/gui/gradients-commands.c * app/gui/gui.c * app/gui/layers-commands.c * app/gui/palettes-commands.c * app/gui/paths-dialog.c * app/gui/patterns-commands.c * app/gui/toolbox.c: changed accordingly. None of these files except gui/gui.c includes gui/menus.h any more. |
|
Michael Natterer | d463a5efdf |
removed a useless g_return_if_fail().
2001-11-23 Michael Natterer <mitch@gimp.org> * app/core/gimpcontainer.c: removed a useless g_return_if_fail(). * app/widgets/gimpcontainereditor.h: removed GimpViewType enum. * app/widgets/widgets-types.h: added it here. * app/widgets/gimpcontainerview-utils.[ch]: added a utility function which gets the GimpContainerView out of a GimpDockable. * app/widgets/gimpdialogfactory.[ch]: added support for saving and loading of each GimpDockable's preview size. Store the dialog's default preview size in the GimpDialogFactoryEntry. Pass the preview_size to each created dialog. * app/gui/menus.c: added menu items for setting the preview_size and switching between list and grid view. Removed the item overkill in the "Add Tab" submenu. * app/gui/dialogs-commands.[ch]: added callbacks for the new items. * app/widgets/gimpdockbook.c: set the item's state before showing the menu. * app/errors.c * app/gui/dialogs-constructors.[ch] * app/gui/dialogs.c * app/gui/edit-commands.c * app/gui/gui.c * app/gui/indicator-area.c * app/gui/toolbox.c: changed accordingly. * app/tools/selection_options.[ch]: cleaned up the selection options and added some tooltips. Much more to do... |
|
Michael Natterer | 70ce7bae9b |
app/Makefile.am removed.
2001-10-22 Michael Natterer <mitch@gimp.org> * app/Makefile.am * app/docindex.[ch]: removed. * app/widgets/Makefile.am * app/widgets/widgets-types.h * app/widgets/gimpdocumentview.[ch]: new widget as replacement. * app/core/gimpcontext.[ch]: added context->imagefile property. * app/app_procs.c * app/file-save.c * app/gui/dialogs-constructors.[ch] * app/gui/dialogs.c * app/gui/file-open-dialog.c * app/gui/file-save-dialog.c * app/gui/gui.c * app/gui/menus.c * app/gui/test-commands.c: changed accordingly. * app/widgets/gimpcontainerview.[ch]: added "gboolean reorderable" property which needs to be set by subclasses. * app/widgets/gimpdrawablelistview.c: removed the "insert_item" implementation which was used to make the items reorderable. * app/widgets/gimpcontainerlistview.[ch]: make the list items reorderable depending on view->reorderable. * app/widgets/gimpbufferview.c: made it reorderable. * app/widgets/gimpcontainereditor.[ch] * app/widgets/gimpcontainergridview.[ch] * app/widgets/gimpdatafactoryview.c: changed accordingly. |
|
Michael Natterer | 79faae01b4 |
Switched to GObject reference counting:
2001-08-12 Michael Natterer <mitch@gimp.org> Switched to GObject reference counting: * app/core/gimpcontainer.c: only ref(), not ref()/sink() children of strong containers. Reordered gimp_container_remove() so we don't need to ref the object while removing it. * app/core/gimpcontext.c: misc fixes. Needs to be badly tortured... * app/app_procs.c * app/gdisplay.c * app/gimprc.c * app/core/gimp.c * app/core/gimpbrush.c * app/core/gimpbrushpipe.c * app/core/gimpdatafactory.c * app/core/gimpdocuments.c * app/core/gimpgradient.c * app/core/gimpimage.c * app/core/gimplayer.c * app/core/gimplist.c * app/core/gimpobject.c * app/core/gimpparasite.c * app/core/gimppattern.c * app/core/gimpundostack.c * app/gui/dialogs.c * app/tools/gimpbezierselecttool.c * app/tools/gimpfuzzyselecttool.c: changed accordingly: don't ref()/sink() any more, unref all (??) objects after adding them to strong containers, misc. minor fixes. * app/gui/dialogs-constructors.c * app/widgets/gimpwidgets.c: use g_object_add_weak_pointer() instead of simply crashing because g_object_weak_ref() was used with gtk_widget_destroyed, brrr. * app/widgets/gimpdnd.c: removed unneeded g_return_if_fail()'s. |
|
Michael Natterer | 4305c39cf0 |
app/core/Makefile.am new file implementing the docindex.* replacement.
2001-08-11 Michael Natterer <mitch@gimp.org> * app/core/Makefile.am * app/core/gimpdocuments.[ch]: new file implementing the docindex.* replacement. * app/gimprc.c: added TT_XDOCUMENT to parse the new document history. * app/file-save.c * app/gui/file-open-dialog.c: add opened & saved images to the document history. * app/core/gimp.c: call gimp_documents_init/exit() instead of doing it here. * app/core/gimpimagefile.[ch]: removed the "filename" attribute and use GimpObject's "name" instead. * app/gui/dialogs-constructors.[ch] * app/gui/dialogs.c * app/gui/menus.c: added a menu entry/dockable for the document history. * app/widgets/gimpdnd.[ch]: make it DND-able. * app/widgets/gimppreview.c: fix preview rendering correctly this itme. |
|
Michael Natterer | 1c9069c4ca |
cleanup.
2001-08-07 Michael Natterer <mitch@gimp.org> * libgimpwidgets/gimpbutton.[ch]: cleanup. * app/Makefile.am * app/errorconsole.[ch]: removed... * app/gui/Makefile.am * app/gui/error-console-dialog.[ch]: ...added here. Lots of cleanup, create a vbox instead of a dialog. * app/gui/dialogs-constructors.c * app/gui/dialogs.c: added a dockable for the error console. * app/errors.c * app/gui/gui.c * app/gui/menus.c: changed accordingly. * app/widgets/gimpcontainerview.c: conntect "extended_clicked" to the "extended_clicked" callback, not "clicked". * app/widgets/gimplayerlistview.c: set the layer option box' spacing in "style_set". * app/widgets/gimplistitem.c: argh. * themes/Default/gtkrc: changed the default theme to set a smaller font only for the dockable because that's where saving screen estate really makes sense. May need some further tweaking. |
|
Sven Neumann | 2671ae157e |
defined convenience macro g_signal_handlers_disconnect_by_data(). Will try
2001-07-27 Sven Neumann <sven@gimp.org> * app/core/core-types.h: defined convenience macro g_signal_handlers_disconnect_by_data(). Will try to persuade Tim to accept it for GLib. * app/module_db.c * app/undo_history.c * app/core/gimp.c * app/core/gimpbrush.c * app/core/gimpbrushpipe.c * app/core/gimpcontainer.c * app/core/gimpcontext.c * app/core/gimpdatafactory.c * app/core/gimpparasite.c * app/gui/brush-editor.c * app/gui/brush-select.c * app/gui/dialogs.c * app/gui/file-open-dialog.c * app/gui/gradient-select.c * app/gui/gradients-commands.c * app/gui/menus.c * app/gui/pattern-select.c: GObject porting. Replaced all gtk_object_[unref|ref] calls by their g_object_ counterparts, expect refs that are used with gtk_object_sink(). |
|
Michael Natterer | b844c98549 |
removed path_to_beziersel() so this file can be safely included from
2001-07-17 Michael Natterer <mitch@gimp.org> * app/path.[ch]: removed path_to_beziersel() so this file can be safely included from core/. * app/tools/gimpbezierselecttool.[ch]: added it here. * app/core/core-types.h: added a GimpToolOptions typedef. Removes deps into tools/ and will later be a core object anyway. * app/tools/tools-types.h: removed the ToolOptions typedef here. * app/core/gimpimage-duplicate.c * app/core/gimpimage-mask.c * app/core/gimpimage.c * app/core/gimptoolinfo.[ch]: removed deps into tools/, misc stuff. * app/tools/tool_manager.[ch]: some ugly temp hacks. Please ignore. * app/widgets/gimpdialogfactory.[ch]: added a "remember_if_open" field to the GimpDialogFactoryEntry so we can manage dialogs which should not be re-opened on startup. * app/gui/dialogs-constructors.c * app/gui/dialogs.c: register & create all editor dialog with the "global_dialog_factory". * app/gui/tool-options-dialog.c * app/tools/*: s/ToolOptions/GimpToolOptions/ |
|
Michael Natterer | b280b493c7 |
don't use the global "the_gimp" variable.
2001-07-15 Michael Natterer <mitch@gimp.org> * app/core/gimp.c: don't use the global "the_gimp" variable. * app/core/gimpimage-convert.c: don't update the display here. * app/gui/gui.c: connect to the images' "mode_changed" signal and update here. * app/gui/brush-editor.[ch] * app/gui/gradient-editor.[ch] * app/gui/palette-editor.[ch]: pass a "Gimp" pointer to all editors. Added an palette_name entry to the palette editor. * app/gui/colormap-dialog.[ch]: removed all the dialog stuff and made the constructor return a vbox so it can be integrated in a dockable. Lots of cleanup and removal of anqiuqe aretfacts. * app/gui/dialogs-constructors.[ch]: wrap the colormap dialog in a dockable. * app/gui/dialogs-commands.[ch] * app/gui/dialogs.c * app/gui/menus.c: integrate the new dockable, made the "Brushes.." etc. menu entries create dockbles. Moved the old dialogs and the test menu entries to "Old + Testing" and removed N_() so the .po files stay cruft-free. * app/gui/test-commands.[ch]: removed lots of stuff which is not "testing" any more. |
|
Michael Natterer | b54b5ed6a0 |
added a (commented out) function to open files (to get rid of including
2001-07-09 Michael Natterer <mitch@gimp.org> * app/core/gimp.[ch]: added a (commented out) function to open files (to get rid of including gui/file-open-dialog.h) * app/gui/file-open-dialog.[ch] * app/gui/file-save-dialog.[ch]: renamed all functions because they are no callbacks any more. Removed the _by_extension() callbacks. * app/gui/file-commands.[ch]: added the file_[open|save]_by_extension() callbaks here along with some other stuff which has nothing to do with the file dialogs. * app/gui/menus.c: added a helper function to create an item factory, cleanup. * app/gui/palette-editor.[ch]: contains only the editor for a single palette now (removed the notebook and the palette list). Renamed all functions to palette_editor_*(). Will be made a dockable later. * app/gui/palette-select.[ch]: made it work like the other selection dialogs. * app/app_procs.c * app/docindex.c * app/gui/dialogs-constructors.[ch] * app/gui/dialogs.c * app/gui/gradient-select.c * app/gui/gui.c * app/widgets/gimpdnd.c: changed accordingly. |
|
Michael Natterer | 1bcd3e1834 |
app/Makefile.am removed.
2001-07-07 Michael Natterer <mitch@gimp.org> * app/Makefile.am * app/context_manager.[ch]: removed. * app/app_procs.c: call tool_mananger instead of context_manager functions, pass "the_gimp" to some more functions. * app/drawable.[ch]: pass a GimpContext to drawable_fill(). * app/errors.c: behave according to "stack_trace_mode" when using the debugging signal handler. * app/gimprc.[ch]: removed the core/ config variables. * app/selection.c: set the selection's state to INVISIBLE in selection_pause(). * app/core/Makefile.am * app/core/gimpcoreconfig.[ch]: new files (the configuration variables used by core/). * app/core/gimpcontext.[ch]: removed the global contexts (user, default, ...) and their functions. It's no longer possible to pass NULL to the context functions to manipulate the current context (gimpcontext.c doesn't know the current context any more). * app/core/gimp.[ch]: added them here. The functions are now called gimp_[set|get]_*_context(). Added gimp_create_context() which is the only function to create contexts now. * app/gui/dialogs.[ch] * app/gui/gui.[ch]: pass "gimp" to all functions. * app/tools/tool_manager.[ch] * app/tools/tools.[ch]: pass "gimp" to lots of functions. Added the "global_tool_context" logic and the global/non-global paint options switching from the context_manager. Pass "gimp" to all tools' "register" functions. * app/tools/*: changed accordingly. * app/devices.c * app/disp_callbacks.c * app/file-open.[ch] * app/file-save.c * app/gdisplay.c * app/gimage.c * app/libgimp_glue.c * app/module_db.c * app/nav_window.c * app/plug_in.c * app/qmask.c * app/undo.c * app/base/base-config.c * app/core/gimpbrushpipe.c * app/core/gimpdrawable-offset.c * app/core/gimpgradient.c * app/core/gimpimage-duplicate.c * app/core/gimpimage-mask.c * app/core/gimpimage-new.c * app/core/gimpimage.c * app/core/gimppalette.c * app/core/gimptoolinfo.[ch] * app/core/gimpundo.c * app/gui/brush-select.c * app/gui/channels-commands.c * app/gui/color-area.c * app/gui/dialogs-constructors.c * app/gui/file-new-dialog.c * app/gui/file-open-dialog.c * app/gui/gradient-editor.c * app/gui/gradient-select.c * app/gui/info-window.c * app/gui/layers-commands.c * app/gui/menus.c * app/gui/palette-editor.c * app/gui/palette-import-dialog.c * app/gui/palette-select.c * app/gui/paths-dialog.c * app/gui/pattern-select.c * app/gui/preferences-dialog.c * app/gui/resize-dialog.c * app/gui/test-commands.c * app/gui/tool-options-dialog.c * app/gui/toolbox.c * app/gui/tools-commands.c * app/xcf/xcf-load.c * app/xcf/xcf-save.c * app/widgets/gimpchannellistview.c * app/widgets/gimpdnd.c * app/widgets/gimpdrawablelistview.[ch] * app/widgets/gimpimagedock.c * app/widgets/gimplayerlistview.c * app/pdb/brushes_cmds.c * app/pdb/drawable_cmds.c * app/pdb/gradient_select_cmds.c * app/pdb/gradients_cmds.c * app/pdb/palette_cmds.c * app/pdb/patterns_cmds.c * app/pdb/procedural_db.c * tools/pdbgen/pdb/brushes.pdb * tools/pdbgen/pdb/drawable.pdb * tools/pdbgen/pdb/gradient_select.pdb * tools/pdbgen/pdb/gradients.pdb * tools/pdbgen/pdb/palette.pdb * tools/pdbgen/pdb/patterns.pdb: changed accordingly: remove usage of gimp_context_[get|set]_*(NULL), create contexts with gimp_create_context(). Get the user/current context with gimp_get_[user|current]_context(). Added/removed access to the global "the_gimp" variable in some places. Get the core's config variables from "core_config". |
|
Michael Natterer | 8a6f5a104d |
app/gui/dialogs-commands.[ch] added dialogs_toggle_auto_cmd_callback()
2001-07-02 Michael Natterer <mitch@gimp.org> * app/gui/dialogs-commands.[ch] * app/gui/menus.c: added dialogs_toggle_auto_cmd_callback() which toggles GimpImageDock's "Auto" button. * app/gui/dialogs.c: ref/sink the global dialog factories. * app/widgets/gimpdialogfactory.[ch]: added some comments, some cleanups and additional checks. Factored out the "aux-info" stuff to separate functions. * app/widgets/gimpdockbook.c: set the state of the "Auto Follow Active Image" menu item. * app/widgets/gimpimagedock.[ch]: added a gboolean for "show_image_menu" so we don't need to fiddle around with the widgets to get this info. Added gimp_image_dock_set_auto_follow_active(). |
|
Michael Natterer | d26c26686e |
app/Makefile.am removed.
2001-06-26 Michael Natterer <mitch@gimp.org> * app/Makefile.am * app/color_transfer.[ch]: removed. * app/tools/Makefile.am * app/tools/gimpcolorbalancetool-transfer.[ch]: added. * app/tools/gimpcolorbalancetool.c: changed accordingly. * app/base/Makefile.am * app/base/tile-manager-crop.[ch]: formerly known as crop_buffer(). * app/tools/gimptexttool.c: changed accordingly. * app/context_manager.[ch]: added the global clipboard and the named buffer list here. * app/app_procs.c: don't call color_transfer_init() and don't free the buffer stuff (done by the context manager now). * app/errorconsole.c: don't #include "gui/commands.h" * app/global_edit.[ch]: removed lots of stuff which is now done by gui/edit-commands.* or the new GimpBuffer object. The "paste named" dialog will go away and this file will be moved to core/ soon. * app/image_new.c: no need to declare the global_buffer extern any more. * app/qmask.c: don't #include "global_edit.h" * app/core/Makefile.am * app/core/core-types.h * app/core/gimpbuffer.[ch]: new object (aka named buffer) * app/core/gimpcontext.[ch]: added a GimpBuffer attribute. * app/core/gimpimage.[ch]: one s/int/gboolean/. * app/core/gimppattern.c: hmm... * app/gui/commands.[ch]: split up in small files: * app/gui/Makefile.am * app/gui/edit-commands.[ch] * app/gui/file-commands.[ch] * app/gui/image-commands.[ch] * app/gui/select-commands.[ch] * app/gui/view-commands.[ch]: new files. * app/gui/dialogs-constructors.[ch] * app/gui/dialogs.c: added the named buffer list & grid. * app/gui/file-new-dialog.[ch] * app/gui/menus.c * app/gui/palette-editor.c * app/gui/test-commands.c: changed accordingly. * app/pdb/edit_cmds.c * tools/pdbgen/pdb/edit.pdb: changed for the global_edit stuff. * app/widgets/Makefile.am * app/widgets/gimpbufferpreview.[ch] * app/widgets/gimpbufferview.[ch] * app/widgets/gimpcontainereditor.[ch]: new widgets. * app/widgets/gimpcontainerview-utils.c * app/widgets/gimpdatafactoryview.[ch] * app/widgets/gimpdnd.[ch] * app/widgets/gimpdrawablepreview.c * app/widgets/gimplayerlistview.c * app/widgets/gimppreview.c * app/widgets/widgets-types.h: changed accordingly for the new GimpBuffer object and it's views, misc. cleanups. * pixmaps/Makefile.am * pixmaps/paste-as-new.xpm * pixmaps/paste-into.xpm * pixmaps/paste.xpm: new pixmaps (they all look the same... Tigert? ;-) * po/POTFILES.in: added the new files. |