wacom: Fix nav label's maximum page number

The label "X of Y" pages is incorrect when multiple tablets are plugged
in, with Y being one too small. The "num_pages" variable is already
decremented if necessary on line 70, making the ternary excessive.

https://bugzilla.gnome.org/show_bug.cgi?id=668231
This commit is contained in:
Jason Gerecke 2012-01-18 16:53:17 -08:00 committed by Bastien Nocera
parent fa1d9b48d2
commit f2e9b90eaa

View file

@ -88,7 +88,7 @@ cc_wacom_nav_button_update (CcWacomNavButton *nav)
text = g_strdup_printf (_("%d of %d"),
current_page + 1,
priv->ignore_first_page ? num_pages - 1 : num_pages);
num_pages);
gtk_label_set_text (GTK_LABEL (priv->label), text);
}
}