Remove unused code in wxGTK wxAnyButton
The GtkImage can always be retrieved using the appropriate GTK function, there is no need to get the button child directly any longer.
This commit is contained in:
parent
10b7659acd
commit
4e366b2cfb
1 changed files with 1 additions and 4 deletions
|
|
@ -186,10 +186,7 @@ void wxAnyButton::GTKDoShowBitmap(const wxBitmap& bitmap)
|
|||
{
|
||||
wxCHECK_RET(bitmap.IsOk(), "invalid bitmap");
|
||||
|
||||
GtkWidget* image = gtk_button_get_image(GTK_BUTTON(m_widget));
|
||||
if (image == NULL)
|
||||
image = gtk_bin_get_child(GTK_BIN(m_widget));
|
||||
|
||||
GtkWidget* const image = gtk_button_get_image(GTK_BUTTON(m_widget));
|
||||
wxCHECK_RET(WX_GTK_IS_IMAGE(image), "must have image widget");
|
||||
|
||||
WX_GTK_IMAGE(image)->Set(bitmap);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue