fix deprecations
for pass by contributors this makes it hard to grok regressions
[23/56] Compiling C object 'src/25a6634@@squeekboard@exe/imservice.c.o'.
../src/imservice.c:17:26: warning: initialization of 'void (*)(void *, struct zwp_input_method_v2 *, uint32_t)' {aka 'void (*)(void *, struct zwp_input_method_v2 *, unsigned int)'} from incompatible pointer type 'void (*)(void *, struct zwp_input_method_v2 *)' [-Wincompatible-pointer-types]
.text_change_cause = imservice_handle_text_change_cause,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/imservice.c:17:26: note: (near initialization for 'input_method_listener.text_change_cause')
../src/imservice.c:18:21: warning: initialization of 'void (*)(void *, struct zwp_input_method_v2 *, uint32_t, uint32_t)' {aka 'void (*)(void *, struct zwp_input_method_v2 *, unsigned int, unsigned int)'} from incompatible pointer type 'void (*)(void *, struct zwp_input_method_v2 *)' [-Wincompatible-pointer-types]
.content_type = imservice_handle_content_type,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/imservice.c:18:21: note: (near initialization for 'input_method_listener.content_type')
[25/56] Compiling C object 'src/25a6634@@squeekboard@exe/.._eek_eek-element.c.o'.
../eek/eek-element.c: In function 'eek_element_class_init':
../eek/eek-element.c:149:5: warning: 'g_type_class_add_private' is deprecated [-Wdeprecated-declarations]
g_type_class_add_private (gobject_class,
^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/glib-2.0/gobject/gobject.h:24,
from /usr/include/glib-2.0/gobject/gbinding.h:29,
from /usr/include/glib-2.0/glib-object.h:23,
from ../eek/eek-element.h:28,
from ../eek/eek-element.c:35:
/usr/include/glib-2.0/gobject/gtype.h:1303:10: note: declared here
void g_type_class_add_private (gpointer g_class,
^~~~~~~~~~~~~~~~~~~~~~~~
[26/56] Compiling C object 'src/25a6634@@squeekboard@exe/.._eek_eek-container.c.o'.
../eek/eek-container.c: In function 'eek_container_class_init':
../eek/eek-container.c:137:5: warning: 'g_type_class_add_private' is deprecated [-Wdeprecated-declarations]
g_type_class_add_private (gobject_class,
^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/glib-2.0/gobject/gobject.h:24,
from /usr/include/glib-2.0/gobject/gbinding.h:29,
from /usr/include/glib-2.0/glib-object.h:23,
from ../eek/eek-element.h:28,
from ../eek/eek-container.h:28,
from ../eek/eek-container.c:33:
/usr/include/glib-2.0/gobject/gtype.h:1303:10: note: declared here
void g_type_class_add_private (gpointer g_class,
^~~~~~~~~~~~~~~~~~~~~~~~
[28/56] Compiling C object 'src/25a6634@@squeekboard@exe/.._eek_eek.c.o'.
../eek/eek.c: In function 'eek_init':
../eek/eek.c:41:5: warning: 'g_type_init' is deprecated [-Wdeprecated-declarations]
g_type_init ();
^~~~~~~~~~~
In file included from /usr/include/glib-2.0/gobject/gobject.h:24,
from /usr/include/glib-2.0/gobject/gbinding.h:29,
from /usr/include/glib-2.0/glib-object.h:23,
from ../eek/eek-keyboard.h:28,
from ../eek/eek.h:25,
from ../eek/eek.c:30:
/usr/include/glib-2.0/gobject/gtype.h:688:23: note: declared here
void g_type_init (void);
^~~~~~~~~~~
[30/56] Compiling C object 'src/25a6634@@squeekboard@exe/.._eek_eek-key.c.o'.
../eek/eek-key.c: In function 'eek_key_class_init':
../eek/eek-key.c:177:5: warning: 'g_type_class_add_private' is deprecated [-Wdeprecated-declarations]
g_type_class_add_private (gobject_class,
^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/glib-2.0/gobject/gobject.h:24,
from /usr/include/glib-2.0/gobject/gbinding.h:29,
from /usr/include/glib-2.0/glib-object.h:23,
from ../eek/eek-element.h:28,
from ../eek/eek-key.h:28,
from ../eek/eek-key.c:34:
/usr/include/glib-2.0/gobject/gtype.h:1303:10: note: declared here
void g_type_class_add_private (gpointer g_class,
^~~~~~~~~~~~~~~~~~~~~~~~
[31/56] Compiling C object 'src/25a6634@@squeekboard@exe/server-context-service.c.o'.
../src/server-context-service.c: In function 'set_geometry':
../src/server-context-service.c:227:5: warning: 'gtk_widget_get_root_window' is deprecated [-Wdeprecated-declarations]
root = gtk_widget_get_root_window (context->window);
^~~~
In file included from /usr/include/gtk-3.0/gtk/gtkapplication.h:27,
from /usr/include/gtk-3.0/gtk/gtkwindow.h:33,
from /usr/include/gtk-3.0/gtk/gtkdialog.h:32,
from /usr/include/gtk-3.0/gtk/gtkaboutdialog.h:30,
from /usr/include/gtk-3.0/gtk/gtk.h:31,
from ../src/server-context-service.c:22:
/usr/include/gtk-3.0/gtk/gtkwidget.h:1016:15: note: declared here
GdkWindow * gtk_widget_get_root_window (GtkWidget *widget);
^~~~~~~~~~~~~~~~~~~~~~~~~~
../src/server-context-service.c:228:5: warning: 'gdk_screen_get_monitor_at_window' is deprecated: Use 'gdk_display_get_monitor_at_window' instead [-Wdeprecated-declarations]
monitor = gdk_screen_get_monitor_at_window (screen, root);
^~~~~~~
In file included from /usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:31,
from /usr/include/gtk-3.0/gdk/gdk.h:32,
from /usr/include/gtk-3.0/gtk/gtk.h:30,
from ../src/server-context-service.c:22:
/usr/include/gtk-3.0/gdk/gdkscreen.h:91:15: note: declared here
gint gdk_screen_get_monitor_at_window (GdkScreen *screen,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/server-context-service.c:229:5: warning: 'gdk_screen_get_monitor_geometry' is deprecated: Use 'gdk_monitor_get_geometry' instead [-Wdeprecated-declarations]
gdk_screen_get_monitor_geometry (screen, monitor, &rect);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:31,
from /usr/include/gtk-3.0/gdk/gdk.h:32,
from /usr/include/gtk-3.0/gtk/gtk.h:30,
from ../src/server-context-service.c:22:
/usr/include/gtk-3.0/gdk/gdkscreen.h:78:14: note: declared here
void gdk_screen_get_monitor_geometry (GdkScreen *screen,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[34/56] Compiling C object 'src/25a6634@@squeekboard@exe/.._eek_eek-gtk-keyboard.c.o'.
../eek/eek-gtk-keyboard.c: In function 'eek_gtk_keyboard_class_init':
../eek/eek-gtk-keyboard.c:410:5: warning: 'g_type_class_add_private' is deprecated [-Wdeprecated-declarations]
g_type_class_add_private (gobject_class,
^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/glib-2.0/gobject/gobject.h:24,
from /usr/include/glib-2.0/gobject/gbinding.h:29,
from /usr/include/glib-2.0/glib-object.h:23,
from /usr/include/glib-2.0/gio/gioenums.h:28,
from /usr/include/glib-2.0/gio/giotypes.h:28,
from /usr/include/glib-2.0/gio/gio.h:26,
from /usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:28,
from /usr/include/gtk-3.0/gdk/gdk.h:32,
from /usr/include/gtk-3.0/gtk/gtk.h:30,
from ../eek/eek-gtk-keyboard.h:29,
from ../eek/eek-gtk-keyboard.c:36:
/usr/include/glib-2.0/gobject/gtype.h:1303:10: note: declared here
void g_type_class_add_private (gpointer g_class,
^~~~~~~~~~~~~~~~~~~~~~~~
../eek/eek-gtk-keyboard.c: In function 'render_locked_key':
../eek/eek-gtk-keyboard.c:521:5: warning: 'gdk_cairo_create' is deprecated: Use 'gdk_window_begin_draw_frame() and gdk_drawing_context_get_cairo_context()' instead [-Wdeprecated-declarations]
cr = gdk_cairo_create (GDK_DRAWABLE (gtk_widget_get_window (widget)));
^~
In file included from /usr/include/gtk-3.0/gdk/gdk.h:33,
from /usr/include/gtk-3.0/gtk/gtk.h:30,
from ../eek/eek-gtk-keyboard.h:29,
from ../eek/eek-gtk-keyboard.c:36:
/usr/include/gtk-3.0/gdk/gdkcairo.h:35:12: note: declared here
cairo_t * gdk_cairo_create (GdkWindow *window);
^~~~~~~~~~~~~~~~
../eek/eek-gtk-keyboard.c: In function 'render_released_key':
../eek/eek-gtk-keyboard.c:538:5: warning: 'gdk_cairo_create' is deprecated: Use 'gdk_window_begin_draw_frame() and gdk_drawing_context_get_cairo_context()' instead [-Wdeprecated-declarations]
cr = gdk_cairo_create (GDK_DRAWABLE (gtk_widget_get_window (widget)));
^~
In file included from /usr/include/gtk-3.0/gdk/gdk.h:33,
from /usr/include/gtk-3.0/gtk/gtk.h:30,
from ../eek/eek-gtk-keyboard.h:29,
from ../eek/eek-gtk-keyboard.c:36:
/usr/include/gtk-3.0/gdk/gdkcairo.h:35:12: note: declared here
cairo_t * gdk_cairo_create (GdkWindow *window);
^~~~~~~~~~~~~~~~
[36/56] Compiling C object 'src/25a6634@@squeekboard@exe/.._eek_eek-keysym.c.o'.
../eek/eek-keysym.c: In function 'eek_keysym_class_init':
../eek/eek-keysym.c:205:5: warning: 'g_type_class_add_private' is deprecated [-Wdeprecated-declarations]
g_type_class_add_private (gobject_class, sizeof (EekKeysymPrivate));
^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/glib-2.0/gobject/gobject.h:24,
from /usr/include/glib-2.0/gobject/gbinding.h:29,
from /usr/include/glib-2.0/glib-object.h:23,
from ../eek/eek-types.h:28,
from ../eek/eek-symbol.h:28,
from ../eek/eek-keysym.h:29,
from ../eek/eek-keysym.c:33:
/usr/include/glib-2.0/gobject/gtype.h:1303:10: note: declared here
void g_type_class_add_private (gpointer g_class,
^~~~~~~~~~~~~~~~~~~~~~~~
[37/56] Compiling C object 'src/25a6634@@squeekboard@exe/.._eek_eek-keyboard.c.o'.
../eek/eek-keyboard.c: In function 'eek_keyboard_class_init':
../eek/eek-keyboard.c:393:5: warning: 'g_type_class_add_private' is deprecated [-Wdeprecated-declarations]
g_type_class_add_private (gobject_class,
^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/glib-2.0/gobject/gobject.h:24,
from /usr/include/glib-2.0/gobject/gbinding.h:29,
from /usr/include/glib-2.0/glib-object.h:23,
from ../eek/eek-keyboard.h:28,
from ../eek/eek-keyboard.c:34:
/usr/include/glib-2.0/gobject/gtype.h:1303:10: note: declared here
void g_type_class_add_private (gpointer g_class,
^~~~~~~~~~~~~~~~~~~~~~~~
[40/56] Compiling C object 'src/25a6634@@squeekboard@exe/.._eek_eek-section.c.o'.
../eek/eek-section.c: In function 'eek_section_class_init':
../eek/eek-section.c:294:5: warning: 'g_type_class_add_private' is deprecated [-Wdeprecated-declarations]
g_type_class_add_private (gobject_class, sizeof (EekSectionPrivate));
^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/glib-2.0/gobject/gobject.h:24,
from /usr/include/glib-2.0/gobject/gbinding.h:29,
from /usr/include/glib-2.0/glib-object.h:23,
from ../eek/eek-keyboard.h:28,
from ../eek/eek-section.c:36:
/usr/include/glib-2.0/gobject/gtype.h:1303:10: note: declared here
void g_type_class_add_private (gpointer g_class,
^~~~~~~~~~~~~~~~~~~~~~~~
../eek/eek-section.c:299:23: warning: assignment to 'EekKey * (*)(EekSection *, guint, gint, gint)' {aka 'struct _EekKey * (*)(struct _EekSection *, unsigned int, int, int)'} from incompatible pointer type 'EekKey * (*)(EekSection *, guint, gint, guint)' {aka 'struct _EekKey * (*)(struct _EekSection *, unsigned int, int, unsigned int)'} [-Wincompatible-pointer-types]
klass->create_key = eek_section_real_create_key;
^
[42/56] Compiling C object 'src/25a6634@@squeekboard@exe/.._eek_eek-text.c.o'.
../eek/eek-text.c: In function 'eek_text_class_init':
../eek/eek-text.c:140:5: warning: 'g_type_class_add_private' is deprecated [-Wdeprecated-declarations]
g_type_class_add_private (gobject_class, sizeof (EekTextPrivate));
^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/glib-2.0/gobject/gobject.h:24,
from /usr/include/glib-2.0/gobject/gbinding.h:29,
from /usr/include/glib-2.0/glib-object.h:23,
from ../eek/eek-types.h:28,
from ../eek/eek-symbol.h:28,
from ../eek/eek-text.h:28,
from ../eek/eek-text.c:30:
/usr/include/glib-2.0/gobject/gtype.h:1303:10: note: declared here
void g_type_class_add_private (gpointer g_class,
^~~~~~~~~~~~~~~~~~~~~~~~
[43/56] Compiling C object 'src/25a6634@@squeekboard@exe/.._eek_eek-symbol.c.o'.
../eek/eek-symbol.c: In function 'eek_symbol_class_init':
../eek/eek-symbol.c:190:5: warning: 'g_type_class_add_private' is deprecated [-Wdeprecated-declarations]
g_type_class_add_private (gobject_class, sizeof (EekSymbolPrivate));
^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/glib-2.0/gobject/gobject.h:24,
from /usr/include/glib-2.0/gobject/gbinding.h:29,
from /usr/include/glib-2.0/glib-object.h:23,
from ../eek/eek-types.h:28,
from ../eek/eek-symbol.h:28,
from ../eek/eek-symbol.c:32:
/usr/include/glib-2.0/gobject/gtype.h:1303:10: note: declared here
void g_type_class_add_private (gpointer g_class,
^~~~~~~~~~~~~~~~~~~~~~~~
[44/56] Compiling C object 'src/25a6634@@squeekboard@exe/.._eek_eek-renderer.c.o'.
../eek/eek-renderer.c: In function 'eek_renderer_class_init':
../eek/eek-renderer.c:802:5: warning: 'g_type_class_add_private' is deprecated [-Wdeprecated-declarations]
g_type_class_add_private (gobject_class,
^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/glib-2.0/gobject/gobject.h:24,
from /usr/include/glib-2.0/gobject/gbinding.h:29,
from /usr/include/glib-2.0/glib-object.h:23,
from ../eek/eek-element.h:28,
from ../eek/eek-key.h:28,
from ../eek/eek-renderer.c:28:
/usr/include/glib-2.0/gobject/gtype.h:1303:10: note: declared here
void g_type_class_add_private (gpointer g_class,
^~~~~~~~~~~~~~~~~~~~~~~~
../eek/eek-renderer.c: In function 'render_key_outline':
../eek/eek-renderer.c:265:19: warning: 'bounds.height' may be used uninitialized in this function [-Wmaybe-uninitialized]
pat = cairo_pattern_create_linear (0.0,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0.0,
~~~~
0.0,
~~~~
bounds.height * priv->scale);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../eek/eek-renderer.c:271:19: warning: 'bounds.width' may be used uninitialized in this function [-Wmaybe-uninitialized]
pat = cairo_pattern_create_linear (0.0,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0.0,
~~~~
bounds.width * priv->scale,
~~~~~~~~~~~~~~~~~~~~~~~~~~~
0.0);
~~~~
[48/56] Compiling C object 'src/25a6634@@squeekboard@exe/.._eek_eek-xml-layout.c.o'.
../eek/eek-xml-layout.c: In function 'eek_xml_layout_class_init':
../eek/eek-xml-layout.c:1014:5: warning: 'g_type_class_add_private' is deprecated [-Wdeprecated-declarations]
g_type_class_add_private (gobject_class, sizeof (EekXmlLayoutPrivate));
^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/glib-2.0/gobject/gobject.h:24,
from /usr/include/glib-2.0/gobject/gbinding.h:29,
from /usr/include/glib-2.0/glib-object.h:23,
from /usr/include/glib-2.0/gio/gioenums.h:28,
from /usr/include/glib-2.0/gio/giotypes.h:28,
from /usr/include/glib-2.0/gio/gio.h:26,
from ../eek/eek-xml-layout.h:26,
from ../eek/eek-xml-layout.c:31:
/usr/include/glib-2.0/gobject/gtype.h:1303:10: note: declared here
void g_type_class_add_private (gpointer g_class,
^~~~~~~~~~~~~~~~~~~~~~~~
[49/56] Compiling C object 'src/25a6634@@squeekboard@exe/.._eek_eek-theme-node.c.o'.
../eek/eek-theme-node.c:94:23: warning: 'DEFAULT_ERROR_COLOR' defined but not used [-Wunused-const-variable=]
static const EekColor DEFAULT_ERROR_COLOR = { 0xcc, 0x00, 0x00, 0xff };
^~~~~~~~~~~~~~~~~~~
../eek/eek-theme-node.c:93:23: warning: 'DEFAULT_WARNING_COLOR' defined but not used [-Wunused-const-variable=]
static const EekColor DEFAULT_WARNING_COLOR = { 0xf5, 0x79, 0x3e, 0xff };
^~~~~~~~~~~~~~~~~~~~~
../eek/eek-theme-node.c:92:23: warning: 'DEFAULT_SUCCESS_COLOR' defined but not used [-Wunused-const-variable=]
static const EekColor DEFAULT_SUCCESS_COLOR = { 0x4e, 0x9a, 0x06, 0xff };
^~~~~~~~~~~~~~~~~~~~~
[50/56] Compiling C object 'src/25a6634@@squeekboard@exe/.._eekboard_key-emitter.c.o'.
../eekboard/key-emitter.c: In function 'replace_keycode':
../eekboard/key-emitter.c:85:13: warning: unused variable 'syms' [-Wunused-variable]
KeySym *syms;
^~~~
../eekboard/key-emitter.c:84:9: warning: unused variable 'keysyms_per_keycode' [-Wunused-variable]
int keysyms_per_keycode;
^~~~~~~~~~~~~~~~~~~
../eekboard/key-emitter.c:83:11: warning: unused variable 'old_keysym' [-Wunused-variable]
guint old_keysym;
^~~~~~~~~~
../eekboard/key-emitter.c:81:17: warning: unused variable 'display' [-Wunused-variable]
GdkDisplay *display = gdk_display_get_default ();
^~~~~~~
[51/56] Compiling C object 'src/25a6634@@squeekboard@exe/.._eekboard_eekboard-context-service.c.o'.
../eekboard/eekboard-context-service.c: In function 'eekboard_context_service_class_init':
../eekboard/eekboard-context-service.c:359:5: warning: 'g_type_class_add_private' is deprecated [-Wdeprecated-declarations]
g_type_class_add_private (gobject_class,
^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/glib-2.0/gobject/gobject.h:24,
from /usr/include/glib-2.0/gobject/gbinding.h:29,
from /usr/include/glib-2.0/glib-object.h:23,
from ../src/../eek/eek-keyboard.h:28,
from ../src/../eek/eek.h:25,
from ../src/../eekboard/eekboard-context-service.h:25,
from ../eekboard/eekboard-context-service.c:32:
/usr/include/glib-2.0/gobject/gtype.h:1303:10: note: declared here
void g_type_class_add_private (gpointer g_class,
^~~~~~~~~~~~~~~~~~~~~~~~
At top level:
../eekboard/eekboard-context-service.c:506:1: warning: 'on_repeat_timeout_init' defined but not used [-Wunused-function]
on_repeat_timeout_init (EekboardContextService *context)
^~~~~~~~~~~~~~~~~~~~~~
../eekboard/eekboard-context-service.c:489:1: warning: 'on_repeat_timeout' defined but not used [-Wunused-function]
on_repeat_timeout (EekboardContextService *context)
^~~~~~~~~~~~~~~~~
../eekboard/eekboard-context-service.c:87:17: warning: 'display' defined but not used [-Wunused-variable]
static Display *display = NULL;
^~~~~~~
[53/56] Compiling C object 'src/25a6634@@squeekboard@exe/.._eekboard_eekboard-context.c.o'.
../eekboard/eekboard-context.c: In function 'eekboard_context_class_init':
../eekboard/eekboard-context.c:184:5: warning: 'g_type_class_add_private' is deprecated [-Wdeprecated-declarations]
g_type_class_add_private (gobject_class,
^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/glib-2.0/gobject/gobject.h:24,
from /usr/include/glib-2.0/gobject/gbinding.h:29,
from /usr/include/glib-2.0/glib-object.h:23,
from /usr/include/glib-2.0/gio/gioenums.h:28,
from /usr/include/glib-2.0/gio/giotypes.h:28,
from /usr/include/glib-2.0/gio/gio.h:26,
from ../src/../eekboard/eekboard-context.h:25,
from ../eekboard/eekboard-context.c:31:
/usr/include/glib-2.0/gobject/gtype.h:1303:10: note: declared here
void g_type_class_add_private (gpointer g_class,
^~~~~~~~~~~~~~~~~~~~~~~~
[54/56] Compiling C object 'src/25a6634@@squeekboard@exe/.._eekboard_eekboard-service.c.o'.
../eekboard/eekboard-service.c: In function 'eekboard_service_class_init':
../eekboard/eekboard-service.c:193:5: warning: 'g_type_class_add_private' is deprecated [-Wdeprecated-declarations]
g_type_class_add_private (gobject_class,
^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/glib-2.0/gobject/gobject.h:24,
from /usr/include/glib-2.0/gobject/gbinding.h:29,
from /usr/include/glib-2.0/glib-object.h:23,
from ../src/../eek/eek-keyboard.h:28,
from ../src/../eek/eek.h:25,
from ../src/../eekboard/eekboard-context-service.h:25,
from ../src/../eekboard/eekboard-service.h:23,
from ../eekboard/eekboard-service.c:33:
/usr/include/glib-2.0/gobject/gtype.h:1303:10: note: declared here
void g_type_class_add_private (gpointer g_class,
^~~~~~~~~~~~~~~~~~~~~~~~