summaryrefslogtreecommitdiffstats
path: root/Gui/mplayer/gtk/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'Gui/mplayer/gtk/common.c')
-rw-r--r--Gui/mplayer/gtk/common.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Gui/mplayer/gtk/common.c b/Gui/mplayer/gtk/common.c
index 721f1f1ad4..7162b75e4e 100644
--- a/Gui/mplayer/gtk/common.c
+++ b/Gui/mplayer/gtk/common.c
@@ -29,9 +29,10 @@ GtkWidget * AddFrame( char * title,int type,GtkWidget * parent,int add )
frame=gtk_frame_new( title );
gtk_widget_set_name( frame,"frame" );
gtk_widget_show( frame );
+ gtk_frame_set_shadow_type( GTK_FRAME( frame ),type );
+ if ( !parent ) return frame;
if ( add ) gtk_container_add( GTK_CONTAINER( parent ),frame );
else gtk_box_pack_start( GTK_BOX( parent ),frame,FALSE,FALSE,0 );
- gtk_frame_set_shadow_type( GTK_FRAME( frame ),type );
return frame;
}