Commit Graph

26821 Commits

Author SHA1 Message Date
Martin Nordholts c094736f83 app: Remove accidentally commited g_printerr() 2010-01-22 21:00:17 +01:00
Martin Nordholts ba37aaa532 app: Support multi-column DnD in toolbox window
Add a drag handler to the toolbox so it's possible to create
multi-column docks in the toolbox dock window.
2010-01-22 20:48:34 +01:00
Martin Nordholts 613b330bc0 app: Clarify why we need URI drop target on toolbox 2010-01-21 21:00:31 +01:00
Martin Nordholts 1093462ae9 app: Merge 'global_toolbox_factory' into 'global_dock_factory'
Get rid of 'global_toolbox_factory' and manage everything dock-related
with 'global_dock_factory'. The whole of 'global_toolbox_factory' was
a big special-case and getting rid of it makes it easier to extend the
session management with e.g. single-window mode dock functionality.

To get rid of 'global_toolbox_factory' we, roughly, have to
 * Replace 'global_toolbox_factory' with 'global_dock_factory'
   everywhere. We can also get rid of lots of code that did special
   things for the "toolbox" factory.
 * Make the use or interaction with the toolbox explicit in some
   places. For example, a function gimp_dock_window_has_toolbox() has
   been introduced.
 * Make GimpSessionInfoDock have an 'identifier' parameter so we can
   differentiate between the "gimp-dock" and "gimp-toolbox" dock
   types.
2010-01-20 18:29:54 +01:00
Martin Nordholts dd8b867852 app: Kill #if-zeroed GimpContext code that doesn't seem to be needed 2010-01-19 23:18:30 +01:00
Martin Nordholts 2604db71a8 app: Don't yell in FIXME, explain instead 2010-01-19 23:15:37 +01:00
Martin Nordholts 84dd0d5241 app: Remove windows_commands_get_toolbox(), use dialog variant
Remove windows_commands_get_toolbox() and use dialogs_get_toolbox()
instead.
2010-01-19 23:05:45 +01:00
Martin Nordholts 66197c5d11 app: global_dock_window_factory -> global_dock_factory
Rename back global_dock_window_factory to
global_dock_factory. Renaming to global_dock_window_factory was done
under the assumption that there would be a separate factory that would
create non-toplevel dockables, but I don't expect this to happen in
the forseeable future.
2010-01-19 22:40:06 +01:00
Martin Nordholts 56a8cb68a8 app: Have dialog factory entries for the dock windows
Let dock windows have proper GimpDialogFactory entries. This allows us
to get rid of a lot of ugly mostly duplicated code. This also makes us
ready the merge the dock window and toolbox factories which will soon
be done. A few things should be noted:

 * We adjust the wrap box aspect ratio in the toolbox to avoid having
   the toolbox dock window explode

 * We make sure that we still can handle sessionrc files from GIMP 2.6
   and older
2010-01-19 22:24:17 +01:00
Martin Nordholts 862ae52d4e devel-docs: Add a paragraph about sessionrc 2010-01-19 22:24:17 +01:00
Petr Kovar 11e8ff8db6 Updated Czech translation by Marek Cernocky
Reviewed by: Lucas Lommer.
2010-01-17 22:04:01 +01:00
Michael Natterer eac902d065 libgimp: use gtk_widget_get_visible() instead of GTK_WIDGET_VISIBLE() 2010-01-17 16:51:48 +01:00
Khaled Hosny 5876d1d5e6 Updated Arabic translation 2010-01-17 13:24:00 +02:00
Khaled Hosny cc94e5f608 Fix renamed file 2010-01-17 13:24:00 +02:00
Martin Nordholts 8c10d1c451 app/tests: Add simple tests to switch to and from single-window mode 2010-01-17 10:43:16 +01:00
Khaled Hosny 4c9fd7cffb Updated Arabic translation 2010-01-17 11:24:05 +02:00
Martin Nordholts b0fb45647d devel-docs: Add paragraph about GimpDialogFactory to ui-framework.txt 2010-01-17 00:01:35 +01:00
Martin Nordholts 408c22b79e app: Use the dialog factory for creating docks
Instead of having one dock constructor per dialog factory, put entries
for the normal dock and the toolbox dock in the dock window
factory. To do this we also need to merge the dock and normal dialog
constructors into one function protptype.

