diff options
author | Gary Kramlich <grim@reaperworld.com> | 2022-09-20 02:44:44 -0500 |
---|---|---|
committer | Gary Kramlich <grim@reaperworld.com> | 2022-09-20 02:44:44 -0500 |
commit | 394b6bf1465533b7e2ce9d44624778ec0b9631ee (patch) | |
tree | cf71b22553b7ff455383467c6300dd0ec76fb847 /finch/gntconv.c | |
parent | 490caa5c1566b8b559aca45e3712b5a1c9a1f3ba (diff) | |
download | pidgin-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/gntconv.c')
-rw-r--r-- | finch/gntconv.c | 28 |
1 files changed, 10 insertions, 18 deletions
diff --git a/finch/gntconv.c b/finch/gntconv.c index e70a0dc52b..3df440dbaf 100644 --- a/finch/gntconv.c +++ b/finch/gntconv.c @@ -1069,24 +1069,16 @@ finch_conv_has_focus(PurpleConversation *conv) return FALSE; } -static PurpleConversationUiOps conv_ui_ops = -{ - finch_create_conversation, - finch_destroy_conversation, - NULL, /* write_chat */ - NULL, /* write_im */ - finch_write_conv, - finch_chat_add_users, - finch_chat_rename_user, - finch_chat_remove_users, - finch_chat_update_user, - finch_conv_present, /* present */ - finch_conv_has_focus, /* has_focus */ - NULL, /* send_confirm */ - NULL, - NULL, - NULL, - NULL +static PurpleConversationUiOps conv_ui_ops = { + .create_conversation = finch_create_conversation, + .destroy_conversation = finch_destroy_conversation, + .write_conv = finch_write_conv, + .chat_add_users = finch_chat_add_users, + .chat_rename_user = finch_chat_rename_user, + .chat_remove_users = finch_chat_remove_users, + .chat_update_user = finch_chat_update_user, + .present = finch_conv_present, + .has_focus = finch_conv_has_focus, }; PurpleConversationUiOps *finch_conv_get_ui_ops() |