# Path: kano/gtk3/apply_styles.py
# def apply_styling_to_screen(css_file, priority="USER"):
#     css = Gtk.CssProvider()
# 
#     if not os.path.exists(css_file):
#         sys.exit(css_file + ' CSS file missing!')
# 
#     css.load_from_path(css_file)
# 
#     screen = Gdk.Screen.get_default()
#     styleContext = Gtk.StyleContext()
# 
#     if priority == "FALLBACK":
#         gtk_priority = Gtk.STYLE_PROVIDER_PRIORITY_FALLBACK
#     elif priority == "THEME":
#         gtk_priority = Gtk.STYLE_PROVIDER_PRIORITY_THEME
#     elif priority == "SETTINGS":
#         gtk_priority = Gtk.STYLE_PROVIDER_PRIORITY_SETTINGS
#     elif priority == "APPLICATION":
#         gtk_priority = Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION
#     elif priority == "USER":
#         gtk_priority = Gtk.STYLE_PROVIDER_PRIORITY_USER
# 
#     styleContext.add_provider_for_screen(screen, css, gtk_priority)
# 
# 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'


import time
import os
import sys
import types
from gi import require_version
from gi.repository import Gtk, Gdk, GObject, GdkPixbuf
from kano.gtk3.apply_styles import apply_styling_to_screen
from kano.paths import common_images_dir, common_css_dir
        self.selected_item_text = ""
        self.label.set_text("")
        self.update_dropdown()

    # @Override
    def set_size_request(self, width, height):
        self.dropdown.set_size_request(width, -1)
        return Gtk.Button.set_size_request(self, width, height)

    def do_popup(self):
        # print 'dropdown popup'
        pass

    def do_popdown(self):
        # print 'dropdown popdown'
        pass

    def do_selected(self):
        # print 'new item selected'
        pass

    def do_changed(self):
        # print 'new item changed'
        pass

    @staticmethod
    def apply_styling_to_screen():
        apply_styling_to_screen(KanoComboBox.CSS_PATH)

    class ScrollMenuItem(Gtk.ImageMenuItem):

# Path: kano/gtk3/apply_styles.py
# def apply_styling_to_screen(css_file, priority="USER"):
#     css = Gtk.CssProvider()
# 
#     if not os.path.exists(css_file):
#         sys.exit(css_file + ' CSS file missing!')
# 
#     css.load_from_path(css_file)
# 
#     screen = Gdk.Screen.get_default()
#     styleContext = Gtk.StyleContext()
# 
#     if priority == "FALLBACK":
#         gtk_priority = Gtk.STYLE_PROVIDER_PRIORITY_FALLBACK
#     elif priority == "THEME":
#         gtk_priority = Gtk.STYLE_PROVIDER_PRIORITY_THEME
#     elif priority == "SETTINGS":
#         gtk_priority = Gtk.STYLE_PROVIDER_PRIORITY_SETTINGS
#     elif priority == "APPLICATION":
#         gtk_priority = Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION
#     elif priority == "USER":
#         gtk_priority = Gtk.STYLE_PROVIDER_PRIORITY_USER
# 
#     styleContext.add_provider_for_screen(screen, css, gtk_priority)
# 
# 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/kano_combobox.py
import time
import os
import sys
import types
from gi import require_version
from gi.repository import Gtk, Gdk, GObject, GdkPixbuf
from kano.gtk3.apply_styles import apply_styling_to_screen
from kano.paths import common_images_dir, common_css_dir

        self.selected_item_text = ""
        self.label.set_text("")
        self.update_dropdown()

    # @Override
    def set_size_request(self, width, height):
        self.dropdown.set_size_request(width, -1)
        return Gtk.Button.set_size_request(self, width, height)

    def do_popup(self):
        # print 'dropdown popup'
        pass

    def do_popdown(self):
        # print 'dropdown popdown'
        pass

    def do_selected(self):
        # print 'new item selected'
        pass

    def do_changed(self):
        # print 'new item changed'
        pass

    @staticmethod
    def apply_styling_to_screen():
        apply_styling_to_screen(KanoComboBox.CSS_PATH)

    class ScrollMenuItem(Gtk.ImageMenuItem):

        CSS_PATH = os.path.join(common_css_dir, "kano_combobox.css")