| 49 * Since: 3.0.0 |
49 * Since: 3.0.0 |
| 50 */ |
50 */ |
| 51 GtkWidget *pidgin_protocol_chooser_new(void); |
51 GtkWidget *pidgin_protocol_chooser_new(void); |
| 52 |
52 |
| 53 /** |
53 /** |
| 54 * pidgin_protocol_chooser_get_selected: |
54 * pidgin_protocol_chooser_get_protocol: |
| 55 * @chooser: The #PidginProtocolChooser instance. |
55 * @chooser: The #PidginProtocolChooser instance. |
| 56 * |
56 * |
| 57 * Gets the currently selected protocol from @chooser. |
57 * Gets the currently selected protocol from @chooser. |
| 58 * |
58 * |
| 59 * Returns: (transfer full): The selected #PurpleProtocol or %NULL if nothing |
59 * Returns: (transfer full): The selected [class@Purple.Protocol] or %NULL if |
| 60 * is selected |
60 * nothing is selected. |
| 61 * |
61 * |
| 62 * Since: 3.0.0 |
62 * Since: 3.0.0 |
| 63 */ |
63 */ |
| 64 PurpleProtocol *pidgin_protocol_chooser_get_selected(PidginProtocolChooser *chooser); |
64 PurpleProtocol *pidgin_protocol_chooser_get_protocol(PidginProtocolChooser *chooser); |
| 65 |
65 |
| 66 /** |
66 /** |
| 67 * pidgin_protocol_chooser_get_selected_id: |
67 * pidgin_protocol_chooser_set_protocol: |
| 68 * @chooser: The #PidginProtocolChooser instance. |
68 * @chooser: The #PidginProtocolChooser instance. |
| |
69 * @protocol: (transfer none): The protocol to select. |
| 69 * |
70 * |
| 70 * Gets the id of the currently selected protocol from @chooser. |
71 * Sets the currently selected protocol of @chooser to the given |
| 71 * |
72 * [class@Purple.Protocol]. |
| 72 * Returns: The id of the selected #PurpleProtocol or %NULL if nothing is |
|
| 73 * selected. |
|
| 74 * |
73 * |
| 75 * Since: 3.0.0 |
74 * Since: 3.0.0 |
| 76 */ |
75 */ |
| 77 const gchar *pidgin_protocol_chooser_get_selected_id(PidginProtocolChooser *chooser); |
76 void pidgin_protocol_chooser_set_protocol(PidginProtocolChooser *chooser, PurpleProtocol *protocol); |
| 78 |
|
| 79 /** |
|
| 80 * pidgin_protocol_chooser_set_selected_id: |
|
| 81 * @chooser: The #PidginProtocolChooser instance. |
|
| 82 * @id: The id of the protocol to select. |
|
| 83 * |
|
| 84 * Sets the currently selected protocol of @chooser to the #PurpleProtocol with |
|
| 85 * an id of @id. |
|
| 86 * |
|
| 87 * Since: 3.0.0 |
|
| 88 */ |
|
| 89 void pidgin_protocol_chooser_set_selected_id(PidginProtocolChooser *chooser, const gchar *id); |
|
| 90 |
77 |
| 91 G_END_DECLS |
78 G_END_DECLS |
| 92 |
79 |
| 93 #endif /* PIDGIN_PROTOCOL_CHOOSER_H */ |
80 #endif /* PIDGIN_PROTOCOL_CHOOSER_H */ |