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
Benjamin Otte
66dd954290
API: stylecontext: Remove old unused animation functions
2016-10-16 18:17:21 +02:00
Timm Bäder
f2c455fedb
Remove GtkThemingEngine
...
As well as the corresponding GtkCssEngineValue used to parse it in css.
2016-10-16 18:17:21 +02:00
Timm Bäder
9f930c08a6
ui: Don't unnecessarily set GtkEntry:invisible-char
2016-10-16 18:17:21 +02:00
Timm Bäder
f360a69f4c
entry: Remove invisible-char style property
2016-10-16 18:17:21 +02:00
Timm Bäder
58a76b700f
stylecontext: Remove _REGION_ constants
2016-10-16 18:17:21 +02:00
Timm Bäder
ed184b3935
Remove GtkIconFactory
...
Move the icon size lookup API into gtkicontheme.c
2016-10-16 18:17:21 +02:00
Timm Bäder
9fd1a1bbe3
widget: Remove cursor-aspect-ratio/window-dragging style properties
...
And replaces its usages in GtkTextView/GtkStyleContext with a hard-coded
0.04 which was the default value for cursor-aspect-ratio. Also remove
the public gtk_draw_insertion_cursor which used draw_insertion_cursor
which in turn looked up cursor-aspect-ratio
2016-10-16 18:17:21 +02:00
Timm Bäder
ccd3ff7fba
gtkwidget: Remove gtk_widget_class_install_style_property_parser...
...
... from public API
2016-10-16 18:17:21 +02:00
Timm Bäder
281c1e4fe5
widget: Remove cursor-aspect-ratio style property
2016-10-16 18:17:21 +02:00
Timm Bäder
08c1c584b3
Remove GtkModifierStyle
2016-10-16 18:17:21 +02:00
Timm Bäder
9a388690f4
widget: Remove gtk_widget_override* API
2016-10-16 18:17:21 +02:00
Timm Bäder
3c901d6376
Remove a few more unused style properties
2016-10-16 18:17:21 +02:00
Timm Bäder
b1d35a594e
widget: Remove text-handle-width/height style properties
2016-10-16 18:17:21 +02:00
Timm Bäder
9f5baf9130
GtkTextHandle: Use min-width/min-height
...
instead of GtkWidget's text-handle-width/text-handle-height style
properties
2016-10-16 18:17:21 +02:00
Timm Bäder
999d45b4e8
Remove various unused style properties
2016-10-16 18:17:21 +02:00
Timm Bäder
6a6c49369e
Fix a few GtkTextTag:*-gdk references
2016-10-16 18:17:21 +02:00
Timm Bäder
601839c825
Remove various sizing related style properties
2016-10-16 18:17:21 +02:00
Timm Bäder
feac88dc52
switch: Remove deprecated style properties
2016-10-16 18:17:21 +02:00
Timm Bäder
86dbe591d2
entry: Remove deprecated style properties
2016-10-16 18:17:21 +02:00
Timm Bäder
2455bd0857
widget: Remove visibility-notify-event
2016-10-16 18:17:21 +02:00
Timm Bäder
1add02879e
entry: Remove inner-border (style) property
2016-10-16 18:17:21 +02:00
Timm Bäder
878f2e4107
widget: Remove deprecated margin-left/right properties
2016-10-16 18:17:21 +02:00
Timm Bäder
d34b7d98b2
widget: Remove gtk_widget_{s,g}et_composite_name
2016-10-16 18:17:21 +02:00
Timm Bäder
80ab5ea942
widget: Remove gtk_widget_get_requisition
2016-10-16 18:17:21 +02:00
Timm Bäder
16b0906b4a
widget: Remove gtk_widget_send_expose
2016-10-16 18:17:21 +02:00
Timm Bäder
bc0cef27a2
widget: Remove gtk_widget_{s,g}et_state
2016-10-16 18:17:21 +02:00
Timm Bäder
4a2c087a1e
widget: Remove gtk_widget_region_intersect
2016-10-16 18:17:21 +02:00
Timm Bäder
a80a1cf8a6
widget: Remove gtk_widget_get_child_requisition
2016-10-16 18:17:21 +02:00
Timm Bäder
b3bd5fefb1
widget: Remove gtk_widget_size_request
2016-10-16 18:17:21 +02:00
Timm Bäder
4c10807e24
widget: Remove state-changed signal
2016-10-16 18:17:21 +02:00
Timm Bäder
96d9abded8
widget: Remove deprecated style properties
2016-10-16 18:17:21 +02:00
Timm Bäder
040db1efcd
Remove some deprecated GdkColor style properties
2016-10-16 18:17:21 +02:00
Timm Bäder
627a824cab
image: Remove GtkIconSet API
2016-10-16 18:17:21 +02:00
Timm Bäder
efffa3b6bd
range: Remove min slider size setter/getter
2016-10-16 18:17:21 +02:00
Timm Bäder
aca35a14a0
scrollbar: Remove min-slider-length style property
2016-10-16 18:17:21 +02:00
Timm Bäder
116cb9fc0c
label: Remove now unneeded deprecation markers
2016-10-16 18:17:21 +02:00
Timm Bäder
2e96f8ae70
scrolledwindow: Remove window-placement-set property
2016-10-16 18:17:21 +02:00
Timm Bäder
ba9220591f
scrolledwindow: Remove scrollbar-spacing and scrollbars-within-bevel
2016-10-16 18:17:21 +02:00
Timm Bäder
05353ec933
scrolledwindow: Remove _add_with_viewport
...
Replaced by a normal gtk_container_add
2016-10-16 18:17:21 +02:00
Timm Bäder
33ece4e37a
Remove GtkHSV
2016-10-16 18:17:21 +02:00
Timm Bäder
134556435d
Remove various deprecated GtkOrientable subclasses
2016-10-16 18:17:21 +02:00
Timm Bäder
d06d17b81e
Remove gtkcolorsel(dialog).{c,h}
2016-10-16 18:17:21 +02:00
Timm Bäder
9c09669711
window: Remove _set/_get_opacity
2016-10-16 18:17:21 +02:00
Timm Bäder
7fa4ac08ea
window: Remove resize grip API
2016-10-16 18:17:21 +02:00
Timm Bäder
9cfbaf4916
Remove gtkfontsel.{c,h}
2016-10-16 18:17:21 +02:00
Timm Bäder
3b336dda73
dialog: Remove alternative button order API
2016-10-16 18:17:21 +02:00
Timm Bäder
2acc31b46a
Remove GtkHandleBox
2016-10-16 18:17:21 +02:00
Timm Bäder
155fa4664d
Remove GtkImageMenuItem
2016-10-16 18:17:21 +02:00
Timm Bäder
7f79a3fade
Remove GtkMisc
2016-10-16 18:17:21 +02:00
Timm Bäder
367f13a76f
Remove GtkArrow
2016-10-16 18:17:21 +02:00
Timm Bäder
9b5a50bf22
shortcutswindow: Stop using GtkArrow
2016-10-16 18:17:21 +02:00
Timm Bäder
ad155fb26c
Remove GtkStock API from GtkImage
2016-10-16 18:17:21 +02:00
Timm Bäder
eadb49d97f
recentchoosermenu: Stop using GtkImageMenuItem
2016-10-16 18:17:21 +02:00
Timm Bäder
421be38a3c
toolbutton: Stop using GtkImageMenuItem
2016-10-16 18:17:21 +02:00
Timm Bäder
10e24d58c3
button: Remove _{get,set}_focus_click
...
Deprecated for the GtkWidget variant. Also remove some unused fields
from the GtkButtonPrivate struct.
2016-10-16 18:17:21 +02:00
Timm Bäder
10a92a210b
button: Remove deprecated style properties
2016-10-16 18:17:21 +02:00
Timm Bäder
9f2ca684e2
button: Remove deprecated signals from public API
2016-10-16 18:17:21 +02:00
Timm Bäder
590cd6a9f2
button: Remove GtkStock API
2016-10-16 18:17:21 +02:00
Timm Bäder
485d1b9835
Button: Remove alignment API
2016-10-16 18:17:21 +02:00
Timm Bäder
9d43644153
label,image: Remove GtkMisc usage
2016-10-16 18:17:21 +02:00
Timm Bäder
f45dadadd0
box: Remove 'padding' child property
2016-10-16 18:17:21 +02:00
Timm Bäder
c301357627
inspector: Remove object_title from css editor
...
It's unused
2016-10-16 18:17:21 +02:00
Timm Bäder
91f989006c
Don't use GtkBox's center child in a few places
...
We can as well use a normal child and let it hexpand.
2016-10-16 18:17:21 +02:00
Benjamin Otte
eace2cf421
API: Remove gdk_window_set_background()
...
Backgrounds are always transparent black.
2016-10-16 18:17:21 +02:00
Benjamin Otte
0df388051d
API: Remove GtkStyle
...
All the remaining gtkrc.c stuff like GtkRcStyle goes with it.
2016-10-16 18:17:21 +02:00
Benjamin Otte
05763e4875
settings: Pull in the RC parsing code
2016-10-16 18:17:21 +02:00
Benjamin Otte
361d322bfb
immodules: Move path code out of gtkrc
2016-10-16 18:17:21 +02:00
Benjamin Otte
1aa336b500
cellrendererspinner: Draw our own spinner
...
This is the GtkStyle code just moved.
2016-10-16 18:17:21 +02:00
Benjamin Otte
662001b60a
API: Remove ability to set visuals on windows
...
And with it, gtk_widget_get_visual() and gtk_widget_set_visual() are
gone.
We now always use the RGBA visual (if available) and otherwise fall back
to the system visual.
2016-10-16 18:17:21 +02:00
Benjamin Otte
380494c1d7
API: Remove gtk_drag_dest_set_proxy()
...
Proxies were only used by GtkSocket.
2016-10-16 18:17:21 +02:00
Benjamin Otte
021fe010b6
API: Remove GtkPlug, GtkSocket and GtkWin32EmbedWidget
2016-10-16 18:17:21 +02:00
Benjamin Otte
89f2e17f91
API: Remove gdk_window_set_composited()
...
And the related call gdk_display_supports_composite().
2016-10-16 18:17:21 +02:00
Benjamin Otte
ad64402a55
filechooserwidget: Query dpi from CssStyle
2016-10-16 18:17:21 +02:00
Benjamin Otte
77cdbfde97
fontchooserwidget: Query dpi from CssStyle
2016-10-16 18:17:21 +02:00
Benjamin Otte
fec8069e7b
API: screen: Stop storing font options
...
font options are only ever set by the GtkSettings object and only ever
used inside GTK, so just store them there.
2016-10-16 18:17:21 +02:00
Benjamin Otte
fcbd480c76
API: Remove GDK_WA_CURSOR
...
The cursor was set using gdk_window_set_cursor() even in
gdk_window_new().
So instead of having yet another flag, just make the users of that flag
call gdk_window_set_cursor() directly after the window was created.
2016-10-16 18:17:21 +02:00
Benjamin Otte
2fd5048943
API: window: Remove suppport for changing wmclass_name/group
...
X11 was the only backend to support it and people can just override it
using XSetClassHint() directly.
The docs already advertised the function as "Do not use".
Keep the existing call to XSetClassHint() in place, so that we keep
setting the same values as in GTK3.
2016-10-16 18:17:21 +02:00
Timm Bäder
fe24fcbc3e
Delete gtkvbox.{c,h}
2016-10-16 18:17:21 +02:00
Timm Bäder
fb3d9022ad
Remove GtkHBox
2016-10-16 18:17:21 +02:00
Benjamin Otte
9a5de96187
API: Remove GtkNumerableIcon
2016-10-16 18:17:21 +02:00
Benjamin Otte
d09e48cec1
API: Remove -gtk_widget_get_root_window()
2016-10-16 18:17:21 +02:00
Benjamin Otte
c2125e80a3
API: window: Remove geometry support
2016-10-16 18:17:21 +02:00
Benjamin Otte
4ed9452e90
API: menu: Remove tearoff support
2016-10-16 18:17:21 +02:00
Benjamin Otte
d2a8667f83
API: Remove GtkStatusIcon
2016-10-16 18:17:21 +02:00
Benjamin Otte
9222b4cd7c
inspector: Use display name instead of screen name
...
This is for future compatibility as they are guaranteed to be identical.
2016-10-16 18:17:21 +02:00
Benjamin Otte
266fd36f3f
inspector: Port to GdkMonitor
2016-10-16 18:17:21 +02:00
Alan Jenkins
b7baf3371b
shortcutswindow: working version of set_section_name()
...
(testing before+after, it actually works now)
https://bugzilla.gnome.org/show_bug.cgi?id=772926
2016-10-14 10:57:32 -04:00
Felix Riemann
b6cdc3961a
GtkShortcutsShortcut: Support single finger swipe gestures
...
https://bugzilla.gnome.org/show_bug.cgi?id=772770
2016-10-13 15:02:36 -04:00
Jakub Steiner
21fa12120c
gestures: provide new artwork
...
- illustrations for single finger swiping left and right
https://bugzilla.gnome.org/show_bug.cgi?id=772770
2016-10-13 15:02:36 -04:00
Alan Jenkins
38667b8dd0
scrolledwindow: fix leak of pan_gesture
...
https://bugzilla.gnome.org/show_bug.cgi?id=772859
2016-10-13 09:39:02 -04:00