# Path: RapacheGtk/GuiUtils.py
# def style_as_tooltip( obj ):
# def paint(box, event):
# def change_button_label ( button, new_label ):
# def new_apache_sourceview():


import sys
import re
     import pygtk
    import gtk
    import gtk.glade
import os
import pango
import tempfile
import traceback
import RapacheGtk.GuiUtils
import RapacheGtk.DesktopEnvironment as Desktop
from RapacheCore.VirtualHost import *
from RapacheGtk import GuiUtils
from EditDomainNameGui import EditDomainNameWindow
            "on_button_location_clicked"        : self.on_button_location_clicked,
            "on_entry_domain_focus_out_event"   : self.on_entry_domain_focus_out_event,
            "on_button_location_clear_clicked"  : self.on_button_location_clear_clicked,
            "on_button_restore_version_clicked" : self.on_button_restore_version_clicked,
            "on_linkbutton_documentation_clicked" : self.on_linkbutton_documentation_clicked,
            "on_notebook_switch_page"           : self.on_notebook_switch_page,
            "on_treeview_menu_cursor_changed"   :   self.on_treeview_menu_cursor_changed,
            "on_button_error_close_clicked"     : self.on_button_error_close_clicked
        }
        wtree.signal_autoconnect(signals)
        # add on destroy to quit loop
        self.window.connect("destroy", self.on_destroy)  
        
        self.combobox_vhost_backups.set_active(0)
        
        self.text_view_vhost_source = GuiUtils.new_apache_sourceview()
        wtree.get_widget( 'text_view_vhost_source_area' ).add( self.text_view_vhost_source )
        self.text_view_vhost_source.show()
        
        # Setup tree
        column = gtk.TreeViewColumn(('Domains'))
        column.set_spacing(4)
        cell = gtk.CellRendererText()
        column.pack_start(cell, True)
        column.set_attributes(cell, markup=0)
        self.treeview_domain.append_column(column)
        
        self.treeview_domain_store = gtk.ListStore(str, object)
        self.treeview_domain.set_model(self.treeview_domain_store)


# Path: RapacheGtk/GuiUtils.py
# def style_as_tooltip( obj ):
# def paint(box, event):
# def change_button_label ( button, new_label ):
# def new_apache_sourceview():


# Path: RapacheGtk/VirtualHostGui.py
import sys
import re
     import pygtk
    import gtk
    import gtk.glade
import os
import pango
import tempfile
import traceback
import RapacheGtk.GuiUtils
import RapacheGtk.DesktopEnvironment as Desktop
from RapacheCore.VirtualHost import *
from RapacheGtk import GuiUtils
from EditDomainNameGui import EditDomainNameWindow

            "on_button_location_clicked"        : self.on_button_location_clicked,
            "on_entry_domain_focus_out_event"   : self.on_entry_domain_focus_out_event,
            "on_button_location_clear_clicked"  : self.on_button_location_clear_clicked,
            "on_button_restore_version_clicked" : self.on_button_restore_version_clicked,
            "on_linkbutton_documentation_clicked" : self.on_linkbutton_documentation_clicked,
            "on_notebook_switch_page"           : self.on_notebook_switch_page,
            "on_treeview_menu_cursor_changed"   :   self.on_treeview_menu_cursor_changed,
            "on_button_error_close_clicked"     : self.on_button_error_close_clicked
        }
        wtree.signal_autoconnect(signals)
        # add on destroy to quit loop
        self.window.connect("destroy", self.on_destroy)  
        
        self.combobox_vhost_backups.set_active(0)
        
        self.text_view_vhost_source = GuiUtils.new_apache_sourceview()
        wtree.get_widget( 'text_view_vhost_source_area' ).add( self.text_view_vhost_source )
        self.text_view_vhost_source.show()
        
        # Setup tree
        column = gtk.TreeViewColumn(('Domains'))
        column.set_spacing(4)
        cell = gtk.CellRendererText()
        column.pack_start(cell, True)
        column.set_attributes(cell, markup=0)
        self.treeview_domain.append_column(column)
        
        self.treeview_domain_store = gtk.ListStore(str, object)
        self.treeview_domain.set_model(self.treeview_domain_store)


        GuiUtils.style_as_tooltip( self.error_area )