[epiphany] e-shell: fix compiler warning



commit a35ce8bc1a1483d95e957e3c4be245884d4f879a
Author: Diego Escalante Urrelo <diegoe igalia com>
Date:   Tue Dec 11 09:12:38 2012 -0500

    e-shell: fix compiler warning

 src/ephy-shell.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/ephy-shell.c b/src/ephy-shell.c
index 9800038..3c4cbfc 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;
   }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]