Commit Graph

27592 Commits

Author SHA1 Message Date
Sven Neumann 9275404452 Bug 622196 - Unportable test(1) construct in configure script
Use of '==' as comparison operator is a bashism.
2010-06-20 18:37:53 +02:00
Michael Natterer ba3d530c9b tests: fix the directory variables in TESTS_ENVIRONMENT
Apparently, $(abs_top_srcdir) and $(abs_top_builddir) aren't set as
shell variables any longer. Instead, use @abs_top_srcdir@ and
@abs_top_builddir@ so they get substituted at configure time.
2010-06-20 12:25:32 +02:00
Martin Nordholts 49d951d49e app: Introduce error margin in sessionrc in test cases
Introduce a few pixels of error margin in sessionrc, otherwise the
tests are too fragile, widgets have a tendency to change size a bit
and window managers have a tendency to move windows a bit.

Still needs more work, should probably do the same on book positions
too...
2010-06-19 23:55:35 +02:00
Martin Nordholts 4e78fc7279 Also distribute dockrc-expected 2010-06-19 23:55:35 +02:00
Martin Nordholts 53596f708d m4macros: Delete gtk-doc.m4, gtkdocize gives us a symlink 2010-06-19 23:55:35 +02:00
Martin Nordholts d1202096e6 app: Include git commit hash in verbose version output
Note:
* Passes make distcheck
* The git commit hash is shipped with tarballs
* Build handles if git-version.h is removed from a tarball
2010-06-19 23:55:35 +02:00
Michael Natterer 22864d1b88 NEWS: even more 2010-06-19 15:18:52 +02:00
Michael Natterer e0221f8e65 NEWS: more updates 2010-06-19 15:09:50 +02:00
Michael Natterer 5290bb0383 NEWS: updates 2010-06-19 14:51:45 +02:00
Alexandre Prokoudine 8ea880d91c Updated Russian translation, take one 2010-06-19 15:45:19 +04:00
Alexandre Prokoudine c739588541 Updated Russian translation, take one 2010-06-19 15:45:19 +04:00
Martin Nordholts 9bc0303ede Regenerate gimprc 2010-06-19 11:08:18 +02:00
Martin Nordholts 9060ab1d15 po: Update POTFILES.in 2010-06-19 11:08:18 +02:00
Martin Nordholts ab6d5553d9 app: Don't unmaximize image window when switching tabs in swm
It is when we apply session info to the image window we unmaximize, so
don't apply session info to the image window when all we do is
switching tabs in single-window mode.
2010-06-19 11:08:17 +02:00
Martin Nordholts 1e6055060c app/tests: Also simply test-xcf.c
Simply test-xcf.c too, forgot to do that.
2010-06-19 08:26:30 +02:00
Martin Nordholts 6ad46f651a Bug 610587 - Zooming with zoom tool pans away from the cursor
Update lower and upper value of adjustments *before* we set the new
value, otherwise it will be erroneously clamped sometimes.
2010-06-19 08:09:34 +02:00
Martin Nordholts 4ca603e97d Revert "Bug 610587 - Zooming with zoom tool pans away from the cursor"
This reverts commit 1f1f20261e. It was
not proper , and correcting it reintroduces the bug :(
2010-06-18 23:00:11 +02:00
Martin Nordholts 87ab39a943 Bug 608622 - Desaturate icon causes confusion with Gradients tool 2010-06-18 22:35:24 +02:00
Martin Nordholts 7e3898da09 app/tests: Add keyboard zoom focus regression test
Add keyboard zoom focus regression test. We also need a new display
shell utility function
gimp_display_shell_push_zoom_focus_pointer_pos() for that.
2010-06-18 20:57:59 +02:00
Martin Nordholts 1f1f20261e Bug 610587 - Zooming with zoom tool pans away from the cursor
Connect gimp_display_shell_hscrollbar_update to "notify::" so that the
notify freeze in gimp_display_shell_scale_update_scrollbars() works.
2010-06-18 20:53:01 +02:00
Martin Nordholts 3f6a3e749c app/tests: cleanup 2010-06-18 20:31:33 +02:00
Martin Nordholts 0af34013a2 app: Add minimum gimp_display_shell_transform_xy() gkt-doc 2010-06-18 20:31:33 +02:00
Martin Nordholts b799a8bd03 app: Remove unnecessary gimp_dockbook_refresh_tab_layout_lut() calls
We don't need to call gimp_dockbook_refresh_tab_layout_lut() in
added() and removed() because we call
gimp_dockbook_update_auto_tab_style() in add() and remove().
2010-06-18 20:31:33 +02:00
Martin Nordholts 5588e15eed app: Disable snap-to-canvas by default
It's too annoying to have the Paintbrush tool snap to canvas by
default.
2010-06-18 20:07:03 +02:00
Michael Natterer 8ab8a25c99 app: some disabled cairo bling code
that draws a gradient in the background of the frame. Not meant
seriously, just something to play with for everybody interested.
2010-06-18 13:51:49 +02:00
Michael Natterer c1c715c2d1 app: don't draw any background if the overlay child is app-paintable
instead of never drawing a background. Doesn't make any difference,
but makes GimpOverlayBox a more general container. Also, the offscreen
GdkWindow doesn't need any event but GDK_EXPOSURE_MASK.
2010-06-18 13:46:39 +02:00
Michael Natterer 27ec3aa812 app: switch off double buffering on the entire offscreen widget tree
Also always return FALSE from the expose and damage event handlers.
2010-06-18 13:45:03 +02:00
Michael Natterer 6eda16d550 app: call dialogs_exit() after controllers_exit() and devices_exit()
which would have been the correct oder all the time, because these
systems are initialized in reverse order. The wrong order didn't
matter until now, but for some reason it now sometimes triggered
warnings about dialog_factories being NULL during controllers
shutdown.
2010-06-18 09:11:14 +02:00
Marco Ciampa e61b2df08a Updated italian translation. 2010-06-15 00:39:12 +02:00
Martin Nordholts 782ba9bcb9 app/tests: Make it easier to add tests
Minimize the effort to add a new test by removing prototypes for tests
and adding macros to register tests.
2010-06-14 18:53:38 +02:00
Michael Natterer ffd10df39f themes: use the color scheme from "Darklooks" for canvas overlays
This is just a proof-of-concept experiment, please comment!
2010-06-14 13:48:11 +02:00
Ulf-D. Ehlert b9c09c559d po: Minor fixes to German translations 2010-06-13 18:47:11 +02:00
Marco Ciampa bc72b15539 Updated italian translation. 2010-06-13 13:35:15 +02:00
Michael Natterer 170f0bed00 app: use a GimpOverlayFrame for the text style editor
so it gets round corners and doesn't look so old school.
2010-06-12 23:49:55 +02:00
Michael Natterer 30de295cf4 app: make the alpha channel work on canvas overlay widgets
* app/widgets/gimpoverlaychild.c: when creating offscreen windows, try
  to set an RGBA colormap on the offscreen window's widget and use the
  RGBA colormap to create the window. This has to be done here,
  because it's not possible to get to the right screen *inside* the
  offscreen widget before it's parented, and we need that screen
  before the widget is realized, and the widget can't be parented
  before it's realized or it will get the wrong parent window.
  Everything clear now?

* app/widgets/gimpoverlayframe.c: draw the round corners only if the
  screen has an RGBA colormap.
2010-06-12 23:48:29 +02:00
Barak Itkin c37c0024af app: Fix the description of layers-merge-down
When merging down a layer, currently the selected layer will be merged with the
first visible layer below it. So, we better inform the user that the merging
operation will not necessarily be with the first layer below it, but with the
first visible layer below it.
2010-06-12 21:13:09 +03:00
Michael Natterer d3e7864b5c app: code cleanup 2010-06-12 19:37:03 +02:00
Michael Natterer fc3a89ab0e app: make GimpOverlayFrame work as standalone container
Implement size_request() and size_allocate() so it can be used to pack
an arbitrary widget without the need for being subclassed.
2010-06-12 19:23:22 +02:00
Michael Natterer cabc3aa67a app: split out the round corners code from GimpOverlayDialog
into a new GtkBin subclass called GimpOverlayFrame.
2010-06-12 19:02:51 +02:00
Michael Natterer 94dc079d44 app: forgot to save the last comment edit 2010-06-12 18:46:30 +02:00
Michael Natterer 4da97f95c9 app: don't leak a string returned by g_object_get(), and some cleanup 2010-06-12 18:45:02 +02:00
Michael Natterer 88250391b0 app: fix keyboard focus navigation in overlay children
Implement GtkWidget::focus() and override GtkContainer's focus()
implementation which would always give focus to the canvas because it
is focussable. Instead, try navigating in the focussed overlay child
first, and use GtkContainer's default implementation only if that
fails (which happens when focus navigation leaves the overlay child).
2010-06-12 18:39:21 +02:00
Martin Nordholts 5da660a14d app: Make zoom focus with keyboard work again
Make zoom focus with keyboard work again, it broke when
GimpDisplayShell stopped being a GtkWindow and thus the source of key
events.
2010-06-12 15:37:21 +02:00
Michael Natterer c1f63290bc app: add back the code that aligns the menu with the menu button 2010-06-12 11:38:15 +02:00
Martin Nordholts 6812d5bdce Bug 346881 - Remove redundant title of tab and move menu button up
Remove the dockable drag handle and move the menu button it hosts up
to the GimpDockbook, with the gtk_notebook_set_action_widget() API.

This frees up quite a lot of screen estate which can be used for the
content of dockables instead.
2010-06-12 01:24:39 +02:00
Martin Nordholts 9b86acd16b Add 'Automatic' Tab Style support
Add support for a new type of Tab Style called 'Automatic'. This tab
style makes the GimpDockbook use the biggest actual tab style it can
for its auto tab style dockables, based on its widget allocation.

The tab style candidates for auto tab style are "Status + Blurb",
"Status + Text" and "Status". A docked widget can also say that it
wants to use "Icon" instead of "Status" for its auto tab style. The
'Tool Options' dockable does this. This is to be as backwards
compatible with the old tab style setup, we make 'automatic' the
default everywhere.

We have quite a bit of dependency to internal layout code in
GtkNotebook, but the current code should be pixel perfect and rather
complete.

Also add a basic regression test.
2010-06-12 01:23:42 +02:00
Martin Nordholts 501f97b54b Add gimp_preview_tab_style_to_icon() utility function
Also fix wrong conversion from PREVIEW_NAME to ICON_BLURB
2010-06-12 00:15:13 +02:00
Martin Nordholts e8e469c53c app: Add gimp_dock_temp_add/remove()
In order to get accurate measurements of widgets that will be put in a
GimpDock, add gimp_dock_temp_add() and gimp_dock_temp_remove(). That
way we can add a widget temporarliy, measure it with the
GimpDock::font-scale property applied, then remove it when we're
done. We can't apply style properties on widget detached from a
GdkScreen hierarchy :(
2010-06-11 23:25:14 +02:00
Michael Natterer 5334cc13b8 po-libgimp: add libgimpwidgets/gimpwidgets-private.c to POTFILES.in 2010-06-11 10:04:15 +02:00
Michael Natterer 56994869cd libgimpwidgets: register descriptions for the GdkInputMode enum
so the combo box in the input dialog shows proper labels and
translations instead of GDK_MODE_FOO.
2010-06-11 09:53:08 +02:00