Override the popup menu only for the main interface.
* interface.cpp : wxWindows plugin for vlc
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
- * $Id: interface.cpp,v 1.48 2003/07/18 11:39:39 gbazin Exp $
+ * $Id: interface.cpp,v 1.49 2003/07/19 16:33:55 gbazin Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
#if defined( __WXMSW__ ) || defined( __WXMAC__ )
void Interface::OnContextMenu2(wxContextMenuEvent& event)
{
+ /* Only show the context menu for the main interface */
+ if( GetId() != event.GetId() )
+ {
+ event.Skip();
+ return;
+ }
+
if( p_intf->p_sys->pf_show_dialog )
p_intf->p_sys->pf_show_dialog( p_intf, INTF_DIALOG_POPUPMENU, 0 );
}
* wxwindows.cpp : wxWindows plugin for vlc
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
- * $Id: wxwindows.cpp,v 1.21 2003/07/18 14:18:08 gbazin Exp $
+ * $Id: wxwindows.cpp,v 1.22 2003/07/19 16:33:55 gbazin Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
#ifdef WIN32 /* mingw32 hack */
#undef Yield
#undef CreateDialog
+
+extern int wxEntry( HINSTANCE hInstance,
+ HINSTANCE hPrevInstance = NULL,
+ char *pCmdLine = NULL,
+ int nCmdShow = SW_NORMAL );
#endif
/* Let vlc take care of the i18n stuff */
* wxwindows.h: private wxWindows interface description
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
- * $Id: wxwindows.h,v 1.45 2003/07/18 11:39:39 gbazin Exp $
+ * $Id: wxwindows.h,v 1.46 2003/07/19 16:33:55 gbazin Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
#define SLIDER_MAX_POS 10000
-/* wxU is used to convert ansi strings to unicode strings (wchar_t) */
+/* wxU is used to convert ansi/utf8 strings to unicode strings (wchar_t) */
+#if defined( ENABLE_NLS ) && defined( HAVE_GETTEXT ) && \
+ defined( WIN32 ) && !defined( HAVE_INCLUDED_GETTEXT )
+#if wxUSE_UNICODE
+# define wxU(utf8) wxString(utf8, wxConvUTF8)
+#else
+# define wxU(ut8 ) wxString(wxConvUTF8.cMB2WC(ut8), *wxConvCurrent)
+#endif
+
+#else // ENABLE_NLS && HAVE_GETTEXT && WIN32 && !HAVE_INCLUDED_GETTEXT
#if wxUSE_UNICODE
# define wxU(ansi) wxString(ansi, *wxConvCurrent)
#else
# define wxU(ansi) ansi
#endif
+#endif
+
#if !defined(MODULE_NAME_IS_skins)
/*****************************************************************************
* intf_sys_t: description and status of wxwindows interface