diff cagou/plugins/plugin_wid_widget_selector.py @ 491:203755bbe0fe

massive refactoring from camelCase -> snake_case. See backend commit log for more details
author Goffi <goffi@goffi.org>
date Sat, 08 Apr 2023 13:44:32 +0200
parents 3c9ba4a694ef
children
line wrap: on
line diff
--- a/cagou/plugins/plugin_wid_widget_selector.py	Sat Apr 08 13:34:55 2023 +0200
+++ b/cagou/plugins/plugin_wid_widget_selector.py	Sat Apr 08 13:44:32 2023 +0200
@@ -45,7 +45,7 @@
     def on_release(self, *args):
         log.debug("widget selection: {}".format(self.plugin_info["name"]))
         factory = self.plugin_info["factory"]
-        G.host.switchWidget(
+        G.host.switch_widget(
             self, factory(self.plugin_info, None, profiles=iter(G.host.profiles)))
 
 
@@ -55,7 +55,7 @@
     def __init__(self):
         super(WidgetSelector, self).__init__()
         self.items = []
-        for plugin_info in G.host.getPluggedWidgets(except_cls=self.__class__):
+        for plugin_info in G.host.get_plugged_widgets(except_cls=self.__class__):
             item = WidgetSelItem(plugin_info=plugin_info)
             self.items.append(item.item)
             item.item.bind(minimum_width=self.adjust_width)