pidgin/pidginprotocolchooser.h

changeset 41649
35733be03440
parent 41645
fb8bfbd95195
child 41691
83849603277b
equal deleted inserted replaced
41648:6929f3cb1563 41649:35733be03440
27 27
28 #ifndef PIDGIN_PROTOCOL_CHOOSER_H 28 #ifndef PIDGIN_PROTOCOL_CHOOSER_H
29 #define PIDGIN_PROTOCOL_CHOOSER_H 29 #define PIDGIN_PROTOCOL_CHOOSER_H
30 30
31 #include <gtk/gtk.h> 31 #include <gtk/gtk.h>
32 #include <adwaita.h>
32 33
33 #include <purple.h> 34 #include <purple.h>
34 35
35 G_BEGIN_DECLS 36 G_BEGIN_DECLS
36 37
37 #define PIDGIN_TYPE_PROTOCOL_CHOOSER (pidgin_protocol_chooser_get_type()) 38 #define PIDGIN_TYPE_PROTOCOL_CHOOSER (pidgin_protocol_chooser_get_type())
38 39
39 G_DECLARE_FINAL_TYPE(PidginProtocolChooser, pidgin_protocol_chooser, PIDGIN, 40 G_DECLARE_FINAL_TYPE(PidginProtocolChooser, pidgin_protocol_chooser, PIDGIN,
40 PROTOCOL_CHOOSER, GtkComboBox) 41 PROTOCOL_CHOOSER, AdwBin)
41 42
42 /** 43 /**
43 * pidgin_protocol_chooser_new: 44 * pidgin_protocol_chooser_new:
44 * 45 *
45 * Creates a combo box for a user to select a protocol from. 46 * Creates a drop down for a user to select a protocol from.
46 * 47 *
47 * Returns: (transfer full): The protocol chooser combo box. 48 * Returns: (transfer full): The protocol chooser drop down.
48 * 49 *
49 * Since: 3.0.0 50 * Since: 3.0.0
50 */ 51 */
51 GtkWidget *pidgin_protocol_chooser_new(void); 52 GtkWidget *pidgin_protocol_chooser_new(void);
52 53
54 * pidgin_protocol_chooser_get_protocol: 55 * pidgin_protocol_chooser_get_protocol:
55 * @chooser: The #PidginProtocolChooser instance. 56 * @chooser: The #PidginProtocolChooser instance.
56 * 57 *
57 * Gets the currently selected protocol from @chooser. 58 * Gets the currently selected protocol from @chooser.
58 * 59 *
59 * Returns: (transfer full): The selected [class@Purple.Protocol] or %NULL if 60 * Returns: (transfer none): The selected [class@Purple.Protocol] or %NULL if
60 * nothing is selected. 61 * nothing is selected.
61 * 62 *
62 * Since: 3.0.0 63 * Since: 3.0.0
63 */ 64 */
64 PurpleProtocol *pidgin_protocol_chooser_get_protocol(PidginProtocolChooser *chooser); 65 PurpleProtocol *pidgin_protocol_chooser_get_protocol(PidginProtocolChooser *chooser);

mercurial