# Path: kano/gtk3/icons.py
# def set_from_name(name):
# 
# Path: kano/gtk3/cursor.py
# def attach_cursor_events(button):
#     button.connect('enter-notify-event', hand_cursor)
#     button.connect('leave-notify-event', arrow_cursor)
#     button.connect('button-press-event', arrow_cursor)
# 
# Path: kano/paths.py
# DNS_FILE = '/etc/resolvconf/resolv.conf.d/base'
# DNS_INTERFACES_FILE = '/etc/resolvconf/interface-order'
# DNS_INTERFACES_BACKUP_FILE = '/etc/resolvconf/interface-order.backup'
# SUPPLICANT_LOGFILE = '/var/log/kano_wpa.log'
# SUPPLICANT_CONFIG = '/etc/wpa_supplicant/wpa_supplicant.conf'
# INTERNET_UP_FILE = '/var/run/internet_monitor'
# KANO_CONNECT_PIDFILE = '/var/run/kano-connect.pid'


from gi import require_version
from gi.repository import Gtk
from kano.gtk3 import icons
from kano.gtk3.cursor import attach_cursor_events
from kano.paths import common_css_dir
import os
import sys

        self.set_size_request(window_width, TOP_BAR_HEIGHT)

        self.height = TOP_BAR_HEIGHT

        self.header = Gtk.Label(title, halign=Gtk.Align.CENTER)
        self.align_header = Gtk.Alignment(xalign=0.5, yalign=0.5, xscale=0, yscale=0)
        self.align_header.add(self.header)

        self.cross = icons.set_from_name("cross")

        # Close button
        self.close_button = Gtk.Button()
        self.close_button.set_image(self.cross)
        self.close_button.set_size_request(TOP_BAR_HEIGHT, TOP_BAR_HEIGHT)
        self.close_button.set_can_focus(False)
        self.add_style(self.close_button, "top_bar_button")

        # Container to mimic a button, so we can centre the header
        invisible = Gtk.Box()
        invisible.set_size_request(44, 44)

        # Main container holding everything
        self.box = Gtk.Box()

        if has_buttons:

            # Icons of the buttons
            self.pale_prev_arrow = icons.set_from_name("pale_left_arrow")
            self.pale_next_arrow = icons.set_from_name("pale_right_arrow")

# Path: kano/gtk3/icons.py
# def set_from_name(name):
# 
# Path: kano/gtk3/cursor.py
# def attach_cursor_events(button):
#     button.connect('enter-notify-event', hand_cursor)
#     button.connect('leave-notify-event', arrow_cursor)
#     button.connect('button-press-event', arrow_cursor)
# 
# Path: kano/paths.py
# DNS_FILE = '/etc/resolvconf/resolv.conf.d/base'
# DNS_INTERFACES_FILE = '/etc/resolvconf/interface-order'
# DNS_INTERFACES_BACKUP_FILE = '/etc/resolvconf/interface-order.backup'
# SUPPLICANT_LOGFILE = '/var/log/kano_wpa.log'
# SUPPLICANT_CONFIG = '/etc/wpa_supplicant/wpa_supplicant.conf'
# INTERNET_UP_FILE = '/var/run/internet_monitor'
# KANO_CONNECT_PIDFILE = '/var/run/kano-connect.pid'


# Path: kano/gtk3/top_bar.py
from gi import require_version
from gi.repository import Gtk
from kano.gtk3 import icons
from kano.gtk3.cursor import attach_cursor_events
from kano.paths import common_css_dir
import os
import sys


        self.set_size_request(window_width, TOP_BAR_HEIGHT)

        self.height = TOP_BAR_HEIGHT

        self.header = Gtk.Label(title, halign=Gtk.Align.CENTER)
        self.align_header = Gtk.Alignment(xalign=0.5, yalign=0.5, xscale=0, yscale=0)
        self.align_header.add(self.header)

        self.cross = icons.set_from_name("cross")

        # Close button
        self.close_button = Gtk.Button()
        self.close_button.set_image(self.cross)
        self.close_button.set_size_request(TOP_BAR_HEIGHT, TOP_BAR_HEIGHT)
        self.close_button.set_can_focus(False)
        self.add_style(self.close_button, "top_bar_button")

        # Container to mimic a button, so we can centre the header
        invisible = Gtk.Box()
        invisible.set_size_request(44, 44)

        # Main container holding everything
        self.box = Gtk.Box()

        if has_buttons:

            # Icons of the buttons
            self.pale_prev_arrow = icons.set_from_name("pale_left_arrow")
            self.pale_next_arrow = icons.set_from_name("pale_right_arrow")

            self.dark_prev_arrow = icons.set_from_name("dark_left_arrow")