+2005-08-16 Nickolay V. Shmyrev <nshmyrev@yandex.ru>
+
+ * shell/ev-utils.c: (set_umask_permissions), (write_to_temp_file):
+ * shell/ev-window.c:
+ Fix build warnings
+
+2005-08-16 Carlos Garcia Campos <carlosgc@gnome.org>
+
+ * configure.ac: Update script to get dbus version.
+ Fix for the bug #313443.
+
2005-08-16 Nickolay V. Shmyrev <nshmyrev@yandex.ru>
* shell/ev-window.c: (ev_window_cmd_escape):
AC_DEFINE([ENABLE_DBUS],[1],[Define if DBUS support is enabled])
- DBUS_VERSION=`$PKG_CONFIG --modversion dbus-glib-1 | sed 's/0.\([[0-9]]*\)/\1/'`
+ DBUS_VERSION=`$PKG_CONFIG --modversion dbus-glib-1 | sed 's/0\.\([[0-9]]*\)\.\?\([[0-9]]*\)/\1/'`
AC_DEFINE_UNQUOTED(DBUS_VERSION, $DBUS_VERSION, [DBUS version.])
fi
#include <sys/types.h>
#include <sys/wait.h>
#include <string.h>
+#include <glib/gstdio.h>
static gboolean
rename_file (const char *old_name,
* the umask in between the getting and the setting of the umask.
* So we have to do the whole thing in a child process.
*/
-
- int save_errno;
pid_t pid;
pid = fork ();
if (WIFEXITED (status))
{
- save_errno = WEXITSTATUS (status);
-
- if (save_errno == 0)
+ if (WEXITSTATUS (status) == 0)
{
return TRUE;
}
gchar *retval;
FILE *file;
gint fd;
- int save_errno;
retval = NULL;
#include "ev-stock-icons.h"
#include "ev-metadata-manager.h"
#include "ev-file-helpers.h"
+#include "ev-utils.h"
#include <poppler.h>