src/gtkrequest.c

changeset 14097
0c340861ab79
parent 13536
345d4ac042f7
equal deleted inserted replaced
14096:55cd8614d564 14097:0c340861ab79
362 362
363 g_free(label_text); 363 g_free(label_text);
364 364
365 /* Entry field. */ 365 /* Entry field. */
366 data->u.input.multiline = multiline; 366 data->u.input.multiline = multiline;
367 data->u.input.hint = (hint == NULL ? NULL : g_strdup(hint)); 367 data->u.input.hint = g_strdup(hint);
368 368
369 if ((data->u.input.hint != NULL) && (!strcmp(data->u.input.hint, "html"))) { 369 if ((data->u.input.hint != NULL) && (!strcmp(data->u.input.hint, "html"))) {
370 GtkWidget *frame; 370 GtkWidget *frame;
371 371
372 /* imhtml */ 372 /* imhtml */
1584 GCallback ok_cb, GCallback cancel_cb, 1584 GCallback ok_cb, GCallback cancel_cb,
1585 void *user_data) 1585 void *user_data)
1586 { 1586 {
1587 GaimGtkRequestData *data; 1587 GaimGtkRequestData *data;
1588 GtkWidget *dirsel; 1588 GtkWidget *dirsel;
1589 1589
1590 data = g_new0(GaimGtkRequestData, 1); 1590 data = g_new0(GaimGtkRequestData, 1);
1591 data->type = GAIM_REQUEST_FOLDER; 1591 data->type = GAIM_REQUEST_FOLDER;
1592 data->user_data = user_data; 1592 data->user_data = user_data;
1593 data->cb_count = 2; 1593 data->cb_count = 2;
1594 data->cbs = g_new0(GCallback, 2); 1594 data->cbs = g_new0(GCallback, 2);
1631 static void 1631 static void
1632 gaim_gtk_close_request(GaimRequestType type, void *ui_handle) 1632 gaim_gtk_close_request(GaimRequestType type, void *ui_handle)
1633 { 1633 {
1634 GaimGtkRequestData *data = (GaimGtkRequestData *)ui_handle; 1634 GaimGtkRequestData *data = (GaimGtkRequestData *)ui_handle;
1635 1635
1636 if (data->cbs != NULL) 1636 g_free(data->cbs);
1637 g_free(data->cbs);
1638 1637
1639 gtk_widget_destroy(data->dialog); 1638 gtk_widget_destroy(data->dialog);
1640 1639
1641 if (type == GAIM_REQUEST_FIELDS) 1640 if (type == GAIM_REQUEST_FIELDS)
1642 gaim_request_fields_destroy(data->u.multifield.fields); 1641 gaim_request_fields_destroy(data->u.multifield.fields);

mercurial