Fix warnings in GTK2 build

This commit is contained in:
Maarten Bent 2022-04-14 22:33:38 +02:00
parent ce46d77360
commit 5ebcfd7681
2 changed files with 7 additions and 0 deletions

View File

@ -296,6 +296,7 @@ egg_tray_icon_get_orientation_property (EggTrayIcon *icon)
static GdkFilterReturn
egg_tray_icon_manager_filter (GdkXEvent *xevent, GdkEvent *event, gpointer user_data)
{
(void)event;
EggTrayIcon *icon = user_data;
XEvent *xev = (XEvent *)xevent;
@ -451,6 +452,7 @@ egg_tray_icon_manager_window_destroyed (EggTrayIcon *icon)
static gboolean
transparent_expose_event (GtkWidget *widget, GdkEventExpose *event, gpointer user_data)
{
(void)user_data;
gdk_window_clear_area (widget->window, event->area.x, event->area.y,
event->area.width, event->area.height);
return FALSE;
@ -460,12 +462,15 @@ static void
make_transparent_again (GtkWidget *widget, GtkStyle *previous_style,
gpointer user_data)
{
(void)previous_style;
(void)user_data;
gdk_window_set_back_pixmap (widget->window, NULL, TRUE);
}
static void
make_transparent (GtkWidget *widget, gpointer user_data)
{
(void)user_data;
if (GTK_WIDGET_NO_WINDOW (widget) || GTK_WIDGET_APP_PAINTABLE (widget))
return;

View File

@ -1065,7 +1065,9 @@ wxTranslateGTKKeyEventToWx(wxKeyEvent& event,
#ifdef HAVE_X11_XKBLIB_H
KeySym keysymNormalized = XkbKeycodeToKeysym(dpy, keycode, 0, 0);
#else
wxGCC_WARNING_SUPPRESS(deprecated-declarations)
KeySym keysymNormalized = XKeycodeToKeysym(dpy, keycode, 0);
wxGCC_WARNING_RESTORE()
#endif
// use the normalized, i.e. lower register, keysym if we've