]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/bmpbuttn.cpp
Fixed broken 'hidden categories' mode (aka. alphabetic mode); Added distinct names...
[wxWidgets.git] / src / gtk1 / bmpbuttn.cpp
index 62f350940413b9d5fcb491c29d73a9ddd06a0b3e..d65eaae68aa84446118a1c5af773b51f620e7610 100644 (file)
@@ -50,7 +50,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);
 }
 }
 
@@ -206,7 +206,7 @@ void wxBitmapButton::OnSetBitmap()
     if (!the_one.Ok()) the_one = m_bmpNormal;
     if (!the_one.Ok()) return;
 
-    GdkBitmap *mask = (GdkBitmap *) NULL;
+    GdkBitmap *mask = NULL;
     if (the_one.GetMask()) mask = the_one.GetMask()->GetBitmap();
 
     GtkWidget *child = BUTTON_CHILD(m_widget);