+2005-07-07 Marco Pesenti Gritti <mpg@redhat.com>
+
+ * Makefile.am:
+ * backend/Makefile.am:
+ * properties/Makefile.am:
+ * shell/Makefile.am:
+ * thumbnailer/Makefile.am:
+
+ This should solve the circular dep without
+ requiring dir reorg!
+
+ * shell/ev-window.c: (setup_view_from_metadata):
+
+ Never restore window size/position when the
+ window is already visible.
+
2005-07-06 Christian Persch <chpe@cvs.gnome.org>
* shell/ev-metadata-manager.c: (ev_metadata_manager_save):
-SUBDIRS = lib cut-n-paste backend po help data
+SUBDIRS = lib cut-n-paste po help data
# Backends
SUBDIRS += dvi
endif
+SUBDIRS += backend
+
+# Properties (library and application)
+
+SUBDIRS += properties
+
# Applications
-SUBDIRS += shell thumbnailer properties
+SUBDIRS += shell thumbnailer
intltool_extra = intltool-extract.in intltool-merge.in intltool-update.in
ev-document-misc.c \
$(NULL)
+libevbackend_la_LIBADD = \
+ $(top_builddir)/pdf/libpdfdocument.la \
+ $(top_builddir)/pixbuf/libpixbufdocument.la \
+ $(top_builddir)/ps/libgtkgs.la \
+ $(NULL)
+
+if ENABLE_DJVU
+libevbackend_la_LIBADD += \
+ $(top_builddir)/djvu/libgtkdjvu.la \
+ $(NULL)
+endif
+
+if ENABLE_TIFF
+libevbackend_la_LIBADD += \
+ $(top_builddir)/tiff/libtiffdocument.la \
+ $(NULL)
+endif
+
+if ENABLE_DVI
+libevbackend_la_LIBADD += \
+ $(top_builddir)/dvi/libgtkdvi.la \
+ $(NULL)
+endif
+
BUILT_SOURCES= \
ev-backend-marshalers.h \
ev-backend-marshalers.c
libevince_properties_page_la_LIBADD = \
$(PROPERTIES_LIBS) \
libevproperties.la \
- $(top_builddir)/shell/libevbackendfactory.la \
+ $(top_builddir)/backend/libevbackend.la \
$(top_builddir)/lib/libev.la \
-ltiff -lz
endif
bin_PROGRAMS=evince
-noinst_LTLIBRARIES = libevbackendfactory.la
-
-libevbackendfactory_la_SOURCES =
-
-libevbackendfactory_la_LIBADD = \
- $(top_builddir)/pdf/libpdfdocument.la \
- $(top_builddir)/pixbuf/libpixbufdocument.la \
- $(top_builddir)/ps/libgtkgs.la \
- $(top_builddir)/backend/libevbackend.la \
- $(NULL)
-
-if ENABLE_DJVU
-libevbackendfactory_la_LIBADD += \
- $(top_builddir)/djvu/libgtkdjvu.la \
- $(NULL)
-endif
-
-if ENABLE_TIFF
-libevbackendfactory_la_LIBADD += \
- $(top_builddir)/tiff/libtiffdocument.la \
- $(NULL)
-endif
-
-if ENABLE_DVI
-libevbackendfactory_la_LIBADD += \
- $(top_builddir)/dvi/libgtkdvi.la \
- $(NULL)
-endif
evince_SOURCES= \
dummy.cc \
$(top_builddir)/cut-n-paste/toolbar-editor/libtoolbareditor.la \
$(top_builddir)/properties/libevproperties.la \
$(top_builddir)/lib/libev.la \
+ $(top_builddir)/backend/libevbackend.la \
-ltiff -lz \
- libevbackendfactory.la \
$(NULL)
if ENABLE_DBUS
GValue fullscreen = { 0, };
/* Window size */
- if (ev_metadata_manager_get (uri, "window_maximized", &maximized)) {
- if (g_value_get_boolean (&maximized) && !GTK_WIDGET_VISIBLE (window)) {
- gtk_window_maximize (GTK_WINDOW (window));
+ if (!GTK_WIDGET_VISIBLE (window)) {
+ gboolean restore_size = TRUE;
+
+ if (ev_metadata_manager_get (uri, "window_maximized", &maximized)) {
+ if (g_value_get_boolean (&maximized)) {
+ gtk_window_maximize (GTK_WINDOW (window));
+ restore_size = FALSE;
+ }
}
- if (!g_value_get_boolean (&maximized) &&
+ if (restore_size &&
ev_metadata_manager_get (uri, "window_x", &x) &&
ev_metadata_manager_get (uri, "window_y", &y) &&
ev_metadata_manager_get (uri, "window_width", &width) &&
$(THUMBNAILER_LIBS) \
$(LIBTIFF) \
$(top_builddir)/lib/libev.la \
- $(top_builddir)/shell/libevbackendfactory.la \
+ $(top_builddir)/backend/libevbackend.la \
-ltiff -lz \
$(NULL)