| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Now the GtkEditable API should be used for that.
|
| |
|
| |
|
|
|
|
| |
--g-fatal-warnings no longer exists in GTK 4.
|
| |
|
|
|
|
|
| |
GTK lost support for setting window icons from textures, as not all
backends support that.
|
| |
|
|
|
|
| |
We can actually see if it errors out in that case.
|
|
|
|
| |
It’s no longer “vbox”.
|
| |
|
|
|
|
| |
Those are gone wherever they existed.
|
| |
|
| |
|
| |
|
|
|
|
| |
No more +!
|
|
|
|
|
| |
This updates the handler signature, uses consistent loop style, renames
some variables and removes others.
|
|
|
|
|
| |
It’s been removed from GTK+, and its use has been discouraged before
that as well.
|
|
|
|
|
| |
The ::scroll handler now returns a boolean value to indicate whether the
event was handled.
|
|
|
|
|
| |
There were too many containers at play. We have a perfectly good grid,
so let’s just put everything in it.
|
|
|
|
|
|
|
|
|
|
|
| |
This commit introduces NautilusTheatricBin, a GtkBin that allows adding
a flash effect to any widget. The widget replaces IdeBoxTheatric from
libegg (libdazzle), which is incompatible with the GTK+ 4 rendering
model, but still uses the same tweening machinery.
One problem that is relevant to our use case is that GtkRevealer clips
the child widget if the transition type is not NONE or CROSSFADE, so
the end result is not quite as expected.
|
|
|
|
|
|
|
|
|
| |
Since the GtkGestureMultiPress also supports touch events, the code
should treat them as button events, otherwise an assertion may be
reached in a bad spot. In particular, eel_canvas_handle_event() does
that in the default case.
Fixes https://gitlab.gnome.org/GNOME/nautilus/issues/582
|
|
|
|
|
|
|
|
| |
Before, the code would call the button_press_event() vfunc on the child
tree view, but that’s no longer a thing one can do. A workaround for
that could be querying the current event and calling gtk_widget_event()
on the tree view, so the event coordinates don’t end up being doubly
translated (gtk_widget_event_internal() does this).
|
|
|
|
|
|
|
| |
In GTK+ 4, the overlays for various different states (empty folder, no
search results, etc.) are visible by default and can be seen when
creating a new tab or opening a new location. That is fixable by hiding
them by default.
|
|
|
|
|
| |
The spinner in the notebook tabs is currently start-aligned, so
expanding it fixes it not being centered.
|
|
|
|
|
|
|
|
|
|
|
| |
This commit replaces the removed comparison of the event and tree view
bin windows with a check for negative coordinates, which will be the
case after converting the event coordinates when a header is pressed.
Additionally, this replaces the GtkWidget::event handlers with gestures.
Checking for negative coordinates could probably be removed if the
gestures were cleverly reordered, so that the header ones run first and
claim the sequence.
|
| |
|
| |
|
|
|
|
|
| |
This commit does that for all list view types, as I can’t keep track of
it anymore.
|
|
|
|
|
|
| |
This broke with replacing focus event handlers with listening to changes
in GtkWidget::has-focus, which doesn’t change in the toplevel when the
window goes inactive while the focus is on the entry.
|
|
|
|
| |
It shouldn’t return a value.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
The desktop is long gone and we don’t derive from it anywhere.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
Until now, the usage pie chart was drawn by connecting to ::draw of
the GtkDrawingArea, which has since been obsoleted. Luckily to us, one
can very easily just set the draw function of the drawing area. This
commit does just that and fixes styling issues by moving out class
addition to just before drawing (2 px solid borders were being applied
to the entire drawing area, which wasn’t an intended look).
|
| |
|
|
|
|
|
|
|
| |
The icon size of a GtkImage is GTK_ICON_SIZE_INHERIT by default, which
is the size of a regular button, given that the parent element is a
button. This commit sets the pixel size of the GtkImage to that of the
displayed thumbnail.
|
|
|
|
|
|
| |
This merges some getter functions into one with additional parameters,
so that duplicate code can be avoided. Additionally, this converts
callers to use textures where possible.
|
| |
|
| |
|
| |
|
|
|
|
| |
…instead of connecting to GtkWidget::draw, which has been removed.
|
| |
|
|
|
|
|
| |
Since the addition of a GtkGizmo in GtkPopoverMenu, the content is
already padded by 8 px.
|
|
|
|
| |
It’s no longer actually used.
|
|
|
|
| |
GtkCellRendererPixbuf no longer allows using Cairo surfaces.
|