Emmanuele Bassi
b997f4c575
gtk: Use GskRenderNode to render widgets
...
We need a virtual function to retrieve the GskRenderNode for each
widget, which is supposed to attach its own children's GskRenderNodes.
Additionally, we want to maintain the existing GtkWidget::draw mechanism
for widgets that do not implement get_render_node() — as well as widgets
that have handlers connected to the ::draw signal.
2016-10-18 11:49:06 +01:00
Emmanuele Bassi
258af60c18
gtk: Add a GskRenderer to GtkWindow
...
Each top-level should have its own GskRenderer, to be used when drawing
the render node tree.
2016-10-18 11:49:06 +01:00
Emmanuele Bassi
0e2a87a4bc
build: Add GSK deps to GTK
2016-10-18 11:29:34 +01:00
Emmanuele Bassi
3fb413beea
label: Avoid shadowing variables
2016-10-18 11:29:34 +01:00
Timm Bäder
4384628afb
Remove GtkAction
2016-10-18 00:34:41 +02:00
Timm Bäder
ead36206a3
Remove GtkActionGroup
2016-10-18 00:34:41 +02:00
Timm Bäder
a864f4d474
widget: Not all toplevels are also containers
2016-10-18 00:34:41 +02:00
Timm Bäder
f7d22fec7b
Remove GtkRecentAction
2016-10-18 00:34:41 +02:00
Timm Bäder
d963ede668
Remove GtkUIManager
2016-10-18 00:34:41 +02:00
Timm Bäder
62b2949fa2
Remove GtkActivatable
2016-10-18 00:34:41 +02:00
Timm Bäder
a8a2588cab
recentchooser: Stop implementing GtkActivatable
2016-10-18 00:34:41 +02:00
Timm Bäder
d0c087be37
recentchooserdefault: Stop implementing GtkActivatable
2016-10-18 00:34:40 +02:00
Timm Bäder
0c7d091651
toolitem: Stop implementing GtkActivatable
2016-10-18 00:34:40 +02:00
Timm Bäder
41f5d3b14c
Remove GtkToggleAction
2016-10-18 00:34:40 +02:00
Timm Bäder
53ab8eb46d
Remove GtkRadioAction
2016-10-18 00:34:40 +02:00
Timm Bäder
bc7206d70f
Remove GtkStock
2016-10-18 00:29:20 +02:00
Timm Bäder
cf56decbb4
infobar: Stop looking at stock items
...
GtkButton doesn't have a use-stock property anymore anyway.
2016-10-18 00:29:20 +02:00
Timm Bäder
301e1a4d55
window: Remove decoration-button-layout style property
...
GtkSettings has a gtk-decoration-layout property for this.
2016-10-18 00:29:20 +02:00
Timm Bäder
7823406db4
window: Remove decoration-resize-handle style property
2016-10-18 00:29:20 +02:00
Timm Bäder
4bf1e4ebe6
toolbar: Remove max-child-expand child property
2016-10-18 00:29:20 +02:00
Timm Bäder
dece018994
Remove GtkAlignment
2016-10-18 00:29:19 +02:00
Timm Bäder
e0d50233f6
gtkapplication: Remove deprecated API
2016-10-18 00:29:19 +02:00
Timm Bäder
700300eb81
treeview: Remove deprecated adjustment API
2016-10-18 00:29:19 +02:00
Timm Bäder
d5e3897052
combobox: Remove deprecated API
2016-10-18 00:29:19 +02:00
Timm Bäder
3ad624d6c0
adjustment: Remove deprecated API
2016-10-18 00:29:19 +02:00
Timm Bäder
b65908da3e
menutoolbutton: Remove deprecated API
2016-10-18 00:29:19 +02:00
Timm Bäder
3573cdc0cd
popover: Remove deprecated API
2016-10-18 00:29:19 +02:00
Timm Bäder
d9a3afb059
range: Remove unused class struct members
2016-10-18 00:29:19 +02:00
Timm Bäder
2a07ee2dac
filechooserbutton: Remove deprecated API
2016-10-18 00:29:19 +02:00
Timm Bäder
1b2f291c1d
messagedialog: Remove deprecated API
2016-10-18 00:29:19 +02:00
Timm Bäder
be2f19663b
button: Add icon-name property
...
Remove the old-style button construction that allowed to show both an
icon and a label and change visibility based on a GtkSetting.
2016-10-18 00:29:19 +02:00
Timm Bäder
e9a974f4f6
buttonaccessible: Stop looking at the button's image
2016-10-18 00:29:19 +02:00
Timm Bäder
24866c5d12
radiomenuitem: Remove GtkActivatable code
2016-10-18 00:29:18 +02:00
Timm Bäder
efe4a36746
toolbutton: Stop implementing GtkActivatable
2016-10-18 00:29:18 +02:00
Timm Bäder
dd03372eac
switch: Stop implementing GtkActivatable
2016-10-18 00:29:18 +02:00
Timm Bäder
8cafd3c5a7
menuitem: Stop implementing GtkActivatable
2016-10-18 00:29:18 +02:00
Timm Bäder
d844abe066
Remove GtkTable
2016-10-18 00:29:18 +02:00
Timm Bäder
b082fb598d
gtkwindow: Stop checking gtk-menu-bar-accel
2016-10-18 00:29:18 +02:00
Timm Bäder
7e16396cc5
button: Stop implementing GtkActivatable
2016-10-18 00:29:18 +02:00
Timm Bäder
05211d200f
button: Stop checking for GtkSettings:gtk-button-images setting
2016-10-18 00:29:18 +02:00
Timm Bäder
a9367b705e
Stop checking GtkSettings:gtk-enable-mnemonics
2016-10-18 00:29:18 +02:00
Timm Bäder
dd3c3b683f
widget: Remove push/pop_composite_child
...
as well as the composite-child property
2016-10-18 00:29:18 +02:00
Timm Bäder
2ae996e242
widget: Remove gtk_widget_get_pointer
2016-10-18 00:29:18 +02:00
Timm Bäder
5da7a824ff
widget: Remove docs for style-set
2016-10-18 00:29:18 +02:00
Timm Bäder
a4368a73a5
widget: Remove gtk_widget_reparent
2016-10-18 00:29:17 +02:00
Timm Bäder
296db5ab52
scrollbar: Remove style property
2016-10-18 00:29:17 +02:00
Timm Bäder
0a6ed12d56
builtinicon: remove unused struct member
2016-10-18 00:29:17 +02:00
Timm Bäder
ac72d96a8a
menuitem: Remove right-justify
2016-10-18 00:29:17 +02:00
Timm Bäder
203cf0d120
label: Stop using GdkColor
2016-10-18 00:29:17 +02:00
Timm Bäder
57f4fead98
cellrenderer: Remove cell-background-gdk
2016-10-18 00:29:17 +02:00
Timm Bäder
31cf2e3bf5
gtksettings: Remove Deprecated API
2016-10-18 00:29:17 +02:00
Timm Bäder
77f50ec5d7
window: Remove reshow_with_initial_size
2016-10-18 00:29:17 +02:00
Timm Bäder
019960f131
viewport: remove deprecated api
2016-10-18 00:29:17 +02:00
Timm Bäder
09214e4974
gtkdnd: Remove gtk_drag_begin
2016-10-18 00:29:17 +02:00
Timm Bäder
feb8975a4b
gtkmain: Remove deprecated key snooper API
2016-10-18 00:29:17 +02:00
Timm Bäder
7b22037613
treeview: Remove unused style properties
2016-10-18 00:29:16 +02:00
Timm Bäder
7d47d8023e
bbox: Remove style properties
2016-10-18 00:29:16 +02:00
Timm Bäder
84649f57c5
gtkdialog: Remove style properties
2016-10-18 00:29:16 +02:00
Timm Bäder
99f112f58d
colorbutton: Remove deprecated API
2016-10-18 00:29:16 +02:00
Timm Bäder
7d84f744c2
menu: Remove vertical/horizontal-offset style properties
2016-10-18 00:29:16 +02:00
Timm Bäder
b88a0bb682
notebook: Remove deprecated public API
2016-10-18 00:29:16 +02:00
Timm Bäder
4f9bcaf3c6
toolbar: Remove button-relief style property
...
And in turn also public API to set the button relief on the toolbar as
well as the vfunc from GtkToolShell.
2016-10-18 00:29:16 +02:00
Timm Bäder
d56962740d
textview: Remove error-underline-color style property
2016-10-18 00:29:16 +02:00
Timm Bäder
33a857decf
toolbutton: Remove icon-spacing style property
2016-10-18 00:29:16 +02:00
Benjamin Otte
cd90b56627
separatortoolitem: Use gdk_window_new_input()
2016-10-18 00:22:35 +02:00
Benjamin Otte
4ab85723c8
spinbutton: Use gdk_window_new_input()
2016-10-18 00:22:35 +02:00
Benjamin Otte
cd8b08f98f
switch: Use gdk_window_new_input()
2016-10-18 00:22:35 +02:00
Benjamin Otte
e5b67ff7d8
pathbar: Use gdk_window_new_input()
2016-10-18 00:22:35 +02:00
Benjamin Otte
978684cf29
paned: Use gdk_window_new_child() and gdk_window_new_input()
2016-10-18 00:22:35 +02:00
Benjamin Otte
c78568b4dd
notebook: Use gdk_window_new_child() and gdk_window_new_input()
2016-10-18 00:22:35 +02:00
Benjamin Otte
c599f6b9cb
menu: Use gdk_window_new_child()
2016-10-18 00:22:35 +02:00
Benjamin Otte
5d3f6367cb
layout: Use gdk_window_new_child()
2016-10-18 00:22:35 +02:00
Benjamin Otte
3fc32511b5
iconview: Use gdk_window_new_child()
2016-10-18 00:22:35 +02:00
Benjamin Otte
9127e49f45
toolitemgroup: Use gdk_window_new_child()
2016-10-18 00:22:35 +02:00
Benjamin Otte
ac79aed338
toolitem: Use gdk_window_new_input()
2016-10-18 00:22:35 +02:00
Benjamin Otte
5e8c719e34
toolbar: Use gdk_window_new_input()
2016-10-18 00:22:35 +02:00
Benjamin Otte
6a399ebd15
popover: Use gdk_window_new_child()
2016-10-18 00:22:35 +02:00
Benjamin Otte
a839e195a8
menushell: Use gdk_window_new_child()
2016-10-18 00:22:35 +02:00
Benjamin Otte
360301a774
label: Use gdk_window_new_input()
2016-10-18 00:22:35 +02:00
Benjamin Otte
6117f042a8
menuitem: Use gdk_window_new_input()
2016-10-18 00:22:35 +02:00
Benjamin Otte
c3274eff6e
overlay: Use gdk_window_new_child()
2016-10-18 00:22:35 +02:00
Benjamin Otte
f8a48507a6
listbox: Use gdk_window_new_child()
2016-10-18 00:22:35 +02:00
Benjamin Otte
1c6a879e1c
flowbox: Use gdk_window_new_child()
2016-10-18 00:22:35 +02:00
Benjamin Otte
a2a23ee337
fixed: Use gdk_window_new_child()
2016-10-18 00:22:35 +02:00
Benjamin Otte
e54a76aee7
scrolledwindow: Use gdk_window_new_child()
2016-10-18 00:22:35 +02:00
Benjamin Otte
73ef9e1438
revealer: Use gdk_window_new_child()
2016-10-18 00:22:35 +02:00
Benjamin Otte
edc9a08b7c
stack: Use gdk_window_new_child()
2016-10-18 00:22:35 +02:00
Benjamin Otte
210e1665de
textview: Use gdk_window_new_child()
2016-10-18 00:22:35 +02:00
Benjamin Otte
3cf7b21256
viewport: Use gdk_window_new_child()
2016-10-18 00:22:35 +02:00
Benjamin Otte
d6eedf19dc
toolpalette: Use gdk_window_new_child()
2016-10-18 00:22:35 +02:00
Benjamin Otte
7dceaf5931
glarea: Use gdk_window_new_input()
2016-10-18 00:22:35 +02:00
Benjamin Otte
46b10ca419
expander: Use gdk_window_new_input()
2016-10-18 00:22:35 +02:00
Benjamin Otte
a8d7b0d32e
window: Use gdk_window_new_child() and gdk_window_new_input()
2016-10-18 00:22:35 +02:00
Benjamin Otte
8417ecd602
treeviewcolumn: Use gdk_window_new_input()
2016-10-18 00:22:35 +02:00
Benjamin Otte
b17bdbdf97
treeview: Use gdk_window_new_child()
2016-10-18 00:22:35 +02:00
Benjamin Otte
1952b57328
eventbox: Use gdk_window_new_input() and gdk_window_new_child()
2016-10-18 00:22:35 +02:00
Benjamin Otte
c61e669e56
entry: Use gdk_window_new_input()
2016-10-18 00:22:35 +02:00
Benjamin Otte
9d2309cc39
drawingarea: Use gdk_window_new_child()
2016-10-18 00:22:35 +02:00
Benjamin Otte
0f2d983ea9
colorswatch: Use gdk_window_new_input()
2016-10-18 00:22:35 +02:00
Benjamin Otte
4b92c0bb88
calendar: Use gdk_window_new_input()
2016-10-18 00:22:35 +02:00
Benjamin Otte
31b5ba5bad
button: Use gdk_window_new_input()
2016-10-18 00:22:35 +02:00
Timm Bäder
6b01940194
colorscale: Avoid invalid write
2016-10-17 18:47:16 +02:00
Benjamin Otte
4322b69528
cssprovider: Return void, not TRUE
...
Parsing a css file always succeeds as CSS can recover from parsing
errors.
2016-10-17 17:41:03 +02:00
Benjamin Otte
dbeeaf7de6
cssprovider: Remove GError out argument from load functions
...
People should use the GtkCssProvider::parsing-error signal instead.
2016-10-17 16:52:05 +02:00
Ben Iofel
55e599c561
textbufferserialize: declare set_error as G_GNUC_PRINTF
...
And fix a missing format argument
2016-10-17 10:36:26 -04:00
Ben Iofel
84739239ce
colorscale: modify loop variables in loop body
2016-10-17 15:17:28 +01:00
Garrett Regier
7173df1dd1
gtk+: Fix GI warnings about missing parameters
...
These were removed for GTK+ 4.
2016-10-17 07:07:20 -07:00
Emmanuele Bassi
2332ac444c
gtk/utils: Include stdio.h
...
We need it because of the declaration using FILE*.
2016-10-17 14:51:16 +01:00
Ignacio Casal Quinteiro
a12b691b76
gtkicontheme: check if the context quark string is not null
...
On windows you might not have a theme installed by default which
means that when trying to create the context quark it will fail.
If then we try to replace a NULL key in the hash table it will crash.
https://bugzilla.gnome.org/show_bug.cgi?id=769859
2016-10-17 13:04:31 +02:00
Emmanuele Bassi
857d241e22
Remove redundant variable declaration
...
The inner `var` declaration is shadowing the outer one.
2016-10-17 11:52:00 +01:00
Emmanuele Bassi
20b2e479f8
build: Add various compiler warnings and errors
...
Just like GLib, GTK+ would benefit from getting warnings and errors from
the compilers.
We check various, common warnings, especially for a future use of C99;
additionally, we promote some warnings to errors, in order to ensure
that simple mistakes are caught during the development phase, before
they are submitted to the code repository.
2016-10-17 11:44:11 +01:00
Emmanuele Bassi
6a9be60a16
notebook: Remove redundant variable declarations
...
We're already declaring notebook and priv at the top of the function,
and assigning them to the same values.
2016-10-17 11:44:11 +01:00
Emmanuele Bassi
39e848c0eb
icontheme: Drop unnecessary allocation
...
Use a static array for the known icon sizes, now that we don't allow
registering custom icon sizes any more. This allows us to cut a one-off
allocation that makes Valgrind sad.
2016-10-17 11:44:11 +01:00
Emmanuele Bassi
5563ba96bc
Avoid variable shadowing in GtkShortcutsSection
2016-10-17 11:44:11 +01:00
Emmanuele Bassi
fc9826fb41
Remove declarations for getresuid()/getresgid()
...
Back in 2001, their prototypes were missing from system headers, but
since glibc 2.3.2 they are defined in unistd.h if _GNU_SOURCE is
defined.
2016-10-17 11:44:11 +01:00
Emmanuele Bassi
db6f9a8e45
gtk: Add missing function declarations
2016-10-17 11:44:11 +01:00
Emmanuele Bassi
b3adbbe5e7
text: Constify field of GtkTextLineSegmentClass
...
We only use it internally for statically allocated structures, with
static strings, so there's no reason for it to be a `char*`.
2016-10-17 11:44:11 +01:00
Emmanuele Bassi
1f132607f7
gtk: Use appropriate constness for variables
2016-10-17 11:44:11 +01:00
Emmanuele Bassi
590e7e68d8
filechooserwidget: Rename error variable
...
Avoid shadowing an existing error.
2016-10-17 11:44:10 +01:00
Emmanuele Bassi
e75bbafeac
filechooserbutton: Remove unnecessary declaration
2016-10-17 11:44:10 +01:00
Emmanuele Bassi
9557364216
gtk: Mark internal functions as static
...
These functions are only used within their compilation unit.
2016-10-17 11:44:10 +01:00
Emmanuele Bassi
fbf6aa1776
colorscale: Rename variables
...
Avoid shadowing existing variables.
2016-10-17 11:44:10 +01:00
Emmanuele Bassi
4ba169b82e
cellview: Constify argument
2016-10-17 11:44:10 +01:00
Emmanuele Bassi
5880d1b990
gtk: Cast static strings assigned to non-const variables
...
GtkTargetEntry.target is particularly egregious, and it should really be
constified.
2016-10-17 11:44:10 +01:00
Emmanuele Bassi
9bb816f8ee
gtk: Include the appropriate headers
2016-10-17 11:10:14 +01:00
Emmanuele Bassi
3fdbe2ea13
widget: Make gtk_widget_get_parent_muxer() as static
...
It's a private function, used only inside gtkwidget.c and not declared
in any private header.
2016-10-17 11:10:14 +01:00
Emmanuele Bassi
24d59f6c34
inspector: Mark internal function as static
2016-10-17 11:10:14 +01:00
Emmanuele Bassi
44885bcfed
Remove redundant declarations
2016-10-17 11:10:14 +01:00
Emmanuele Bassi
175800f345
Add private header for GtkTextView
...
This allows us to declare the symbols that are currently used inside
gtktextdisplay.c without incurring in the wrath of the compiler.
2016-10-17 11:10:14 +01:00
Emmanuele Bassi
8b9153d109
Remove redundant declarations
2016-10-17 11:10:14 +01:00
Emmanuele Bassi
5e388fc3e4
Fix _gtk_get_slowdown()
...
We need to pass void as the argument type.
2016-10-17 11:10:14 +01:00
Emmanuele Bassi
1db5d7fd8d
Remove redundant declarations
2016-10-17 11:10:14 +01:00
Emmanuele Bassi
81e5996c91
Include the appropriate headers
...
The GtkStackAccessible implementation should include the private header,
and the private header should include the public one.
2016-10-17 11:10:14 +01:00
Emmanuele Bassi
d8892c0fdb
Remove redundant declarations
2016-10-17 11:10:14 +01:00
Emmanuele Bassi
137e1aa988
Use appropriate const declaration for static strings
2016-10-17 11:10:14 +01:00
Emmanuele Bassi
a87bdc47c7
stylecontext: Remove gtk_gradient_resolve_for_context()
...
Just like we remove gtk_gradient_resolve().
2016-10-17 11:10:13 +01:00
Emmanuele Bassi
dae97c3027
textview: Remove commented block
...
It's referencing gdk_cairo_create(), which does not exist any more.
2016-10-17 10:44:27 +01:00
Benjamin Otte
e76ba9a3c3
gdk: Remove gdk_window_set_debug_updates()
...
The update tracking code was ugly and using deprecated drawing APIs. It
was also in the wrong place.
So instead of trying to keep it working, I'll remove it. We need to find
a better way to put it and make it work there.
2016-10-16 18:18:58 +02:00
Benjamin Otte
4a95f8802c
widget: Remove gtk_widget_set_double_buffered()
...
Everything is always double-buffered.
2016-10-16 18:18:58 +02:00
Benjamin Otte
36b7ad0cd2
shortcutswindow: Modernize some code
...
No functional changes, just don't call valist functions anymore.
2016-10-16 18:18:58 +02:00
Benjamin Otte
6c7b6f9654
menu: Modernize code
...
No functional changes, just don't call valist functions anymore.
2016-10-16 18:18:58 +02:00
Benjamin Otte
cda617df4d
API: sizegroup: Remove gtk_size_group_set_ignore_hidden()
2016-10-16 18:18:58 +02:00
Benjamin Otte
1d4f23da8e
API: container: Remove GtkContainer::child property
2016-10-16 18:18:58 +02:00
Benjamin Otte
d4d3374729
container: Remove gtk_container_set_resize_mode()
2016-10-16 18:18:58 +02:00
Benjamin Otte
4df6ddad54
API: container: Remove gtk_container_set_border_width()
2016-10-16 18:18:58 +02:00
Benjamin Otte
1518fe0a8f
API: stylecontext: Remove state argument from getters
...
The argument must always be the current state.
2016-10-16 18:18:58 +02:00
Benjamin Otte
9b9b475f0a
API: stylecontext: Remove regions
2016-10-16 18:17:21 +02:00
Benjamin Otte
95d2f0b831
css: Remove custom properties
...
Those aren't used anymore, now that theming engines are gone.
2016-10-16 18:17:21 +02:00
Benjamin Otte
1a5b842682
API: Remove GtkStyleProperties
2016-10-16 18:17:21 +02:00
Benjamin Otte
dd83f9ca86
API: Remove API to set CSS properties from GValues
...
This API was only used in GtkModifierStyle and GtkStyleProperties and
they are both on their way out.
CSS properties must now be set using strings via the regular parser API.
2016-10-16 18:17:21 +02:00