| 195 |
195 |
| 196 void |
196 void |
| 197 pidgin_info_pane_set_title(PidginInfoPane *pane, const char *title) { |
197 pidgin_info_pane_set_title(PidginInfoPane *pane, const char *title) { |
| 198 g_return_if_fail(PIDGIN_IS_INFO_PANE(pane)); |
198 g_return_if_fail(PIDGIN_IS_INFO_PANE(pane)); |
| 199 |
199 |
| 200 if(!purple_strequal(pane->title, title)) { |
200 if(g_set_str(&pane->title, title)) { |
| 201 g_free(pane->title); |
|
| 202 pane->title = g_strdup(title); |
|
| 203 |
|
| 204 g_object_notify_by_pspec(G_OBJECT(pane), properties[PROP_TITLE]); |
201 g_object_notify_by_pspec(G_OBJECT(pane), properties[PROP_TITLE]); |
| 205 } |
202 } |
| 206 } |
203 } |
| 207 |
204 |
| 208 const char * |
205 const char * |
| 214 |
211 |
| 215 void |
212 void |
| 216 pidgin_info_pane_set_subtitle(PidginInfoPane *pane, const char *subtitle) { |
213 pidgin_info_pane_set_subtitle(PidginInfoPane *pane, const char *subtitle) { |
| 217 g_return_if_fail(PIDGIN_IS_INFO_PANE(pane)); |
214 g_return_if_fail(PIDGIN_IS_INFO_PANE(pane)); |
| 218 |
215 |
| 219 if(!purple_strequal(pane->subtitle, subtitle)) { |
216 if(g_set_str(&pane->subtitle, subtitle)) { |
| 220 g_free(pane->subtitle); |
|
| 221 pane->subtitle = g_strdup(subtitle); |
|
| 222 |
|
| 223 g_object_notify_by_pspec(G_OBJECT(pane), properties[PROP_SUBTITLE]); |
217 g_object_notify_by_pspec(G_OBJECT(pane), properties[PROP_SUBTITLE]); |
| 224 } |
218 } |
| 225 } |
219 } |
| 226 |
220 |
| 227 GtkWidget * |
221 GtkWidget * |