summaryrefslogtreecommitdiff
path: root/finch/gntrequest.c
diff options
context:
space:
mode:
authorGary Kramlich <grim@reaperworld.com>2022-09-20 02:44:44 -0500
committerGary Kramlich <grim@reaperworld.com>2022-09-20 02:44:44 -0500
commit394b6bf1465533b7e2ce9d44624778ec0b9631ee (patch)
treecf71b22553b7ff455383467c6300dd0ec76fb847 /finch/gntrequest.c
parent490caa5c1566b8b559aca45e3712b5a1c9a1f3ba (diff)
downloadpidgin-394b6bf1465533b7e2ce9d44624778ec0b9631ee.tar.gz
Move all of the UiOps to use struct initializers
Testing Done: Compiled Reviewed at https://reviews.imfreedom.org/r/1814/
Diffstat (limited to 'finch/gntrequest.c')
-rw-r--r--finch/gntrequest.c24
1 files changed, 8 insertions, 16 deletions
diff --git a/finch/gntrequest.c b/finch/gntrequest.c
index 2c8ab590a0..10f1de7d1d 100644
--- a/finch/gntrequest.c
+++ b/finch/gntrequest.c
@@ -811,22 +811,14 @@ finch_request_folder(const char *title, const char *dirname, GCallback ok_cb,
return data->dialog;
}
-static PurpleRequestUiOps uiops =
-{
- 0,
- finch_request_input,
- finch_request_choice,
- finch_request_action,
- NULL,
- NULL,
- finch_request_fields,
- finch_request_file,
- finch_request_folder,
- finch_close_request,
- NULL,
- NULL,
- NULL,
- NULL
+static PurpleRequestUiOps uiops = {
+ .request_input = finch_request_input,
+ .request_choice = finch_request_choice,
+ .request_action = finch_request_action,
+ .request_fields = finch_request_fields,
+ .request_file = finch_request_file,
+ .request_folder = finch_request_folder,
+ .close_request = finch_close_request,
};
PurpleRequestUiOps *finch_request_get_ui_ops()