Added Theme patch.
Upported mouse click detection change. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21757 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -502,5 +502,15 @@ wxSize wxChoice::DoGetBestSize() const
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool wxChoice::IsOwnGtkWindow( GdkWindow *window )
|
||||||
|
{
|
||||||
|
#ifdef __WXGTK20__
|
||||||
|
return GTK_BUTTON(m_widget)->event_window;
|
||||||
|
#else
|
||||||
|
return (window == m_widget->window);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#endif // wxUSE_CHOICE
|
#endif // wxUSE_CHOICE
|
||||||
|
|
||||||
|
@@ -958,6 +958,8 @@ GtkWidget *wxListBox::GetConnectWidget()
|
|||||||
|
|
||||||
bool wxListBox::IsOwnGtkWindow( GdkWindow *window )
|
bool wxListBox::IsOwnGtkWindow( GdkWindow *window )
|
||||||
{
|
{
|
||||||
|
if (m_widget->window == window) return TRUE;
|
||||||
|
|
||||||
if (GTK_WIDGET(m_list)->window == window) return TRUE;
|
if (GTK_WIDGET(m_list)->window == window) return TRUE;
|
||||||
|
|
||||||
GList *child = m_list->children;
|
GList *child = m_list->children;
|
||||||
|
@@ -282,7 +282,11 @@ void wxSpinCtrl::OnChar( wxKeyEvent &event )
|
|||||||
|
|
||||||
bool wxSpinCtrl::IsOwnGtkWindow( GdkWindow *window )
|
bool wxSpinCtrl::IsOwnGtkWindow( GdkWindow *window )
|
||||||
{
|
{
|
||||||
return GTK_SPIN_BUTTON(m_widget)->panel == window;
|
if (GTK_SPIN_BUTTON(m_widget)->entry.text_area == window) return TRUE;
|
||||||
|
|
||||||
|
if (GTK_SPIN_BUTTON(m_widget)->panel == window) return TRUE;
|
||||||
|
|
||||||
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxSpinCtrl::ApplyWidgetStyle()
|
void wxSpinCtrl::ApplyWidgetStyle()
|
||||||
|
@@ -2194,11 +2194,11 @@ gtk_window_realized_callback( GtkWidget *m_widget, wxWindow *win )
|
|||||||
|
|
||||||
if (g_isIdle)
|
if (g_isIdle)
|
||||||
wxapp_install_idle_handler();
|
wxapp_install_idle_handler();
|
||||||
|
|
||||||
if (win->m_delayedBackgroundColour)
|
if (win->m_delayedBackgroundColour && !win->GetThemeEnabled())
|
||||||
win->GtkSetBackgroundColour( win->GetBackgroundColour() );
|
win->GtkSetBackgroundColour( win->GetBackgroundColour() );
|
||||||
|
|
||||||
if (win->m_delayedForegroundColour)
|
if (win->m_delayedForegroundColour && !win->GetThemeEnabled())
|
||||||
win->GtkSetForegroundColour( win->GetForegroundColour() );
|
win->GtkSetForegroundColour( win->GetForegroundColour() );
|
||||||
|
|
||||||
#ifdef __WXGTK20__
|
#ifdef __WXGTK20__
|
||||||
|
@@ -502,5 +502,15 @@ wxSize wxChoice::DoGetBestSize() const
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool wxChoice::IsOwnGtkWindow( GdkWindow *window )
|
||||||
|
{
|
||||||
|
#ifdef __WXGTK20__
|
||||||
|
return GTK_BUTTON(m_widget)->event_window;
|
||||||
|
#else
|
||||||
|
return (window == m_widget->window);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#endif // wxUSE_CHOICE
|
#endif // wxUSE_CHOICE
|
||||||
|
|
||||||
|
@@ -958,6 +958,8 @@ GtkWidget *wxListBox::GetConnectWidget()
|
|||||||
|
|
||||||
bool wxListBox::IsOwnGtkWindow( GdkWindow *window )
|
bool wxListBox::IsOwnGtkWindow( GdkWindow *window )
|
||||||
{
|
{
|
||||||
|
if (m_widget->window == window) return TRUE;
|
||||||
|
|
||||||
if (GTK_WIDGET(m_list)->window == window) return TRUE;
|
if (GTK_WIDGET(m_list)->window == window) return TRUE;
|
||||||
|
|
||||||
GList *child = m_list->children;
|
GList *child = m_list->children;
|
||||||
|
@@ -282,7 +282,11 @@ void wxSpinCtrl::OnChar( wxKeyEvent &event )
|
|||||||
|
|
||||||
bool wxSpinCtrl::IsOwnGtkWindow( GdkWindow *window )
|
bool wxSpinCtrl::IsOwnGtkWindow( GdkWindow *window )
|
||||||
{
|
{
|
||||||
return GTK_SPIN_BUTTON(m_widget)->panel == window;
|
if (GTK_SPIN_BUTTON(m_widget)->entry.text_area == window) return TRUE;
|
||||||
|
|
||||||
|
if (GTK_SPIN_BUTTON(m_widget)->panel == window) return TRUE;
|
||||||
|
|
||||||
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxSpinCtrl::ApplyWidgetStyle()
|
void wxSpinCtrl::ApplyWidgetStyle()
|
||||||
|
@@ -2194,11 +2194,11 @@ gtk_window_realized_callback( GtkWidget *m_widget, wxWindow *win )
|
|||||||
|
|
||||||
if (g_isIdle)
|
if (g_isIdle)
|
||||||
wxapp_install_idle_handler();
|
wxapp_install_idle_handler();
|
||||||
|
|
||||||
if (win->m_delayedBackgroundColour)
|
if (win->m_delayedBackgroundColour && !win->GetThemeEnabled())
|
||||||
win->GtkSetBackgroundColour( win->GetBackgroundColour() );
|
win->GtkSetBackgroundColour( win->GetBackgroundColour() );
|
||||||
|
|
||||||
if (win->m_delayedForegroundColour)
|
if (win->m_delayedForegroundColour && !win->GetThemeEnabled())
|
||||||
win->GtkSetForegroundColour( win->GetForegroundColour() );
|
win->GtkSetForegroundColour( win->GetForegroundColour() );
|
||||||
|
|
||||||
#ifdef __WXGTK20__
|
#ifdef __WXGTK20__
|
||||||
|
Reference in New Issue
Block a user