diff options
author | Markus Brueffer <markus@FreeBSD.org> | 2005-07-13 18:52:22 +0000 |
---|---|---|
committer | Markus Brueffer <markus@FreeBSD.org> | 2005-07-13 18:52:22 +0000 |
commit | 1146527e698eaffa04776ba3c0248a8ea45cb750 (patch) | |
tree | ce744432b811cd144582ab26c0543f7b104e0c3c /deskutils/metabar/files | |
parent | 73ce6ff2e8e65acbd35f3213866526cf8b0f8cae (diff) | |
download | ports-1146527e698eaffa04776ba3c0248a8ea45cb750.tar.gz ports-1146527e698eaffa04776ba3c0248a8ea45cb750.zip |
Notes
Diffstat (limited to 'deskutils/metabar/files')
-rw-r--r-- | deskutils/metabar/files/patch-defaultplugin.cpp | 29 | ||||
-rw-r--r-- | deskutils/metabar/files/patch-metabar_widget.cpp | 12 | ||||
-rw-r--r-- | deskutils/metabar/files/patch-metabarwidget.cpp | 11 | ||||
-rw-r--r-- | deskutils/metabar/files/patch-metascrollview.cpp | 11 | ||||
-rw-r--r-- | deskutils/metabar/files/patch-serviceloader.cpp | 20 |
5 files changed, 60 insertions, 23 deletions
diff --git a/deskutils/metabar/files/patch-defaultplugin.cpp b/deskutils/metabar/files/patch-defaultplugin.cpp new file mode 100644 index 000000000000..9bf1a02f6144 --- /dev/null +++ b/deskutils/metabar/files/patch-defaultplugin.cpp @@ -0,0 +1,29 @@ +--- src/defaultplugin.cpp.orig Wed Jul 13 20:33:54 2005 ++++ src/defaultplugin.cpp Wed Jul 13 20:34:49 2005 +@@ -99,7 +99,7 @@ + for(QStringList::Iterator it = actions.begin(); it != actions.end(); ++it){ + if((*it).startsWith("metabar/")){ + if((*it).right((*it).length() - 8) == "share"){ +- MetabarWidget::addEntry(innerHTML, i18n("Share"), "action://" + *it, "network", QString::null, actionCount < maxActions ? QString::null : "hiddenaction", actionCount >= maxActions); ++ MetabarWidget::addEntry(innerHTML, i18n("Share"), "action://" + *it, "network", QString::null, actionCount < maxActions ? QString::null : QString("hiddenaction"), actionCount >= maxActions); + actionCount++; + } + } +@@ -111,7 +111,7 @@ + QString text = action.call("plainText()"); + QString icon = iconConfig.readEntry(*it, action.call("icon()")); + +- MetabarWidget::addEntry(innerHTML, text, "action://" + *it, icon, QString::null, actionCount < maxActions ? QString::null : "hiddenaction", actionCount >= maxActions); ++ MetabarWidget::addEntry(innerHTML, text, "action://" + *it, icon, QString::null, actionCount < maxActions ? QString::null : QString("hiddenaction"), actionCount >= maxActions); + actionCount++; + } + } +@@ -184,7 +184,7 @@ + nam.setNum(id); + + bool hide = id >= max; +- MetabarWidget::addEntry(innerHTML, (*it)->name(), "exec://" + nam, (*it)->icon(), QString::null, hide ? "hiddenapp" : QString::null, hide); ++ MetabarWidget::addEntry(innerHTML, (*it)->name(), "exec://" + nam, (*it)->icon(), QString::null, hide ? QString("hiddenapp") : QString::null, hide); + + runMap.insert(id, *it); + id++; diff --git a/deskutils/metabar/files/patch-metabar_widget.cpp b/deskutils/metabar/files/patch-metabar_widget.cpp deleted file mode 100644 index afbe6e74004e..000000000000 --- a/deskutils/metabar/files/patch-metabar_widget.cpp +++ /dev/null @@ -1,12 +0,0 @@ ---- src/metabar_widget.cpp.orig Sun Apr 3 22:35:03 2005 -+++ src/metabar_widget.cpp Sun Apr 3 22:40:09 2005 -@@ -763,7 +763,8 @@ - void MetabarWidget::slotRunDesktopFile(const QString &url) - { - KURL::List list; -- KRun::run(KService(new KDesktopFile(url)), list); -+ KService service(new KDesktopFile(url)); -+ KRun::run(service, list); - } - - void MetabarWidget::slotShowMore() diff --git a/deskutils/metabar/files/patch-metabarwidget.cpp b/deskutils/metabar/files/patch-metabarwidget.cpp new file mode 100644 index 000000000000..a1e142e06589 --- /dev/null +++ b/deskutils/metabar/files/patch-metabarwidget.cpp @@ -0,0 +1,11 @@ +--- src/metabarwidget.cpp.orig Wed Jul 13 20:30:46 2005 ++++ src/metabarwidget.cpp Wed Jul 13 20:31:20 2005 +@@ -369,7 +369,7 @@ + + DOM::DOMString innerHTML; + innerHTML += QString("<ul style=\"width: %1px; height: %1px\">").arg(image.width(), image.height()); +- innerHTML += "<object class=\preview\" type=\""; ++ innerHTML += "<object class=\"preview\" type=\""; + innerHTML += item->mimetype(); + innerHTML += "\" data=\""; + innerHTML += item->url().url(); diff --git a/deskutils/metabar/files/patch-metascrollview.cpp b/deskutils/metabar/files/patch-metascrollview.cpp deleted file mode 100644 index e195598a65a5..000000000000 --- a/deskutils/metabar/files/patch-metascrollview.cpp +++ /dev/null @@ -1,11 +0,0 @@ ---- src/metascrollview.cpp.orig Sun Apr 3 23:03:42 2005 -+++ src/metascrollview.cpp Sun Apr 3 23:06:18 2005 -@@ -43,7 +43,7 @@ - bool visible = verticalScrollBar()->isVisible(); - - int w = width() - (visible ? verticalScrollBar()->width() : 0); -- int h = (int)fmax(height(), metabarWidget->sizeHint().height()); -+ int h = (height() > metabarWidget->sizeHint().height() ? height() : metabarWidget->sizeHint().height()); - - QScrollView::resizeContents(w, h); - diff --git a/deskutils/metabar/files/patch-serviceloader.cpp b/deskutils/metabar/files/patch-serviceloader.cpp new file mode 100644 index 000000000000..18697fced921 --- /dev/null +++ b/deskutils/metabar/files/patch-serviceloader.cpp @@ -0,0 +1,20 @@ +--- src/serviceloader.cpp.orig Wed Jul 13 20:31:36 2005 ++++ src/serviceloader.cpp Wed Jul 13 20:32:30 2005 +@@ -154,7 +154,7 @@ + popup = popups[submenuName]; + } + else{ +- MetabarWidget::addEntry(html, submenuName, "servicepopup://" + idString, "1rightarrow", "popup" + idString, count < maxActions ? QString::null : "hiddenaction", count >= maxActions); ++ MetabarWidget::addEntry(html, submenuName, "servicepopup://" + idString, "1rightarrow", "popup" + idString, count < maxActions ? QString::null : QString("hiddenaction"), count >= maxActions); + + popup = new KPopupMenu(); + popups.insert(idString, popup); +@@ -172,7 +172,7 @@ + action->plug(popup); + } + else{ +- MetabarWidget::addEntry(html, (*it).m_strName, "service://" + idString, (*it).m_strIcon, QString::null, count < maxActions ? QString::null : "hiddenaction", count >= maxActions); ++ MetabarWidget::addEntry(html, (*it).m_strName, "service://" + idString, (*it).m_strIcon, QString::null, count < maxActions ? QString::null : QString("hiddenaction"), count >= maxActions); + count++; + } + |