Mercurial > mplayer.hg
changeset 35997:7d749e44a9e5
Remove HideURLDialog().
Simply destroy the window.
(It's pointless to check whether the window is existing,
because it cannot be called without an existing window.)
author | ib |
---|---|
date | Fri, 29 Mar 2013 13:54:58 +0000 |
parents | 6c891a0e3fea |
children | 05f75ac2dd8b |
files | gui/dialog/url.c |
diffstat | 1 files changed, 2 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/dialog/url.c Fri Mar 29 13:43:21 2013 +0000 +++ b/gui/dialog/url.c Fri Mar 29 13:54:58 2013 +0000 @@ -42,14 +42,6 @@ static GtkWidget * URLEntry; static GList * URLComboEntrys = NULL; -static void HideURLDialog( void ) -{ - if ( !URLDialog ) return; - gtk_widget_hide( URLDialog ); - gtk_widget_destroy( URLDialog ); - URLDialog=0; -} - static void on_Button_pressed( GtkButton * button,gpointer user_data ) { urlItem * item; @@ -79,7 +71,8 @@ uiEvent( evPlay,0 ); } } - HideURLDialog(); + gtk_widget_destroy( URLDialog ); + URLDialog = NULL; } static GtkWidget * CreateURLDialog( void )