X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bbd321ffc2d4e7f9e45c72af9e3f824fa9ccda51..6f45066bd8f45e15d645d0f46a29f81aed8c020e:/src/gtk/tbargtk.cpp diff --git a/src/gtk/tbargtk.cpp b/src/gtk/tbargtk.cpp index f1e0bcc9ad..86fda2bd50 100644 --- a/src/gtk/tbargtk.cpp +++ b/src/gtk/tbargtk.cpp @@ -91,8 +91,8 @@ public: Init(); } - wxToolBarTool(wxToolBar *tbar, wxControl *control) - : wxToolBarToolBase(tbar, control) + wxToolBarTool(wxToolBar *tbar, wxControl *control, const wxString& label) + : wxToolBarToolBase(tbar, control, label) { Init(); } @@ -223,7 +223,7 @@ void gtktoolwidget_size_callback( GtkWidget *widget, { // this shouldn't happen... if (win->GetParent()->m_wxwindow) return; - + wxSize size = win->GetEffectiveMinSize(); if (size.y != alloc->height) { @@ -269,9 +269,10 @@ wxToolBarToolBase *wxToolBar::CreateTool(int id, clientData, shortHelpString, longHelpString); } -wxToolBarToolBase *wxToolBar::CreateTool(wxControl *control) +wxToolBarToolBase * +wxToolBar::CreateTool(wxControl *control, const wxString& label) { - return new wxToolBarTool(this, control); + return new wxToolBarTool(this, control, label); } //----------------------------------------------------------------------------- @@ -474,11 +475,11 @@ bool wxToolBar::DoInsertTool(size_t pos, wxToolBarToolBase *toolBase) (const char *) NULL, posGtk ); - + // connect after in order to correct size_allocate events g_signal_connect_after (tool->GetControl()->m_widget, "size_allocate", G_CALLBACK (gtktoolwidget_size_callback), tool->GetControl()); - + break; } @@ -606,7 +607,7 @@ void wxToolBar::SetToolNormalBitmap( int id, const wxBitmap& bitmap ) tool->SetNormalBitmap(bitmap); tool->SetImage(tool->GetBitmap()); - } + } } void wxToolBar::SetToolDisabledBitmap( int id, const wxBitmap& bitmap ) @@ -618,7 +619,7 @@ void wxToolBar::SetToolDisabledBitmap( int id, const wxBitmap& bitmap ) tool->SetDisabledBitmap(bitmap); tool->SetImage(tool->GetBitmap()); - } + } } // ---------------------------------------------------------------------------- @@ -629,7 +630,7 @@ void wxToolBar::OnInternalIdle() { // Check if we have to show window now if (GtkShowFromOnIdle()) return; - + wxCursor cursor = m_cursor; if (g_globalCursor.Ok()) cursor = g_globalCursor;