2003-01-11 Michael Natterer <mitch@gimp.org>
* app/widgets/gimpdialogfactory.c
* app/widgets/gimptoolbox.c: removed GDK_HINT_USER_POS and
GDK_HINT_USER_SIZE again because they caused problems with
some window managers Instead, set the window's size with
gtk_window_parse_geometry().
2003-01-11 Sven Neumann <sven@gimp.org>
* app/config/Makefile.am: always build gimpconfig-dump.
* app/config/gimpconfig-params.[ch]: added an enum to specify the
type of path with GIMP_PARAM_SPEC_PATH.
* app/config/gimpconfig-dump.c: document the different types of
paths differently.
* app/config/gimpbaseconfig.c
* app/config/gimpcoreconfig.c
* app/config/gimpguiconfig.c
* app/config/gimppluginconfig.c: register the path types.
* etc/gimprc: generated a new system gimprc.
* plug-ins/common/tiff.c: added missing spaces in warning and
removed trailing newlines in strings passed to g_message().
2003-01-10 Sven Neumann <sven@gimp.org>
* app/app_procs.c (app_init)
* app/core/gimp.c (gimp_set_config): delayed the activation of
gimprc-autosave so we don't write the monitor resolution obtained
from GDK back to the gimprc on each startup.
* app/gui/gui.c (gui_get_screen_resolution): round values to get
rid of rounding errors introduced earlier. Looks better in the
prefs dialog.
* app/display/gimpdisplayshell-scale.c (gimp_display_shell_scale):
merged fix for bug #94979 from stable branch. Go even further and
don't limit the zoom ratio between 1:16 and 16:1.
* app/display/gimpdisplayshell.c (gimp_display_shell_new): merged
fix for bug #103030 from stable branch.
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.
2003-01-10 Michael Natterer <mitch@gimp.org>
* app/tools/gimpvectortool.c (gimp_vector_tool_button_press):
create a new GimpVectors object if the tool has none. Cleanup.
2003-01-10 Sven Neumann <sven@gimp.org>
* libgimpwidgets/gimpstock.[ch]: prefixed ALL, NONE, GROW and
SHRINK with SELECTION_ since they should only be used for in a
selection context. Register a few icons in dialog size as well.
* app/gui/menus.c
* app/widgets/gimpselectioneditor.c: changed accordingly.
* themes/Default/images: renamed icons accordingly.
* plug-ins/common/uniteditor.c: use stock items.
2003-01-10 Sven Neumann <sven@gimp.org>
* app/display/gimpstatusbar.c: fixed a compiler warning.
* plug-ins/gfig/gfig.c: fixed preview code so that the plug-in is
at least a bit useful again. Misc minor cleanups, still a mess.
2003-01-09 Sven Neumann <sven@gimp.org>
* app/app_procs.c: fixed typos.
* app/tools/xinput_airbrush.[ch]: removed from CVS; can always be
resurrected from the Attic. The files kept getting in the way when
grepping the source.
2003-01-09 Sven Neumann <sven@gimp.org>
* app/config/gimprc-blurbs.h: fixed typo.
* app/pdb/procedural_db.c (procedural_db_run_proc): always set the
number of returned values, even in case of an error.
* app/widgets/gimphelp.c: fix#65789 similar to how Tor did it in
the stable branch.
2003-01-09 Sven Neumann <sven@gimp.org>
* plug-ins/gfig/images/Makefile.am
* plug-ins/gfig/images/stock-logo.png: new Gfig logo courtesy of
Owen <oc@webone.com.au>.
* plug-ins/gfig/gfig-stock.[ch]
* plug-ins/gfig/gfig.c: use the new logo icon.
* plug-ins/gfig/pix_data.h: removed the old one.
2003-01-09 Sven Neumann <sven@gimp.org>
* app/main.c (main)
* app/app_procs.c (app_init): combined console output into single
messages to allow for better translation.
2003-01-09 Sven Neumann <sven@gimp.org>
* app/core/gimpdrawable.c (gimp_drawable_configure): use _("Unnamed")
if no name was given. Fixes bug #89328 in a more general way.
* plug-ins/common/psd.c: simply pass NULL as layer and channel
name if the PSD file provides none.
2003-01-08 Manish Singh <yosh@gimp.org>
* plug-ins/gimpcons.py: import gtkcons only when we're about to use
it. This and below allows plug-in query to work even without an
interface.
* plug-ins/pdbbrowse.py: define BrowseWin (which needs gtk) only
when we need it and are guaranteed a gui setup.
2003-01-08 Manish Singh <yosh@gimp.org>
* app/gui.[ch]: make gui_libs_init() use gtk_init_check() and return
a gboolean on success or failure.
* app/main.c: reorganized so that --help and --version never need
the gui to be initialized. Print a proper message when the gui cannot
be initialized (perhaps recommend --no-interface?). Return nonzero
exit status on failures.
2003-01-08 Simon Budig <simon@gimp.or>
* tools/gimp-remote.c: Implemented a heuristics that tries to
start the gimp in the same directory as gimp-remote-1.3.
If this fails it falls back to the regular PATH search.
For sanity checks this feature requires that the command name
starts with "gimp-remote". If you do weird symlinks the heuristics
will fall back to the PATH search silently.
2003-01-08 Sven Neumann <sven@gimp.org>
* app/display/gimpstatusbar.c (gimp_statusbar_init): work around a
canvas size bug by setting an empty text to the progressbar.
2003-01-07 Michael Natterer <mitch@gimp.org>
Fixed bug #13296:
* app/display/gimpdisplayshell.c (gimp_display_shell_shrink_wrap):
don't do evil stuff but simply call gtk_window_resize(). Gtk+ will
automatically place the window onscreen if it would be invisible
after resizing.
* app/display/gimpdisplayshell-callbacks.c
(gimp_display_shell_canvas_configure): don't call
gimp_dislpay_shell_scale_resize() to avoid recursion but do the
two needed calls manually.
2003-01-07 Michael Natterer <mitch@gimp.org>
* libgimpwidgets/gimphelpui.[ch]: removed gimp_help_init() and
gimp_help_free(). Added _gimp_help_init() instead.
* libgimpwidgets/gimpwidgets.def: changed accordingly.
* libgimpwidgets/gimpwidgets.c (gimp_widgets_init): call
_gimp_help_init() so it doesn't need to be done in all plug-ins
manually.
* libgimp/gimpcompat.h: added gimp_help_init() and gimp_help_free()
here as COMPAT_CRUFT.
* app/gui/gui.c
* plug-ins/FractalExplorer/Dialogs.c
* plug-ins/Lighting/lighting_ui.c
* plug-ins/MapObject/mapobject_ui.c
* plug-ins/common/AlienMap.c
* plug-ins/common/AlienMap2.c
* plug-ins/common/CML_explorer.c
* plug-ins/common/blur.c
* plug-ins/common/curve_bend.c
* plug-ins/common/gtm.c
* plug-ins/common/illusion.c
* plug-ins/common/jigsaw.c
* plug-ins/common/plasma.c
* plug-ins/common/polar.c
* plug-ins/common/ps.c
* plug-ins/common/randomize.c
* plug-ins/common/sinus.c
* plug-ins/common/snoise.c
* plug-ins/common/sparkle.c
* plug-ins/common/uniteditor.c
* plug-ins/common/warp.c
* plug-ins/common/wind.c
* plug-ins/gap/gap_arr_dialog.c
* plug-ins/gap/gap_mov_dialog.c
* plug-ins/gap/gap_navigator_dialog.c
* plug-ins/gdyntext/gdyntext_ui.c
* plug-ins/gfig/gfig.c
* plug-ins/gflare/gflare.c
* plug-ins/gimpressionist/gimpressionist.c
* plug-ins/maze/maze_face.c
* plug-ins/print/gimp_main_window.c
* plug-ins/sel2path/sel2path.c: removed the calls to
gimp_help_init() and gimp_help_free().
Fixed bug #81017:
* libgimpbase/gimpprotocol.[ch]: added "guint8 show_tool_tips"
to the GPConfig message. Increased the protocol version number.
* app/plug-in/plug-in.c: pass the value of gui_config->show_tool_tips.
* libgimp/gimp.[ch]: added gimp_show_tool_tips() to get the value
which was passed in the GPConfig message.
* libgimp/gimpui.c (gimp_ui_init): disable the tooltips
if show_tool_tips is FALSE.
* plug-ins/MapObject/mapobject_main.[ch]
* plug-ins/MapObject/mapobject_ui.c
* plug-ins/common/jigsaw.c
* plug-ins/gap/gap_navigator_dialog.c
* plug-ins/gfig/gfig.c: removed all plug-in specific GUI for
enabling/disabling tooltips.
2003-01-07 Sven Neumann <sven@gimp.org>
* plug_ins/common/Makefile.am
* plug_ins/common/plugin_defs.pl: added back spheredesigner so it
gets some testing again. Needs a good bunch of UI cleanup.
* plug-ins/common/spheredesigner.c (loadit): use
locale-independent functions to parse doubles.