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
dff5a7bd64
tests: Use gdk_window_new_child()
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
Benjamin Otte
d22e5e69d9
API: gdk: Add gdk_window_new_child() and gdk_window_new_input()
...
This is an attempt to get rid of gdk_window_new() for more specific use
cases. These 2 are for client-side windows - regular ones and input-only
ones resepectively.
So far all those functions just call into gdk_window_new().
2016-10-18 00:22:35 +02:00
Timm Bäder
6b01940194
colorscale: Avoid invalid write
2016-10-17 18:47:16 +02:00
Jordi Mas
d72bc7f3e8
Fix to Catalan translation
2016-10-17 18:23:29 +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
Emmanuele Bassi
7b73bc3572
build: Use correct compiler flag
...
The name is -Wformat-nonliteral.
2016-10-17 15:13:09 +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
a0aa1d963a
broadway: Remove redundant declaration
2016-10-17 14:56:38 +01: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