Matthias Clasen
e21a7d70f1
window: Set shadow size in ::compute-size
...
This is the new way of communicating shadow size.
2020-08-12 08:00:34 -04:00
Matthias Clasen
bc05b0bba5
wayland: Use shadow size from GdkToplevelSize
2020-08-12 08:00:11 -04:00
Matthias Clasen
ece755ff62
toplevelsize: Add shadow size
...
Setting the shadow together with the size makes
sense, since the shadow is needed to make sense
of the size.
2020-08-12 07:59:16 -04:00
Matthias Clasen
8c1a99214f
Revert "gridview: Work around unexpected focus changes"
...
This reverts commit c13d70479b
.
2020-08-08 17:26:39 -04:00
Matthias Clasen
8ce83d03af
window: Allocate on map
...
We normally wait for the surface ::size-changed signal,
but then we only queue a resize, which is not sufficient
on map - we need to have an allocation by the time start
moving focus around in show. So, call check_resize()
right away.
2020-08-08 17:26:39 -04:00
Matthias Clasen
29c83ef0b9
window: Some more renaming
...
Rename gtk_window_compute_configure_request
to gtk_window_compute_size and hints_changed
to min_size_changed.
2020-08-08 15:22:03 -04:00
Matthias Clasen
7def3bf542
window: Get rid of GdkGeometry uses
...
Instead, store a min size in the Private struct.
2020-08-08 15:22:03 -04:00
Matthias Clasen
6d855c307b
window: Some renaming
...
Rename gtk_window_move_resize to gtk_window_do_resize
(no moving involved anymore), rename configure_notify_received
to need_resize and replace gtk_window_guess_default_size
by gtk_window_compute_default_size.
2020-08-08 15:22:03 -04:00
Matthias Clasen
baf05d816a
window: Fix some issues in ::compute-size
...
gtk_window_compute_default_size was unsetting
need_default_size, before we were checking that
flag in toplevel_compute_size.
2020-08-08 15:22:03 -04:00
Matthias Clasen
490bfce319
window: Drop some dead code
...
We always set a min size
2020-08-08 15:22:03 -04:00
Matthias Clasen
a27fef3a27
window: Stop using gdk_surface_constrain_size
2020-08-08 15:22:03 -04:00
Matthias Clasen
294d45f0c7
window: Drop an unused argument
2020-08-08 15:22:03 -04:00
Matthias Clasen
1d068da0c9
window: Move the last size into the Private struct
2020-08-08 15:22:03 -04:00
Matthias Clasen
109c48a082
window: Move resize size into the Private struct
...
Another step towards getting rid of GdkGeometry here.
2020-08-08 15:22:03 -04:00
Matthias Clasen
21e730003a
window: Move default size into the Private struct
...
This is a step towards getting rid of GdkGeometry
use here.
2020-08-08 15:22:03 -04:00
Matthias Clasen
55b77278f2
window: Move icon info into the Private struct
...
No need to use object data for this.
2020-08-08 15:22:03 -04:00
Matthias Clasen
b62802b52f
window: Stop handling positions
...
We don't do positions anymore, time to stop trying.
2020-08-08 15:22:03 -04:00
Matthias Clasen
2ba9c35195
window: Stop counting ConfigureRequests
...
Stop counting configure reuqests and stop freezing
the surface ourselves. The backend should do that
if it wants to.
2020-08-08 15:22:03 -04:00
Matthias Clasen
bbb8c04323
wayland: bypass events for ::size-changed
...
This is a step towards getting rid of configure
events altogether.
2020-08-08 15:22:03 -04:00
Matthias Clasen
89a15f6d03
wayland: Don't emit premature configure events
...
We should not emit configure events before we
are realized - size changes at this point are
not relevant.
This gets rid of a mysterious emission of
GdkSurface::size-changed (52, 52), that is happening
when GtkWindow sets the shadow_width before the window
is mapped.
2020-08-08 15:22:03 -04:00
Matthias Clasen
16a7197586
bookmarksmanager: Load bookmarks initially
...
This was broken in 1e6171a4a7
.
2020-08-08 13:56:17 -04:00
Matthias Clasen
4f5e3b7b0d
gtk-demo: Improve an error message
...
Be more helpful when we can't do syntax highlighting.
2020-08-08 13:56:17 -04:00
Matthias Clasen
d1d269ea6b
Merge branch 'patch-1' into 'master'
...
Correct typos in gtktextbtree.c
See merge request GNOME/gtk!2413
2020-08-08 17:05:25 +00:00
Matthias Clasen
3d807f4b00
Merge branch 'matthiasc/for-master' into 'master'
...
Matthiasc/for master
Closes #3047 , #3034 , #3038 , and #3036
See merge request GNOME/gtk!2416
2020-08-08 16:27:27 +00:00
Matthias Clasen
9654fff6e0
Merge branch 'scroll-to-cursor' into 'master'
...
Scroll to cursor after canceling a selection
Closes #2960
See merge request GNOME/gtk!2321
2020-08-08 16:18:19 +00:00
Matthias Clasen
8a67899e0f
bookmarksmanager: Ignore delete events
...
Surpisingly, when a monitored file gets atomically replaced
with g_file_set_contents(), the file monitor reports a
DELETED event for the temp file, which is not the file
I'm monitoring.
Just ignore DELETED events.
Fixes : #3036
2020-08-08 11:48:32 -04:00
Matthias Clasen
bb30a23004
x11: Fix getting the primary monitor
...
Actually return the primary monitor.
Fixes : #3038
2020-08-08 11:48:32 -04:00
Matthias Clasen
3faa7feb7c
label: Disable unavailable actions
...
Fixes : #3034
2020-08-08 11:48:32 -04:00
Matthias Clasen
d099276b89
printeditor: Create the dialog every time
...
Trying to work around gtk_show_about_dialog() is
not worth it, just recreate the dialog from scratch.
2020-08-08 11:48:32 -04:00
Matthias Clasen
56afa05b97
widgetfactory: Create the dialog every time
...
Trying to work around gtk_show_about_dialog() is
not worth it, just recreate the dialog from scratch.
Fixes : #3047
2020-08-08 11:48:32 -04:00
Matthias Clasen
c6fdfeae7e
about dialog: remove unnecessary guards
...
We decided to undeprecate gtk_window_present,
so no deprecation guards needed.
2020-08-08 11:48:32 -04:00
Matthias Clasen
8725fd308b
Merge branch 'surface-size' into 'master'
...
Surface size
See merge request GNOME/gtk!2415
2020-08-08 14:44:52 +00:00
Emmanuele Bassi
c40e23bde6
Merge branch 'wip/smcv/cloudprint-redundant-decls' into 'master'
...
cloudprint: Fix redundant declarations
See merge request GNOME/gtk!2414
2020-08-08 13:59:37 +00:00
Simon McVittie
afcb9c0e63
cloudprint: Fix redundant declarations
...
G_DEFINE_DYNAMIC_TYPE declares these functions as static, and
-Werror=redundant-decls won't let us redeclare them. This is the
equivalent of 72c72d0b
, but for a different backend.
Signed-off-by: Simon McVittie <smcv@debian.org >
2020-08-08 14:24:31 +01:00
Matthias Clasen
fd1033f974
surface: Add width and height properties
2020-08-08 09:24:30 -04:00
Matthias Clasen
16505a4d1e
gdk: Move the ::popup-layout-changed signal
...
Move this signal from GdkSurface to GtkPopup,
where it belongs.
2020-08-08 09:24:30 -04:00
Piotr Drąg
a1ec68422f
Update POTFILES.in and POTFILES.skip
2020-08-08 13:07:18 +02:00
Felix Yan
f8060b859d
Correct typos in gtktextbtree.c
2020-08-08 09:29:08 +00:00
Matthias Clasen
0c0ced1374
Merge branch 'activatable-colorswatch-style' into 'master'
...
Adwaita: Limit color swatch's hover effect to .activatable
See merge request GNOME/gtk!2411
2020-08-08 03:09:30 +00:00
Matthias Clasen
bfd8c5383f
Merge branch 'wip/chergert/popover-offset' into 'master'
...
popover: allow setting popup layout offset
See merge request GNOME/gtk!2412
2020-08-08 02:41:04 +00:00
Christian Hergert
4d88e3af17
popover: allow setting popup layout offset
...
Currently there is no way to alter the offset of the popup when positioning
with GdkPopupLayout. This makes using the popup difficult for scenarios
like completion windows where you may need to offset the window by a given
amount for aligning text.
gtk_popover_set_offset() allows setting these values and are analagous to
the function of the same name for GdkPopupLayout.
2020-08-07 17:10:52 -07:00
nana-4
b694771728
colorbutton: Remove .activatable style class from the color swatch
...
The button itself is activatable, but its color swatch is not.
2020-08-08 08:37:33 +09:00
nana-4
51d6ec5131
Adwaita: Limit color swatch's hover effect to .activatable
...
Non-activatable color swatches shouldn't have the interactive effect.
2020-08-08 08:33:38 +09:00
Efstathios Iosifidis
7625ccd6fa
Update Greek translation
2020-08-07 20:41:27 +00:00
Matthias Clasen
95e2a2b4b3
Merge branch 'leak-fixes' into 'master'
...
Leak fixes
See merge request GNOME/gtk!2406
2020-08-07 20:29:02 +00:00
Matthias Clasen
4e774eddb9
Merge branch 'wip/chergert/fix-textview-yrange-invalidation' into 'master'
...
linedisplaycache: improve invalidation with y_range
See merge request GNOME/gtk!2407
2020-08-07 20:17:22 +00:00
Christian Hergert
35325ea11a
linedisplaycache: improve invalidation with y_range
...
When we invalidate a y_range using the common pattern of y==0 and
old_height==new_height, we are generally invalidating the entire buffer.
This short-circuits that case to just invalidate the buffer in a faster
and more complete form. The problem here appears to be that we can't
always calculate the ranges properly to invalidate because validation
has not run far enough.
2020-08-07 12:44:26 -07:00
Matthias Clasen
5673310364
textbuffer: Fix a leak
...
gtk_text_buffer_insert_markup was leaking all the tags
that it inserts.
2020-08-07 15:26:11 -04:00
Matthias Clasen
2d72ba21ce
gtk-demo: Don't leak the markup
2020-08-07 15:19:33 -04:00
Matthias Clasen
e0786a4a00
gtk-demo: Fix a memory leak
...
The colors demo was leaking a reference to its model.
This was showing up as crash when you manage to close
both the demo window and the main window while the
sorting is ongoing.
2020-08-07 15:15:18 -04:00