X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e0cfa71527851ba5112281b70ef08b67adc2d1e9..d968078adbfb147e913b9a33fc54242a36f117ce:/src/gtk/bmpbuttn.cpp diff --git a/src/gtk/bmpbuttn.cpp b/src/gtk/bmpbuttn.cpp index 3130b8d23c..ac1cec221d 100644 --- a/src/gtk/bmpbuttn.cpp +++ b/src/gtk/bmpbuttn.cpp @@ -40,7 +40,7 @@ static void gtk_bmpbutton_clicked_callback( GtkWidget *WXUNUSED(widget), wxBitma wxCommandEvent event(wxEVT_COMMAND_BUTTON_CLICKED, button->GetId()); event.SetEventObject(button); - button->GetEventHandler()->ProcessEvent(event); + button->HandleWindowEvent(event); } } @@ -54,7 +54,7 @@ static void gtk_bmpbutton_enter_callback( GtkWidget *WXUNUSED(widget), wxBitmapB if (!button->m_hasVMT) 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 (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 (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 (g_blockEventsOnDrag) return; - button->EndSelect(); + button->GTKEndSelect(); } } @@ -226,25 +226,25 @@ bool wxBitmapButton::Enable( bool enable ) return true; } -void wxBitmapButton::HasFocus() +void wxBitmapButton::GTKHasFocus() { m_hasFocus = true; OnSetBitmap(); } -void wxBitmapButton::NotFocus() +void wxBitmapButton::GTKNotFocus() { m_hasFocus = false; OnSetBitmap(); } -void wxBitmapButton::StartSelect() +void wxBitmapButton::GTKStartSelect() { m_isSelected = true; OnSetBitmap(); } -void wxBitmapButton::EndSelect() +void wxBitmapButton::GTKEndSelect() { m_isSelected = false; OnSetBitmap();