[freeswitch-contrib] FreeSWITCH user-contributed scripts, etc branch master updated. java-esl-client-0.9.2-382-g5247b0c
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "FreeSWITCH user-contributed scripts, etc". The branch, master has been updated via 5247b0c1000e9aa6e642cdd238396d679d7c6bb3 (commit) from 09778f943674b470c51a636aa8e3e3b22589708e (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 5247b0c1000e9aa6e642cdd238396d679d7c6bb3 Author: Mitch Capper <mitch.capper@gmail.com> Date: Tue Feb 1 20:27:15 2011 -0800 Make sure to hide the contact search box if no contact plugin supports it diff --git a/mitchcapper/FSClient/IContactPlugin.cs b/mitchcapper/FSClient/IContactPlugin.cs index b064ff6..c1a1c24 100644 --- a/mitchcapper/FSClient/IContactPlugin.cs +++ b/mitchcapper/FSClient/IContactPlugin.cs @@ -5,9 +5,9 @@ using System.ComponentModel; using System.IO; using System.Reflection; using System.Windows; -using System.Windows.Controls; -using FSClient.Controls; - +using System.Windows.Controls; +using FSClient.Controls; + namespace FSClient { public class ContactPluginManager : IDisposable { private bool IsTypeOf(Type to_check, Type of) { @@ -36,19 +36,24 @@ namespace FSClient { } private void ContactInit(){ IContactPlugin plugin = plugins[0]; - ContactMenuItems = plugin.ContactRightClickMenu(); + ContactMenuItems = plugin.ContactRightClickMenu(); OurAutoCompleteBox box = Broker.get_instance().GetContactSearchBox(); - if (!plugin.HandleSearchBox(box)) - box.Visibility = Visibility.Collapsed; + if (plugin.HandleSearchBox(box)) + box.Visibility = Visibility.Visible; } private void HandleError(IContactPlugin plugin, Exception e) { Utils.PluginLog("Contact Plugin Manager", "Plugin \"" + plugin.ProviderName() + "\" had an error Due to: " + e.Message); } - public ContactPluginManager() { - - + public ContactPluginManager() { + OurAutoCompleteBox box = Broker.get_instance().GetContactSearchBox(); + Application.Current.Dispatcher.BeginInvoke((Action) (() => { + box.Visibility = Visibility.Collapsed; + })); + + + String plugin_dir = Utils.plugins_dir(); string[] dlls; try { @@ -161,7 +166,7 @@ namespace FSClient { public abstract IEnumerable<MenuItem> ContactRightClickMenu(); public abstract void Initialize(); public abstract void Terminate(); - public abstract string ProviderName(); + public abstract string ProviderName(); public abstract bool HandleSearchBox(OurAutoCompleteBox box); } ----------------------------------------------------------------------- Summary of changes: mitchcapper/FSClient/IContactPlugin.cs | 25 +++++++++++++++---------- 1 files changed, 15 insertions(+), 10 deletions(-) hooks/post-receive -- FreeSWITCH user-contributed scripts, etc
participants (1)
-
git@svn.freeswitch.org