+ // should we show the tooltip for the n-th pane of the statusbar?
+ if (!statbar->GetField(n).IsEllipsized())
+ return FALSE; // no, it's not useful
+
+ const wxString& str = statbar->GetStatusText(n);
+ if (str.empty())
+ return FALSE;
+
+ gtk_tooltip_set_text(tooltip, wxGTK_CONV_SYS(str));
+ return TRUE;
+}
+}
+#endif
+#endif
+
+// ----------------------------------------------------------------------------
+// wxStatusBarGeneric
+// ----------------------------------------------------------------------------
+
+BEGIN_EVENT_TABLE(wxStatusBarGeneric, wxWindow)
+ EVT_PAINT(wxStatusBarGeneric::OnPaint)
+ EVT_SIZE(wxStatusBarGeneric::OnSize)
+ EVT_LEFT_DOWN(wxStatusBarGeneric::OnLeftDown)
+ EVT_RIGHT_DOWN(wxStatusBarGeneric::OnRightDown)
+ EVT_SYS_COLOUR_CHANGED(wxStatusBarGeneric::OnSysColourChanged)
+END_EVENT_TABLE()
+
+void wxStatusBarGeneric::Init()