Commit 064fcf54 authored by charras's avatar charras

change to compile pcbnew, without png icon

parent 0f636a98
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
#include "id.h" #include "id.h"
#include "hotkeys.h" #include "hotkeys.h"
#include "icons.h"
/************************************************/ /************************************************/
void WinEDA_SchematicFrame::ReCreateMenuBar() void WinEDA_SchematicFrame::ReCreateMenuBar()
...@@ -33,11 +32,6 @@ void WinEDA_SchematicFrame::ReCreateMenuBar() ...@@ -33,11 +32,6 @@ void WinEDA_SchematicFrame::ReCreateMenuBar()
if( menuBar == NULL ) if( menuBar == NULL )
{ {
wxImage::AddHandler( new wxPNGHandler ); /* Support PNG Images */
initialise_icons();
menuBar = new wxMenuBar(); menuBar = new wxMenuBar();
m_FilesMenu = new wxMenu; m_FilesMenu = new wxMenu;
...@@ -143,8 +137,7 @@ void WinEDA_SchematicFrame::ReCreateMenuBar() ...@@ -143,8 +137,7 @@ void WinEDA_SchematicFrame::ReCreateMenuBar()
item = new wxMenuItem( editMenu, ID_SCHEMATIC_REDO, item = new wxMenuItem( editMenu, ID_SCHEMATIC_REDO,
msg, _( "Redo the last undo command" ), msg, _( "Redo the last undo command" ),
wxITEM_NORMAL ); wxITEM_NORMAL );
extern wxBitmap zoom_in_png; item->SetBitmap( redo_xpm );
item->SetBitmap( zoom_in_png );
editMenu->Append( item ); editMenu->Append( item );
editMenu->AppendSeparator(); editMenu->AppendSeparator();
...@@ -160,8 +153,7 @@ void WinEDA_SchematicFrame::ReCreateMenuBar() ...@@ -160,8 +153,7 @@ void WinEDA_SchematicFrame::ReCreateMenuBar()
item = new wxMenuItem( editMenu, ID_FIND_ITEMS, item = new wxMenuItem( editMenu, ID_FIND_ITEMS,
_( "Find" ), _( "Find components and texts" ), _( "Find" ), _( "Find components and texts" ),
wxITEM_NORMAL ); wxITEM_NORMAL );
extern wxBitmap edit_find_png; item->SetBitmap( find_xpm );
item->SetBitmap( edit_find_png );
editMenu->Append( item ); editMenu->Append( item );
editMenu->AppendSeparator(); editMenu->AppendSeparator();
...@@ -179,7 +171,7 @@ void WinEDA_SchematicFrame::ReCreateMenuBar() ...@@ -179,7 +171,7 @@ void WinEDA_SchematicFrame::ReCreateMenuBar()
item = new wxMenuItem( viewMenu, ID_ZOOM_IN_BUTT, item = new wxMenuItem( viewMenu, ID_ZOOM_IN_BUTT,
msg, _( "Zoom in" ), msg, _( "Zoom in" ),
wxITEM_NORMAL ); wxITEM_NORMAL );
item->SetBitmap( find_xpm ); item->SetBitmap( zoom_in_xpm );
viewMenu->Append( item ); viewMenu->Append( item );
msg = AddHotkeyName( _( "Zoom out" ), s_Schematic_Hokeys_Descr, msg = AddHotkeyName( _( "Zoom out" ), s_Schematic_Hokeys_Descr,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment