Fixed a warning due to an undefined function
authorSergio Villar Senin <svillar@igalia.com>
Fri, 12 Dec 2008 12:08:38 +0000 (12:08 +0000)
committerSergio Villar Senin <svillar@igalia.com>
Fri, 12 Dec 2008 12:08:38 +0000 (12:08 +0000)
pmo-drop-split-view-r6806

src/hildon2/modest-accounts-window.c
src/hildon2/modest-header-window.c

index 1748284..7c7690a 100644 (file)
@@ -63,6 +63,9 @@ static void add_to_menu (ModestAccountsWindow *self,
                         GCallback callback);
 static void setup_menu (ModestAccountsWindow *self);
 
+static void modest_accounts_window_show_toolbar (ModestWindow *self,
+                                                gboolean show_toolbar);
+
 typedef struct _ModestAccountsWindowPrivate ModestAccountsWindowPrivate;
 struct _ModestAccountsWindowPrivate {
 
@@ -121,6 +124,7 @@ modest_accounts_window_class_init (ModestAccountsWindowClass *klass)
        
        modest_window_class->zoom_minus_func = on_zoom_minus_plus_not_implemented;
        modest_window_class->zoom_plus_func = on_zoom_minus_plus_not_implemented;
+       modest_window_class->show_toolbar_func = modest_accounts_window_show_toolbar;
        modest_window_class->disconnect_signals_func = modest_accounts_window_disconnect_signals;
 }
 
@@ -350,3 +354,10 @@ on_account_activated (GtkTreeView *account_view,
 
 }
 
+static void
+modest_accounts_window_show_toolbar (ModestWindow *self,
+                                    gboolean show_toolbar)
+{
+       /* Empty implementation, this view does not show any
+          toolbar */
+}
index 3122479..d592e40 100644 (file)
@@ -336,11 +336,11 @@ connect_signals (ModestHeaderWindow *self)
                                           self);
 
        /* Mail Operation Queue */
-       priv->queue_change_handler = g_signal_connect (G_OBJECT (modest_runtime_get_mail_operation_queue ()),
-                                                      "queue-changed",
-                                                      G_CALLBACK (on_queue_changed),
-                                                      self);
-       
+       priv->queue_change_handler =
+               g_signal_connect (G_OBJECT (modest_runtime_get_mail_operation_queue ()),
+                                 "queue-changed",
+                                 G_CALLBACK (on_queue_changed),
+                                 self);
 }
 
 static void 
@@ -987,14 +987,14 @@ on_queue_changed (ModestMailOperationQueue *queue,
                  ModestMailOperation *mail_op,
                  ModestMailOperationQueueNotification type,
                  ModestHeaderWindow *self)
-{      
+{
        ModestHeaderWindowPrivate *priv;
 
        priv = MODEST_HEADER_WINDOW_GET_PRIVATE (self);
 
        /* If this operations was created by another window, do nothing */
        if (!modest_mail_operation_is_mine (mail_op, G_OBJECT(self))) 
-           return;
+               return;
 
        if (type == MODEST_MAIL_OPERATION_QUEUE_OPERATION_ADDED) {
                priv->sighandlers = modest_signal_mgr_connect (priv->sighandlers,
@@ -1016,4 +1016,3 @@ on_queue_changed (ModestMailOperationQueue *queue,
                                                                  "operation-finished");
        }
 }
-