Browse Source

Repair mimetype icon usage, part 1. The following are not fully verified in source as of this commit due to ubiquity: info, unknown

tags/r14.0.0
Timothy Pearson 4 years ago
parent
commit
db7f8030fa

+ 1
- 1
kate/part/katedocument.cpp View File

@@ -528,7 +528,7 @@ TQPixmap KateDocument::configPagePixmap (uint number, int size) const
return BarIcon("document-save", size);

case 6:
return BarIcon("source", size);
return BarIcon("text-x-src", size);

case 7:
return BarIcon("edit", size);

pics/crystalsvg/cr128-mime-.png → pics/crystalsvg/cr128-mime-application-x-netscape.png View File


pics/crystalsvg/cr16-mime-.png → pics/crystalsvg/cr16-mime-application-x-netscape.png View File


pics/crystalsvg/cr22-mime-.png → pics/crystalsvg/cr22-mime-application-x-netscape.png View File


pics/crystalsvg/cr32-mime-.png → pics/crystalsvg/cr32-mime-application-x-netscape.png View File


pics/crystalsvg/cr48-mime-.png → pics/crystalsvg/cr48-mime-application-x-netscape.png View File


pics/crystalsvg/cr64-mime-.png → pics/crystalsvg/cr64-mime-application-x-netscape.png View File


+ 1
- 1
tdeio/bookmarks/kbookmarkmenu.cc View File

