pidgin/pidginpresenceicon.h

changeset 42620
72178a341eb8
parent 42466
ca3374c1cdba
child 43177
595a5f31003a
equal deleted inserted replaced
42619:3dd7cd0eabf1 42620:72178a341eb8
37 * PidginPresenceIcon: 37 * PidginPresenceIcon:
38 * 38 *
39 * A #GtkImage subclass that will automatically update when the given presence 39 * A #GtkImage subclass that will automatically update when the given presence
40 * changes. 40 * changes.
41 * 41 *
42 * Since: 3.0.0 42 * Since: 3.0
43 */ 43 */
44 44
45 #define PIDGIN_TYPE_PRESENCE_ICON (pidgin_presence_icon_get_type()) 45 #define PIDGIN_TYPE_PRESENCE_ICON (pidgin_presence_icon_get_type())
46 46
47 PIDGIN_AVAILABLE_IN_3_0 47 PIDGIN_AVAILABLE_IN_3_0
58 * 58 *
59 * Creates a new #PidginPresenceIcon. 59 * Creates a new #PidginPresenceIcon.
60 * 60 *
61 * Returns: (transfer full): The new presence icon. 61 * Returns: (transfer full): The new presence icon.
62 * 62 *
63 * Since: 3.0.0 63 * Since: 3.0
64 */ 64 */
65 PIDGIN_AVAILABLE_IN_3_0 65 PIDGIN_AVAILABLE_IN_3_0
66 GtkWidget *pidgin_presence_icon_new(PurplePresence *presence, const gchar *fallback, GtkIconSize icon_size); 66 GtkWidget *pidgin_presence_icon_new(PurplePresence *presence, const gchar *fallback, GtkIconSize icon_size);
67 67
68 /** 68 /**
71 * 71 *
72 * Gets the #PurplePresence that @icon is displaying. 72 * Gets the #PurplePresence that @icon is displaying.
73 * 73 *
74 * Returns: (transfer none): The #PurplePresence if set otherwise %NULL. 74 * Returns: (transfer none): The #PurplePresence if set otherwise %NULL.
75 * 75 *
76 * Since: 3.0.0 76 * Since: 3.0
77 */ 77 */
78 PIDGIN_AVAILABLE_IN_3_0 78 PIDGIN_AVAILABLE_IN_3_0
79 PurplePresence *pidgin_presence_icon_get_presence(PidginPresenceIcon *icon); 79 PurplePresence *pidgin_presence_icon_get_presence(PidginPresenceIcon *icon);
80 80
81 /** 81 /**
83 * @icon: The #PidginPresenceIcon instance. 83 * @icon: The #PidginPresenceIcon instance.
84 * @presence: (nullable): The new #PurplePresence to set, or %NULL to unset. 84 * @presence: (nullable): The new #PurplePresence to set, or %NULL to unset.
85 * 85 *
86 * Sets the #PurplePresence for @icon to display. 86 * Sets the #PurplePresence for @icon to display.
87 * 87 *
88 * Since: 3.0.0 88 * Since: 3.0
89 */ 89 */
90 PIDGIN_AVAILABLE_IN_3_0 90 PIDGIN_AVAILABLE_IN_3_0
91 void pidgin_presence_icon_set_presence(PidginPresenceIcon *icon, PurplePresence *presence); 91 void pidgin_presence_icon_set_presence(PidginPresenceIcon *icon, PurplePresence *presence);
92 92
93 /** 93 /**
96 * 96 *
97 * Gets the name of the fallback icon from @icon. 97 * Gets the name of the fallback icon from @icon.
98 * 98 *
99 * Returns: The fallback icon name for @icon. 99 * Returns: The fallback icon name for @icon.
100 * 100 *
101 * Since: 3.0.0 101 * Since: 3.0
102 */ 102 */
103 PIDGIN_AVAILABLE_IN_3_0 103 PIDGIN_AVAILABLE_IN_3_0
104 const gchar *pidgin_presence_icon_get_fallback(PidginPresenceIcon *icon); 104 const gchar *pidgin_presence_icon_get_fallback(PidginPresenceIcon *icon);
105 105
106 /** 106 /**
108 * @icon: The #PidginPresenceIcon instance. 108 * @icon: The #PidginPresenceIcon instance.
109 * @fallback: The name of the fallback icon name. 109 * @fallback: The name of the fallback icon name.
110 * 110 *
111 * Sets the fallback icon name for @icon to @fallback. 111 * Sets the fallback icon name for @icon to @fallback.
112 * 112 *
113 * Since: 3.0.0 113 * Since: 3.0
114 */ 114 */
115 PIDGIN_AVAILABLE_IN_3_0 115 PIDGIN_AVAILABLE_IN_3_0
116 void pidgin_presence_icon_set_fallback(PidginPresenceIcon *icon, const gchar *fallback); 116 void pidgin_presence_icon_set_fallback(PidginPresenceIcon *icon, const gchar *fallback);
117 117
118 /** 118 /**
121 * 121 *
122 * Gets the #GtkIconSize that @icon is using to render the icon. 122 * Gets the #GtkIconSize that @icon is using to render the icon.
123 * 123 *
124 * Returns: The #GtkIconSize that @icon is using to render. 124 * Returns: The #GtkIconSize that @icon is using to render.
125 * 125 *
126 * Since: 3.0.0 126 * Since: 3.0
127 */ 127 */
128 PIDGIN_AVAILABLE_IN_3_0 128 PIDGIN_AVAILABLE_IN_3_0
129 GtkIconSize pidgin_presence_icon_get_icon_size(PidginPresenceIcon *icon); 129 GtkIconSize pidgin_presence_icon_get_icon_size(PidginPresenceIcon *icon);
130 130
131 /** 131 /**
133 * @icon: The #PidginPresenceIcon instance. 133 * @icon: The #PidginPresenceIcon instance.
134 * @icon_size: The #GtkIconSize to render the icon at. 134 * @icon_size: The #GtkIconSize to render the icon at.
135 * 135 *
136 * Sets the #GtkIconSize that @icon will use to render the icon. 136 * Sets the #GtkIconSize that @icon will use to render the icon.
137 * 137 *
138 * Since: 3.0.0 138 * Since: 3.0
139 */ 139 */
140 PIDGIN_AVAILABLE_IN_3_0 140 PIDGIN_AVAILABLE_IN_3_0
141 void pidgin_presence_icon_set_icon_size(PidginPresenceIcon *icon, GtkIconSize icon_size); 141 void pidgin_presence_icon_set_icon_size(PidginPresenceIcon *icon, GtkIconSize icon_size);
142 142
143 G_END_DECLS 143 G_END_DECLS

mercurial