Fix warnings in GTK2 build
This commit is contained in:
parent
ce46d77360
commit
5ebcfd7681
@ -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;
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user