aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Escalante Urrelo <diegoe@igalia.com>2012-12-11 22:12:38 +0800
committerDiego Escalante Urrelo <diegoe@igalia.com>2012-12-11 22:18:24 +0800
commita35ce8bc1a1483d95e957e3c4be245884d4f879a (patch)
treeef7fe5d8a8050b41c8a0e5d1fb8c3e0957a5eb13
parentb7f88ee85c61fee4f8059e7fc2456c3ca83ccb64 (diff)
downloadgsoc2013-epiphany-a35ce8bc1a1483d95e957e3c4be245884d4f879a.tar
gsoc2013-epiphany-a35ce8bc1a1483d95e957e3c4be245884d4f879a.tar.gz
gsoc2013-epiphany-a35ce8bc1a1483d95e957e3c4be245884d4f879a.tar.bz2
gsoc2013-epiphany-a35ce8bc1a1483d95e957e3c4be245884d4f879a.tar.lz
gsoc2013-epiphany-a35ce8bc1a1483d95e957e3c4be245884d4f879a.tar.xz
gsoc2013-epiphany-a35ce8bc1a1483d95e957e3c4be245884d4f879a.tar.zst
gsoc2013-epiphany-a35ce8bc1a1483d95e957e3c4be245884d4f879a.zip
e-shell: fix compiler warning
-rw-r--r--src/ephy-shell.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ephy-shell.c b/src/ephy-shell.c
index 9800038cb..3c4cbfc1b 100644
--- a/src/ephy-shell.c
+++ b/src/ephy-shell.c
@@ -1077,8 +1077,8 @@ ephy_shell_get_main_window (EphyShell *shell)
for (iter = windows; iter != NULL; iter = iter->next) {
EphyWindow *candidate = EPHY_WINDOW (iter->data);
- GtkWidget *cur_notebook;
- GtkWidget *cand_notebook;
+ GtkNotebook *cur_notebook;
+ GtkNotebook *cand_notebook;
if (!ephy_window_is_on_current_workspace (candidate))
continue;
@@ -1088,8 +1088,8 @@ ephy_shell_get_main_window (EphyShell *shell)
continue;
}
- cur_notebook = ephy_window_get_notebook (window);
- cand_notebook = ephy_window_get_notebook (candidate);
+ cur_notebook = GTK_NOTEBOOK (ephy_window_get_notebook (window));
+ cand_notebook = GTK_NOTEBOOK (ephy_window_get_notebook (candidate));
if (gtk_notebook_get_n_pages (cand_notebook) > gtk_notebook_get_n_pages (cur_notebook))
window = candidate;
}