]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/tbargtk.cpp
don't call CreatesMessageOutput() explicitly, it will be created on demand as/if...
[wxWidgets.git] / src / gtk1 / tbargtk.cpp
index 38a8fde2533d7fcd0c9190d0bbe339e43f2baf5b..53e68f741a2a856fc24f237370ea16139f1d68bb 100644 (file)
@@ -396,9 +396,7 @@ bool wxToolBar::DoInsertTool(size_t pos, wxToolBarToolBase *toolBase)
           mask = bitmap.GetMask()->GetBitmap();
         
         tool_pixmap = gtk_pixmap_new( pixmap, mask );
-#if (GTK_MINOR_VERSION > 0)
         gtk_pixmap_set_build_insensitive( GTK_PIXMAP(tool_pixmap), TRUE );
-#endif
         
         gtk_misc_set_alignment( GTK_MISC(tool_pixmap), 0.5, 0.5 );
 
@@ -445,10 +443,10 @@ bool wxToolBar::DoInsertTool(size_t pos, wxToolBarToolBase *toolBase)
                                   widget,
                                   tool->GetLabel().empty()
                                     ? NULL
-                                    : tool->GetLabel().mbc_str(),
+                                    : (const char*) wxGTK_CONV( tool->GetLabel() ),
                                   tool->GetShortHelp().empty()
                                     ? NULL
-                                    : tool->GetShortHelp().mbc_str(),
+                                    : (const char*) wxGTK_CONV( tool->GetShortHelp() ),
                                   "", // tooltip_private_text (?)
                                   tool->m_pixmap,
                                   (GtkSignalFunc)gtk_toolbar_callback,
@@ -526,14 +524,12 @@ bool wxToolBar::DoDeleteTool(size_t WXUNUSED(pos), wxToolBarToolBase *toolBase)
 
 void wxToolBar::DoEnableTool(wxToolBarToolBase *toolBase, bool enable)
 {
-#if (GTK_MINOR_VERSION > 0)
     wxToolBarTool *tool = (wxToolBarTool *)toolBase;
 
-    /* we don't disable the tools for GTK 1.0 as the bitmaps don't get
-       greyed anyway and this also disables tooltips */
     if (tool->m_item)
+    {
         gtk_widget_set_sensitive( tool->m_item, enable );
-#endif
+    }
 }
 
 void wxToolBar::DoToggleTool( wxToolBarToolBase *toolBase, bool toggle ) 
@@ -611,7 +607,7 @@ void wxToolBar::SetToolShortHelp( int id, const wxString& helpString )
     {
         (void)tool->SetShortHelp(helpString);
         gtk_tooltips_set_tip(m_toolbar->tooltips, tool->m_item,
-                             helpString.mbc_str(), "");
+                             wxGTK_CONV( helpString ), "");
     }
 }