- Date: Wed, 20 Feb 2019 11:49:20 -0600
- From: Igor Korot via gtk-list <gtk-list@xxxxxxxxx>
- Subject: Re:
Hi, Stefan et al,
On Wed, Feb 20, 2019 at 11:33 AM Stefan Salewski <mail@xxxxxxxxxxxx> wrote:
> On Wed, 2019-02-20 at 11:07 -0600, Igor Korot via gtk-list wrote:
> > Hi, ALL,
> > This link https://developer.gnome.org/gtk3/stable/GtkToolbar.html#Gtk
> > Toolbar-popup-context-menu
> > states that the parameter "button" can be "-1".
> > What is the scenario when this occurs, i.e. it should be the button
> > number that was clicked IIUC?
> > Thank you for clarification.
> Please use a more meaningful Subject next time.
> And you may consider reading the API docs you linked to more carefully:
> "Emitted when the user right-clicks the toolbar or uses the
> keybinding to display a popup menu."
I know I am kind of switching the topic here, but...
Why do we even talking about button number, when the doc explicitly said
"right-click", which implies "right mouse button".
Or I am misunderstanding something?
> So it seems to be obviously that button = -1 is the case when a
> keybinding is used to display a popup menu. (Because for this case
> there is no button involved.)
> When you continue reading the API docs, it is even more clear:
> "The mouse button number is given by the button parameter. If the menu
> was popped up using the keybaord, button is -1."
gtk-list mailing list
- Prev by Date:
- Next by Date:
- Previous by thread:
- Next by thread: