Merge pull request #1172 from SNoiraud/FR12117
This commit is contained in:
commit
aae975d1de
@ -146,6 +146,7 @@ register('behavior.max-age-prob-alive', 110)
|
|||||||
register('behavior.max-sib-age-diff', 20)
|
register('behavior.max-sib-age-diff', 20)
|
||||||
register('behavior.min-generation-years', 13)
|
register('behavior.min-generation-years', 13)
|
||||||
register('behavior.owner-warn', False)
|
register('behavior.owner-warn', False)
|
||||||
|
register('behavior.immediate-warn', False)
|
||||||
register('behavior.pop-plugin-status', False)
|
register('behavior.pop-plugin-status', False)
|
||||||
register('behavior.recent-export-type', 3)
|
register('behavior.recent-export-type', 3)
|
||||||
register('behavior.runcheck', False)
|
register('behavior.runcheck', False)
|
||||||
|
@ -59,6 +59,7 @@ from .ddtargets import DdTargets
|
|||||||
from .makefilter import make_filter
|
from .makefilter import make_filter
|
||||||
from .utils import is_right_click, no_match_primary_mask
|
from .utils import is_right_click, no_match_primary_mask
|
||||||
from gramps.gen.const import GRAMPS_LOCALE as glocale
|
from gramps.gen.const import GRAMPS_LOCALE as glocale
|
||||||
|
from gramps.gen.config import config
|
||||||
from gramps.gui.widgets.persistenttreeview import PersistentTreeView
|
from gramps.gui.widgets.persistenttreeview import PersistentTreeView
|
||||||
_ = glocale.translation.sgettext
|
_ = glocale.translation.sgettext
|
||||||
|
|
||||||
@ -1374,6 +1375,8 @@ class ClipboardWindow(ManagedWindow):
|
|||||||
self.top = Glade()
|
self.top = Glade()
|
||||||
self.set_window(self.top.toplevel, None, None, msg=_("Clipboard"))
|
self.set_window(self.top.toplevel, None, None, msg=_("Clipboard"))
|
||||||
self.setup_configs('interface.clipboard', 500, 300)
|
self.setup_configs('interface.clipboard', 500, 300)
|
||||||
|
if not config.get('behavior.immediate-warn'):
|
||||||
|
self.get_window().set_tooltip_text(_("Any changes are saved immediately"))
|
||||||
|
|
||||||
self.clear_all_btn = self.top.get_object("btn_clear_all")
|
self.clear_all_btn = self.top.get_object("btn_clear_all")
|
||||||
self.clear_btn = self.top.get_object("btn_clear")
|
self.clear_btn = self.top.get_object("btn_clear")
|
||||||
|
@ -193,6 +193,8 @@ class ConfigureDialog(ManagedWindow):
|
|||||||
self.window.vbox.pack_start(self.panel, True, True, 0)
|
self.window.vbox.pack_start(self.panel, True, True, 0)
|
||||||
self.__on_close = on_close
|
self.__on_close = on_close
|
||||||
self.window.connect('response', self.done)
|
self.window.connect('response', self.done)
|
||||||
|
if not config.get('behavior.immediate-warn'):
|
||||||
|
self.window.set_tooltip_text(_("Any changes are saved immediately"))
|
||||||
|
|
||||||
self.__setup_pages(configure_page_funcs)
|
self.__setup_pages(configure_page_funcs)
|
||||||
|
|
||||||
@ -836,6 +838,11 @@ class GrampsPreferences(ConfigureDialog):
|
|||||||
' exporting to GEDCOM'),
|
' exporting to GEDCOM'),
|
||||||
row, 'behavior.owner-warn', start=1)
|
row, 'behavior.owner-warn', start=1)
|
||||||
row += 1
|
row += 1
|
||||||
|
self.add_checkbox(
|
||||||
|
grid, _('Suppress tooltip warnings about data being saved'
|
||||||
|
' immediately'),
|
||||||
|
row, 'behavior.immediate-warn', start=1)
|
||||||
|
row += 1
|
||||||
self.add_checkbox(
|
self.add_checkbox(
|
||||||
grid, _('Show plugin status dialog on plugin load error'),
|
grid, _('Show plugin status dialog on plugin load error'),
|
||||||
row, 'behavior.pop-plugin-status', start=1)
|
row, 'behavior.pop-plugin-status', start=1)
|
||||||
|
@ -1143,6 +1143,8 @@ class FilterEditor(ManagedWindow):
|
|||||||
self.draw_filters()
|
self.draw_filters()
|
||||||
self._set_size()
|
self._set_size()
|
||||||
self.filter_list.restore_column_size()
|
self.filter_list.restore_column_size()
|
||||||
|
if not config.get('behavior.immediate-warn'):
|
||||||
|
self.get_window().set_tooltip_text(_("Any changes are saved immediately"))
|
||||||
self.show()
|
self.show()
|
||||||
|
|
||||||
def build_menu_names(self, obj):
|
def build_menu_names(self, obj):
|
||||||
|
@ -52,6 +52,7 @@ from ..dialog import ErrorDialog, QuestionDialog2
|
|||||||
import gramps.gui.widgets.progressdialog as progressdlg
|
import gramps.gui.widgets.progressdialog as progressdlg
|
||||||
from ..uimanager import ActionGroup
|
from ..uimanager import ActionGroup
|
||||||
from ..managedwindow import ManagedWindow
|
from ..managedwindow import ManagedWindow
|
||||||
|
from gramps.gen.config import config
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
@ -384,6 +385,8 @@ class OrganizeTagsDialog(ManagedWindow):
|
|||||||
self.top = self._create_dialog()
|
self.top = self._create_dialog()
|
||||||
self.set_window(self.top, None, _('Organize Tags'))
|
self.set_window(self.top, None, _('Organize Tags'))
|
||||||
self.setup_configs('interface.organizetagsdialog', 400, 350)
|
self.setup_configs('interface.organizetagsdialog', 400, 350)
|
||||||
|
if not config.get('behavior.immediate-warn'):
|
||||||
|
self.get_window().set_tooltip_text(_("Any changes are saved immediately"))
|
||||||
self.show()
|
self.show()
|
||||||
self.run()
|
self.run()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user