Bug using gtk style

Discuss anything related to product development

Bug using gtk style

Postby mortaromarcello » Mon Jul 06 2015 5:43 pm

Hello. Using the gtk style, a program compiled with copperspice gives me this error:
'''
(simpletextviewer:6758): GdkPixbuf-WARNING **: Bug! loader 'png' didn't set an error on failure

(simpletextviewer:6758): Gtk-WARNING **: Error loading theme icon 'dialog-information' for stock: Errore interno: il modulo di caricamento immagine «png» non riesce a completare l'operazione, causa del problema sconosciuta
'''
mortaromarcello
 
Posts: 7
Joined: Thu Jul 02 2015 7:09 am

Re: Bug using gtk style

Postby mortaromarcello » Sat Jul 18 2015 12:22 pm

I define my debug function in my apps:
Code: Select all
#define MyDBG( args ) ( qDebug() << "File:" << __FILE__ << "Line:" << __LINE__ << "Function:" << __PRETTY_FUNCTION__ << "\n\t->" << args )


if compile this code in app:
Code: Select all
MyDBG(qApp->style()->standardIcon(QStyle::SP_DialogOkButton).name());

It return:
Gtk-WARNING **: Error loading theme icon 'gtk-ok' for stock: Errore interno: il modulo di caricamento immagine «png» non riesce a completare l'operazione, causa del problema sconosciuta
File: ../src/mediaapplet.cpp Line: 178 Function: void MediaApplet::openFile()
-> ""

The routine return a empty QString. Probably the problem is that the library is unable to load the icons stock.
mortaromarcello
 
Posts: 7
Joined: Thu Jul 02 2015 7:09 am


Return to Developers

cron