summaryrefslogtreecommitdiff
path: root/src/ui/documentwidget.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-05-16 13:21:36 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-05-16 13:21:36 +0300
commit97f9a1c9bf49ca67fe1f99c57aa70e0bdf64a466 (patch)
treeb680da6408f78c4555edf3f6b9e86c6ce8925a53 /src/ui/documentwidget.c
parent19f29bc4382b3dfe9d3c21ddabd5501919c76566 (diff)
Cleanup: Moved mobile UI code to its own file
The mobile UI related code has grown large enough to warrant a separate file. Also, work-in-progress redo of the Preferences layout so it can be used with landscape as well.
Diffstat (limited to 'src/ui/documentwidget.c')
-rw-r--r--src/ui/documentwidget.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c
index 32cbaca9..9d60f86f 100644
--- a/src/ui/documentwidget.c
+++ b/src/ui/documentwidget.c
@@ -1651,7 +1651,7 @@ static void checkResponse_DocumentWidget_(iDocumentWidget *d) {
1651 break; 1651 break;
1652 } 1652 }
1653 case categorySuccess_GmStatusCode: 1653 case categorySuccess_GmStatusCode:
1654 reset_SmoothScroll(&d->scrollY); 1654 //reset_SmoothScroll(&d->scrollY);
1655 reset_GmDocument(d->doc); /* new content incoming */ 1655 reset_GmDocument(d->doc); /* new content incoming */
1656 delete_Gempub(d->sourceGempub); 1656 delete_Gempub(d->sourceGempub);
1657 d->sourceGempub = NULL; 1657 d->sourceGempub = NULL;
@@ -2307,7 +2307,7 @@ static iBool handleCommand_DocumentWidget_(iDocumentWidget *d, const char *cmd)
2307 } 2307 }
2308 updateFetchProgress_DocumentWidget_(d); 2308 updateFetchProgress_DocumentWidget_(d);
2309 checkResponse_DocumentWidget_(d); 2309 checkResponse_DocumentWidget_(d);
2310 if (category_GmStatusCode(status_GmRequest(d->request)) == success_GmStatusCode) { 2310 if (category_GmStatusCode(status_GmRequest(d->request)) == categorySuccess_GmStatusCode) {
2311 init_Anim(&d->scrollY.pos, d->initNormScrollY * size_GmDocument(d->doc).y); /* TODO: unless user already scrolled! */ 2311 init_Anim(&d->scrollY.pos, d->initNormScrollY * size_GmDocument(d->doc).y); /* TODO: unless user already scrolled! */
2312 } 2312 }
2313 d->state = ready_RequestState; 2313 d->state = ready_RequestState;