Mercurial > pidgin
comparison plugins/gaimrc.c @ 12042:01ce8025a1d9
[gaim-migrate @ 14337]
Don't hardcode ~/.gaim. That wouldn't be right on Windows or if you're using -c. If anyone thinks this sucks, just revert it, I'm not attached to it.
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Fri, 11 Nov 2005 22:15:42 +0000 |
parents | bfb56404a9b6 |
children | 6e6f5e4b40c0 |
comparison
equal
deleted
inserted
replaced
12041:da44f68fb4d2 | 12042:01ce8025a1d9 |
---|---|
398 GtkSizeGroup *sg = NULL; | 398 GtkSizeGroup *sg = NULL; |
399 /* | 399 /* |
400 char sample[7] = "Sample"; | 400 char sample[7] = "Sample"; |
401 */ | 401 */ |
402 int i; | 402 int i; |
403 char *tmp; | |
403 | 404 |
404 ret = gtk_vbox_new(FALSE, GAIM_HIG_CAT_SPACE); | 405 ret = gtk_vbox_new(FALSE, GAIM_HIG_CAT_SPACE); |
405 gtk_container_set_border_width(GTK_CONTAINER(ret), GAIM_HIG_BORDER); | 406 gtk_container_set_border_width(GTK_CONTAINER(ret), GAIM_HIG_BORDER); |
406 | 407 |
407 sg = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL); | 408 sg = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL); |
511 frame = gaim_gtk_make_frame(ret, "General"); | 512 frame = gaim_gtk_make_frame(ret, "General"); |
512 | 513 |
513 vbox = gtk_vbox_new(FALSE, GAIM_HIG_CAT_SPACE); | 514 vbox = gtk_vbox_new(FALSE, GAIM_HIG_CAT_SPACE); |
514 gtk_box_pack_start(GTK_BOX(frame), vbox, FALSE, FALSE, 0); | 515 gtk_box_pack_start(GTK_BOX(frame), vbox, FALSE, FALSE, 0); |
515 | 516 |
516 check = gtk_button_new_with_label(_("Write a gtkrc file to ~/.gaim/ with these settings")); | 517 tmp = g_strdup_printf(_("Write a gtkrc file with these settings to: %s"), gaim_user_dir()); |
518 check = gtk_button_new_with_label(tmp); | |
519 g_free(tmp); | |
517 gtk_box_pack_start(GTK_BOX(vbox), check, FALSE, FALSE, 0); | 520 gtk_box_pack_start(GTK_BOX(vbox), check, FALSE, FALSE, 0); |
518 gtk_size_group_add_widget(sg, check); | 521 gtk_size_group_add_widget(sg, check); |
519 g_signal_connect(G_OBJECT(check), "clicked", G_CALLBACK(gaimrc_write), | 522 g_signal_connect(G_OBJECT(check), "clicked", G_CALLBACK(gaimrc_write), |
520 NULL); | 523 NULL); |
521 | 524 |