From b0807932adec7612f44db4c3ae7328b03aeab294 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Thu, 29 Dec 2005 18:36:59 +0000 Subject: [PATCH] * src/ArgHandler.py: remove DbPrompter dependency * src/GrampsGconfKeys.py: Support for saving window size * src/GrampsIniKeys.py: Support for saving window size * src/GrampsKeys.py: more gracefully handling missing gconf * src/Makefile.am: Fixed moved files * src/Report.py: clean up * src/ScratchPad.py: use GrampsDisplay instead of gnome.help_display * src/StartupDialog.py: clean up * src/ViewManager.py: save window size * src/gramps_main.py: don't require gnome * src/data/gramps.schemas: keys for saving window size svn: r5640 --- ChangeLog | 13 ++++++ configure.in | 22 ---------- src/ArgHandler.py | 91 ++++++++++++++++++++++++++++++++++++++++- src/GrampsGconfKeys.py | 12 ++++++ src/GrampsIniKeys.py | 12 ++++++ src/GrampsKeys.py | 7 ++-- src/Makefile.am | 18 +------- src/Report.py | 57 ++++++++++++-------------- src/ScratchPad.py | 4 +- src/StartupDialog.py | 17 ++++---- src/ViewManager.py | 13 +++++- src/data/gramps.schemas | 24 +++++++++++ src/gramps_main.py | 18 ++++---- 13 files changed, 215 insertions(+), 93 deletions(-) diff --git a/ChangeLog b/ChangeLog index 280a246de..46682623a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,16 @@ +2005-12-29 Don Allingham + * src/ArgHandler.py: remove DbPrompter dependency + * src/GrampsGconfKeys.py: Support for saving window size + * src/GrampsIniKeys.py: Support for saving window size + * src/GrampsKeys.py: more gracefully handling missing gconf + * src/Makefile.am: Fixed moved files + * src/Report.py: clean up + * src/ScratchPad.py: use GrampsDisplay instead of gnome.help_display + * src/StartupDialog.py: clean up + * src/ViewManager.py: save window size + * src/gramps_main.py: don't require gnome + * src/data/gramps.schemas: keys for saving window size + 2005-12-29 Martin Hawlisch * src/PedView.py: Add new submenu showing people that share the same event. This for example lists witnesses. diff --git a/configure.in b/configure.in index 1bf441bb7..e8e603e63 100644 --- a/configure.in +++ b/configure.in @@ -144,28 +144,6 @@ then fi AC_MSG_RESULT(ok) -AC_MSG_CHECKING(Python bindings for gnome canvas) -cat > conftest.py < conftest.py < + + /schemas/apps/gramps/interface/height + /apps/gramps/interface/height + gramps + int + 500 + + Height of the interface. + Specifies the height of the interface when GRAMPS starts. + + + + + /schemas/apps/gramps/interface/width + /apps/gramps/interface/width + gramps + int + 775 + + Width of the interface. + Specifies the width of the interface when GRAMPS starts. + + + /schemas/apps/gramps/interface/familyview /apps/gramps/interface/familyview diff --git a/src/gramps_main.py b/src/gramps_main.py index 1f9c7a596..ef5db717c 100755 --- a/src/gramps_main.py +++ b/src/gramps_main.py @@ -26,7 +26,6 @@ # #------------------------------------------------------------------------- import gtk -import gnome #------------------------------------------------------------------------- # @@ -58,7 +57,6 @@ import TipOfDay from GrampsMime import mime_type_is_defined from QuestionDialog import ErrorDialog - iconpaths = [".",const.rootDir] def register_stock_icons (): @@ -113,16 +111,20 @@ class Gramps: def __init__(self,args): try: + import gnome self.program = gnome.program_init('gramps',const.version, gnome.libgnome_module_info_get(), args, const.popt_table) - except: - self.program = gnome.program_init('gramps',const.version) - self.program.set_property('app-libdir','%s/lib' % const.prefixdir) - self.program.set_property('app-datadir','%s/share/gramps' % const.prefixdir) - self.program.set_property('app-sysconfdir','%s/etc' % const.prefixdir) - self.program.set_property('app-prefix', const.prefixdir) + self.program.set_property('app-libdir', + '%s/lib' % const.prefixdir) + self.program.set_property('app-datadir', + '%s/share/gramps' % const.prefixdir) + self.program.set_property('app-sysconfdir', + '%s/etc' % const.prefixdir) + self.program.set_property('app-prefix', const.prefixdir) + except: + pass try: GrampsCfg.loadConfig()