# HG changeset patch # User Sean Egan # Date 1035246186 0 # Node ID b8d0eeb9e74860397c2cacdc27bb0b2ab00a706b # Parent ade87dac671fb2fdeeb5ac9142c9e476e8a7fc52 [gaim-migrate @ 3920] You win. committer: Tailor Script diff -r ade87dac671f -r b8d0eeb9e748 src/dialogs.c --- a/src/dialogs.c Mon Oct 21 18:56:17 2002 +0000 +++ b/src/dialogs.c Tue Oct 22 00:23:06 2002 +0000 @@ -1416,6 +1416,7 @@ deny_type = deny_opt(_("Allow all users to contact me"), 1, vbox, NULL); deny_type = deny_opt(_("Allow only the users below"), 3, vbox, deny_type); + deny_type = deny_opt(_("Allow only users on my buddy list"), 5, vbox, deny_type); label = gtk_label_new(_("Allow List")); gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 5); @@ -2840,7 +2841,7 @@ showtext = gtk_entry_get_text(GTK_ENTRY(b->text)); g_snprintf(open_tag, 2048, "%s", urltext, showtext); - surround(b->entry, open_tag, ""); +/* FIXME surround(b, open_tag, "");*/ g_free(open_tag); destroy_dialog(NULL, b->window); @@ -2923,7 +2924,7 @@ gtk_window_set_focus(GTK_WINDOW(c->link_dialog), b->url); b->window = c->link_dialog; b->toggle = linky; - b->entry = c->entry; +/* FIXME b->entry_view = c->entry_view;*/ gtk_widget_realize(c->link_dialog); } @@ -2985,7 +2986,7 @@ c->hasfg = 1; g_snprintf(open_tag, 23, "", text_color.red, text_color.green, text_color.blue); - surround(c->entry, open_tag, ""); + surround(c, open_tag, ""); debug_printf("#%02X%02X%02X\n", text_color.red, text_color.green, text_color.blue); g_free(open_tag); cancel_fgcolor(NULL, c); @@ -3012,7 +3013,7 @@ c->hasbg = 1; g_snprintf(open_tag, 25, "", text_color.red, text_color.green, text_color.blue); - surround(c->entry, open_tag, ""); + surround(c, open_tag, ""); debug_printf("#%02X%02X%02X\n", text_color.red, text_color.green, text_color.blue); g_free(open_tag); cancel_bgcolor(NULL, c); @@ -3558,26 +3559,9 @@ void insert_smiley_text(GtkWidget *widget, struct conversation *c) { - char *smiley_text; - - smiley_text = strdup(current_smiley); - - /* surround(c->entry, smiley_text, ""); */ - - if (GTK_OLD_EDITABLE(c->entry)->has_selection) { - int finish = GTK_OLD_EDITABLE(c->entry)->selection_end_pos; - gtk_editable_insert_text(GTK_EDITABLE(c->entry), - smiley_text, strlen(smiley_text), &finish); - } else { - int pos = GTK_OLD_EDITABLE(c->entry)->current_pos; - gtk_editable_insert_text(GTK_EDITABLE(c->entry), smiley_text, strlen(smiley_text), &pos); - } - - g_free(smiley_text); - + gtk_text_buffer_insert_at_cursor(c->entry_buffer, + current_smiley, -1); close_smiley_dialog(NULL, c); - - return; } static void toolbar_add_smiley(struct conversation *c, GtkWidget *bar, char **xpm, GtkWidget *win,