pidgin/gtkconv.c

changeset 21630
591a79c1b295
parent 21474
8c76dc27a5c1
parent 21352
e10c4ea18f7c
child 21656
acb7fa0ac03d
equal deleted inserted replaced
21629:8a4bca00cb1b 21630:591a79c1b295
1028 for (c = buf ; *c ; c++) 1028 for (c = buf ; *c ; c++)
1029 { 1029 {
1030 if (*c == '/' || *c == '\\') 1030 if (*c == '/' || *c == '\\')
1031 *c = ' '; 1031 *c = ' ';
1032 } 1032 }
1033 purple_request_file_with_hint(PIDGIN_CONVERSATION(conv), _("Save Conversation"), 1033 purple_request_file(PIDGIN_CONVERSATION(conv), _("Save Conversation"),
1034 buf, 1034 buf,
1035 TRUE, G_CALLBACK(savelog_writefile_cb), NULL, 1035 TRUE, G_CALLBACK(savelog_writefile_cb), NULL,
1036 NULL, NULL, conv, 1036 NULL, NULL, conv,
1037 PURPLE_REQUEST_UI_HINT_BLIST, conv); 1037 conv);
1038 1038
1039 g_free(buf); 1039 g_free(buf);
1040 } 1040 }
1041 1041
1042 static void 1042 static void
1080 for (cur = buddies; cur != NULL; cur = cur->next) 1080 for (cur = buddies; cur != NULL; cur = cur->next)
1081 { 1081 {
1082 PurpleBlistNode *node = cur->data; 1082 PurpleBlistNode *node = cur->data;
1083 if ((node != NULL) && ((node->prev != NULL) || (node->next != NULL))) 1083 if ((node != NULL) && ((node->prev != NULL) || (node->next != NULL)))
1084 { 1084 {
1085 pidgin_log_show_contact_with_parent(GTK_WINDOW(win->window), (PurpleContact *)node->parent); 1085 pidgin_log_show_contact((PurpleContact *)node->parent);
1086 g_slist_free(buddies); 1086 g_slist_free(buddies);
1087 gdk_window_set_cursor(gtkblist->window->window, NULL); 1087 gdk_window_set_cursor(gtkblist->window->window, NULL);
1088 gdk_window_set_cursor(win->window->window, NULL); 1088 gdk_window_set_cursor(win->window->window, NULL);
1089 return; 1089 return;
1090 } 1090 }
1091 } 1091 }
1092 g_slist_free(buddies); 1092 g_slist_free(buddies);
1093 1093
1094 pidgin_log_show_with_parent(GTK_WINDOW(win->window), type, name, account); 1094 pidgin_log_show(type, name, account);
1095 1095
1096 gdk_window_set_cursor(gtkblist->window->window, NULL); 1096 gdk_window_set_cursor(gtkblist->window->window, NULL);
1097 gdk_window_set_cursor(win->window->window, NULL); 1097 gdk_window_set_cursor(win->window->window, NULL);
1098 } 1098 }
1099 1099
1235 PidginWindow *win = data; 1235 PidginWindow *win = data;
1236 PurpleConversation *conv; 1236 PurpleConversation *conv;
1237 1237
1238 conv = pidgin_conv_window_get_active_gtkconv(win)->active_conv; 1238 conv = pidgin_conv_window_get_active_gtkconv(win)->active_conv;
1239 1239
1240 pidgin_pounce_editor_show_with_parent(GTK_WINDOW(win->window), purple_conversation_get_account(conv), 1240 pidgin_pounce_editor_show(purple_conversation_get_account(conv),
1241 purple_conversation_get_name(conv), NULL); 1241 purple_conversation_get_name(conv), NULL);
1242 } 1242 }
1243 1243
1244 static void 1244 static void
1245 menu_insert_link_cb(gpointer data, guint action, GtkWidget *widget) 1245 menu_insert_link_cb(gpointer data, guint action, GtkWidget *widget)
2717 2717
2718 ext = purple_buddy_icon_get_extension(purple_conv_im_get_icon(PURPLE_CONV_IM(conv))); 2718 ext = purple_buddy_icon_get_extension(purple_conv_im_get_icon(PURPLE_CONV_IM(conv)));
2719 2719
2720 buf = g_strdup_printf("%s.%s", purple_normalize(conv->account, conv->name), ext); 2720 buf = g_strdup_printf("%s.%s", purple_normalize(conv->account, conv->name), ext);
2721 2721
2722 purple_request_file_with_hint(gtkconv, _("Save Icon"), buf, TRUE, 2722 purple_request_file(gtkconv, _("Save Icon"), buf, TRUE,
2723 G_CALLBACK(saveicon_writefile_cb), NULL, 2723 G_CALLBACK(saveicon_writefile_cb), NULL,
2724 conv->account, NULL, conv, 2724 conv->account, NULL, conv,
2725 PURPLE_REQUEST_UI_HINT_BLIST, gtkconv); 2725 gtkconv);
2726 2726
2727 g_free(buf); 2727 g_free(buf);
2728 } 2728 }
2729 2729
2730 static void 2730 static void

mercurial