X-Git-Url: https://git.videolan.org/gitweb.cgi/vlc.git/?p=vlc.git;p=vlc.git;a=blobdiff_plain;f=modules%2Fgui%2Fbeos%2FPreferencesWindow.cpp;h=9b97a39f79f1b7b66a4f277060610be3b511f5e5;hp=e3c6fa82526a9ca1d47c5725cba237e28c42c1d0;hb=33aec41207c2f5d8c1cad1f63aba1ff8b32e3d70;hpb=86e2b37df571aab09b4634fa964d50fb9311d038 diff --git a/modules/gui/beos/PreferencesWindow.cpp b/modules/gui/beos/PreferencesWindow.cpp index e3c6fa8252..9b97a39f79 100644 --- a/modules/gui/beos/PreferencesWindow.cpp +++ b/modules/gui/beos/PreferencesWindow.cpp @@ -2,7 +2,7 @@ * PreferencesWindow.cpp: beos interface ***************************************************************************** * Copyright (C) 1999, 2000, 2001 VideoLAN - * $Id: PreferencesWindow.cpp,v 1.19 2003/05/08 10:45:50 titer Exp $ + * $Id: PreferencesWindow.cpp,v 1.20 2003/05/13 11:18:25 titer Exp $ * * Authors: Eric Petit * @@ -275,20 +275,16 @@ PreferencesWindow::PreferencesWindow( intf_thread_t * p_interface, rect.InsetBy( 10, 10 ); rect.left = rect.right - 80; rect.top = rect.bottom - 25; - button = new BButton( rect, "", _("Close"), new BMessage( PREFS_CLOSE ), - B_FOLLOW_RIGHT | B_FOLLOW_BOTTOM ); - button->MakeDefault( true ); - fPrefsView->AddChild( button ); - rect.OffsetBy( -90, 0 ); button = new BButton( rect, "", _("Apply"), new BMessage( PREFS_APPLY ), B_FOLLOW_RIGHT | B_FOLLOW_BOTTOM ); + button->MakeDefault( true ); fPrefsView->AddChild( button ); rect.OffsetBy( -90, 0 ); button = new BButton( rect, "", _("Save"), new BMessage( PREFS_SAVE ), B_FOLLOW_RIGHT | B_FOLLOW_BOTTOM ); fPrefsView->AddChild( button ); rect.OffsetBy( -90, 0 ); - button = new BButton( rect, "", _("Revert"), new BMessage( PREFS_REVERT ), + button = new BButton( rect, "", _("Defaults"), new BMessage( PREFS_DEFAULTS ), B_FOLLOW_RIGHT | B_FOLLOW_BOTTOM ); fPrefsView->AddChild( button ); @@ -324,11 +320,8 @@ void PreferencesWindow::MessageReceived( BMessage * message ) Update(); break; - case PREFS_CLOSE: - PostMessage( B_QUIT_REQUESTED ); - break; - - case PREFS_REVERT: + case PREFS_DEFAULTS: + config_ResetAll( p_intf ); ApplyChanges( false ); break;