From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Pirotte Newsgroups: gmane.lisp.guile.user Subject: Re: gtk-menu-popup [guile-gnome2 2.16.1-4] Date: Tue, 29 Jun 2010 11:42:35 -0300 Organization: Alto Air Services [http://www.altosw.be/aas/] Message-ID: <20100629114235.16a07bb7@rascar> References: <20100628161537.1669886d@rascar> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1277822584 9926 80.91.229.12 (29 Jun 2010 14:43:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 29 Jun 2010 14:43:04 +0000 (UTC) Cc: guile-user To: Andy Wingo Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Jun 29 16:43:01 2010 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OTc1X-0001XV-Ns for guile-user@m.gmane.org; Tue, 29 Jun 2010 16:42:56 +0200 Original-Received: from localhost ([127.0.0.1]:56720 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OTc1U-0001Xm-RO for guile-user@m.gmane.org; Tue, 29 Jun 2010 10:42:52 -0400 Original-Received: from [140.186.70.92] (port=40549 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OTc1L-0001WZ-Hk for guile-user@gnu.org; Tue, 29 Jun 2010 10:42:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OTc1K-00005M-3E for guile-user@gnu.org; Tue, 29 Jun 2010 10:42:43 -0400 Original-Received: from maximusconfessor.all2all.org ([62.58.108.13]:54983) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OTc1J-000059-Q3 for guile-user@gnu.org; Tue, 29 Jun 2010 10:42:42 -0400 Original-Received: from localhost (unknown [192.168.0.2]) by maximusconfessor.all2all.org (Postfix) with ESMTP id C154DA04C0C3; Tue, 29 Jun 2010 16:42:40 +0200 (CEST) Original-Received: from maximusconfessor.all2all.org ([192.168.0.1]) by localhost (maximusconfessor.all2all.org [192.168.0.2]) (amavisd-new, port 10024) with ESMTP id HfHWuhdQTHEE; Tue, 29 Jun 2010 16:31:46 +0200 (CEST) Original-Received: from rascar (unknown [189.60.69.82]) by maximusconfessor.all2all.org (Postfix) with ESMTPSA id A6474A04C138; Tue, 29 Jun 2010 16:42:37 +0200 (CEST) In-Reply-To: X-Mailer: Claws Mail 3.7.6 (GTK+ 2.20.1; i486-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:7936 Archived-At: Hi Andy, Thank you! It's working! What confused me is that the doc @ http://www.gnu.org/software/guile-gnome/docs/gtk/html/GtkMenu.html#GtkMenu [which I [re]red before to write to the list] is partially correct because = the argument list in the function def is correct [but I didn't catch that as th= ey are all on one line, I guess], where as the explanation of each argument below the function def still mention 'data' [which I did red well because they on= separate lines ... :-)] Cheers, David did you see my message about get-path-at-pos? ;; -- =E2=80=94 Function: gtk-menu-popup (self ) (parent_menu_shell ) (parent_menu_item ) (menu_position_func scm) (button unsigned-i= nt) (activate_time unsigned-int32) =E2=80=94 Method: popup Displays a menu and makes it available for selection. Applications can = use this function to display context-sensitive menus, and will typically supply = =E2=80=98#f=E2=80=99 for the parent-menu-shell, parent-menu-item, func and data parameters. The = default menu positioning function will position the menu at the current mouse c= ursor position. The button parameter should be the mouse button pressed to initiate the= menu popup. If the menu popup was initiated by something other than a mouse = button press, such as a mouse button release or a keypress, button should be 0. The activate-time parameter should be the time stamp of the event that = initiated the popup. If such an event is not available, use gtk-get-current-event= -time instead. menu a . parent-menu-shell the menu shell containing the triggering menu item, or =E2=80=98#f= =E2=80=99 parent-menu-item the menu item whose activation triggered the popup, or =E2=80=98#f= =E2=80=99 func a user supplied function used to position the menu, or =E2=80=98#f= =E2=80=99 data user supplied data to be passed to func. button the mouse button which was pressed to initiate the event. activate-time the time at which the activation event occurred.=20 ;; -- Le Tue, 29 Jun 2010 12:04:27 +0200, Andy Wingo a =C3=A9crit : > Hi David, >=20 > On Mon 28 Jun 2010 21:15, David Pirotte writes: >=20 > > (gtk-menu-popup popup-menu > > #f ;; parent-menu-shell or #f > > #f ;; parent-menu-item or #f > > #f ;; user supplied func to position the menu > > or #f #f ;; user supplied data to pass to func=20 > > button > > time) >=20 > This function did change API when going from guile-gnome-0 to > guile-gnome-2. I paste below the commit that re-added gtk-menu-popup to > guile-gnome-gtk. As you can see the prototype is different -- no user > data to the positioning function. >=20 > Cheers, > Andy > ...