diff --git a/thunar/thunar-window.c b/thunar/thunar-window.c
index 5bbf93a7bc1f2a33fcdcae91f23a58d93488fdd1..f53660debb42502689dd4e70e85dd1e665653f1e 100644
--- a/thunar/thunar-window.c
+++ b/thunar/thunar-window.c
@@ -4378,7 +4378,7 @@ thunar_window_menu_item_selected (ThunarWindow *window,
                                   GtkWidget    *menu_item)
 {
   gchar *tooltip;
-  gint   id;
+  guint  id;
 
   _thunar_return_if_fail (THUNAR_IS_WINDOW (window));
 
@@ -4402,7 +4402,7 @@ static void
 thunar_window_menu_item_deselected (ThunarWindow *window,
                                     GtkWidget    *menu_item)
 {
-  gint id;
+  guint id;
 
   _thunar_return_if_fail (THUNAR_IS_WINDOW (window));