Revision 1389

src/printing.c (revision 1389)
220 220

  
221 221
#endif /* GTK_CHECK_VERSION(2, 10, 0) */
222 222

  
223
gint printing_print_messages_with_command(GSList *mlist, gboolean all_headers,
224
					  const gchar *cmdline)
223
static gint check_command_line(const gchar *cmdline)
225 224
{
226
	MsgInfo *msginfo;
227
	GSList *cur;
228 225
	gchar *msg;
229 226

  
230
	g_return_val_if_fail(mlist != NULL, -1);
231

  
232 227
	msg = g_strconcat
233 228
		(_("The message will be printed with the following command:"),
234 229
		 "\n\n", cmdline ? cmdline : _("(Default print command)"),
......
236 231
	if (alertpanel(_("Print"), msg, GTK_STOCK_OK, GTK_STOCK_CANCEL, NULL)
237 232
	    != G_ALERTDEFAULT) {
238 233
		g_free(msg);
239
		return 0;
234
		return -2;
240 235
	}
241 236
	g_free(msg);
242 237

  
......
246 241
		return -1;
247 242
	}
248 243

  
244
	return 0;
245
}
246

  
247
gint printing_print_messages_with_command(GSList *mlist, gboolean all_headers,
248
					  const gchar *cmdline)
249
{
250
	MsgInfo *msginfo;
251
	GSList *cur;
252

  
253
	g_return_val_if_fail(mlist != NULL, -1);
254

  
255
	if (check_command_line(cmdline) < 0)
256
		return -1;
257

  
249 258
	for (cur = mlist; cur != NULL; cur = cur->next) {
250 259
		msginfo = (MsgInfo *)cur->data;
251 260
		if (msginfo)
......
277 286

  
278 287
gint printing_print_message_part(MsgInfo *msginfo, MimeInfo *partinfo)
279 288
{
289
	if (check_command_line(prefs_common.print_cmd) < 0)
290
		return -1;
280 291
	procmsg_print_message_part(msginfo, partinfo, prefs_common.print_cmd,
281 292
				   FALSE);
293
	return 0;
282 294
}
ChangeLog.ja (revision 1389)
1 1
2006-12-04
2 2

  
3
	* src/printing.c: printing_print_message_part(): ??ǧ????????????
4
	  ɽ????
5

  
6
2006-12-04
7

  
3 8
	* libsylph/imap.c: imap_get_uncached_messages(): ?ٹ???????(Sebastian
4 9
	  Kargel ???? thanks)??
5 10

  
ChangeLog (revision 1389)
1 1
2006-12-04
2 2

  
3
	* src/printing.c: printing_print_message_part(): show confirmation
4
	  dialog.
5

  
6
2006-12-04
7

  
3 8
	* libsylph/imap.c: imap_get_uncached_messages(): fixed a warning
4 9
	  (thanks to Sebastian Kargel).
5 10

  

Also available in: Unified diff