| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is an automated change doing these command:
git sed -f g gtk_widget_set_has_window gtk_widget_set_has_surface
git sed -f g gtk_widget_get_has_window gtk_widget_get_has_surface
git sed -f g gtk_widget_set_parent_window gtk_widget_set_parent_surface
git sed -f g gtk_widget_get_parent_window gtk_widget_get_parent_surface
git sed -f g gtk_widget_set_window gtk_widget_set_surface
git sed -f g gtk_widget_get_window gtk_widget_get_surface
git sed -f g gtk_widget_register_window gtk_widget_register_surface
git sed -f g gtk_widget_unregister_window gtk_widget_unregister_surface
git checkout NEWS*
|
|
|
|
|
|
|
| |
Remove all the old 2.x and 3.x version annotations.
GTK+ 4 is a new start, and from the perspective of a
GTK+ 4 developer all these APIs have been around since
the beginning.
|
|
|
|
| |
We can just use GtkWindow::hide-on-close.
|
|
|
|
|
|
| |
The file chooser button manually manages the memory of
data in its model, so it needs to explicitly free the
rows.
|
|
|
|
|
|
|
| |
The argument is ignored by anything but X11.
It's treated like suggested_action == MOVE.
So do that in gtk_drag_finish(), too.
|
|
|
|
|
|
| |
This is in preparation of using input streams to show that these
coordinates aren't needed most of the time and can otherwise be saved
during GtkWidget::drag-drop.
|
| |
|
|
|
|
| |
It's now called GdkContentsFormat
|
|
|
|
| |
This avoids a bunch of strdups at startup.
|
|
|
|
|
|
|
|
|
| |
Instead of allowing people to pass a uint user-data, insist on them
comparing mime types.
The user data was a uint instead of a pointer anyway, so uniqueness
could not be guaranteed and it caused more issues than it was worth.
And that's ignoring the fact that it basically wasn't used.
|
|
|
|
| |
So define it that way.
|
|
|
|
|
|
|
|
| |
Instead, add a function gtk_image_set_icon_size() for the cases where
overriding the icon size is necessary.
Treat icon sizes the same way as pixel sizes, too. So gtk_image_clear()
no longer unsets the icon size.
|
|
|
|
|
| |
This gets rid of GtkTargetEntry in the API and consistently uses
GtkTargetList.
|
|
|
|
| |
This lets use avoid much of the symbolic icon rendering api.
|
|
|
|
| |
All widgets always have a screen (or display).
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch makes that work using 1 of 2 options:
1. Add all missing enums to the switch statement
or
2. Cast the switch argument to a uint to avoid having to do that (mostly
for GdkEventType).
I even found a bug while doing that: clearing a GtkImage with a surface
did not notify thae surface property.
The reason for enabling this flag even though it is tedious at times is
that it is very useful when adding values to an enum, because it makes
GTK immediately warn about all the switch statements where this enum is
relevant.
And I expect changes to enums to be frequent during the GTK4 development
cycle.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Since setting a clip is mandatory for almost all widgets, we can as well
change the size-allocate signature to include a out_clip parameter, just
like GtkCssGadget did. And since we now always propagate baselines, we
might as well pass that one on to size-allocate.
This way we can also make sure to transform the clip returned from
size-allocate to parent-coordinates, i.e. the same coordinate space
priv->allocation is in.
|
| |
|
| |
|
|
|
|
| |
Otherwise we're not setting an allocation at all.
|
| |
|
| |
|
|
|
|
|
| |
Instead of subclassing GtkBox to have 2 child widgets, subclass
GtkWidget and only render one of them.
|
| |
|
| |
|
|
|
|
| |
Move the icon size lookup API into gtkicontheme.c
|
|
|
|
|
| |
glib will use the correct marshaller automatically. And as a side
effect, we also get all glib optimizations, like a va marshaller.
|
|
|
|
|
| |
We deprecated a bunch of _focus_on_click() functions. Point to the new API
in GtkWidget.
|
|
|
|
|
|
| |
This follows what was done for GtkDragSource in
415030d25f2552d3937ee3c394c50d22c5382982 and shaves another
500 lines off gtkdnd.c.
|
|
|
|
| |
This lets us differentiate the main node from regular boxes.
|
|
|
|
|
|
| |
This widget is a bit unusual in that it is a box that acts as
the drop target, while the visible content is a child of the box.
Propagate :drop(active) to the child to make the highlight visible.
|
| |
|
|
|
|
|
| |
No need to look at the settings when the CSS has a property for the icon
theme.
|
|
|
|
|
|
|
| |
Its very easy to get extra references to the NativeDialog so that
when you release your last reference any visible dialog is not
hidden. We handle this by adding a destroy method similar to how
you destroy regular toplevels.
|
|
|
|
|
| |
Unless you explicitly set the dialog constructor property we use a
native dialog (GtkFileChooserNative).
|
| |
|
|
|
|
|
|
|
|
|
| |
The differences between the existing properties and the newly added
GtkWidget:focus-on-click property are minimal (different owner_type
in GParamSpec), so it is extremely unlikely that dropping the former
would break anything.
https://bugzilla.gnome.org/show_bug.cgi?id=757269
|
|
|
|
|
|
| |
Following a similar change in GLib a while ago.
'bla' may by stupid, but it looks less dumb than `bla'.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
GtkFileSystem has a complicated way to handle cancellables.
You keep the cancellable pointer that is returned by
_gtk_file_system_get_info and similar methods so that you can
cancel the operation, but you do not own a reference to it.
The only place where it is ok to unref a cancellable is in
your callback, which gets handed a cancellable that you need
to unref at the end. You are expected to compare it to the
pointer you stashed away to find out if the operation has
already been superseded by a newer call, in which case you
disregard the results.
GtkFileChooserButton was following these rules for most of
the cancellables it keeps around, but it was sometimes unreffing
the cancellables that are stored in the model, which could lead
to refcount confusion and crashes. This commit makes it follow
the rules for that case too, which fixes the crash in the bug
below, and does not show up any leaks in valgrind under light
testing.
https://bugzilla.gnome.org/show_bug.cgi?id=737804
|
|
|
|
|
|
| |
Use g_slist_free_full more consistently. This commit just converts
the obvious cases where g_slist_forall is directly followed by
g_slist_free.
|
|
|
|
|
|
|
|
|
|
|
| |
They were updated in style-changed, causing the label to get set to
(None), then to the actual file name again a frame later, both of the
updates cause the GtkFileChooserButton to resize, possibly to the
minimal width, causing the layout to jump. Fix this by only updating
icon/label in style-updated when the icon theme actually changed, which
is the only case we care about here.
https://bugzilla.gnome.org/show_bug.cgi?id=752509
|
|
|
|
| |
"if (...) do" just looks wrong.
|
|
|
|
|
|
| |
Update the button contents when accepting a drop.
https://bugzilla.gnome.org/show_bug.cgi?id=743451
|
|
|
|
|
| |
Rearrange a few lines to help xgettext avoid picking up the
long description of GtkFileChooserButton as translator comment.
|
|
|
|
| |
Use the newer constructed instead, which has a fast path in GObject.
|
| |
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=730745
|