|
From: <gi...@gp...> - 2011-08-29 22:26:42
|
The branch, master has been updated
via 76138e5779cc09453b458bc222a63d2d44ab6343 (commit)
from 2fecf3a75bdbc47f8317fa92f361444bb885d23d (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
=========
Summary
=========
src/hid/gtk/gtkhid-main.c | 9 +--------
1 files changed, 1 insertions(+), 8 deletions(-)
=================
Commit Messages
=================
commit 76138e5779cc09453b458bc222a63d2d44ab6343
Author: Peter Clifton <pc...@ca...>
Commit: Peter Clifton <pc...@ca...>
hid/gtk: Remove unused "button" parameter from Popup function.
Remove the dead code and comments refering to the fact the function's
second argument indicates a mouse button number.
:100644 100644 46a9347... 4d9fdbe... M src/hid/gtk/gtkhid-main.c
=========
Changes
=========
commit 76138e5779cc09453b458bc222a63d2d44ab6343
Author: Peter Clifton <pc...@ca...>
Commit: Peter Clifton <pc...@ca...>
hid/gtk: Remove unused "button" parameter from Popup function.
Remove the dead code and comments refering to the fact the function's
second argument indicates a mouse button number.
diff --git a/src/hid/gtk/gtkhid-main.c b/src/hid/gtk/gtkhid-main.c
index 46a9347..4d9fdbe 100644
--- a/src/hid/gtk/gtkhid-main.c
+++ b/src/hid/gtk/gtkhid-main.c
@@ -1928,8 +1928,7 @@ N_("Bring up the popup menu specified by @code{MenuName}.\n"
This just pops up the specified menu. The menu must have been defined
as a named subresource of the Popups resource in the menu resource
-file. If called as a response to a mouse button click, the mouse
-button number must be specified as the second argument.
+file.
%end-doc */
@@ -1938,16 +1937,10 @@ static int
Popup (int argc, char **argv, Coord x, Coord y)
{
GtkMenu *menu;
- guint button;
if (argc != 1 && argc != 2)
AFAIL (popup);
- if (argc == 1)
- button = 0;
- else
- button = atoi (argv[1]);
-
menu = ghid_main_menu_get_popup (GHID_MAIN_MENU (ghidgui->menu_bar), argv[0]);
if (! GTK_IS_MENU (menu))
{
|