Commit Graph

20 Commits

Author SHA1 Message Date
Jehan 9f0dbb5759 plug-ins: port screenshot to GimpImage/GimpDrawable. 2019-08-22 15:54:36 +02:00
Jehan e0d50aa121 plug-ins: keep building all plug-ins with old API.
Build existing plug-ins with -DGIMP_DEPRECATED_REPLACE_NEW_API.
We will port the plug-ins one at a time to the new GimpImage API.
2019-08-22 15:54:36 +02:00
Jehan ff6d7a7550 plug-ins: renaming Win32 implementation files to follow namespacing. 2018-05-30 11:57:31 +02:00
Jehan 2240251de6 plug-ins: fix Windows distribution.
"magnification-api-win32.h" was not included in the dist!
Note that I know that alphabetical order is wrong. I am planning to
actually change the name of the file (more in line with other filenames)
but I am waiting to finish a review of another patch from Gil before
doing so. So just let it as-is for now! ;-)

(cherry picked from commit a2902790cc)
2018-05-21 00:14:30 +02:00
Jehan 870ca6334d plug-ins: install plug-ins in subfolder.
I am going to forbid plug-ins from being installed directly in the root
of the plug-ins/ directory. They will have to be installed in a
subdirectory named the same as the entry point binary.
This may seem useless for our core plug-ins which are nearly all
self-contained in single binaries, but this is actually a necessary
restriction to eliminate totally the DLL hell issue on Windows. Moving
core plug-ins in subfolders is only a necessary consequence for it.
2018-05-20 21:06:35 +02:00
Jehan 53a03b38e5 plug-ins: implementation of the Freedesktop portal for screenshot.
I am told by the GNOME/Flatpak people that this is what we will
ultimately need to implement. Basically this portal is supposed to work
everywhere, in sandboxes (Flatpak, hopefully Snap too?), but also out
of sandboxes, i.e. in GNOME and KDE, whether Wayland or X11. So that
should be the unique API we will have to implement in the end, and every
desktop environment/sandbox will need to implement this API (which is
good!).
Apparently it is not part of default GNOME yet, but has to be installed
separately (on Fedora, package is xdg-desktop-portal-gtk for GNOME and
xdg-desktop-portal-kde for KDE).

Now there are currently many shortcomings, and in particular, the
screenshot API has apparently no advanced features (at all!). No window
snap, no rectangular selection, no delaying, no choice on including
cursor or decoration, nothing! Apparently this is normal that the API
presents no feature, because "the API itself is not meant to specify the
details how the screenshot is obtained. Instead the portal will present
the user a dialog to take a screenshot, and that screenshot will be
given back to the sandboxed app".
This is acceptable behavior, except that currently, the dialog has none
of the basic features so this is a very bad regression. This is why I
test the freedesktop API last, which basically means it will likely
never be actually used. That's on purpose. At least, the code is in and
will be easy to improve later. Of course, when the Freedesktop portal
for screenshot will finally be featureful, it is meant to be tested
first.

See: https://github.com/flatpak/xdg-desktop-portal/blob/master/data/org.freedesktop.portal.Screenshot.xml
2017-12-16 02:36:15 +01:00
Jehan b9034e26a9 Bug 791360 - Add Screenshot implementation for KDE/Wayland.
Only thing I could not properly figure out yet is how to select an area.
The "screenshotArea" method is there in KDE API, but it needs
coordinates and I can't find the API to grab coordinates in Wayland (as
in GNOME shell API).
2017-12-08 19:20:17 +01:00
Michael Natterer eb6ce6ebc6 plug-ins: rename all screenshot win32 files to screenshot-win32-* 2016-05-01 19:20:56 +02:00
Hartmut Kuhse ed80db30c9 plug-ins: convert win-snap to screenshot
works as win-snap, lots of optimizing work to be done.
2016-05-01 19:10:57 +02:00
Michael Natterer d64120340b plug-ins: more cleanup in screenhot, move the icon to its own file 2016-04-02 21:44:09 +02:00
Michael Natterer d164850484 plug-ins: add an (empty) Win32 backend to screenshot
and buld it unconditionally. Somebody please move the code from
win-snap to the new file.
2016-04-02 15:02:00 +02:00
Michael Natterer a1785e9823 Bug 757687 - Screenshot functionality broken under Wayland
Some more abstraction in the screenshot plug-in, now allows for
runtime backend selection. Add stubs for the gnome-shell backend,
registers itself as unavailable because it's still unimplemented.
2016-03-29 22:08:27 +02:00
Michael Natterer e4ff6b40da Bug 757687 - Screenshot functionality broken under Wayland
Move OS X and X11 specific code to its own files, to prepare for more
shooting backends being added. Also remove unimplemented G_OS_WIN32
stubs, if anyone feels like implementing a Windows backend, by all
means go ahead.
2015-11-07 22:39:32 +01:00
Michael Natterer e1c4314a8e Bug 757687 - Screenshot functionality broken under Wayland
Move the screenshot plug-in to its own directory, it's about to be
split up into multiple files.
2015-11-07 15:52:44 +01:00
Manish Singh 780b221fcc Moved.
-Yosh
1999-06-23 06:08:23 +00:00
Manish Singh 72cb65c2d1 Add $(INTLLIBS)
-Yosh
1999-06-10 19:20:43 +00:00
Manish Singh ab0f6afcfa Upgraded to libtool 1.2b
* Upgraded to libtool 1.2b

* Reversioned libgimp to use gtk-style without a funky soname

* configure.in: craft GLIB_CFLAGS and GLIB_LIBS

* Makefile.am (pretty much all of em): changed to use new library
naming scheme. Only link libgimpui and libgtk et al to the plugins
that actually need them.

* app/gimage_cmds.c: corrected typo that resulted in corrupt PDB
record

* libgimp/gimp.h
* libgimp/gimpwire.h
* libgimp/gimpmenu.[ch]: clean up the callback code

* Removed unecessary inclusion of gtk headers for plugins that
don't use em

* plug-ins/zealouscrop/zealouscrop.c: use gint8 instead of gboolean,
save some mem

* plugged some warnings in animationplay, flame, fp, gee, gfig

* gimptool.in: changes for library reversioning, added --nogimpui
option for not linking in libgimpui

* configure.in: added finnish translation

-Yosh
1998-09-20 23:04:33 +00:00
Manish Singh 05d166cd4e Removed -lc from all Makefiles, since it causes weird problems on DU4
-Yosh
1998-08-31 02:08:15 +00:00
Manish Singh db28c2a313 libgimp versioning stuff
-Yosh
1998-06-19 19:47:34 +00:00
Manish Singh 3f2f4b5c3f added new plug-in
plug-ins/animationplay/animationplay.c: fix sigsegv on close

-Yosh
1998-04-20 03:21:31 +00:00