Bring most mimetypes in line with XDG specifications. The following are not fully verified in source as of this commit due to ubiquity: html, empty, info, make, man, misc, source, unknown

pull/1/head r14.0.0
Timothy Pearson 10 years ago
parent 35eb9e0b16
commit a77f89e1d2

@ -677,11 +677,11 @@ namespace KBibTeX
{ {
TQString prettyURL = ( *i ).prettyURL(); TQString prettyURL = ( *i ).prettyURL();
if ( prettyURL.endsWith( ".pdf", FALSE ) || prettyURL.find( "/pdf/" ) > 0 ) if ( prettyURL.endsWith( ".pdf", FALSE ) || prettyURL.find( "/pdf/" ) > 0 )
popup->insertItem( SmallIcon( "pdf" ), prettyURL ); popup->insertItem( SmallIcon( "application-pdf" ), prettyURL );
else if ( prettyURL.endsWith( ".ps", FALSE ) ) else if ( prettyURL.endsWith( ".ps", FALSE ) )
popup->insertItem( SmallIcon( "postscript" ), prettyURL ); popup->insertItem( SmallIcon( "application-postscript" ), prettyURL );
else if ( prettyURL.endsWith( ".html", FALSE ) || prettyURL.startsWith( "http://", FALSE ) ) else if ( prettyURL.endsWith( ".html", FALSE ) || prettyURL.startsWith( "http://", FALSE ) )
popup->insertItem( SmallIcon( "html" ), prettyURL ); popup->insertItem( SmallIcon( "text-html" ), prettyURL );
else else
popup->insertItem( prettyURL ); popup->insertItem( prettyURL );
m_viewDocumentActionMenuURLs.append( prettyURL ); m_viewDocumentActionMenuURLs.append( prettyURL );

@ -428,7 +428,7 @@ namespace KBibTeX
TQHBoxLayout *innerLayout = new TQHBoxLayout(); TQHBoxLayout *innerLayout = new TQHBoxLayout();
gridLayout->addLayout( innerLayout, 3, 1 ); gridLayout->addLayout( innerLayout, 3, 1 );
m_pushButtonMonths = new TQPushButton( this, "m_pushButtonMonths" ); m_pushButtonMonths = new TQPushButton( this, "m_pushButtonMonths" );
m_pushButtonMonths->setIconSet( TQIconSet( SmallIcon( "vcalendar" ) ) ); m_pushButtonMonths->setIconSet( TQIconSet( SmallIcon( "x-office-calendar" ) ) );
m_pushButtonMonths->setSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Minimum ); m_pushButtonMonths->setSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Minimum );
m_pushButtonMonths->setEnabled( !m_isReadOnly ); m_pushButtonMonths->setEnabled( !m_isReadOnly );
innerLayout->addWidget( m_pushButtonMonths ); innerLayout->addWidget( m_pushButtonMonths );

@ -70,7 +70,7 @@ namespace KBibTeX
for ( TQValueList<Settings::SearchURL*>::ConstIterator it = settings->searchURLs.begin(); it != settings->searchURLs.end(); ++it ) for ( TQValueList<Settings::SearchURL*>::ConstIterator it = settings->searchURLs.begin(); it != settings->searchURLs.end(); ++it )
{ {
TDEListViewItem *item = new TDEListViewItem( m_listviewSearchURLs, ( *it ) ->description, ( *it ) ->includeAuthor ? i18n( "Yes" ) : i18n( "No" ), ( *it ) ->url ); TDEListViewItem *item = new TDEListViewItem( m_listviewSearchURLs, ( *it ) ->description, ( *it ) ->includeAuthor ? i18n( "Yes" ) : i18n( "No" ), ( *it ) ->url );
item->setPixmap( 0, SmallIcon( "html" ) ); item->setPixmap( 0, SmallIcon( "text-html" ) );
} }
} }
@ -204,7 +204,7 @@ namespace KBibTeX
if ( item == NULL ) if ( item == NULL )
{ {
TDEListViewItem *item = new TDEListViewItem( m_listviewSearchURLs, descr->text(), cbIncludeAuthor->currentItem() == 0 ? i18n( "Yes" ) : i18n( "No" ), url->text() ); TDEListViewItem *item = new TDEListViewItem( m_listviewSearchURLs, descr->text(), cbIncludeAuthor->currentItem() == 0 ? i18n( "Yes" ) : i18n( "No" ), url->text() );
item->setPixmap( 0, SmallIcon( "html" ) ); item->setPixmap( 0, SmallIcon( "text-html" ) );
} }
else else
{ {

Loading…
Cancel
Save