summaryrefslogtreecommitdiffstats
path: root/src/ccapi/lib/mac
diff options
context:
space:
mode:
authorJeffrey Altman <jaltman@secure-endpoints.com>2007-06-22 19:00:27 +0000
committerJeffrey Altman <jaltman@secure-endpoints.com>2007-06-22 19:00:27 +0000
commitafdce24008d332ef0624c341e5ab8006e8eb8134 (patch)
treef4d1d6bd7cd4bfe03161178b22c67e51b1e11b56 /src/ccapi/lib/mac
parent30de663a1e847f2e2950507dd1c66ec40f1fc5b2 (diff)
Be more aggressive about forcing the new credentials dialog to the
top. Many applications call GSSAPI functions from the main GUI thread. Doing so blocks the window message pump for that application. When the GSSAPI call results in the new credentials dialog being displayed, it will be unable to bring itself to the top and grab the user input focus because the foreground window is not responding. This patch makes the new credentials window a top-most window at creation time that results in it being created at the top of the Z-order. It can then flash the window to indicate that it requires user attention. ticket: 5584 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19629 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/ccapi/lib/mac')
0 files changed, 0 insertions, 0 deletions
111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162
# WSDL4R - WSDL XML Instance parser library.
# Copyright (C) 2002, 2003  NAKAMURA, Hiroshi <nahi@ruby-lang.org>.

# This program is copyrighted free software by NAKAMURA, Hiroshi.  You can
# redistribute it and/or modify it under the same terms of Ruby's license;
# either the dual license version in 2003, or any later version.


require 'xsd/qname'
require 'xsd/ns'
require 'xsd/charset'
require 'xsd/datatypes'
require 'xsd/xmlparser'
require 'wsdl/xmlSchema/data'


module WSDL
module XMLSchema


class Parser
  include XSD

  class ParseError < Error; end
  class FormatDecodeError < Error; end
  class UnknownElementError < FormatDecodeError; end
  class UnknownAttributeError < FormatDecodeError; end
  class UnexpectedElementError < FormatDecodeError; end
  class ElementConstraintError < FormatDecodeError; end
  class AttributeConstraintError < FormatDecodeError; end

private

  class ParseFrame
    attr_reader :ns
    attr_reader :name
    attr_accessor :node

  private

    def initialize(ns, name, node)
      @ns = ns
      @name = name
      @node = node
    end
  end

public

  def initialize(opt = {})
    @parser = XSD::XMLParser.create_parser(self, opt)
    @parsestack = nil
    @lastnode = nil
  end

  def parse(string_or_readable)
    @parsestack = []
    @lastnode = nil
    @textbuf = ''
    @parser.do_parse(string_or_readable)
    @lastnode
  end

  def charset
    @parser.charset
  end

  def start_element(name, attrs)