More code clean-up. Better use of libgimp routines, etc.

This commit is contained in:
Maurits Rijk
2002-12-19 22:23:37 +00:00
parent c7af92e8d3
commit 449d4913fa
14 changed files with 149 additions and 351 deletions

View File

@ -23,9 +23,6 @@
#include "config.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <gtk/gtk.h>
#include "imap_circle.h"
@ -60,11 +57,8 @@ menu_mru(GtkWidget *widget, gpointer data)
{
MRU_t *mru = get_mru();
char *filename = (char*) data;
struct stat buf;
int err;
err = stat(filename, &buf);
if (!err && (buf.st_mode & S_IFREG)) {
if (g_file_test(filename, G_FILE_TEST_IS_REGULAR)) {
load(filename);
} else {
do_file_error_dialog(_("Error opening file"), filename);