| 1027 for (c = buf ; *c ; c++) |
1027 for (c = buf ; *c ; c++) |
| 1028 { |
1028 { |
| 1029 if (*c == '/' || *c == '\\') |
1029 if (*c == '/' || *c == '\\') |
| 1030 *c = ' '; |
1030 *c = ' '; |
| 1031 } |
1031 } |
| 1032 purple_request_file(PIDGIN_CONVERSATION(conv), _("Save Conversation"), |
1032 purple_request_file_with_hint(PIDGIN_CONVERSATION(conv), _("Save Conversation"), |
| 1033 buf, |
1033 buf, |
| 1034 TRUE, G_CALLBACK(savelog_writefile_cb), NULL, |
1034 TRUE, G_CALLBACK(savelog_writefile_cb), NULL, |
| 1035 NULL, NULL, conv, |
1035 NULL, NULL, conv, |
| 1036 conv); |
1036 "conversation", conv); |
| 1037 |
1037 |
| 1038 g_free(buf); |
1038 g_free(buf); |
| 1039 } |
1039 } |
| 1040 |
1040 |
| 1041 static void |
1041 static void |
| 1079 for (cur = buddies; cur != NULL; cur = cur->next) |
1079 for (cur = buddies; cur != NULL; cur = cur->next) |
| 1080 { |
1080 { |
| 1081 PurpleBlistNode *node = cur->data; |
1081 PurpleBlistNode *node = cur->data; |
| 1082 if ((node != NULL) && ((node->prev != NULL) || (node->next != NULL))) |
1082 if ((node != NULL) && ((node->prev != NULL) || (node->next != NULL))) |
| 1083 { |
1083 { |
| 1084 pidgin_log_show_contact((PurpleContact *)node->parent); |
1084 pidgin_log_show_contact_with_parent(GTK_WINDOW(win->window), (PurpleContact *)node->parent); |
| 1085 g_slist_free(buddies); |
1085 g_slist_free(buddies); |
| 1086 gdk_window_set_cursor(gtkblist->window->window, NULL); |
1086 gdk_window_set_cursor(gtkblist->window->window, NULL); |
| 1087 gdk_window_set_cursor(win->window->window, NULL); |
1087 gdk_window_set_cursor(win->window->window, NULL); |
| 1088 return; |
1088 return; |
| 1089 } |
1089 } |
| 1090 } |
1090 } |
| 1091 g_slist_free(buddies); |
1091 g_slist_free(buddies); |
| 1092 |
1092 |
| 1093 pidgin_log_show(type, name, account); |
1093 pidgin_log_show_with_parent(GTK_WINDOW(win->window), type, name, account); |
| 1094 |
1094 |
| 1095 gdk_window_set_cursor(gtkblist->window->window, NULL); |
1095 gdk_window_set_cursor(gtkblist->window->window, NULL); |
| 1096 gdk_window_set_cursor(win->window->window, NULL); |
1096 gdk_window_set_cursor(win->window->window, NULL); |
| 1097 } |
1097 } |
| 1098 |
1098 |
| 1234 PidginWindow *win = data; |
1234 PidginWindow *win = data; |
| 1235 PurpleConversation *conv; |
1235 PurpleConversation *conv; |
| 1236 |
1236 |
| 1237 conv = pidgin_conv_window_get_active_gtkconv(win)->active_conv; |
1237 conv = pidgin_conv_window_get_active_gtkconv(win)->active_conv; |
| 1238 |
1238 |
| 1239 pidgin_pounce_editor_show(purple_conversation_get_account(conv), |
1239 pidgin_pounce_editor_show_with_parent(GTK_WINDOW(win->window), purple_conversation_get_account(conv), |
| 1240 purple_conversation_get_name(conv), NULL); |
1240 purple_conversation_get_name(conv), NULL); |
| 1241 } |
1241 } |
| 1242 |
1242 |
| 1243 static void |
1243 static void |
| 1244 menu_insert_link_cb(gpointer data, guint action, GtkWidget *widget) |
1244 menu_insert_link_cb(gpointer data, guint action, GtkWidget *widget) |
| 2711 |
2711 |
| 2712 ext = purple_buddy_icon_get_extension(purple_conv_im_get_icon(PURPLE_CONV_IM(conv))); |
2712 ext = purple_buddy_icon_get_extension(purple_conv_im_get_icon(PURPLE_CONV_IM(conv))); |
| 2713 |
2713 |
| 2714 buf = g_strdup_printf("%s.%s", purple_normalize(conv->account, conv->name), ext); |
2714 buf = g_strdup_printf("%s.%s", purple_normalize(conv->account, conv->name), ext); |
| 2715 |
2715 |
| 2716 purple_request_file(gtkconv, _("Save Icon"), buf, TRUE, |
2716 purple_request_file_with_hint(gtkconv, _("Save Icon"), buf, TRUE, |
| 2717 G_CALLBACK(saveicon_writefile_cb), NULL, |
2717 G_CALLBACK(saveicon_writefile_cb), NULL, |
| 2718 conv->account, NULL, conv, |
2718 conv->account, NULL, conv, |
| 2719 gtkconv); |
2719 "conversation", gtkconv); |
| 2720 |
2720 |
| 2721 g_free(buf); |
2721 g_free(buf); |
| 2722 } |
2722 } |
| 2723 |
2723 |
| 2724 static void |
2724 static void |