[Gtk2forpascal-devel] =?gb2312?B?SG93IHRvIGlubGluZSBhIHhwbSBpY29uPw==?=
Brought to you by:
mgaertner
From: mili <mil...@16...> - 2002-07-31 12:05:35
|
Hello, Every one I know that with C I can include a xpm file and then my executable can run independent on any other file. But I don't know how to do it under Pascal. I notice that when I remove all picture files under examples/gtk+/demo/data, the gtk_demo report no picture file found. Can you help me? And another question. I try to construct a menu with the following code: >>>>> const MenuItems : array [1..5] of TGtkItemFactoryEntry =( ( path: '/_File'; accelerator: NULL; callback: nil; callback_action: 0; item_type: '<Branch>'; extra_data: NULL ), ( path: '/File/_New'; accelerator: '<control>N'; callback: TGtkItemfactoryCallback(@file_new_clicked); callback_action: 0; item_type : '<StockItem>'; extra_data: NULL), ( path: '/File/_Open'; accelerator: '<control>O'; callback: TGtkItemfactoryCallback(@file_open_clicked); callback_action: 0; item_type : '<StockItem>'; extra_data: NULL), ( path: '/File/sep1'; accelerator: NULL; callback: nil; callback_action: 0; item_type: '<Separator>' ), ( path: '/File/_Close'; accelerator: '<control>Q'; callback: TGtkItemfactoryCallback(@file_close_clicked); callback_action: 0; item_type : '<StockItem>'; extra_data: NULL) ); <<<<<<< Then When I run it, it can work well but report some error in console: (gbase:1133): Gtk-CRITICAL **: file gtkstock.c: line 128 (gtk_stock_lookup): assertion `stock_id != NULL' failed What's the problem? Thank you very much! |