[epiphany] ephy-notebook.c: use public GtkNotebook API instead of accessing members of its struct
- From: Xan Lopez <xan src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [epiphany] ephy-notebook.c: use public GtkNotebook API instead of accessing members of its struct
- Date: Sun, 20 Sep 2009 13:06:35 +0000 (UTC)
commit 1fb6a0f831c979a0a76107fc6f0930e0c071ea24
Author: Xan Lopez <xan gnome org>
Date: Sun Sep 20 16:06:26 2009 +0300
ephy-notebook.c: use public GtkNotebook API instead of accessing members of its struct
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 ff88155..a7a6fa1 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]