# HG changeset patch # User ib # Date 1299529649 0 # Node ID e12d6cd72b75dd4b935463b1b586b2000331f5c0 # Parent 682b370ac83224baefdc5f669a70e9118d239ae7 Go without gtk functions. Normal string function are sufficient to handle item->text, there is no need to use gtk functions. diff -r 682b370ac832 -r e12d6cd72b75 gui/mplayer/gui_common.c --- a/gui/mplayer/gui_common.c Mon Mar 07 20:15:30 2011 +0000 +++ b/gui/mplayer/gui_common.c Mon Mar 07 20:27:29 2011 +0000 @@ -18,7 +18,6 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#include #include #include #include @@ -291,10 +290,10 @@ int x; unsigned int d; char * t = Translate( item->label ); - if ( g_strcmp0( item->text, t ) != 0 ) + if ( !item->text || ( strcmp( item->text, t ) != 0 ) ) { - g_free( item->text ); - item->text = g_strdup( t ); + free( item->text ); + item->text = strdup( t ); item->textwidth = fntTextWidth( item->fontid, t ); item->starttime = GetTimerMS(); item->last_x = 0;