diff options
author | Michael Catanzaro <mcatanzaro@igalia.com> | 2019-05-04 11:05:40 -0500 |
---|---|---|
committer | Jan-Michael Brummer <jan.brummer@tabos.org> | 2019-05-04 20:05:46 +0000 |
commit | 20b8952bc18b09e3aec11263150664cedee29333 (patch) | |
tree | 11db4b4d76853c01c8d7d20c6c2f1de6c1e8de54 /src/ephy-notebook.c | |
parent | b026c5af8c0eabb9173d847c2c52691d5043e09b (diff) | |
download | epiphany-20b8952bc18b09e3aec11263150664cedee29333.tar.gz |
notebook: don't return -1 in a guint
Diffstat (limited to 'src/ephy-notebook.c')
-rw-r--r-- | src/ephy-notebook.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ephy-notebook.c b/src/ephy-notebook.c index 15c80f3d1..185ef48d4 100644 --- a/src/ephy-notebook.c +++ b/src/ephy-notebook.c @@ -466,7 +466,7 @@ show_tabs_changed_cb (GSettings *settings, update_tabs_visibility (nb, FALSE); } -static guint +static gint get_last_pinned_tab_pos (GtkNotebook *notebook) { gint pages = gtk_notebook_get_n_pages (GTK_NOTEBOOK (notebook)); @@ -489,10 +489,10 @@ page_reordered_cb (GtkNotebook *notebook, guint page_num, gpointer user_data) { - guint last_pinned_tab_pos = get_last_pinned_tab_pos (notebook); + gint last_pinned_tab_pos = get_last_pinned_tab_pos (notebook); /* Ensure that pinned tabs will always stay at the beginning of tab bar */ - if (last_pinned_tab_pos != -1 && page_num <= last_pinned_tab_pos) + if (last_pinned_tab_pos != -1 && page_num <= (guint)last_pinned_tab_pos) gtk_notebook_reorder_child (notebook, child, last_pinned_tab_pos); } |