Sat, 05 Nov 2022 03:13:47 -0500
Use response names in .ui dialog files
Also set the account editor Save button to be the `suggested-action`.
Testing Done:
Opened most dialogs.
Reviewed at https://reviews.imfreedom.org/r/2039/
--- a/pidgin/resources/About/about.ui Sat Nov 05 02:39:29 2022 -0500 +++ b/pidgin/resources/About/about.ui Sat Nov 05 03:13:47 2022 -0500 @@ -228,7 +228,7 @@ </object> </child> <action-widgets> - <action-widget response="-7">close_button</action-widget> + <action-widget response="close">close_button</action-widget> </action-widgets> <child internal-child="action_area"> <object class="GtkBox">
--- a/pidgin/resources/Accounts/editor.ui Sat Nov 05 02:39:29 2022 -0500 +++ b/pidgin/resources/Accounts/editor.ui Sat Nov 05 03:13:47 2022 -0500 @@ -232,6 +232,7 @@ </child> <child type="action"> <object class="GtkButton" id="button2"> + <property name="css-classes">suggested-action</property> <property name="label" translatable="1">_Save</property> <property name="receives-default">1</property> <property name="sensitive">0</property> @@ -239,8 +240,8 @@ </object> </child> <action-widgets> - <action-widget response="-6">button1</action-widget> - <action-widget response="-10">button2</action-widget> + <action-widget response="cancel">button1</action-widget> + <action-widget response="apply">button2</action-widget> </action-widgets> </template> </interface>
--- a/pidgin/resources/Accounts/manager.ui Sat Nov 05 02:39:29 2022 -0500 +++ b/pidgin/resources/Accounts/manager.ui Sat Nov 05 03:13:47 2022 -0500 @@ -150,7 +150,7 @@ <action-widget response="0">button3</action-widget> <action-widget response="1">modify_button</action-widget> <action-widget response="2">remove_button</action-widget> - <action-widget response="-7">button2</action-widget> + <action-widget response="close">button2</action-widget> </action-widgets> </template> </interface>
--- a/pidgin/resources/Conversations/invite_dialog.ui Sat Nov 05 02:39:29 2022 -0500 +++ b/pidgin/resources/Conversations/invite_dialog.ui Sat Nov 05 03:13:47 2022 -0500 @@ -111,8 +111,8 @@ </object> </child> <action-widgets> - <action-widget response="-6">button1</action-widget> - <action-widget response="-3">button2</action-widget> + <action-widget response="cancel">button1</action-widget> + <action-widget response="accept">button2</action-widget> </action-widgets> </template> </interface>
--- a/pidgin/resources/Dialogs/addbuddy.ui Sat Nov 05 02:39:29 2022 -0500 +++ b/pidgin/resources/Dialogs/addbuddy.ui Sat Nov 05 03:13:47 2022 -0500 @@ -173,8 +173,8 @@ </object> </child> <action-widgets> - <action-widget response="-6">button1</action-widget> - <action-widget response="-5">button2</action-widget> + <action-widget response="cancel">button1</action-widget> + <action-widget response="ok">button2</action-widget> </action-widgets> <child type="action"> <object class="GtkButton" id="button1">
--- a/pidgin/resources/Dialogs/addchat.ui Sat Nov 05 02:39:29 2022 -0500 +++ b/pidgin/resources/Dialogs/addchat.ui Sat Nov 05 03:13:47 2022 -0500 @@ -167,8 +167,8 @@ </child> <action-widgets> <action-widget response="1">button3</action-widget> - <action-widget response="-6">button1</action-widget> - <action-widget response="-5">button2</action-widget> + <action-widget response="cancel">button1</action-widget> + <action-widget response="ok">button2</action-widget> </action-widgets> </template> <object class="GtkSizeGroup" id="sg">
--- a/pidgin/resources/Roomlist/roomlist.ui Sat Nov 05 02:39:29 2022 -0500 +++ b/pidgin/resources/Roomlist/roomlist.ui Sat Nov 05 03:13:47 2022 -0500 @@ -161,7 +161,7 @@ <action-widget response="1">list_button</action-widget> <action-widget response="2">add_button</action-widget> <action-widget response="3">join_button</action-widget> - <action-widget response="-7">close_button</action-widget> + <action-widget response="close">close_button</action-widget> </action-widgets> </template> <menu id="popover_menu">
--- a/pidgin/resources/Status/manager.ui Sat Nov 05 02:39:29 2022 -0500 +++ b/pidgin/resources/Status/manager.ui Sat Nov 05 03:13:47 2022 -0500 @@ -165,7 +165,7 @@ <action-widget response="1">button1</action-widget> <action-widget response="2">modify_button</action-widget> <action-widget response="3">remove_button</action-widget> - <action-widget response="-7">button2</action-widget> + <action-widget response="close">button2</action-widget> </action-widgets> </template> </interface>