From b1f50e652c0e105c0ed8ab627be837c45f7a1a00 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 10 Feb 2004 19:30:20 +0000 Subject: [PATCH] restored defaults in switchs removed in the last commit git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25717 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/window.cpp | 10 ++++++++++ src/gtk1/window.cpp | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index dc03fbe4b3..3a43a9e18a 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -1552,6 +1552,10 @@ static gint gtk_window_button_press_callback( GtkWidget *widget, case GDK_2BUTTON_PRESS: event_type = wxEVT_LEFT_DCLICK; break; + + default: + // just to silence gcc warnings + ; } } else if (gdk_event->button == 2) @@ -1565,6 +1569,9 @@ static gint gtk_window_button_press_callback( GtkWidget *widget, case GDK_2BUTTON_PRESS: event_type = wxEVT_MIDDLE_DCLICK; break; + + default: + ; } } else if (gdk_event->button == 3) @@ -1578,6 +1585,9 @@ static gint gtk_window_button_press_callback( GtkWidget *widget, case GDK_2BUTTON_PRESS: event_type = wxEVT_RIGHT_DCLICK; break; + + default: + ; } } else if (gdk_event->button == 4 || gdk_event->button == 5) diff --git a/src/gtk1/window.cpp b/src/gtk1/window.cpp index dc03fbe4b3..3a43a9e18a 100644 --- a/src/gtk1/window.cpp +++ b/src/gtk1/window.cpp @@ -1552,6 +1552,10 @@ static gint gtk_window_button_press_callback( GtkWidget *widget, case GDK_2BUTTON_PRESS: event_type = wxEVT_LEFT_DCLICK; break; + + default: + // just to silence gcc warnings + ; } } else if (gdk_event->button == 2) @@ -1565,6 +1569,9 @@ static gint gtk_window_button_press_callback( GtkWidget *widget, case GDK_2BUTTON_PRESS: event_type = wxEVT_MIDDLE_DCLICK; break; + + default: + ; } } else if (gdk_event->button == 3) @@ -1578,6 +1585,9 @@ static gint gtk_window_button_press_callback( GtkWidget *widget, case GDK_2BUTTON_PRESS: event_type = wxEVT_RIGHT_DCLICK; break; + + default: + ; } } else if (gdk_event->button == 4 || gdk_event->button == 5)