~ubuntu-branches/ubuntu/quantal/kde4libs/quantal

« back to all changes in this revision

Viewing changes to debian/patches/kubuntu_FEATURE-configurable-default-containment-plugin-name.diff

  • Committer: Package Import Robot
  • Author(s): Felix Geyer, Philip Muškovac, Jonathan Thomas, Felix Geyer
  • Date: 2011-05-29 17:19:55 UTC
  • mfrom: (1.14.5 upstream) (0.1.19 sid)
  • Revision ID: package-import@ubuntu.com-20110529171955-nodep1593tuwyu6k
Tags: 4:4.6.3-1ubuntu1
[ Philip Muškovac]
* Drop kubuntu_83_fix_solid_network_status.diff
* Update Vcs links as the branch is owned by kubuntu-packagers now

[ Jonathan Thomas ]
* Drop kubuntu_06_user_disk_mounting. We no longer compile the hal
  backend, so this patch is useless.

[ Felix Geyer ]
* Merge from Debian unstable, remaining changes:
  - no build-dep on libaspell-dev
  - no build-dep on libfam-dev
  - kdelibs5-data: don't install kspell_aspell.desktop and
    usr/lib/kde4/kspell_aspell.so
  - kdelibs5-dev: don't install preparetips
  - Pass -DKDESU_USE_SUDO_DEFAULT=true to configure
  - dh_fixperms: exclude /usr/lib/kde4/libexec/fileshareset
  - set export KUBUNTU_DESKTOP_POT=kdelibs
  - don't apply use_dejavu_as_default_font.diff
  - don't apply kconf_update_migrate_from_kde3_icon_theme.diff
    - kdelibs5-data.install: drop usr/share/kde4/apps/kconf_update/kdeui.upd
  - don't build depend on libglu1-mesa-dev, not needed due to
    kubuntu_no_direct_gl_usage.diff
  - Add kdelibs5-data.links: link from /usr/share/doc/kde4 to kde for
    backwards compatible with old docs location
  - Keep the kdelibs5 transitional package
  - kdelibs5-dev.install: install ksambasharedata.h
  - kdelibs5-plugins: recommend ttf-dejavu-core instead of ttf-dejavu to save
    CD space.
* Add Breaks in addition to Replaces for moving files between packages.
* Drop no longer needed Breaks and Replaces.
* Completely drop kubuntu_51_launchpad_integration.diff and
  kubuntu_68_remove_applet_confirmation.diff.
  + Also drop the launchpad and kubuntu icons.
* Remove sequence numbers from kubuntu patches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
commit 1481d1596bd2d2aea47bf52f5b6dcc82a02fb549
 
2
Author: Aaron J. Seigo <aseigo@kde.org>
 
3
Date:   Wed Jan 12 00:05:13 2011 +0000
 
4
 
 
5
    FEATURE: configurable default containment plugin name
 
6
    
 
7
    svn path=/trunk/KDE/kdelibs/; revision=1213879
 
8
 
 
9
Index: kde4libs-4.6.3/plasma/corona.cpp
 
10
===================================================================
 
11
--- kde4libs-4.6.3.orig/plasma/corona.cpp       2011-05-27 21:50:21.000000000 +0200
 
12
+++ kde4libs-4.6.3/plasma/corona.cpp    2011-05-27 21:50:21.000000000 +0200
 
13
@@ -92,6 +92,20 @@
 
14
     return d->mimetype;
 
15
 }
 
16
 
 
17
+void Corona::setDefaultContainmentPlugin(const QString &name)
 
18
+{
 
19
+    // we could check if it is in:
 
20
+    // Containment::listContainments().contains(name) ||
 
21
+    // Containment::listContainments(QString(), KGlobal::mainComponent().componentName()).contains(name)
 
22
+    // but that seems like overkill
 
23
+    d->defaultContainmentPlugin = name;
 
24
+}
 
25
+
 
26
+QString Corona::defaultContainmentPlugin() const
 
27
+{
 
28
+    return d->defaultContainmentPlugin;
 
29
+}
 
30
+
 
31
 void Corona::saveLayout(const QString &configName) const
 
32
 {
 
33
     KSharedConfigPtr c;
 
34
@@ -774,6 +788,7 @@
 
35
     : q(corona),
 
36
       immutability(Mutable),
 
37
       mimetype("text/x-plasmoidservicename"),
 
38
+      defaultContainmentPlugin("desktop"),
 
39
       config(0),
 
40
       actions(corona)
 
41
 {
 
42
@@ -904,8 +919,7 @@
 
43
     emit q->configSynced();
 
44
 }
 
45
 
 
46
-Containment *CoronaPrivate::addContainment(const QString &name, const QVariantList &args,
 
47
-        uint id, bool delayedInit)
 
48
+Containment *CoronaPrivate::addContainment(const QString &name, const QVariantList &args, uint id, bool delayedInit)
 
49
 {
 
50
     QString pluginName = name;
 
51
     Containment *containment = 0;
 
52
@@ -915,7 +929,7 @@
 
53
 
 
54
     if (pluginName.isEmpty() || pluginName == "default") {
 
55
         // default to the desktop containment
 
56
-        pluginName = "desktop";
 
57
+        pluginName = defaultContainmentPlugin;
 
58
     }
 
59
 
 
60
     bool loadingNull = pluginName == "null";
 
61
Index: kde4libs-4.6.3/plasma/corona.h
 
62
===================================================================
 
63
--- kde4libs-4.6.3.orig/plasma/corona.h 2011-04-01 15:56:18.000000000 +0200
 
64
+++ kde4libs-4.6.3/plasma/corona.h      2011-05-27 21:50:21.000000000 +0200
 
65
@@ -67,6 +67,12 @@
 
66
     QString appletMimeType();
 
67
 
 
68
     /**
 
69
+     * @return the default containment plugin type
 
70
+     * @since 4.7
 
71
+     */
 
72
+    QString defaultContainmentPlugin() const;
 
73
+
 
74
+    /**
 
75
      * @return all containments on this Corona
 
76
      */
 
77
     QList<Containment*> containments() const;
 
78
@@ -472,6 +478,12 @@
 
79
      */
 
80
     void setPreferredToolBoxPlugin(const Containment::Type type, const QString &plugin);
 
81
 
 
82
+    /**
 
83
+     * Sets the default containment plugin to try and load
 
84
+     * @since 4.7
 
85
+     */
 
86
+    void setDefaultContainmentPlugin(const QString &name);
 
87
+
 
88
     //Reimplemented from QGraphicsScene
 
89
     void dragEnterEvent(QGraphicsSceneDragDropEvent *event);
 
90
     void dragLeaveEvent(QGraphicsSceneDragDropEvent *event);
 
91
Index: kde4libs-4.6.3/plasma/private/corona_p.h
 
92
===================================================================
 
93
--- kde4libs-4.6.3.orig/plasma/private/corona_p.h       2011-05-27 21:50:21.000000000 +0200
 
94
+++ kde4libs-4.6.3/plasma/private/corona_p.h    2011-05-27 21:50:21.000000000 +0200
 
95
@@ -54,6 +54,7 @@
 
96
     ImmutabilityType immutability;
 
97
     QString mimetype;
 
98
     QString configName;
 
99
+    QString defaultContainmentPlugin;
 
100
     KSharedConfigPtr config;
 
101
     QTimer configSyncTimer;
 
102
     QList<Containment*> containments;