This takes us one step closer to be able to merge the
global_dock_window_factory and the global_toolbox_factory into one.

The long term goal: Support multi-column dock windows with one of the
docks being the toolbox. In this situation we can't have the toolbox
dock created by a separate dialog factory, that is too messy.
2010-01-17 00:00:19 +01:00
Martin Nordholts 0e9f434277 app/tests: Explain why gimp_test_utils_get_source_subdir() might fail 2010-01-16 23:51:23 +01:00
Martin Nordholts f8060aed27 app/tests: Add "/gimp-ui/create-new-image-via-dialog" test
Add a test to create a new image via the new image dialog that would
have caught the regression fixed by:
db2221c9 "app: Fix gimp_dialog_factory_constructor()".
2010-01-16 23:05:18 +01:00
Martin Nordholts a259d46716 app/tests: Add "gimp-image-new-dialog" to sessionrc
Add "gimp-image-new-dialog" to sessionrc so we can have tests with
this dialog without sessionrc changing.
2010-01-16 21:47:36 +01:00
Martin Nordholts db2221c97d app: Fix gimp_dialog_factory_constructor()
Fix gimp_dialog_factory_constructor() so that non-dockables can be
created by the dialog factory.
2010-01-16 21:22:56 +01:00
Martin Nordholts 08078ca79c app: Remove gimp_dialog_factory_set_put_in_dockables()
Instead of having gimp_dialog_factory_set_put_in_dockables() with all
the cruft that leads to we can use the 'dockable' member on
GimpDialogFactoryEntry. This is a general strategy that the code base
is being moved in: try to keep information per-entry rather than
per-factory.
2010-01-16 19:43:33 +01:00
Martin Nordholts 2527955c21 app: Copy 'dockable' member in gimp_dialog_factory_register_entry()
Copying 'dockable' for a dialog factory entry was forgotten in
gimp_dialog_factory_register_entry().
2010-01-16 19:35:34 +01:00
Martin Nordholts deb07e812d app: Introduce gimp_dialog_factory_set_put_in_dockables()
Change gimp_dialog_factory_set_constructor() to
gimp_dialog_factory_set_put_in_dockables() order to narrow the
interface a bit. We can make both
gimp_dialog_factory_set_put_in_dockables() and the
GimpDialogConstructor typedef internal this way.

The main reason we do this is because we want to get rid of a
dependency on factory->p->new_dock_func. Eventually we want to
construct docks just like we construct other widgets in the factory,
so new_dock_func will be removed.