@@ -1057,7 +1057,7 @@ void KBookmarkMenuNSImporter::newBookmark( const TQString & text, const TQCStrin
{
TQString _text = KStringHandler::csqueeze(text);
_text.replace( '&', "&&" );
TDEAction * action = new KBookmarkAction(_text, "html", 0, 0, "", m_actionCollection, 0);
TDEAction * action = new KBookmarkAction(_text, "text-html", 0, 0, "", m_actionCollection, 0);
connect(action, TQT_SIGNAL( activated ( TDEAction::ActivationReason, TQt::ButtonState )),
m_menu, TQT_SLOT( slotBookmarkSelected( TDEAction::ActivationReason, TQt::ButtonState ) ));
action->setProperty( "url", url );

+ 2
- 2
tdemdi/tdemdi/dockcontainer.cpp View File

@@ -203,7 +203,7 @@ void DockContainer::insertWidget (KDockWidget *dwdg, TQPixmap pixmap, const TQSt
connect(btn,TQT_SIGNAL(clicked()),this,TQT_SLOT(changeOverlapMode()));
}

m_tb->appendTab(pixmap.isNull()?SmallIcon("application-vnd.tde.misc"):pixmap,tab,w->tabPageLabel());
m_tb->appendTab(pixmap.isNull()?SmallIcon("misc"):pixmap,tab,w->tabPageLabel());
m_tb->tab(tab)->installEventFilter( this );
kdDebug(760)<<"NAMENAMENAMENAME:===========================:"<<w->tabPageLabel()<<endl;

@@ -457,7 +457,7 @@ void DockContainer::setPixmap(KDockWidget* widget ,const TQPixmap& pixmap)
int id=m_ws->id(widget);
if (id==-1) return;
KMultiTabBarTab *tab=m_tb->tab(id);
tab->setIcon(pixmap.isNull()?SmallIcon("application-vnd.tde.misc"):pixmap);
tab->setIcon(pixmap.isNull()?SmallIcon("misc"):pixmap);
}

void DockContainer::save(TDEConfig* cfg,const TQString& group_or_prefix)

+ 4
- 4
tdemdi/tdemdi/mainwindow.cpp View File

@@ -144,10 +144,10 @@ void MainWindow::setupMainDock ()

void MainWindow::setupToolViews ()
{
m_leftContainer = createDockWidget("KMdiDock::leftDock",SmallIcon("application-vnd.tde.misc"),0L,"Left Dock");
m_rightContainer = createDockWidget("KMdiDock::rightDock",SmallIcon("application-vnd.tde.misc"),0L,"Right Dock");
m_topContainer = createDockWidget("KMdiDock::topDock",SmallIcon("application-vnd.tde.misc"),0L,"Top Dock");
m_bottomContainer = createDockWidget("KMdiDock::bottomDock",SmallIcon("application-vnd.tde.misc"),0L,"Bottom Dock");
m_leftContainer = createDockWidget("KMdiDock::leftDock",SmallIcon("misc"),0L,"Left Dock");
m_rightContainer = createDockWidget("KMdiDock::rightDock",SmallIcon("misc"),0L,"Right Dock");
m_topContainer = createDockWidget("KMdiDock::topDock",SmallIcon("misc"),0L,"Top Dock");
m_bottomContainer = createDockWidget("KMdiDock::bottomDock",SmallIcon("misc"),0L,"Bottom Dock");

KDockWidget *mainDock=getMainDockWidget();
KDockWidget *w=mainDock;

+ 2
- 2
tdemdi/tdemdidockcontainer.cpp View File

@@ -226,7 +226,7 @@ void KMdiDockContainer::insertWidget ( KDockWidget *dwdg, TQPixmap pixmap, const
connect( btn, TQT_SIGNAL( clicked() ), this, TQT_SLOT( changeOverlapMode() ) );
}

m_tb->appendTab( pixmap.isNull() ? SmallIcon( "application-vnd.tde.misc" ) : pixmap, tab, w->tabPageLabel() );
m_tb->appendTab( pixmap.isNull() ? SmallIcon( "misc" ) : pixmap, tab, w->tabPageLabel() );
m_tb->tab( tab )->installEventFilter( this );
kdDebug( 760 ) << k_funcinfo << "Added tab with label " << w->tabPageLabel() <<
" to the tabbar" << endl;
@@ -509,7 +509,7 @@ void KMdiDockContainer::setPixmap( KDockWidget* widget , const TQPixmap& pixmap
if ( id == -1 )
return ;
KMultiTabBarTab *tab = m_tb->tab( id );
tab->setIcon( pixmap.isNull() ? SmallIcon( "application-vnd.tde.misc" ) : pixmap );
tab->setIcon( pixmap.isNull() ? SmallIcon( "misc" ) : pixmap );
}

void KMdiDockContainer::save( TQDomElement& dockEl )

+ 4
- 4
tdemdi/tdemdimainfrm.cpp View File

@@ -1923,10 +1923,10 @@ void KMdiMainFrm::findToolViewsDockedToMain( TQPtrList<KDockWidget>* list, KDock

void KMdiMainFrm::setupToolViewsForIDEALMode()
{
m_leftContainer = createDockWidget( "KMdiDock::leftDock", SmallIcon( "application-vnd.tde.misc" ), 0L, "Left Dock" );
m_rightContainer = createDockWidget( "KMdiDock::rightDock", SmallIcon( "application-vnd.tde.misc" ), 0L, "Right Dock" );
m_topContainer = createDockWidget( "KMdiDock::topDock", SmallIcon( "application-vnd.tde.misc" ), 0L, "Top Dock" );
m_bottomContainer = createDockWidget( "KMdiDock::bottomDock", SmallIcon( "application-vnd.tde.misc" ), 0L, "Bottom Dock" );
m_leftContainer = createDockWidget( "KMdiDock::leftDock", SmallIcon( "misc" ), 0L, "Left Dock" );
m_rightContainer = createDockWidget( "KMdiDock::rightDock", SmallIcon( "misc" ), 0L, "Right Dock" );
m_topContainer = createDockWidget( "KMdiDock::topDock", SmallIcon( "misc" ), 0L, "Top Dock" );
m_bottomContainer = createDockWidget( "KMdiDock::bottomDock", SmallIcon( "misc" ), 0L, "Bottom Dock" );

KDockWidget *mainDock = getMainDockWidget();
KDockWidget *w = mainDock;

Loading…
Cancel
Save