Re:
- From: Igor Korot <ikorot01 gmail com>
- To: Stefan Salewski <mail ssalewski de>
- Cc: "gtk-list gnome org" <gtk-list gnome org>
- Subject: Re:
- Date: Wed, 20 Feb 2019 11:49:20 -0600
Hi, Stefan et al,
On Wed, Feb 20, 2019 at 11:33 AM Stefan Salewski <mail ssalewski de> 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:
https://developer.gnome.org/gtk3/stable/GtkToolbar.html#GtkToolbar-popup-context-menu
"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?
Thank you.
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."
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]