def __init__(self,notebook):
        Section.__init__(self,ui='startpage.ui',id='box_startpage')
        self.sections={
            1:{ 0:'tool_launcher',
                1:'tool_dash',
                2:'tool_panel',
                3:'tool_unity_switcher',
                4:'tool_unity_webapps',
                5:'tool_additional'},
            2:{ 0:'tool_general',
                1:'tool_compiz_switcher',
                2:'tool_windows_spread',
                3:'tool_windows_snapping',
                4:'tool_hotcorners',
                5:'tool_wm_additional'},
            3:{ 0:'tool_system',
                1:'tool_icons',
                2:'tool_cursors',
                3:'tool_fonts',
                4:'tool_window_controls'},
            4:{ 0:'tool_desktop_icons',
                1:'tool_desktop_security',
                2:'tool_desktop_scrolling'}
        }

        Tab.__init__(self,[OverviewToolButton(
                            section=section,page=page,id=id,notebook=notebook)
                    for section,set in self.sections.items()
                        for page,id in set.items()
            ]
        )

        self.register_tab(self.handler)
        self.register()
Example #2
0
    def __init__(self, notebook):
        Section.__init__(self, ui='overview.ui', id='box_overview')
        self.sections = {
            1: {
                0: 'b_unity-launcher',
                1: 'b_unity-search',
                2: 'b_unity-panel',
                3: 'b_unity-switcher',
                4: 'b_unity-webapps',
                5: 'b_unity-additional'
            },
            2: {
                0: 'b_wm-general',
                1: 'b_wm-workspaces',
                2: 'b_wm-window-spread',
                3: 'b_wm-window-snapping',
                4: 'b_wm-hotcorners',
                5: 'b_wm-additional'
            },
            3: {
                0: 'b_appearance-theme',
                1: 'b_appearance-icons',
                2: 'b_appearance-cursors',
                3: 'b_appearance-fonts',
                4: 'b_appearance-window-controls'
            },
            4: {
                0: 'b_system-desktop-icons',
                1: 'b_system-security',
                2: 'b_system-scrolling'
            }
        }

        Tab.__init__(self, [
            OverviewButton(
                section=section, page=page, id=id, notebook=notebook)
            for section, set in self.sections.items()
            for page, id in set.items()
        ])

        self.register_tab(self.handler)
        self.register()

        # Symbolic icons
        self.icons = Gtk.IconTheme.get_default()
        self.style_context = self.builder.get_object(
            'overview_window').get_style_context()
        self.style_context.connect('changed', self.on_style_context_change)
Example #3
0
    def __init__(self, notebook):
        Section.__init__(self, ui='startpage.ui', id='box_startpage')
        self.sections = {
            1: {
                0: 'tool_launcher',
                1: 'tool_dash',
                2: 'tool_panel',
                3: 'tool_unity_switcher',
                4: 'tool_unity_webapps',
                5: 'tool_additional'
            },
            2: {
                0: 'tool_general',
                1: 'tool_compiz_switcher',
                2: 'tool_windows_spread',
                3: 'tool_windows_snapping',
                4: 'tool_hotcorners',
                5: 'tool_wm_additional'
            },
            3: {
                0: 'tool_system',
                1: 'tool_icons',
                2: 'tool_cursors',
                3: 'tool_fonts',
                4: 'tool_window_controls'
            },
            4: {
                0: 'tool_desktop_icons',
                1: 'tool_desktop_security',
                2: 'tool_desktop_scrolling'
            }
        }

        Tab.__init__(self, [
            OverviewToolButton(
                section=section, page=page, id=id, notebook=notebook)
            for section, set in self.sections.items()
            for page, id in set.items()
        ])

        self.register_tab(self.handler)
        self.register()
    def __init__(self,notebook):
        Section.__init__(self,ui='overview.ui',id='box_overview')
        self.sections={
            1:{ 0:'b_unity-launcher',
                1:'b_unity-search',
                2:'b_unity-panel',
                3:'b_unity-switcher',
                4:'b_unity-webapps',
                5:'b_unity-additional'},
            2:{ 0:'b_wm-general',
                1:'b_wm-workspaces',
                2:'b_wm-window-spread',
                3:'b_wm-window-snapping',
                4:'b_wm-hotcorners',
                5:'b_wm-additional'},
            3:{ 0:'b_appearance-theme',
                1:'b_appearance-icons',
                2:'b_appearance-cursors',
                3:'b_appearance-fonts',
                4:'b_appearance-window-controls'},
            4:{ 0:'b_system-desktop-icons',
                1:'b_system-security',
                2:'b_system-scrolling'}
        }

        Tab.__init__(self,[OverviewButton(
                            section=section,page=page,id=id,notebook=notebook)
                    for section,set in self.sections.items()
                        for page,id in set.items()
            ]
        )

        self.register_tab(self.handler)
        self.register()
 
        # Symbolic icons
        self.icons = Gtk.IconTheme.get_default()
        self.style_context = self.builder.get_object('overview_window').get_style_context()
        self.style_context.connect('changed', self.on_style_context_change)