diff options
author | Armin Weatherwax | 2011-03-01 14:19:55 +0100 |
---|---|---|
committer | Armin Weatherwax | 2011-03-01 14:19:55 +0100 |
commit | 58d0360b3a78729d0446d3703160ecb4b97721a3 (patch) | |
tree | 3c2bade5d0bacc9db310d5ee7349203c26c97ded | |
parent | fix packaging fails on linux (diff) | |
download | meta-impy-58d0360b3a78729d0446d3703160ecb4b97721a3.zip meta-impy-58d0360b3a78729d0446d3703160ecb4b97721a3.tar.gz meta-impy-58d0360b3a78729d0446d3703160ecb4b97721a3.tar.bz2 meta-impy-58d0360b3a78729d0446d3703160ecb4b97721a3.tar.xz |
fix news bar doesn't open internal browser
-rwxr-xr-x | linden/indra/llplugin/llpluginclassmedia.cpp | 3 | ||||
-rw-r--r-- | linden/indra/newview/app_settings/logcontrol.xml | 16 | ||||
-rw-r--r-- | linden/indra/newview/llmediactrl.cpp | 7 | ||||
-rw-r--r-- | linden/indra/newview/llpanellogin.cpp | 1 |
4 files changed, 18 insertions, 9 deletions
diff --git a/linden/indra/llplugin/llpluginclassmedia.cpp b/linden/indra/llplugin/llpluginclassmedia.cpp index 5a81c46..02da271 100755 --- a/linden/indra/llplugin/llpluginclassmedia.cpp +++ b/linden/indra/llplugin/llpluginclassmedia.cpp | |||
@@ -777,7 +777,7 @@ void LLPluginClassMedia::receivePluginMessage(const LLPluginMessage &message) | |||
777 | mDirtyRect.unionWith(newDirtyRect); | 777 | mDirtyRect.unionWith(newDirtyRect); |
778 | } | 778 | } |
779 | 779 | ||
780 | LL_DEBUGS("PluginClassMedia") << "adjusted incoming rect is: (" | 780 | LL_DEBUGS("PluginClassMediaRect") << "adjusted incoming rect is: (" |
781 | << newDirtyRect.mLeft << ", " | 781 | << newDirtyRect.mLeft << ", " |
782 | << newDirtyRect.mTop << ", " | 782 | << newDirtyRect.mTop << ", " |
783 | << newDirtyRect.mRight << ", " | 783 | << newDirtyRect.mRight << ", " |
@@ -973,6 +973,7 @@ void LLPluginClassMedia::receivePluginMessage(const LLPluginMessage &message) | |||
973 | { | 973 | { |
974 | mClickURL = message.getValue("uri"); | 974 | mClickURL = message.getValue("uri"); |
975 | mClickTarget = message.getValue("target"); | 975 | mClickTarget = message.getValue("target"); |
976 | LL_DEBUGS("PluginClassMedia") << "Click target \"" << mClickTarget << "\"" << LL_ENDL; | ||
976 | mediaEvent(LLPluginClassMediaOwner::MEDIA_EVENT_CLICK_LINK_HREF); | 977 | mediaEvent(LLPluginClassMediaOwner::MEDIA_EVENT_CLICK_LINK_HREF); |
977 | } | 978 | } |
978 | else if(message_name == "click_nofollow") | 979 | else if(message_name == "click_nofollow") |
diff --git a/linden/indra/newview/app_settings/logcontrol.xml b/linden/indra/newview/app_settings/logcontrol.xml index cdc837d..b7bc07b 100644 --- a/linden/indra/newview/app_settings/logcontrol.xml +++ b/linden/indra/newview/app_settings/logcontrol.xml | |||
@@ -57,7 +57,7 @@ | |||
57 | <!--<string>Inventory</string>--> | 57 | <!--<string>Inventory</string>--> |
58 | <!--<string>HUDEffect</string>--> | 58 | <!--<string>HUDEffect</string>--> |
59 | <!--<string>MarkerFile</string>--> | 59 | <!--<string>MarkerFile</string>--> |
60 | <!--<string>MediaImpl</string>--> | 60 | <!--<string>Media</string>--> |
61 | <!--<string>MediaInfo</string>--> | 61 | <!--<string>MediaInfo</string>--> |
62 | <!--<string>MediaCallback</string>--> | 62 | <!--<string>MediaCallback</string>--> |
63 | <!--<string>MediaBuffering</string>--> | 63 | <!--<string>MediaBuffering</string>--> |
@@ -65,15 +65,17 @@ | |||
65 | <!--<string>MediaState</string>--> | 65 | <!--<string>MediaState</string>--> |
66 | 66 | ||
67 | <!--<string>Messaging</string>--> | 67 | <!--<string>Messaging</string>--> |
68 | |||
69 | <string>NewsBar</string> | ||
68 | <!--<string>Notifications</string>--> | 70 | <!--<string>Notifications</string>--> |
69 | <string>Plugin</string> | 71 | <!-- <string>Plugin</string> --> |
70 | <string>PluginClassMedia</string> | 72 | <string>PluginClassMedia</string> |
71 | <string>PluginInstance</string> | 73 | <!-- <string>PluginInstance</string> --> |
72 | <string>PluginPipe</string> | 74 | <!-- <string>PluginPipe</string> --> |
73 | <string>PluginChild</string> | 75 | <!-- <string>PluginChild</string> --> |
74 | <!--<string>PluginSpam</string>--> | 76 | <!--<string>PluginSpam</string>--> |
75 | <string>PluginParent</string> | 77 | <!-- <string>PluginParent</string> --> |
76 | <string>PluginViewerMedia</string> | 78 | <!-- <string>PluginViewerMedia</string> --> |
77 | 79 | ||
78 | <!--<string>Radar</string>--> | 80 | <!--<string>Radar</string>--> |
79 | <!--<string>ShaderLoading</string>--> | 81 | <!--<string>ShaderLoading</string>--> |
diff --git a/linden/indra/newview/llmediactrl.cpp b/linden/indra/newview/llmediactrl.cpp index 8b60326..ff7ba22 100644 --- a/linden/indra/newview/llmediactrl.cpp +++ b/linden/indra/newview/llmediactrl.cpp | |||
@@ -37,6 +37,7 @@ | |||
37 | 37 | ||
38 | // viewer includes | 38 | // viewer includes |
39 | #include "llfloaterhtml.h" | 39 | #include "llfloaterhtml.h" |
40 | #include "llfloatermediabrowser.h" | ||
40 | #include "llfloaterworldmap.h" | 41 | #include "llfloaterworldmap.h" |
41 | #include "lluictrlfactory.h" | 42 | #include "lluictrlfactory.h" |
42 | #include "llurldispatcher.h" | 43 | #include "llurldispatcher.h" |
@@ -746,7 +747,7 @@ void LLMediaCtrl::handleMediaEvent(LLPluginClassMedia* self, EMediaEvent event) | |||
746 | 747 | ||
747 | case MEDIA_EVENT_CURSOR_CHANGED: | 748 | case MEDIA_EVENT_CURSOR_CHANGED: |
748 | { | 749 | { |
749 | LL_INFOS("Media") << "Media event: MEDIA_EVENT_CURSOR_CHANGED, new cursor is " << self->getCursorName() << LL_ENDL; | 750 | LL_DEBUGS("MediaEventCursor") << "Media event: MEDIA_EVENT_CURSOR_CHANGED, new cursor is " << self->getCursorName() << LL_ENDL; |
750 | 751 | ||
751 | std::string cursor = self->getCursorName(); | 752 | std::string cursor = self->getCursorName(); |
752 | 753 | ||
@@ -865,6 +866,7 @@ void LLMediaCtrl::onClickLinkHref( LLPluginClassMedia* self ) | |||
865 | const std::string protocol2( "https://" ); | 866 | const std::string protocol2( "https://" ); |
866 | if( mOpenLinksInExternalBrowser ) | 867 | if( mOpenLinksInExternalBrowser ) |
867 | { | 868 | { |
869 | LL_DEBUGS("Media") << "OpenLinksInExternalBrowser" << LL_ENDL; | ||
868 | if ( !url.empty() ) | 870 | if ( !url.empty() ) |
869 | { | 871 | { |
870 | if ( LLStringUtil::compareInsensitive( url.substr( 0, protocol1.length() ), protocol1 ) == 0 || | 872 | if ( LLStringUtil::compareInsensitive( url.substr( 0, protocol1.length() ), protocol1 ) == 0 || |
@@ -877,6 +879,7 @@ void LLMediaCtrl::onClickLinkHref( LLPluginClassMedia* self ) | |||
877 | else | 879 | else |
878 | if( mOpenLinksInInternalBrowser ) | 880 | if( mOpenLinksInInternalBrowser ) |
879 | { | 881 | { |
882 | LL_DEBUGS("Media") << "OpenLinksInInternalBrowser" << LL_ENDL; | ||
880 | if ( !url.empty() ) | 883 | if ( !url.empty() ) |
881 | { | 884 | { |
882 | if ( LLStringUtil::compareInsensitive( url.substr( 0, protocol1.length() ), protocol1 ) == 0 || | 885 | if ( LLStringUtil::compareInsensitive( url.substr( 0, protocol1.length() ), protocol1 ) == 0 || |
@@ -891,6 +894,8 @@ void LLMediaCtrl::onClickLinkHref( LLPluginClassMedia* self ) | |||
891 | // "Second Life Browser", | 894 | // "Second Life Browser", |
892 | // open_links_externally, | 895 | // open_links_externally, |
893 | // mTrusted); | 896 | // mTrusted); |
897 | |||
898 | LLFloaterMediaBrowser::getInstance()->openMedia(url); | ||
894 | } | 899 | } |
895 | } | 900 | } |
896 | } | 901 | } |
diff --git a/linden/indra/newview/llpanellogin.cpp b/linden/indra/newview/llpanellogin.cpp index 4fe0624..e67f336 100644 --- a/linden/indra/newview/llpanellogin.cpp +++ b/linden/indra/newview/llpanellogin.cpp | |||
@@ -1216,6 +1216,7 @@ bool LLPanelLogin::loadNewsBar() | |||
1216 | curl_free(curl_version); | 1216 | curl_free(curl_version); |
1217 | curl_free(curl_skin); | 1217 | curl_free(curl_skin); |
1218 | 1218 | ||
1219 | LL_DEBUGS("NewsBar")<< "news bar setup to navigate to: " << full_url.str() << LL_ENDL; | ||
1219 | news_bar->navigateTo( full_url.str() ); | 1220 | news_bar->navigateTo( full_url.str() ); |
1220 | 1221 | ||
1221 | 1222 | ||