[MPlayer-cvslog] r36091 - trunk/gui/dialog/url.c
ib
subversion at mplayerhq.hu
Fri Mar 29 14:54:58 CET 2013
Author: ib
Date: Fri Mar 29 14:54:58 2013
New Revision: 36091
Log:
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.)
Modified:
trunk/gui/dialog/url.c
Modified: trunk/gui/dialog/url.c
==============================================================================
--- trunk/gui/dialog/url.c Fri Mar 29 14:43:21 2013 (r36090)
+++ trunk/gui/dialog/url.c Fri Mar 29 14:54:58 2013 (r36091)
@@ -42,14 +42,6 @@ static GtkWidget * URLCombo;
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 @@ static void on_Button_pressed( GtkButton
uiEvent( evPlay,0 );
}
}
- HideURLDialog();
+ gtk_widget_destroy( URLDialog );
+ URLDialog = NULL;
}
static GtkWidget * CreateURLDialog( void )
More information about the MPlayer-cvslog
mailing list