From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.3 required=5.0 tests=BAYES_00,STOX_REPLY_TYPE, STOX_REPLY_TYPE_WITHOUT_QUOTES,XPRIO autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!feeder.erje.net!eu.feeder.erje.net!news.panservice.it!feed.xsnews.nl!border02.ams.xsnews.nl!feeder04.ams.xsnews.nl!feeder01.ams.xsnews.nl!frontend-F09-02.ams.textnews.kpn.nl From: "ldries46" Newsgroups: comp.lang.ada Subject: Problems with Glade 3, and Ada drawing Date: Tue, 14 Jan 2014 09:33:29 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Newsreader: Microsoft Windows Live Mail 15.4.3555.308 X-MimeOLE: Produced By Microsoft MimeOLE V15.4.3555.308 Message-ID: <52d4f6c2$0$25127$703f8584@textnews.kpn.nl> Organization: KPN.com NNTP-Posting-Host: 77.168.179.107 X-Trace: 1389688514 textnews.kpn.nl 25127 77.168.179.107@kpn/77.168.179.107:53572 Xref: news.eternal-september.org comp.lang.ada:18165 Date: 2014-01-14T09:33:29+01:00 List-Id: I am trying to draw a grid on Gtk_Drawing Area. I want that drawing to appear when then program starts before anything is done. I can draw that grid and see it but whenever the program redraws the window it disappears as a whole or in some cases partly. As various sources I found out that I have to act on the draw signal. As I build my GUI with Glade 3 I thought I could connect the drawing signal with: Register_Handler (Builder => Builder, Handler_Name => "On_Area_Draw", -- from XML file Handler => Sudoku_Callbacks.On_Area_Draw'Access); Where I coupled "On_Area_Draw" in Glade with the draw signal in the Gtk_Drawing_Area. Although This was carried out case Sensitive the program aborted. The most likely reason therefor is that the handler procedure was: procedure On_Area_Draw (Object : access Gtkada_Builder_Record'Class); where it should have been function On_Area_Draw (Object : access Gtkada_Builder_Record'Class; Context : Cairo.Cairo_Context) return boolean; Using the last results in aborting the compilation. The question now is how should I connect the draw signal to which function/procedure to get a correct working program?