def __init__(self, gconf_client, gconf_key): weather.WeatherOptions.__init__(self) self.widget_tree = gtk.Builder() self.widget_tree.add_from_file(os.path.join(os.path.dirname(__file__), "weather-noaa.ui")) self.component = self.widget_tree.get_object("OptionPanel") g15uigconf.configure_text_from_gconf(gconf_client, "%s/station_id" % gconf_key, "StationID", "KPEO", self.widget_tree)
def __init__(self, gconf_client, gconf_key): weather.WeatherOptions.__init__(self) self.widget_tree = gtk.Builder() self.widget_tree.add_from_file(os.path.join(os.path.dirname(__file__), "weather-yahoo.ui")) self.component = self.widget_tree.get_object("OptionPanel") g15uigconf.configure_text_from_gconf(gconf_client, "%s/location_id" % gconf_key, "LocationID", "", self.widget_tree)
def show_preferences(parent, driver, gconf_client, gconf_key): widget_tree = gtk.Builder() widget_tree.add_from_file(os.path.join(os.path.dirname(__file__), "tweak.ui")) dialog = widget_tree.get_object("TweakDialog") dialog.set_transient_for(parent) g15uigconf.configure_adjustment_from_gconf( gconf_client, "/apps/gnome15/scroll_delay", "ScrollDelayAdjustment", 500, widget_tree ) g15uigconf.configure_adjustment_from_gconf( gconf_client, "/apps/gnome15/scroll_amount", "ScrollAmountAdjustment", 5, widget_tree ) g15uigconf.configure_adjustment_from_gconf( gconf_client, "/apps/gnome15/animation_delay", "AnimationDelayAdjustment", 100, widget_tree ) g15uigconf.configure_checkbox_from_gconf( gconf_client, "/apps/gnome15/animated_menus", "AnimatedMenus", True, widget_tree ) g15uigconf.configure_adjustment_from_gconf( gconf_client, "/apps/gnome15/key_hold_duration", "KeyHoldDurationAdjustment", 2000, widget_tree ) g15uigconf.configure_adjustment_from_gconf( gconf_client, "/apps/gnome15/usb_key_read_timeout", "UsbKeyReadTimeoutAdjustment", 100, widget_tree ) g15uigconf.configure_checkbox_from_gconf(gconf_client, "/apps/gnome15/use_xtest", "UseXTest", True, widget_tree) g15uigconf.configure_checkbox_from_gconf( gconf_client, "/apps/gnome15/disable_svg_glow", "DisableSVGGlow", False, widget_tree ) g15uigconf.configure_checkbox_from_gconf( gconf_client, "/apps/gnome15/fade_screen_on_close", "FadeScreenOnClose", True, widget_tree ) g15uigconf.configure_checkbox_from_gconf( gconf_client, "/apps/gnome15/fade_keyboard_backlight_on_close", "FadeKeyboardBacklightOnClose", True, widget_tree, ) g15uigconf.configure_checkbox_from_gconf( gconf_client, "/apps/gnome15/all_off_on_disconnect", "AllOffOnDisconnect", True, widget_tree ) g15uigconf.configure_checkbox_from_gconf( gconf_client, "/apps/gnome15/start_in_threads", "StartScreensInThreads", False, widget_tree ) g15uigconf.configure_checkbox_from_gconf( gconf_client, "/apps/gnome15/monitor_desktop_session", "MonitorDesktopSession", True, widget_tree ) g15uigconf.configure_text_from_gconf(gconf_client, "/apps/gnome15/time_format", "TimeFormat", "", widget_tree) g15uigconf.configure_text_from_gconf( gconf_client, "/apps/gnome15/time_format_24hr", "TimeFormatTwentyFour", "", widget_tree ) g15uigconf.configure_text_from_gconf(gconf_client, "/apps/gnome15/date_format", "DateFormat", "", widget_tree) g15uigconf.configure_text_from_gconf( gconf_client, "/apps/gnome15/date_time_format", "DateTimeFormat", "", widget_tree ) dialog.run() dialog.hide()
def show_preferences(parent, driver, gconf_client, gconf_key): widget_tree = Gtk.Builder() widget_tree.add_from_file( os.path.join(os.path.dirname(__file__), "tweak.ui")) dialog = widget_tree.get_object("TweakDialog") dialog.set_transient_for(parent) g15uigconf.configure_adjustment_from_gconf(gconf_client, "/apps/gnome15/scroll_delay", "ScrollDelayAdjustment", 500, widget_tree) g15uigconf.configure_adjustment_from_gconf(gconf_client, "/apps/gnome15/scroll_amount", "ScrollAmountAdjustment", 5, widget_tree) g15uigconf.configure_adjustment_from_gconf( gconf_client, "/apps/gnome15/animation_delay", "AnimationDelayAdjustment", 100, widget_tree) g15uigconf.configure_checkbox_from_gconf(gconf_client, "/apps/gnome15/animated_menus", "AnimatedMenus", True, widget_tree) g15uigconf.configure_adjustment_from_gconf( gconf_client, "/apps/gnome15/key_hold_duration", "KeyHoldDurationAdjustment", 2000, widget_tree) g15uigconf.configure_adjustment_from_gconf( gconf_client, "/apps/gnome15/usb_key_read_timeout", "UsbKeyReadTimeoutAdjustment", 100, widget_tree) g15uigconf.configure_checkbox_from_gconf(gconf_client, "/apps/gnome15/use_xtest", "UseXTest", True, widget_tree) g15uigconf.configure_checkbox_from_gconf(gconf_client, "/apps/gnome15/disable_svg_glow", "DisableSVGGlow", False, widget_tree) g15uigconf.configure_checkbox_from_gconf( gconf_client, "/apps/gnome15/fade_screen_on_close", "FadeScreenOnClose", True, widget_tree) g15uigconf.configure_checkbox_from_gconf( gconf_client, "/apps/gnome15/fade_keyboard_backlight_on_close", "FadeKeyboardBacklightOnClose", True, widget_tree) g15uigconf.configure_checkbox_from_gconf( gconf_client, "/apps/gnome15/all_off_on_disconnect", "AllOffOnDisconnect", True, widget_tree) g15uigconf.configure_checkbox_from_gconf(gconf_client, "/apps/gnome15/start_in_threads", "StartScreensInThreads", False, widget_tree) g15uigconf.configure_checkbox_from_gconf( gconf_client, "/apps/gnome15/monitor_desktop_session", "MonitorDesktopSession", True, widget_tree) g15uigconf.configure_text_from_gconf(gconf_client, "/apps/gnome15/time_format", "TimeFormat", "", widget_tree) g15uigconf.configure_text_from_gconf(gconf_client, "/apps/gnome15/time_format_24hr", "TimeFormatTwentyFour", "", widget_tree) g15uigconf.configure_text_from_gconf(gconf_client, "/apps/gnome15/date_format", "DateFormat", "", widget_tree) g15uigconf.configure_text_from_gconf(gconf_client, "/apps/gnome15/date_time_format", "DateTimeFormat", "", widget_tree) dialog.run() dialog.hide()