Also improve readability of code such as making it explicit that
gimp_dialog_factory_put_in_dockable_constructor() is just an extended
version of gimp_dialog_factory_default_constructor().
2010-01-16 17:54:56 +01:00
Michael Natterer 73445668a6 app: remove #undef GSEAL_ENABLE, this file is completely ported 2010-01-16 15:12:50 +01:00
Michael Natterer fa6fc65fbf app: port one more file to GSEAL_ENABLE
Use accessors instad of widget->parent and widget->allocation
2010-01-16 11:25:43 +01:00
Martin Nordholts 038ea9474d devel-docs: Add a schedule for development
Add an OpenOffice.org Calc document that contains a list of tasks that
needs to be done before GIMP 2.8 is ready for release. An estimate of
the time to complete each task, in 8-hour work days, is also
given. Based on this data an estimated date when we will have a GIMP
2.8 release candidate ready is calculated. The formula includes a
“days worked per week”-factor that specifies how many 8-hour work days
that the GIMP community together produces per week. There is also a
sheet where things planned for GIMP 2.10/3.0 is put. With this
document we will be able to better plan what features to include in
what version.
2010-01-15 22:40:18 +01:00
Michael Natterer 7175f3e883 Some more changes to build with GSEAL_ENABLE
- use more GTK+ accessors instead of struct members
- remove quite some #undef GSEAL_ENABLE from completely ported files
2010-01-15 15:35:03 +01:00
Alexandre Prokoudine 67365732d4 Updated Russian translation 2010-01-15 00:44:17 +03:00
Daniel Nylander 3feb38151b Updated Swedish translation 2010-01-13 20:40:26 +01:00
Daniel Nylander 1e20cac357 Updated Swedish translation 2010-01-13 20:39:40 +01:00
Michael Natterer d2406fd4c3 plug-ins: move the UI file to datadir/ui/plug-ins/plug-in-file-png.ui 2010-01-12 22:02:51 +01:00
Sven Neumann 9317bb4548 plug-ins: fix error reporting and a compiler warning 2010-01-12 21:12:40 +01:00
Alexia Death d3dde03b78 app: Fix a tug of war with scrollbars when middle click panning.
Whenever panning with a mouse scrollbars generated reverse events,
one for each, causing flicker on image borders.
2010-01-10 22:16:27 +02:00
Martin Nordholts 7c32f5442a plug-ins: Check for errors when loading file-png.ui
Check for errors when loading file-png.ui. Still continue execution
though even if an error occurs, because the user can still export.
2010-01-09 20:03:58 +01:00
Sven Neumann b883d59411 Bug 606372 - Saving to .ppm fails on indexed colorspace
Don't change the pointer to the colormap and then attempt to free it.
2010-01-09 12:12:12 +01:00
Martin Nordholts 0abf5cc4f0 Use Glade + GtkBuilder for file-png.c save_dialog()
To give us experience with Glade + GtkBuilder, use it for the save
dialog in the PNG plug-in. The layout is as good as
identical. Mnemonics still works and strings are still translated.
2010-01-08 21:16:10 +01:00
Martin Nordholts e87c77bcfc app: Allow tests to override the menus directory
In order to let tests run against the source dir, allow them to
override the menus directory. Add utility functions for this and
adjust gimpuimanager.c accordingly.
2010-01-08 15:05:15 +01:00
Martin Nordholts 33e8b08f12 app/tests: Distribute test files and test directories 2010-01-08 13:37:25 +01:00
Martin Nordholts 4b8b8f4dde Update gimprc 2010-01-08 12:09:52 +01:00
Martin Nordholts d03ebe7fed po: Add app/widgets/gimpdockwindow.c to POTFILES.in 2010-01-08 12:09:49 +01:00
Martin Nordholts bcedff3234 data: Add obsoletegradientdata_DATA to EXTRA_DIST 2010-01-08 12:09:46 +01:00
Martin Nordholts cf31690eaf libgimp: Update gimp.def with new symbols 2010-01-08 12:09:42 +01:00
Martin Nordholts 857dc9d85e libgimp: Cleanup gimp.def 2010-01-08 12:09:40 +01:00
Martin Nordholts 5d79f664d3 app: Add "dialog-factory", "ui-manager" properties to GimpDockColumns
Add "dialog-factory", "ui-manager" properties to GimpDockColumns and
let GimpDock look for these before trying to look for a dock window
which does not exist in single-window mode.
2010-01-07 19:18:03 +01:00
Martin Nordholts bc5da21ba2 app: Add gimp_dock_columns_new() and GimpContext property
Add and use gimp_dock_columns_new() and add a GimpContext property to
GimpDockColumns. Also move the widget construction from _init() to
_constructor() in GimpDockWindow so we have a context object to pass
to gimp_dock_columns_new().
2010-01-07 19:13:13 +01:00
Martin Nordholts 33573b466b app: Check for dirty images before forcing single-window mode
Check for dirty images before forcing single-window mode since it is
annoying to have the UI split up and _then_ being asked about unsaved
images. The user might even click 'Cancel' in which case the UI will
have been switched to multi-window mode.
2010-01-06 18:19:20 +01:00
Martin Nordholts 5c4154d438 app: Don't remove the toolbox dock from dock columns
The toolbox always wants to make trouble :( Don't remove the toolbox
dock, even if it's empty.
2010-01-06 15:10:32 +01:00
Martin Nordholts f1bbb2c70a app: Fix menubar suddently stopping to work when toggling window modes
The image window must not disconnect from the active shell when any
page is removed, only when the active page is removed. This fixes the
bug with this step-by-step:

1. Start GIMP with a clean gimpdir
2. Create two windows
3. Enable single-window mode
4. Disable single-window mode
5. Try to execute a menu action, e.g. Select -> Invert, on both images

Expected result:
It works

Actual result:
It won't work in the image window that was reused and thus once had
two notebook pages, since it disconnected from page 1 when page 2 was
removed.

Also add some debug output.
2010-01-06 14:50:36 +01:00