pidgin/pidgincontactlist.c

changeset 43123
4d3b58b6cf06
parent 42795
fedfa85c0b40
child 43237
c641f6bea7dd
equal deleted inserted replaced
43122:1f63e7d9d689 43123:4d3b58b6cf06
276 GDateTime *idle = NULL; 276 GDateTime *idle = NULL;
277 GString *str = g_string_new(NULL); 277 GString *str = g_string_new(NULL);
278 const char *tmp = NULL; 278 const char *tmp = NULL;
279 279
280 if(!PURPLE_IS_PRESENCE(presence)) { 280 if(!PURPLE_IS_PRESENCE(presence)) {
281 return g_string_free(str, FALSE); 281 return g_string_free_and_steal(str);
282 } 282 }
283 283
284 primitive = purple_presence_get_primitive(presence); 284 primitive = purple_presence_get_primitive(presence);
285 tmp = purple_presence_primitive_to_string(primitive); 285 tmp = purple_presence_primitive_to_string(primitive);
286 if(tmp != NULL) { 286 if(tmp != NULL) {
313 } else if(minutes > 0) { 313 } else if(minutes > 0) {
314 g_string_append_printf(str, _(" Idle %02dm"), minutes); 314 g_string_append_printf(str, _(" Idle %02dm"), minutes);
315 } 315 }
316 } 316 }
317 317
318 return g_string_free(str, FALSE); 318 return g_string_free_and_steal(str);
319 } 319 }
320 320
321 static void 321 static void
322 pidgin_contact_list_context_cb(GtkGestureSingle *self, 322 pidgin_contact_list_context_cb(GtkGestureSingle *self,
323 G_GNUC_UNUSED gint n_press, 323 G_GNUC_UNUSED gint n_press,

mercurial