[wx-dev] #9706: gtk+univ build error (problem with generic wxBitmapComboBox)

wxTrac noreply at wxsite.net
Sun Jul 6 16:01:00 PDT 2008


Ticket URL: <http://trac.wxwidgets.org/ticket/9706>

#9706: gtk+univ build error (problem with generic wxBitmapComboBox)
-------------------------------+--------------------------------------------
 Reporter:  wojdyr             |       Owner:         
     Type:  build error        |      Status:  new    
 Priority:  normal             |   Milestone:         
Component:  wxUniv (any port)  |     Version:  2.9-svn
 Keywords:                     |   Blockedby:         
    Patch:  0                  |    Blocking:         
-------------------------------+--------------------------------------------
 when building gtk/univ I got three errors:

   ../src/gtk/window.cpp: In member function ‘bool
 wxWindowGTK::GTKHandleFocusIn()’:
   ../src/gtk/window.cpp:2916: error: invalid conversion from
 ‘wxWindowGTK*’ to ‘wxWindow*’
 One way of fixing this is:
 {{{
 Index: include/wx/event.h
 ===================================================================
 --- include/wx/event.h  (revision 54519)
 +++ include/wx/event.h  (working copy)
 @@ -1204,7 +1204,7 @@
  class WXDLLIMPEXP_CORE wxChildFocusEvent : public wxCommandEvent
  {
  public:
 -    wxChildFocusEvent(wxWindow *win = NULL);
 +    wxChildFocusEvent(wxWindowBase *win = NULL);

      wxWindow *GetWindow() const { return (wxWindow *)GetEventObject(); }

 Index: src/common/event.cpp
 ===================================================================
 --- src/common/event.cpp        (revision 54519)
 +++ src/common/event.cpp        (working copy)
 @@ -793,7 +793,7 @@
      SetEventObject(win);
  }

 -wxChildFocusEvent::wxChildFocusEvent(wxWindow *win)
 +wxChildFocusEvent::wxChildFocusEvent(wxWindowBase *win)
                   : wxCommandEvent(wxEVT_CHILD_FOCUS)
  {
      SetEventObject(win);

 }}}


   ../src/common/valgen.cpp:150: error: ‘wxBitmapToggleButton’ has not been
 declared

 {{{
 --- src/common/valgen.cpp       (revision 54519)
 +++ src/common/valgen.cpp       (working copy)
 @@ -146,7 +146,7 @@
              return true;
          }
      } else
 -#if defined(__WXMAC__) || defined(__WXGTK20__)
 +#if (defined(__WXMAC__) || defined(__WXGTK20__)) &&
 !defined(__WXUNIVERSAL__)
      if (m_validatorWindow->IsKindOf(CLASSINFO(wxBitmapToggleButton)) )
      {
          wxBitmapToggleButton * pControl = (wxBitmapToggleButton *)
 m_validatorWindow;

 }}}

 I don't know how the third error should be fixed:
 {{{
 ../src/generic/bmpcboxg.cpp: In static member function ‘static wxObject*
 wxBitmapComboBox::wxCreateObject()’:
 ../src/generic/bmpcboxg.cpp:58: error: cannot allocate an object of
 abstract type ‘wxBitmapComboBox’
 ../include/wx/generic/bmpcbox.h:27: note:   because the following virtual
 functions are pure within ‘wxBitmapComboBox’:
 ../include/wx/bmpcbox.h:49: note:       virtual wxBitmap
 wxBitmapComboBoxBase::GetItemBitmap(unsigned int) const
 ../include/wx/bmpcbox.h:52: note:       virtual wxSize
 wxBitmapComboBoxBase::GetBitmapSize() const
 }}}


--
Ticket URL: <http://trac.wxwidgets.org/ticket/9706>


More information about the wx-dev mailing list