;ς ΫNEc@s-dZdkZdkZdklZlZdkZdkZea e Z e Z e Z d„Zd„Zdefd„ƒYZdefd„ƒYZd efd „ƒYZed joseƒZd GeGHd ZdeeieƒfGHdZdeeieƒfGHdGeiƒGHdGeidƒGHndS(sFROX-Session settings with D-Bus and optional Gnome (gconf) setting Setting and Settings are derived from ROX-Lib's Option and OptionGroup respectively. A Setting sends a dbus message to ROX-Session when changed. Use get_xsettings to get the dbus interface, then create a Settings object with it to pass to each Setting. N(s OptionGroupsOptioncCstiiƒSdS(sgReturns ROX-Session's Settings dbus/xxmlrpc interface. Called automatically if and when necessary N(sroxssessions get_settings(((sV/mnt/gmirror/ports/devel/py-roxlib/work/rox-lib2-2.0.5/ROX-Lib2/python/rox/settings.pys get_xsettingsscCsDy,dkatiƒ}|idtiƒWn t}nX|SdS(s²Get GConf connection. Some of the options have corresponding gconf entries; this gets the gconf client connection. It will be called automatically if and when necessary. Ns/desktop/gnome/interface(sgconfsclient_get_defaultsclientsadd_dirsCLIENT_PRELOAD_NONEsNone(sclient((sV/mnt/gmirror/ports/devel/py-roxlib/work/rox-lib2-2.0.5/ROX-Lib2/python/rox/settings.pys get_gconfs    sSettingscBsDtZdZeiieiƒZe e d„Z d„Z d„Z RS(s7A group of options associated with the dbus interface. cCs2h|_g|_|ptƒ|_||_dS(sConstructor bus: ROX-Session's dbus interface. Omit to use default client: gconf client connection. Omit to use default N(sselfsoptionss callbackssbuss get_xsettingssclient(sselfsbussclient((sV/mnt/gmirror/ports/devel/py-roxlib/work/rox-lib2-2.0.5/ROX-Lib2/python/rox/settings.pys__init__2s   cCs.tt|iƒx|D]}t|_qWdS(N(smapsapplysselfs callbackssoptionsFalses has_changed(sselfsoption((sV/mnt/gmirror/ports/devel/py-roxlib/work/rox-lib2-2.0.5/ROX-Lib2/python/rox/settings.pysnotify=scCsdS(N((sself((sV/mnt/gmirror/ports/devel/py-roxlib/work/rox-lib2-2.0.5/ROX-Lib2/python/rox/settings.pyssaveBs( s__name__s __module__s__doc__sosspathsbasenamesroxsapp_dirsprogramsNones__init__snotifyssave(((sV/mnt/gmirror/ports/devel/py-roxlib/work/rox-lib2-2.0.5/ROX-Lib2/python/rox/settings.pysSettings-s  sSettingcBs>tZeed„Zd„Zd„Zd„Zed„Z RS(NcCs³||_||_||_||i|<||_t|_|o|ddjod|}n||_y|i i |ƒ\}}Wn|i |ƒnX|i |dt ƒdS(s|Constructor name: Option name as sent in dbus message. default: Default value. settings: The group of Settings this one belongs to. garbage: Font and theme changes cause (some versions of?) GTK to update all windows even if they're supposed to have been destroyed. If we've just closed a dialog eg font selection (or menu?), this can cause a crash, so this option forces a garbage collection to make sure there is no stale reference. gconf_key: Optional gconf setting key. If it begins with / it will be treated as the absolute path, otherwise it will have /desktop/gnome/interface/ prepended. is/s/desktop/gnome/interface/snotifyN(snamesselfsdefaultssettingssoptionssgarbagesNonesvalues gconf_keysbuss GetSettingstypes_setsFalse(sselfsnamesdefaultssettingssgarbages gconf_keysvaluestype((sV/mnt/gmirror/ports/devel/py-roxlib/work/rox-lib2-2.0.5/ROX-Lib2/python/rox/settings.pys__init__Fs       cCs2t|iƒtjot|iƒSn|iSdS(s˜Returns value ready to be converted to a GConfValue. Override if necessary. Return a bool, int or string (so the name is slightly misleading). N(stypesselfsdefaultsstrsvalues int_value(sself((sV/mnt/gmirror/ports/devel/py-roxlib/work/rox-lib2-2.0.5/ROX-Lib2/python/rox/settings.pysmake_gconf_valuefscCstSdS(sΙCalled just before notifying dbus the standard way. Override to perform additional operations and return True if you want to prevent normal notification. Won't be called if there's no bus. N(sFalse(sself((sV/mnt/gmirror/ports/devel/py-roxlib/work/rox-lib2-2.0.5/ROX-Lib2/python/rox/settings.pyspre_notify_hookqscCsdS(sΡCalled just after notifying dbus the standard way. Override to perform additional operations. Won't be called if there's no bus, but otherwise will be called even if pre_notif_hook() returns True. N((sself((sV/mnt/gmirror/ports/devel/py-roxlib/work/rox-lib2-2.0.5/ROX-Lib2/python/rox/settings.pyspost_notify_hookzscsRtiˆ|ƒ| odSn‡d†}ˆioti|ƒn|ƒdS(Ncstˆiodk}|iƒnˆiitj orˆiƒ oVtˆi ƒt jo ˆiii ˆi ˆi ƒq™ˆiiiˆi ˆiƒnˆiƒnˆio»ˆii otƒˆi_nˆiio‰ˆiƒ}t|ƒtjoˆiiiˆi|ƒqht|ƒtjoˆiiiˆi|ƒqhˆiiiˆi|ƒqlntSdS(N(sselfsgarbagesgcscollectssettingssbussNonespre_notify_hookstypesdefaultsstrs SetStringsnamesvaluesSetInts int_valuespost_notify_hooks gconf_keysclients get_gconfsmake_gconf_valuesvalsboolsset_boolsintsset_ints set_stringsFalse(svalsgc(sself(sV/mnt/gmirror/ports/devel/py-roxlib/work/rox-lib2-2.0.5/ROX-Lib2/python/rox/settings.pyssetŠs(       !( sOptions_setsselfsvaluesnotifyssetsgarbagesgobjectsidle_add(sselfsvaluesnotifysset((sselfsV/mnt/gmirror/ports/devel/py-roxlib/work/rox-lib2-2.0.5/ROX-Lib2/python/rox/settings.pys_setƒs  ( s__name__s __module__sFalsesNones__init__smake_gconf_valuespre_notify_hookspost_notify_hooksTrues_set(((sV/mnt/gmirror/ports/devel/py-roxlib/work/rox-lib2-2.0.5/ROX-Lib2/python/rox/settings.pysSettingEs  s BoolSettingcBs#tZdZed„Zd„ZRS(s‚Bool setting for GConf/D-Bus Option doesn't distinguish between int and bool, but gconf does, so use this for bool options. cCs ti||||||ƒdS(N(sSettings__init__sselfsnamesdefaultssettingssthemes gconf_key(sselfsnamesdefaultssettingssthemes gconf_key((sV/mnt/gmirror/ports/devel/py-roxlib/work/rox-lib2-2.0.5/ROX-Lib2/python/rox/settings.pys__init__²scCs|idjSdS(Ni(sselfs int_value(sself((sV/mnt/gmirror/ports/devel/py-roxlib/work/rox-lib2-2.0.5/ROX-Lib2/python/rox/settings.pysmake_gconf_value΄s(s__name__s __module__s__doc__sNones__init__smake_gconf_value(((sV/mnt/gmirror/ports/devel/py-roxlib/work/rox-lib2-2.0.5/ROX-Lib2/python/rox/settings.pys BoolSetting¬s  s__main__sobject=sGtk/KeyThemeNames%s = %ss Net/ThemeNamesAll: sROX: sROX/*(s__doc__sossroxs rox.optionss OptionGroupsOptions rox.sessionsgobjectsNonesgconfsFalses_warned_imports_warned_connects _warned_noroxs get_xsettingss get_gconfsSettingssSettings BoolSettings__name__ssetobjsvs GetSettings Enumerate(ssetobjsOptionsSettingss _warned_noroxs get_gconfsvs BoolSettingsroxs_warned_connectsSettings get_xsettingssgobjects_warned_imports OptionGroupsos((sV/mnt/gmirror/ports/devel/py-roxlib/work/rox-lib2-2.0.5/ROX-Lib2/python/rox/settings.pys?s.      g