Every set of vector instructions was compiled on every system, as an
empty function where it could not be built: MMX on PowerPC, AltiVec on
x86. And a build for a CPU that has SSE2 anyway (x86-64, or -msse2 and
later in CFLAGS) carried the MMX code, which SSE2 replaces wherever it
runs; one for ARM with NEON carried ARMv6 code the same way.
configure now builds only the sets of the CPU family built for, and
none that a set the build can take for granted does entirely: no MMX
where SSE2 is there anyway, no ARMv6 where NEON is. AArch64, where the
NEON file was simply compiled without flags, is looked at like the
others. The empty stand-ins are gone, and so are the files from the
MSVC makefile, where none of them could be built.
Tried under Wine: "put window at" left the video window of MCI where
it was, at the top left of the dialog and at the size of the video. MCI
now draws into a child window we make and move over the preview, with
"window handle" and "put destination", which every version knows.
Where DirectShow (the mpegvideo device) cannot open a file, the device
MCI has for its extension takes it: waveaudio for WAV, the sequencer for
MIDI. And as the type of a file on Windows is its extension, and not
every system has a MIME type in the registry for .avi or .mp3, sound and
video are also told by a short list of extensions.
Strings of the fork that GTK 3, Caja or Nautilus have too, as the labels
of the file information ("Type:", "Location:", "Dimensions:"...),
"Audio/Video", "Open With %s", the emoji and file names messages, now
come with their translations from there, in this order, where those are
complete and not fuzzy: 6054 strings in 104 languages. Obsolete entries
of the same strings make room for them.
German gets the strings no one else has yet.
The name stands under the picture in bold and centred, and below the
details a button opens the file with the program the system has for its
type, "Open With ...", both as in the information pane of Caja. The
string comes translated from there.
gtkmain.h is included for gtk_get_current_event_time(); on Windows no
other header brought it in.
Under the picture of what plays, a bar shows where it is and moves it
there when dragged, with the time beside the buttons ("0:12 / 1:30").
GStreamer and the Media Control Interface seek themselves, xine starts
playing at the time; FFmpeg starts its two programs again from there,
which is why a seek waits until the bar rests for a moment. The length
comes from ffprobe where it is installed; without it, the bar stays
off.
GStreamer seeks to the nearest key frame, which is what weak machines
manage quickly.
As in Caja and Nautilus, a handle between the files and the panel beside
them makes the panel wider or narrower, from 160 pixels to half of the
space; the width is kept with the other settings. The picture grows
with it, up to the 256 pixels of a large thumbnail, and the lines of
information wrap to it.
Sound and video files get a play/pause and a stop button under their
picture in the panel beside the files. Nothing plays before they are
pressed, and nothing is loaded before: GTK+ needs none of this to build
or to run, it uses what it finds installed.
- GStreamer 1.x, opened as a library where it uses the same GLib as
the program (on Linux and the BSDs, and from Homebrew or MacPorts).
It scales the pictures to the size of the preview itself.
- xine-lib 1.2, opened as a library, with its raw video output.
- FFmpeg, as the programs: ffmpeg decodes the pictures into a pipe at
25 a second and the size of the preview, ffplay plays the sound;
pausing stops both.
- On Windows the Media Control Interface every version has, from 3.1
on, with its video window put over the preview.
The preferences have a switch for all of it and, as the panel, a choice
of what plays. Where nothing is installed, the panel says what to
install. The buttons take their icons and tooltips from the stock items
Play, Pause and Stop, so they are translated already.
The panel beside the files lists, as the file managers do: the type, the
size, where the file is, the size of a picture (from its thumbnail),
when it was changed, read and made, its owner and group, and where a
link points. What the list does not know yet is asked of GIO in the
background, so a slow disk or network share holds nothing up.
The name of a picture format the system has no name for is now found
from its MIME type; before, the file itself was read for it, on the
main thread.
Since f0d1c05ea the scanner got -DGTK_DISABLE_DEPRECATED, and
gtktextlayout.h, gtkprivate.h and gtkmarshal.h were left out, so
Gtk-2.0.gir lost everything deprecated that 2.24.33 had in it: GtkCList,
GtkCTree, GtkOptionMenu, GtkComboBoxEntry, the rulers, GtkItemFactory,
gtk_signal_*, GtkTextLayout... 592 functions and types. Programs in
Python or JavaScript that still use them broke.
The scanner gets -UGDK_DISABLE_DEPRECATED -UGTK_DISABLE_DEPRECATED again
as before, and the headers come back; the warnings that came with them
are fixed by the annotations of the commit before.
The deprecated API of GTK+ 2 (GtkCList, GtkCTree, GtkItemFactory, the
gtk_signal_ and gtk_type_ functions, the old toolbar calls...) lacked
annotations g-ir-scanner asks for: transfer of returned objects, the
scope of callbacks, the types in lists, the hooks that return the old
hook. 92 warnings with --warn-all, and 74 functions bindings could not
call. Only comments change.
Two functions stay out of reach, as before: gtk_ctree_export_to_gnode()
and gtk_text_layout_get_line_display() return structures that are freed
in ways that need a boxed type.
Plugin UIs (LV2 through suil, VST, JUCE, LSP) draw in X windows of their
own, made inside a window of the host. A drag source only ever talks to
the toplevel, so the plugin never heard of a drag over it, and dropping
a file on it did nothing (GNOME/gtk#2329).
The XEmbed specification asks the embedder to act as the drag-and-drop
proxy of its client. Now, while a drag is over a window that GDK does
not know and that is XdndAware, its XdndEnter, XdndPosition, XdndLeave
and XdndDrop go on to it. They name our toplevel as the source, so its
answers come back here even from plugins that put their own window in
them, and they go on to the real source with ours. GTK meanwhile sees
the drag leave its widgets, and its own answers are held back.
Clients of a GtkSocket that GDK knows as foreign windows are still left
to the proxy GTK has for them. A toplevel without X windows inside,
which most are, is asked that once per drag and then costs nothing.
A GtkSocket now makes its toplevel take drags once something is
embedded, as the plugin may make its window later.
Reading the size of a picture and scanning a JPEG each wait for the disk,
which on a slow USB stick or a busy NFS server takes a while. A request
that is no longer wanted now ends after the step it is in, not only
between the chunks of decoding.
What gdk-pixbuf cannot read, a PDF, a video, a WebP without its loader,
now gets its thumbnail from the thumbnailers of the freedesktop.org
thumbnailer specification, if one is installed for its type. They run
as programs of their own, one at a time like everything here, and are
killed when the file scrolls out of sight or after 20 seconds.
Their pictures are made no bigger than asked, as some of them ignore
the size. A failure is only remembered when the thumbnailer ran and
gave nothing, not when it was stopped or could not be started.
On Windows and macOS, documents and videos are asked of the shell's
cache and of Quick Look; a miss there is not remembered, as the shell
may have it later.
Since INCLUDES became AM_CPPFLAGS, the GIR CFLAGS still named the empty
INCLUDES, so g-ir-scanner found neither GLib nor the other headers and
no .gir was made.
IN_FILE and IN_HEADER were defined as "defined", which is undefined
behaviour; clang warned about it some thousand times per build. The
generated files now test defined() directly, with the same result.
A program's widget with its own scroll handler kept the smooth events of
a high-resolution wheel from the scrolled window around it, so a canvas
like GnomeCanvas in xournal scrolled in whole steps (issue #22). Once
its handler lets a whole step through to the scrolled window, with the
same modifiers, the smooth events go past it from then on; it still gets
every step, and when it takes one, the smooth events stop going past it.
ATK 2.12 deprecated the index, row and column calls of AtkTable for
AtkTableCell, and ATK 2.10 the text calls by boundary; gail has neither
replacement, and these tests check its implementations of the old ones.
With such ATK they now ask those implementations directly.
ATK 2.9.4 deprecated the focus trackers and the focus handlers of
AtkComponent for the state-change signal. testfocus.h gives the test
modules and ferret the object whose "focused" state is set (by a global
event listener, which gail has), testobject listens to state-change on
the objects; with older ATK both keep the old calls.
The deprecated ATK calls were wrapped in G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
with ATK 2.12 and later the test now asks the implementations they lead
to, before that the calls themselves.
The m4 files and the po Makefiles were from gettext 0.18, whose macros
newer autoconf calls obsolete (AC_TRY_LINK, AC_TRY_RUN, AM_PROG_MKDIR_P).
These are from 0.22.5, with config.rpath and ABOUT-NLS; the others in m4/
are not used with AM_GNU_GETTEXT([external]) and stay. autopoint 0.19.6
and later brings those of the installed gettext (0.20 at least).