[evolution] Fix the way parent class is called. Anjal classes were never invoked before.



commit 55c3f228ad35c654a8bc4854856a54700deb332e
Author: Srinivasa Ragavan <sragavan gnome org>
Date:   Mon Dec 21 15:50:47 2009 +0530

    Fix the way parent class is called. Anjal classes were never invoked
    before.

 shell/e-shell-window-private.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/shell/e-shell-window-private.c b/shell/e-shell-window-private.c
index 0d9dda5..b26ac97 100644
--- a/shell/e-shell-window-private.c
+++ b/shell/e-shell-window-private.c
@@ -159,7 +159,7 @@ shell_window_construct_menubar (EShellWindow *shell_window)
 {
 	EShellWindowClass *class;
 
-	class = E_SHELL_WINDOW_GET_CLASS (shell_window);
+	class = g_type_class_peek_parent(E_SHELL_WINDOW_GET_CLASS (shell_window));
 	if (class->construct_menubar == NULL)
 		return NULL;
 
@@ -171,7 +171,7 @@ shell_window_construct_toolbar (EShellWindow *shell_window)
 {
 	EShellWindowClass *class;
 
-	class = E_SHELL_WINDOW_GET_CLASS (shell_window);
+	class = g_type_class_peek_parent (E_SHELL_WINDOW_GET_CLASS (shell_window));
 	if (class->construct_toolbar == NULL)
 		return NULL;
 



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