Mercurial > pidgin.yaz
diff src/dialogs.c @ 26:b9e90a914e20
[gaim-migrate @ 35]
Peter Teichman sent me another huge list of patches. Here they are :)
committer: Tailor Script <tailor@pidgin.im>
| author | Rob Flynn <gaim@robflynn.com> |
|---|---|
| date | Fri, 24 Mar 2000 19:17:34 +0000 |
| parents | c56db1b46b0d |
| children | d90f556e4aa3 |
line wrap: on
line diff
--- a/src/dialogs.c Fri Mar 24 08:55:32 2000 +0000 +++ b/src/dialogs.c Fri Mar 24 19:17:34 2000 +0000 @@ -776,8 +776,9 @@ { struct buddy_pounce *bp = g_new0(struct buddy_pounce, 1); - strcpy(bp->name, gtk_entry_get_text(GTK_ENTRY(b->nameentry))); - strcpy(bp->message, gtk_entry_get_text(GTK_ENTRY(b->messentry))); + g_snprintf(bp->name, 80, "%s", gtk_entry_get_text(GTK_ENTRY(b->nameentry))); + g_snprintf(bp->message, 2048, "%s", gtk_entry_get_text(GTK_ENTRY(b->messentry))); + if (GTK_TOGGLE_BUTTON(b->openwindow)->active) bp->popup = 1; else @@ -787,11 +788,11 @@ bp->sendim = 1; else bp->sendim = 0; + buddy_pounces = g_list_append(buddy_pounces, bp); do_bp_menu(); - destroy_dialog(NULL, b->window); g_free(b); }
