From e21c425aac793f121d332954ce06f96a13fe3122 Mon Sep 17 00:00:00 2001 From: Boris Grozev Date: Fri, 9 Nov 2012 15:20:58 +0000 Subject: [PATCH] Adds a missing resource property. Patch contributed by Tom Denham. --- resources/languages/resources.properties | 1 + .../impl/gui/main/call/DesktopSharingButton.java | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/resources/languages/resources.properties b/resources/languages/resources.properties index ac9a4b5fa..54b393ab9 100644 --- a/resources/languages/resources.properties +++ b/resources/languages/resources.properties @@ -329,6 +329,7 @@ service.gui.NEW_STATUS_MESSAGE=New status message service.gui.NO=No service.gui.NONE=None service.gui.NO_CAMERA_AVAILABLE=No camera available +service.gui.NO_DESKTOP_SHARING_FOR_PROTOCOL=Desktop sharing is not supported for this protocol service.gui.NO_VIDEO_ENCODINGS=No video encodings are selected in configuration service.gui.NO_VIDEO_FOR_PROTOCOL=Video is not supported for this protocol service.gui.NO_AVAILABLE_ROOMS=The list of rooms for this server is currently not available. diff --git a/src/net/java/sip/communicator/impl/gui/main/call/DesktopSharingButton.java b/src/net/java/sip/communicator/impl/gui/main/call/DesktopSharingButton.java index 68e9ac50c..61e4a72a9 100644 --- a/src/net/java/sip/communicator/impl/gui/main/call/DesktopSharingButton.java +++ b/src/net/java/sip/communicator/impl/gui/main/call/DesktopSharingButton.java @@ -64,11 +64,12 @@ public DesktopSharingButton(Call call, boolean fullScreen, boolean selected) OperationSetDesktopSharingServer desktopSharing = call.getProtocolProvider().getOperationSet( OperationSetDesktopSharingServer.class); + System.err.println("DOHH"+desktopSharing); if (desktopSharing == null) { - setToolTipText(GuiActivator.getResources() - .getI18NString("NO_DESKTOP_SHARING_FOR_PROTOCOL")); + setToolTipText(GuiActivator.getResources().getI18NString( + "service.gui.NO_DESKTOP_SHARING_FOR_PROTOCOL")); desktopSharingAvailable = false; } else if(!ConfigurationManager.hasEnabledVideoFormat(