Benjamin Otte
5db1aa5401
treeview: Fix RTL column header allocation
2017-11-12 05:37:06 +01:00
Benjamin Otte
48de0bf741
treeview: width_changed is always true, so remove it
...
Also, sanitize the RTL correction code that made sure resizing the width
of a treeview would keep the contents glued to the right border instead
of the left border.
2017-11-12 05:31:21 +01:00
Matthias Clasen
7839e0d7d5
x11: Fix a crash
...
This was crashing the moment a second window is opened.
2017-11-11 12:07:11 -05:00
Matthias Clasen
f40b3bc5bc
Fix up managed dnd
...
Since commit 6c56d04cee
,
we were doing some calls twice in the managed dnd case,
leading to double drops.
2017-11-11 07:50:11 -05:00
Benjamin Otte
af13d474e8
textview: Remove GDK windows
2017-11-11 05:37:37 +01:00
Benjamin Otte
26909ee913
textview: Simplify gtk_text_view_buffer_to_window_coords()
...
... and gtk_text_view_window_to_buffer_coords()
2017-11-11 05:25:22 +01:00
Benjamin Otte
2533ad723a
textview: Use text_window_get_width()/height()
...
Instead of poking the GdkWindow. They have the same size after all.
2017-11-11 05:12:07 +01:00
Benjamin Otte
17600b6bab
textview: Make the semi-private headrs really private
...
Rename the files to have the private.h ending.
And remove gtktextdisplay.h from the installed files.
2017-11-11 05:01:31 +01:00
Benjamin Otte
d18b10a3d7
textview: Store border window sizes in a custom struct
...
That way, we don't need to have a GtKRequisition in every TextWindow.
2017-11-11 04:30:00 +01:00
Benjamin Otte
d65d5d0a84
gtktexttag: Remove GtkTextTag::event and gtk_text_tag_event()
...
GtkSourceView is not using it, so it's unneeded. And it's certainly
diving deep into event internals of GtkTextView which hinders a proper
gesturization.
2017-11-11 04:25:11 +01:00
Benjamin Otte
52424d8640
textview: Hide the selection bubble better
...
The selection bubble is not part of the text windows, so hiding it
during scroll should not be done in the text window code.
Also remove an unused variable that was only set in that code but never
read.
2017-11-11 02:49:08 +01:00
Benjamin Otte
e9dd5f327f
flowbox: Compute view box from correct variables
2017-11-11 02:49:08 +01:00
Matthias Clasen
12837f6905
Drop the last use of GDK_MULTIHEAD_SAFE
...
This define is not used anymore, this was a leftover.
2017-11-10 16:14:19 -05:00
Kjell Ahlstedt
b0d1ae4a5c
GtkCssImageIconTheme: Don't try to unref a NULL pointer
...
In gtk_css_image_icon_theme_snapshot(), don't try to unref icon_info
if it's NULL.
https://bugzilla.gnome.org/show_bug.cgi?id=790171
2017-11-10 16:48:30 +01:00
Benjamin Otte
1da8c1b27f
rendericon: Add missing include
2017-11-10 15:04:13 +01:00
Benjamin Otte
5b94fe6342
stylecontext: Make first property name explicit
...
Insist that a first non-NULL property is passed to
gtk_style_context_get().
This is in particular relevant because of dropping the state argument
since GTK3, and code like
gtk_style_context_get (context, state, "font", &font);
would keep compiling without warnings without this change.
2017-11-10 14:56:42 +01:00
Benjamin Otte
51c5ccf412
a11y: Report correct spinner size
2017-11-10 14:56:42 +01:00
Benjamin Otte
723bf44887
calendar: Fix for GTK4 changes
2017-11-10 14:56:42 +01:00
Benjamin Otte
f4e1a2b849
testgtk: Draw the right area in alpha window test
...
Even broken stuff is easier now.
2017-11-10 14:56:42 +01:00
Benjamin Otte
3f7ada506e
examples: Use right function to query size
2017-11-10 14:56:42 +01:00
Benjamin Otte
2ff5038b09
testgtk: Fix some more old drawing area uses
2017-11-10 14:56:42 +01:00
Benjamin Otte
2620323fac
tests: After 20 years, update the simple test to modern GTK
...
It's 3 lines shorter!
And it works again!
2017-11-10 14:56:42 +01:00
Benjamin Otte
93c42bcbe0
testgtk: Fix rotated text demo
...
Use proper DrawingArea APIs here.
2017-11-10 14:56:42 +01:00
Matthias Clasen
bdb442be21
x11: Reduce uses of the root window
...
Avoid calling the get_root_window api that returns
a GdkWindow in some places, and instead use the X
root window directly.
2017-11-09 22:52:37 -05:00
Matthias Clasen
2aa52c7d00
Simplify the gtk_snapshot_icon_texture API
...
Instead of passing the color matrix in from the outside,
just pass a boolean and set up the matrix internally.
2017-11-08 22:21:42 -05:00
Matthias Clasen
7aa236fbb2
Fix a compiler warning
2017-11-08 22:09:34 -05:00
Matthias Clasen
a381ee6a55
Fix a typo
2017-11-08 22:09:23 -05:00
Matthias Clasen
23162bf0de
filesystem: Drop surface-based APIs
...
These are no longer used.
2017-11-08 21:56:28 -05:00
Matthias Clasen
8460034f58
filechooserwidget: Use GIcons
...
This lets us avoid much of the symbolic icon rendering api.
2017-11-08 21:56:28 -05:00
Matthias Clasen
9aba7e3aa7
filechooserbutton: Use GIcons
...
This lets use avoid much of the symbolic icon rendering api.
2017-11-08 21:56:28 -05:00
Matthias Clasen
4148795c8b
filesystem: Add GIcon getters
...
We want to move away from surfaces, and instead pass
GIcons and GdkTextures around.
2017-11-08 21:56:28 -05:00
Chun-wei Fan
c06b1cc103
Win32: Re-work cursor handling
...
Like the X11 and Wayland backends, re-work how the cursors are being
handled. So, we use a hash table to cache up the HCURSORS that we
create along the way.
We still need to cache up the icon/cursor themes since this is something
that is not part of Windows but was added on to support icon/cursor themes
such as Adwaita on Windows, but should be in-line with what is going on in
GdkCursor.
Also, remove the _gdk_grab_cursor global variable in gdkprivate-win32.h,
and replace it with another variable in the GdkWin32Display structure,
to make things cleaner in the process.
https://bugzilla.gnome.org/show_bug.cgi?id=773299
2017-11-09 08:30:09 +08:00
Matthias Clasen
c83665005a
Use color matrices for -gtk-recolor
...
Use the same approach we take for recoloring in GtkIconHelper now.
As part of this change, GtkCsSImageRecolor is changed to not derive
from GtkCssImageUrl anymore.
2017-11-08 10:04:38 -05:00
Daniel Boles
6f54e1fc6d
CssProvider: Fix doc of min theme version loaded
...
The code shows that we only load back to 4.0, but this still said 3.0.
2017-11-08 09:22:49 +00:00
Daniel Boles
6a9c14b2fa
CssProvider: Use consistent theme name placeholder
...
commit 475d916eb9
added various paths that
use theme-name for this, but the existing path already used THEME, with
a subsequent description referring to the latter. So use that everywhere
2017-11-08 09:22:46 +00:00
Matthias Clasen
6e4f7ad857
Fix the build
2017-11-08 00:37:04 -05:00
Matthias Clasen
acf58063a7
css image: Use GdkTexture api directly
...
No need to load a pixbuf anymore, we can just
directly create textures.
2017-11-07 23:04:36 -05:00
Matthias Clasen
44a3f6bb41
css: Use a color matrix for recoloring -gtk-icontheme
...
This is the same approach we are already using in
GtkIconHelper.
2017-11-07 21:39:47 -05:00
Matthias Clasen
1da7dc890c
Make the recoloring code more robust
...
Pass both width+height and scale, so we can handle the case
where width+height are zero and we are using the file, scaled.
2017-11-07 21:27:38 -05:00
Matthias Clasen
6ebd2d384b
fix the build
2017-11-07 19:56:11 -05:00
Matthias Clasen
284fd36e5d
Fix symbolic.svg rendering
...
With the shader approach to symbolic recoloring, we must
not recolor the svgs anymore as we're loading them. Instead,
load them the same way that gtk-encode-symbolic-svg does.
This fixes the rendering of large symbolic icons e.g. the
'no search results found' page in the file chooser.
2017-11-07 18:56:32 -05:00
Matthias Clasen
73a3d4b785
wayland: Drop an unused function
...
We no longer create a root window, so need to have
a function for it.
2017-11-07 07:43:09 -05:00
Benjamin Otte
2177b191ba
x11: Correctly set icons
...
X11 obviously doesn't use 4 bytes for a 4 bytes pixel. Rather, it uses
unsigned long, which happens to be 8 bytes these days.
2017-11-07 12:24:43 +01:00
Matthias Clasen
efd86912f0
broadway: Drop the root window
...
We already have a list of toplevels, so we don't
need the root window for this.
2017-11-06 21:51:30 -05:00
Matthias Clasen
6261f5f7b8
wayland: Drop the root window
...
We can just keep a list of toplevels in the display.
2017-11-06 18:52:37 -05:00
Marek Cernocky
f94002fedb
Updated Czech translation
2017-11-06 21:04:50 +01:00
Matthias Clasen
20fab69c38
Drop gdk_display_get_root_window
...
This is no longer used.
2017-11-05 21:45:51 -05:00
Matthias Clasen
063db3630b
x11: Stop using gdk_display_get_root_window
...
Use the backend api for this.
2017-11-05 21:45:51 -05:00
Matthias Clasen
5db2352eba
x11: Make gdk_x11_display_get_root_window available
...
This will replace the frontend api of the same name.
2017-11-05 21:45:51 -05:00
Matthias Clasen
c1c919cf7d
win32: Stop using gdk_display_get_root_window
...
Use the newly introduced backend api for this purpose.
2017-11-05 21:45:51 -05:00