prefix implementation methods of wxBitmapButton with 'GTK' to prevent shadowing of HasFocus
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51311 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -51,10 +51,10 @@ public:
|
|||||||
// implementation
|
// implementation
|
||||||
// --------------
|
// --------------
|
||||||
|
|
||||||
void HasFocus();
|
void GTKHasFocus();
|
||||||
void NotFocus();
|
void GTKNotFocus();
|
||||||
void StartSelect();
|
void GTKStartSelect();
|
||||||
void EndSelect();
|
void GTKEndSelect();
|
||||||
|
|
||||||
bool m_hasFocus:1;
|
bool m_hasFocus:1;
|
||||||
bool m_isSelected:1;
|
bool m_isSelected:1;
|
||||||
|
@@ -54,7 +54,7 @@ static void gtk_bmpbutton_enter_callback( GtkWidget *WXUNUSED(widget), wxBitmapB
|
|||||||
if (!button->m_hasVMT) return;
|
if (!button->m_hasVMT) return;
|
||||||
if (g_blockEventsOnDrag) return;
|
if (g_blockEventsOnDrag) return;
|
||||||
|
|
||||||
button->HasFocus();
|
button->GTKHasFocus();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -68,7 +68,7 @@ static void gtk_bmpbutton_leave_callback( GtkWidget *WXUNUSED(widget), wxBitmapB
|
|||||||
if (!button->m_hasVMT) return;
|
if (!button->m_hasVMT) return;
|
||||||
if (g_blockEventsOnDrag) return;
|
if (g_blockEventsOnDrag) return;
|
||||||
|
|
||||||
button->NotFocus();
|
button->GTKNotFocus();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -82,7 +82,7 @@ static void gtk_bmpbutton_press_callback( GtkWidget *WXUNUSED(widget), wxBitmapB
|
|||||||
if (!button->m_hasVMT) return;
|
if (!button->m_hasVMT) return;
|
||||||
if (g_blockEventsOnDrag) return;
|
if (g_blockEventsOnDrag) return;
|
||||||
|
|
||||||
button->StartSelect();
|
button->GTKStartSelect();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -96,7 +96,7 @@ static void gtk_bmpbutton_release_callback( GtkWidget *WXUNUSED(widget), wxBitma
|
|||||||
if (!button->m_hasVMT) return;
|
if (!button->m_hasVMT) return;
|
||||||
if (g_blockEventsOnDrag) return;
|
if (g_blockEventsOnDrag) return;
|
||||||
|
|
||||||
button->EndSelect();
|
button->GTKEndSelect();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -226,25 +226,25 @@ bool wxBitmapButton::Enable( bool enable )
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxBitmapButton::HasFocus()
|
void wxBitmapButton::GTKHasFocus()
|
||||||
{
|
{
|
||||||
m_hasFocus = true;
|
m_hasFocus = true;
|
||||||
OnSetBitmap();
|
OnSetBitmap();
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxBitmapButton::NotFocus()
|
void wxBitmapButton::GTKNotFocus()
|
||||||
{
|
{
|
||||||
m_hasFocus = false;
|
m_hasFocus = false;
|
||||||
OnSetBitmap();
|
OnSetBitmap();
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxBitmapButton::StartSelect()
|
void wxBitmapButton::GTKStartSelect()
|
||||||
{
|
{
|
||||||
m_isSelected = true;
|
m_isSelected = true;
|
||||||
OnSetBitmap();
|
OnSetBitmap();
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxBitmapButton::EndSelect()
|
void wxBitmapButton::GTKEndSelect()
|
||||||
{
|
{
|
||||||
m_isSelected = false;
|
m_isSelected = false;
|
||||||
OnSetBitmap();
|
OnSetBitmap();
|
||||||
|
Reference in New Issue
Block a user