| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Implement the GtkRoot getter for GtkConstraintSolver.
|
|
|
|
|
| |
They aren't visible, so why should the property
be TRUE?
|
|
|
|
| |
Adapt all callers.
|
| |
|
| |
|
|
|
|
| |
We were showing mnemonics initially, which is not desired.
|
|
|
|
|
| |
No need to special-case this anymore; we can use
a regular event controller in GtkWindow for this.
|
|
|
|
|
| |
No need to special-case this anymore; we can use
a regular event controller in GtkWindow for this.
|
| |
|
|
|
|
|
| |
Change the default.activate action to use the
new action machinery.
|
|
|
|
|
| |
If tab focus falls off the end, and we have an empty headerbar,
we end up with window->focus == NULL. Don't let that happen
|
|
|
|
| |
Move private api into a private header.
|
|\
| |
| |
| |
| | |
Rename GtkGestureMultiPress to GtkGestureClick
See merge request GNOME/gtk!878
|
| |
| |
| |
| |
| | |
The name just made it hard for people to find the
right gesture to use.
|
| |
| |
| |
| | |
Remove an unused variable.
|
| |
| |
| |
| | |
position_constraints_changed is never used.
|
| |
| |
| |
| |
| |
| |
| |
| | |
With gtk_window_set_position gone, we should never
come up with a new position to set in this code.
Leave a warning in place and remove the gdk_surface_move
calls.
|
| |
| |
| |
| |
| | |
gtk_window_constrain_position is not doing anything
anymore, so no need to call it.
|
| |
| |
| |
| | |
need_default_position is never used.
|
| |
| |
| |
| | |
initial_x/y and initial_pos_set are never used.
|
|/
|
|
|
| |
This is heavily using global coordinates, and
can't be guaranteed to work across wms / platforms.
|
|
|
|
| |
This reverts commit 863f4d13ff4b46c55ff2111958ca2629c95caf99.
|
| |
|
|
|
|
|
|
|
|
| |
On Windows that call resizes the native window immediately,
and the corresponding GDK event is emitted and processed
before the control is returned to gtk_window_move_resize().
Therefore, update freeze and configure_request_count increment
must happen before the call, not after it.
|
|
|
|
| |
Avoid priv being flagged as unused on win32.
|
| |
|
|
|
|
|
| |
Replace all uses of gtk_widget_get_surface by
gtk_native_get_surface.
|
|
|
|
|
|
| |
GtkWidgets unrealize accesses the frame clock
of the surface, so we need to keep the surface
in place until after we've chained up.
|
|
|
|
| |
Not used anymore. Only GtkNative's have surfaces.
|
|
|
|
|
|
| |
Drop special-casing of GtkNative in
most widget vfuncs. GtkNative implementations
need to override these anyway.
|
|
|
|
|
| |
These serve no purpose anymore - widgets don't
have surfaces, unless they're a GtkNative.
|
|
|
|
|
|
|
| |
I can't think of a case where this is the desired
behavior. So, instead of setting an explicit cursor
on all popups, just stop walking the parents at
surface boundaries.
|
|
|
|
|
|
|
|
|
|
|
| |
We want to use a gdk_surface_new_popup for popups,
and align the constructor names with the surface
types, so rename
gdk_surface_new_popup -> gdk_surface_new_temp
gdk_surface_new_popup_full -> gdk_surface_new_popup
The temp surface type will disappear eventually.
|
|
|
|
|
| |
The GtkRoot implementations are expected to handle
the necessary surface setup themselves, going forward.
|
| |
|
|
|
|
|
|
|
|
| |
Now that roots can have parent widgets, we need to
carefully examine all calls of gtk_widget_get_toplevel,
and replace them with gtk_widget_get_root if we want
the nearest root, and not the ultimate end of the parent
chain.
|
| |
|
|
|
|
| |
Adapt GtkWindow to implement both GtkRoot and GtkNative.
|
|
|
|
|
| |
The variable would show up as a gcc warning in builds without X11
support.
|
|
|
|
|
|
|
|
|
| |
Commit 3b62d9c027186fe0fddfb9 was a bit overzealous in
removing not just the public API for activating the focus
widget, but also the plumbing needed to make the keybinding
work.
Closes: https://gitlab.gnome.org/GNOME/gtk/issues/1879
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
We had code in gtkwindow.c that generated duplicate,
and defective, focus-change events, in the following
way:
- gtkmain.c generates a chain of focus-change events
for moving focus from one window to another
- gtkwindow.c catches a focus-in event in the middle
of this chain and sets itself as 'active'
- and then it proceeds to generate focus-change
events towards its own focus widget without a
related target
This is not necessary since we gtkmain.c already
generates a complete sequence of focus-change events.
So stop doing it.
|
|
|
|
| |
It is not used outside gtkwindow.c.
|
|
|
|
|
|
|
|
| |
Export gtk_widget_root/unroot privately,
make them work on roots, and use them in
gtk_window_set_display. This gets us to a
single way to listen for display changes,
the root property.
|
|
|
|
|
|
|
|
|
|
|
|
| |
When a modal dialog is smaller than its parent,
we were keeping the resize cursor from the dialogs
edge all over the parent window, which looks
really irritating, since the resize cursors are
closely associated with the window edge. Fix
this by falling back to the default cursor
outside the grab widgets surface.
Closes: https://gitlab.gnome.org/GNOME/gtk/issues/23
|
|
|
|
|
|
|
|
|
| |
Set the cursor on the surface of the target
widget, not the surface of some of its parents.
This does not make a difference currently.
But it will in the future, when we have
parented widgets with surfaces.
|
|
|
|
|
|
| |
It was added at a time when default buttons
had a very large external border that would disrupt
aligment. Not a problem nowadays.
|
|
|
|
| |
Replace gtk_widget_grab_default by gtk_window_set_default_widget.
|
|
|
|
|
| |
This api has been replaced by an action that
can be activated with gtk_widget_activate_action.
|
|
|
|
|
|
|
| |
Activating this action will replace other
activate_default apis. It is more flexible,
since intermediate widgets can intercept the
action and do their own handling.
|
|
|
|
|
|
| |
Call it gtk_window_set_default_widget, to match
the getter, and the property name. Update all
callers.
|