From e24b680c59e78f092c1be432b17b36f849065c36 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 17 Mar 2005 23:23:57 +0000 Subject: [PATCH] fixed bug due to missing break in GetColourFromGTKWidget() (part of patch 1160117) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32878 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/settings.cpp | 7 ++++--- src/gtk1/settings.cpp | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/gtk/settings.cpp b/src/gtk/settings.cpp index bf2d3b2f20..5efb1a3ebc 100644 --- a/src/gtk/settings.cpp +++ b/src/gtk/settings.cpp @@ -91,7 +91,8 @@ static bool GetColourFromGTKWidget(int& red, int& green, int& blue, case wxGTK_LIST: widget = gtk_list_new(); - + break; + case wxGTK_MENUITEM: widget = gtk_menu_item_new(); } @@ -307,9 +308,9 @@ wxColour wxSystemSettingsNative::GetColour( wxSystemColour index ) case wxSYS_COLOUR_MAX: default: wxFAIL_MSG( _T("unknown system colour index") ); - } + } - return *wxWHITE; + return *wxWHITE; } wxFont wxSystemSettingsNative::GetFont( wxSystemFont index ) diff --git a/src/gtk1/settings.cpp b/src/gtk1/settings.cpp index bf2d3b2f20..5efb1a3ebc 100644 --- a/src/gtk1/settings.cpp +++ b/src/gtk1/settings.cpp @@ -91,7 +91,8 @@ static bool GetColourFromGTKWidget(int& red, int& green, int& blue, case wxGTK_LIST: widget = gtk_list_new(); - + break; + case wxGTK_MENUITEM: widget = gtk_menu_item_new(); } @@ -307,9 +308,9 @@ wxColour wxSystemSettingsNative::GetColour( wxSystemColour index ) case wxSYS_COLOUR_MAX: default: wxFAIL_MSG( _T("unknown system colour index") ); - } + } - return *wxWHITE; + return *wxWHITE; } wxFont wxSystemSettingsNative::GetFont( wxSystemFont index ) -- 2.45.2