aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorXan Lopez <xan@gnome.org>2009-09-20 21:06:26 +0800
committerXan Lopez <xan@gnome.org>2009-09-20 21:06:26 +0800
commit1fb6a0f831c979a0a76107fc6f0930e0c071ea24 (patch)
tree8717e29b52ffda3c21bed73667ff078a6bc0e03c /src
parent161979c3c805ee4edab5795f2b8c57d66357b99b (diff)
downloadgsoc2013-epiphany-1fb6a0f831c979a0a76107fc6f0930e0c071ea24.tar
gsoc2013-epiphany-1fb6a0f831c979a0a76107fc6f0930e0c071ea24.tar.gz
gsoc2013-epiphany-1fb6a0f831c979a0a76107fc6f0930e0c071ea24.tar.bz2
gsoc2013-epiphany-1fb6a0f831c979a0a76107fc6f0930e0c071ea24.tar.lz
gsoc2013-epiphany-1fb6a0f831c979a0a76107fc6f0930e0c071ea24.tar.xz
gsoc2013-epiphany-1fb6a0f831c979a0a76107fc6f0930e0c071ea24.tar.zst
gsoc2013-epiphany-1fb6a0f831c979a0a76107fc6f0930e0c071ea24.zip
ephy-notebook.c: use public GtkNotebook API instead of accessing members of its struct
Diffstat (limited to 'src')
-rw-r--r--src/ephy-notebook.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ephy-notebook.c b/src/ephy-notebook.c
index ff8815553..a7a6fa110 100644
--- a/src/ephy-notebook.c
+++ b/src/ephy-notebook.c
@@ -248,16 +248,16 @@ find_tab_num_at_pos (EphyNotebook *notebook, gint abs_x, gint abs_y)
GtkNotebook *nb = GTK_NOTEBOOK (notebook);
GtkWidget *page;
- tab_pos = gtk_notebook_get_tab_pos (GTK_NOTEBOOK (notebook));
+ tab_pos = gtk_notebook_get_tab_pos (nb);
- if (GTK_NOTEBOOK (notebook)->first_tab == NULL)
+ if (gtk_notebook_get_n_pages (nb) == 0)
{
return AFTER_ALL_TABS;
}
/* For some reason unfullscreen + quick click can
cause a wrong click event to be reported to the tab */
- if (!is_in_notebook_window(notebook, abs_x, abs_y))
+ if (!is_in_notebook_window (notebook, abs_x, abs_y))
{
return NOT_IN_APP_WINDOWS;
}