Hi Simon,
The answer to your first question is not easily if at all. It might be possible to work out if ap_EditMethods function is called from the context menu but I can't think how right now.
The answer to your second question is yes. You can reuse string ID's where-ever you like. They're just const strings.
Cheers
Martin
________________________________________
From: owner-abiword-dev@abisource.com [owner-abiword-dev@abisource.com] on behalf of Simon Larochelle [larochelle.simon.1@gmail.com]
Sent: Wednesday, June 13, 2012 11:08 AM
To: abiword-dev@abisource.com
Subject: Context menu and top menu
I am trying to fix a bug that happens when one tries to open the image
dialog from the top menu Format:Image. The algorithm of function
dlgFmtImage assumes that it was accessed through a context menu, and
thus, sometimes failed when accessed through the top menu. Is it
possible in an ap_EditMethods function to know whether the function
was access through the context menu or through the top menu? If not,
and if I need to create a new function, is it possible to do that
without adding new strings in ap_String_Id.h that will need to be
translated?
Simon
Received on Wed Jun 13 03:14:27 2012
This archive was generated by hypermail 2.1.8 : Wed Jun 13 2012 - 03:14:27 CEST