]> www.fi.muni.cz Git - evince.git/commitdiff
do not unnecessarily save zoom
authorMarco Pesenti Gritti <mpg@redhat.com>
Thu, 7 Jul 2005 09:34:45 +0000 (09:34 +0000)
committerMarco Pesenti Gritti <marco@src.gnome.org>
Thu, 7 Jul 2005 09:34:45 +0000 (09:34 +0000)
2005-07-07  Marco Pesenti Gritti  <mpg@redhat.com>

        * shell/ev-window:

        do not unnecessarily save zoom

        * configure.ac:
        * lib/ev-file-helpers.c: (ev_dot_dir):
        * shell/Makefile.am:
        * shell/dummy.cc:

        Some cleanups

ChangeLog
configure.ac
lib/ev-file-helpers.c
shell/Makefile.am
shell/dummy.cc [deleted file]
shell/ev-window.c

index aa6de644a29e35391df20a37da6fbf9b2461a95e..1f9dabe4c23eb9c8aa7aebe68f438fd899e25389 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+2005-07-07  Marco Pesenti Gritti  <mpg@redhat.com>
+
+       * shell/ev-window:
+
+       do not unnecessarily save zoom
+
+       * configure.ac:
+       * lib/ev-file-helpers.c: (ev_dot_dir):
+       * shell/Makefile.am:
+       * shell/dummy.cc:
+
+       Some cleanups
+
 2005-07-07  Marco Pesenti Gritti  <mpg@redhat.com>
 
        * configure.ac:
index c467389a396294306605a60539e165ac09726ac1..d333c89fc6ba29cabd4004e0e660f6d2d08baa14 100644 (file)
@@ -4,11 +4,6 @@ AC_PREREQ(2.57)
 AC_INIT(evince, 0.3.2)
 AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
 
-GNOME_COMMON_INIT
-GNOME_MAINTAINER_MODE_DEFINES
-GNOME_COMPILE_WARNINGS
-GNOME_CXX_WARNINGS
-
 AM_CONFIG_HEADER(config.h)
 
 AM_MAINTAINER_MODE
@@ -24,6 +19,10 @@ AC_PROG_INTLTOOL
 AC_PATH_PROG([GLIB_GENMARSHAL], [glib-genmarshal])
 AC_PATH_PROG([GLIB_MKENUMS],[glib-mkenums])
 
+GNOME_COMMON_INIT
+GNOME_MAINTAINER_MODE_DEFINES
+GNOME_COMPILE_WARNINGS
+GNOME_CXX_WARNINGS
 GNOME_DEBUG_CHECK
 
 ALL_LINGUAS="bg ca cs da de el en_CA en_GB es eu fi fr hu ja ko lt nb nl no pt_BR ru rw sk sv th uk wa zh_CN zh_TW"
@@ -34,12 +33,13 @@ GETTEXT_PACKAGE=AC_PACKAGE_NAME
 AC_SUBST(GETTEXT_PACKAGE)
 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package.])
 
+dnl Check dependencies
 POPPLER_REQUIRED=0.3.3
 DBUS_GLIB_REQUIRED=0.33
 GTK_REQUIRED=2.6.0
 LIBGNOMEUI_REQUIRED=2.6.0
 
-PKG_CHECK_MODULES(LIB, gtk+-2.0 >= $GTK_REQUIRED libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED)
+PKG_CHECK_MODULES(LIB, gtk+-2.0 >= $GTK_REQUIRED libgnome-2.0)
 PKG_CHECK_MODULES(TOOLBAR_EDITOR, gtk+-2.0 >= $GTK_REQUIRED libxml-2.0)
 PKG_CHECK_MODULES(RECENT_FILES, gtk+-2.0 >= $GTK_REQUIRED libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED)
 PKG_CHECK_MODULES(ZOOM_CONTROL, gtk+-2.0 >= $GTK_REQUIRED)
@@ -107,11 +107,13 @@ if test x$HAVE_NAUTILUS = "xyes"; then
 fi
 AM_CONDITIONAL(HAVE_NAUTILUS, test x$HAVE_NAUTILUS = "xyes")
 
+dnl Check for gtk_icon_view_get_visible_range
 evince_save_LIBS=$LIBS
 LIBS="$LIBS $GTK_LIBS"
 AC_CHECK_FUNCS(gtk_icon_view_get_visible_range)
 LIBS=$evince_save_LIBS
 
+dnl GConf configuration
 AM_GCONF_SOURCE_2
 
 AC_PATH_PROG([GCONFTOOL], [gconftool-2], [no])
index ae8aae549915ae9d1b97e6d53a0165b91346b795..247e511d11f67724b7d8eba84c9b98d21095f9b2 100644 (file)
@@ -61,8 +61,7 @@ ev_dot_dir (void)
        {
                gboolean exists;
 
-               dot_dir = g_build_filename (g_get_home_dir (),
-                                           GNOME_DOT_GNOME,
+               dot_dir = g_build_filename (gnome_user_dir_get (),
                                            "evince",
                                            NULL);
 
index a95b57dfa7a26a240e084a8fa8c2b65b6bae1c4e..a8ba810fa2679291b383121348417a1690bbace0 100644 (file)
@@ -23,7 +23,6 @@ endif
 bin_PROGRAMS=evince
 
 evince_SOURCES=                                \
-       dummy.cc                        \
        eggfindbar.c                    \
        eggfindbar.h                    \
        ev-application.c                \
diff --git a/shell/dummy.cc b/shell/dummy.cc
deleted file mode 100644 (file)
index 645049d..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/* This file is just here to fake automake into linking evince as a C++ app
- */
-
-void evince_cpp_stub_dummy (void)
-{
-}
-
index 4f737b47fc7913a415e6537e141426dad6148338..a487c88b7fd63d7bf8c03bc7022e88cd3a6329a5 100644 (file)
@@ -2271,8 +2271,10 @@ ev_window_zoom_changed_cb (EvView *view, GParamSpec *pspec, EvWindow *ev_window)
         update_action_sensitivity (ev_window);
 
 #ifdef ENABLE_METADATA
-       ev_metadata_manager_set_double (ev_window->priv->uri, "zoom",
-                                       ev_view_get_zoom (EV_VIEW (ev_window->priv->view)));
+       if (ev_view_get_sizing_mode (view) == EV_SIZING_FREE) {
+               ev_metadata_manager_set_double (ev_window->priv->uri, "zoom",
+                                               ev_view_get_zoom (view));
+       }
 #endif
 }