X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/223d09f6b523aac674ef9b72a883dfa8d37c5d4e..47678105333557b1a5f225fe57e4ae27fa4b8706:/src/gtk1/bmpbuttn.cpp diff --git a/src/gtk1/bmpbuttn.cpp b/src/gtk1/bmpbuttn.cpp index 691e6912d7..32ac3f8575 100644 --- a/src/gtk1/bmpbuttn.cpp +++ b/src/gtk1/bmpbuttn.cpp @@ -15,8 +15,8 @@ #if wxUSE_BMPBUTTON -#include "gdk/gdk.h" -#include "gtk/gtk.h" +#include +#include //----------------------------------------------------------------------------- // classes @@ -43,7 +43,8 @@ extern bool g_blockEventsOnDrag; static void gtk_bmpbutton_clicked_callback( GtkWidget *WXUNUSED(widget), wxBitmapButton *button ) { - if (g_isIdle) wxapp_install_idle_handler(); + if (g_isIdle) + wxapp_install_idle_handler(); if (!button->m_hasVMT) return; if (g_blockEventsOnDrag) return; @@ -217,15 +218,15 @@ void wxBitmapButton::SetBitmap() else { if (m_isSelected) - { - the_one = m_selected; - } + { + the_one = m_selected; + } else - { + { if (m_hasFocus) - the_one = m_focus; + the_one = m_focus; else - the_one = m_bitmap; + the_one = m_bitmap; } }