- // initial bitmap
- image = gtk_image_new_from_pixbuf(m_bitmap.GetPixbuf());
- gtk_widget_show(image);
- gtk_container_add((GtkContainer*)m_widget, image);
- }
- else
- { // subsequent bitmaps
- gtk_image_set_from_pixbuf((GtkImage*)image, m_bitmap.GetPixbuf());
- }
-}
-
-bool wxToggleBitmapButton::Enable(bool enable /*=true*/)
-{
- if (!wxControl::Enable(enable))
- return false;
-
- gtk_widget_set_sensitive(GTK_BIN(m_widget)->child, enable);
-
- return true;
-}
-
-void wxToggleBitmapButton::DoApplyWidgetStyle(GtkRcStyle *style)
-{
- gtk_widget_modify_style(m_widget, style);
- gtk_widget_modify_style(GTK_BIN(m_widget)->child, style);
-}
-
-GdkWindow *
-wxToggleBitmapButton::GTKGetWindow(wxArrayGdkWindows& WXUNUSED(windows)) const
-{
- return GTK_BUTTON(m_widget)->event_window;
-}
-
-// Get the "best" size for this control.
-wxSize wxToggleBitmapButton::DoGetBestSize() const
-{
- wxSize best;