| 31 * @title: Pidgin Protocol Chooser Combo Box Widget |
31 * @title: Pidgin Protocol Chooser Combo Box Widget |
| 32 */ |
32 */ |
| 33 |
33 |
| 34 #include <gtk/gtk.h> |
34 #include <gtk/gtk.h> |
| 35 |
35 |
| |
36 #include <purple.h> |
| |
37 |
| 36 G_BEGIN_DECLS |
38 G_BEGIN_DECLS |
| 37 |
39 |
| 38 #define PIDGIN_TYPE_PROTOCOL_CHOOSER (pidgin_protocol_chooser_get_type()) |
40 #define PIDGIN_TYPE_PROTOCOL_CHOOSER (pidgin_protocol_chooser_get_type()) |
| 39 |
41 |
| 40 G_DECLARE_FINAL_TYPE(PidginProtocolChooser, pidgin_protocol_chooser, PIDGIN, |
42 G_DECLARE_FINAL_TYPE(PidginProtocolChooser, pidgin_protocol_chooser, PIDGIN, |
| 53 |
55 |
| 54 /** |
56 /** |
| 55 * pidgin_protocol_chooser_get_selected: |
57 * pidgin_protocol_chooser_get_selected: |
| 56 * @chooser: The #PidginProtocolChooser instance. |
58 * @chooser: The #PidginProtocolChooser instance. |
| 57 * |
59 * |
| 58 * Gets the name of the currently selected protocol from @chooser. |
60 * Gets the currently selected protocol from @chooser. |
| 59 * |
61 * |
| 60 * Returns: (transfer full): Returns the name of the currently selected |
62 * Returns: (transfer full): The selected #PurpleProtocol or %NULL if nothing |
| 61 * protocol. |
63 * is selected |
| 62 * |
64 * |
| 63 * Since: 3.0.0 |
65 * Since: 3.0.0 |
| 64 */ |
66 */ |
| 65 gchar *pidgin_protocol_chooser_get_selected(PidginProtocolChooser *chooser); |
67 PurpleProtocol *pidgin_protocol_chooser_get_selected(PidginProtocolChooser *chooser); |
| 66 |
68 |
| 67 /** |
69 /** |
| 68 * pidgin_protocol_chooser_set_selected: |
70 * pidgin_protocol_chooser_get_selected_name: |
| 69 * @chooser: The #PidginProtocolChooser instance. |
71 * @chooser: The #PidginProtocolChooser instance. |
| 70 * @protocol: The name of the protocol to select. |
72 * |
| |
73 * Gets the name of the currently selected protocol from @chooser. |
| |
74 * |
| |
75 * Returns: (transfer full): The selected #PurpleProtocol or %NULL if nothing |
| |
76 * is selected |
| |
77 * |
| |
78 * Since: 3.0.0 |
| |
79 */ |
| |
80 gchar *pidgin_protocol_chooser_get_selected_name(PidginProtocolChooser *chooser); |
| |
81 |
| |
82 /** |
| |
83 * pidgin_protocol_chooser_set_selected_name: |
| |
84 * @chooser: The #PidginProtocolChooser instance. |
| |
85 * @name: The name of the protocol to select. |
| 71 * |
86 * |
| 72 * Sets the currently selected protocol of @chooser to @protocol. |
87 * Sets the currently selected protocol of @chooser to @protocol. |
| 73 * |
88 * |
| 74 * Since: 3.0.0 |
89 * Since: 3.0.0 |
| 75 */ |
90 */ |
| 76 void pidgin_protocol_chooser_set_selected(PidginProtocolChooser *chooser, const gchar *protocol); |
91 void pidgin_protocol_chooser_set_selected_name(PidginProtocolChooser *chooser, const gchar *name); |
| 77 |
92 |
| 78 G_END_DECLS |
93 G_END_DECLS |
| 79 |
94 |
| 80 #endif /* PIDGIN_PROTOCOL_CHOOSER_H */ |
95 #endif /* PIDGIN_PROTOCOL_CHOOSER_H */ |