MenuShell: Avoid compiler warning re un/signed cmp

priv->button is a guint, but we assigned it to a local gint.

gtk/gtkmenushell.c:734:37: warning: comparison between signed and
  unsigned integer expressions [-Wsign-compare]
           if (button && (new_button != button) && priv->parent_menu_shell)
                                     ^
This commit is contained in:
Daniel Boles 2018-04-17 20:50:04 +01:00
parent d13e78831b
commit 3b2a03367c

View File

@ -727,7 +727,7 @@ gtk_menu_shell_event (GtkWidget *widget,
if (priv->active)
{
GtkWidget *menu_item;
gint button = priv->button;
guint button = priv->button;
priv->button = 0;