X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fwidgets%2Fmodest-header-view.c;h=5b3f5e3bc25e53ebd316c98f97a3dbe9b31ff934;hp=cb9b1e980d249ceaf35297e872721f2649fb2751;hb=976c05744180efac28a9dc421acefcff18659d67;hpb=5ff64b5b4c5c0c8101bd5a4f3a22d20cb6710d77 diff --git a/src/widgets/modest-header-view.c b/src/widgets/modest-header-view.c index cb9b1e9..5b3f5e3 100644 --- a/src/widgets/modest-header-view.c +++ b/src/widgets/modest-header-view.c @@ -856,11 +856,8 @@ void modest_header_view_set_folder (ModestHeaderView *self, TnyFolder *folder) { ModestHeaderViewPrivate *priv; - ModestWindow *win = NULL; priv = MODEST_HEADER_VIEW_GET_PRIVATE(self); - win = MODEST_WINDOW(gtk_widget_get_toplevel (GTK_WIDGET(self))); - g_return_if_fail (MODEST_IS_WINDOW (win)); if (priv->folder) { g_object_unref (priv->folder); @@ -880,7 +877,7 @@ modest_header_view_set_folder (ModestHeaderView *self, TnyFolder *folder) g_signal_emit (G_OBJECT(self), signals[HEADER_SELECTED_SIGNAL], 0, NULL); /* Create the mail operation */ - mail_op = modest_mail_operation_new (MODEST_MAIL_OPERATION_ID_RECEIVE, G_OBJECT(win)); + mail_op = modest_mail_operation_new (MODEST_MAIL_OPERATION_ID_RECEIVE, NULL); modest_mail_operation_queue_add (modest_runtime_get_mail_operation_queue (), mail_op);