X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fgui%2Fwxwidgets%2Fwxwidgets.cpp;h=31c2e8b290e2b5f62bca4e076e03c090842562fa;hb=b641f67d05bf2af42372d016cc520332126df12d;hp=a5450b568f6dafd7170d6d658eecfe473185c926;hpb=4c7fa38924e4578378ab31d4d49d184ff72560a0;p=vlc diff --git a/modules/gui/wxwidgets/wxwidgets.cpp b/modules/gui/wxwidgets/wxwidgets.cpp index a5450b568f..31c2e8b290 100644 --- a/modules/gui/wxwidgets/wxwidgets.cpp +++ b/modules/gui/wxwidgets/wxwidgets.cpp @@ -18,7 +18,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. *****************************************************************************/ /***************************************************************************** @@ -36,7 +36,7 @@ # include #endif -#include "wxwidgets.h" +#include "interface.hpp" /* Temporary hack */ #if defined(WIN32) && defined(_WX_INIT_H_) @@ -89,6 +89,8 @@ private: #define BOOKMARKS_TEXT N_("Show bookmarks dialog") #define BOOKMARKS_LONGTEXT N_("Show bookmarks dialog when the interface " \ "starts.") +#define EXTENDED_TEXT N_("Show extended GUI") +#define EXTENDED_LONGTEXT N_("Show extended GUI") #define TASKBAR_TEXT N_("Show taskbar entry") #define TASKBAR_LONGTEXT N_("Show taskbar entry") #define MINIMAL_TEXT N_("Minimal interface") @@ -125,16 +127,21 @@ vlc_module_begin(); add_bool( "wx-taskbar", 1, NULL, TASKBAR_TEXT, TASKBAR_LONGTEXT, VLC_FALSE ); add_deprecated( "wxwin-taskbar", VLC_FALSE); /*Deprecated since 0.8.4*/ + add_bool( "wx-extended", 0, NULL, + EXTENDED_TEXT, EXTENDED_LONGTEXT, VLC_FALSE ); add_bool( "wx-minimal", 0, NULL, MINIMAL_TEXT, MINIMAL_LONGTEXT, VLC_TRUE ); add_deprecated( "wxwin-minimal", VLC_FALSE); /*Deprecated since 0.8.4*/ add_bool( "wx-autosize", 1, NULL, SIZE_TO_VIDEO_TEXT, SIZE_TO_VIDEO_LONGTEXT, VLC_TRUE ); add_deprecated( "wxwin-autosize", VLC_FALSE); /*Deprecated since 0.8.4*/ +/* wxCocoa pretends to support this, but at least 2.6.x doesn't */ +#ifndef __APPLE__ #ifdef wxHAS_TASK_BAR_ICON add_bool( "wx-systray", 0, NULL, SYSTRAY_TEXT, SYSTRAY_LONGTEXT, VLC_FALSE ); add_deprecated( "wxwin-systray", VLC_FALSE); /*Deprecated since 0.8.4*/ +#endif #endif add_string( "wx-config-last", NULL, NULL, "last config", "last config", VLC_TRUE ); @@ -169,15 +176,13 @@ static int Open( vlc_object_t *p_this ) p_intf->pf_run = Run; - p_intf->p_sys->p_sub = msg_Subscribe( p_intf ); + p_intf->p_sys->p_sub = msg_Subscribe( p_intf, MSG_QUEUE_NORMAL ); /* Initialize wxWidgets thread */ p_intf->p_sys->b_playing = 0; p_intf->p_sys->p_input = NULL; p_intf->p_sys->i_playing = -1; - p_intf->p_sys->b_slider_free = 1; - p_intf->p_sys->i_slider_pos = p_intf->p_sys->i_slider_oldpos = 0; p_intf->p_sys->p_popup_menu = NULL; p_intf->p_sys->p_video_window = NULL; @@ -299,6 +304,7 @@ static void Init( intf_thread_t *p_intf ) #else wxEntry( i_args, p_args ); #endif + setlocale( LC_NUMERIC, "C" ); } /* following functions are local */ @@ -329,7 +335,8 @@ bool Instance::OnInit() /* Initialization of i18n stuff. * Usefull for things we don't have any control over, like wxWidgets * provided facilities (eg. open file dialog) */ - locale.Init( wxLANGUAGE_DEFAULT ); + locale.Init( wxLANGUAGE_DEFAULT, wxLOCALE_LOAD_DEFAULT ); + setlocale( LC_NUMERIC, "C" ); /* Load saved window settings */ p_intf->p_sys->p_window_settings = new WindowSettings( p_intf );