1
Description: Workaround dh_clideps failing on a broken libmeego-panel DllImport
2
Author: Chow Loong Jin <hyperair@ubuntu.com>
5
Index: banshee/src/Extensions/Banshee.MeeGo/Makefile.am
6
===================================================================
7
--- banshee.orig/src/Extensions/Banshee.MeeGo/Makefile.am 2011-05-14 21:51:44.254191395 +0800
8
+++ banshee/src/Extensions/Banshee.MeeGo/Makefile.am 2011-05-14 21:51:44.347524133 +0800
10
Banshee.MeeGo/PlaybackBox.cs \
11
Banshee.MeeGo/SearchEntry.cs \
12
MeeGo.Panel/PanelButtonState.cs \
13
- MeeGo.Panel/PanelClient.cs \
14
- MeeGo.Panel/PanelGtk.cs \
15
MeeGo.Panel/SetPositionHandler.cs \
16
MeeGo.Panel/SetSizeHandler.cs
18
Index: banshee/src/Extensions/Banshee.MeeGo/Makefile.in
19
===================================================================
20
--- banshee.orig/src/Extensions/Banshee.MeeGo/Makefile.in 2011-05-14 21:51:44.254191395 +0800
21
+++ banshee/src/Extensions/Banshee.MeeGo/Makefile.in 2011-05-14 21:51:44.347524133 +0800
23
Banshee.MeeGo/PlaybackBox.cs \
24
Banshee.MeeGo/SearchEntry.cs \
25
MeeGo.Panel/PanelButtonState.cs \
26
- MeeGo.Panel/PanelClient.cs \
27
- MeeGo.Panel/PanelGtk.cs \
28
MeeGo.Panel/SetPositionHandler.cs \
29
MeeGo.Panel/SetSizeHandler.cs
31
Index: banshee/src/Extensions/Banshee.MeeGo/Banshee.MeeGo/MeeGoPanel.cs
32
===================================================================
33
--- banshee.orig/src/Extensions/Banshee.MeeGo/Banshee.MeeGo/MeeGoPanel.cs 2011-05-14 21:51:44.194191779 +0800
34
+++ banshee/src/Extensions/Banshee.MeeGo/Banshee.MeeGo/MeeGoPanel.cs 2011-05-14 21:59:34.871221818 +0800
37
public static MeeGoPanel Instance { get; private set; }
39
- private PanelGtk embedded_panel;
40
+ // private PanelGtk embedded_panel;
41
private Window window_panel;
43
public MediaPanelContents Contents { get; private set; }
46
var timer = Log.DebugTimerStart ();
49
- Log.Debug ("Attempting to create Netbook toolbar panel");
50
- embedded_panel = new PanelGtk ("banshee", Catalog.GetString ("media"),
51
- null, "media-button", true);
52
- embedded_panel.ShowBeginEvent += (o, e) => {
53
- ServiceManager.SourceManager.SetActiveSource (ServiceManager.SourceManager.MusicLibrary);
54
- if (Contents != null) {
55
- Contents.SyncSearchEntry ();
58
- while (Gtk.Application.EventsPending ()) {
59
- Gtk.Application.RunIteration ();
61
- } catch (Exception e) {
62
- if (!(e is DllNotFoundException)) {
63
- Log.Exception ("Could not bind to Netbook panel", e);
66
+ // Log.Debug ("Attempting to create Netbook toolbar panel");
67
+ // embedded_panel = new PanelGtk ("banshee", Catalog.GetString ("media"),
68
+ // null, "media-button", true);
69
+ // embedded_panel.ShowBeginEvent += (o, e) => {
70
+ // ServiceManager.SourceManager.SetActiveSource (ServiceManager.SourceManager.MusicLibrary);
71
+ // if (Contents != null) {
72
+ // Contents.SyncSearchEntry ();
75
+ // while (Gtk.Application.EventsPending ()) {
76
+ // Gtk.Application.RunIteration ();
78
+ // } catch (Exception e) {
79
+ // if (!(e is DllNotFoundException)) {
80
+ // Log.Exception ("Could not bind to Netbook panel", e);
82
window_panel = new Gtk.Window ("Netbook Media Panel");
86
Log.DebugTimerPrint (timer, "Netbook panel created: {0}");
90
Log.DebugTimerPrint (timer, "Netbook panel contents created: {0}");
92
- if (embedded_panel != null) {
93
- embedded_panel.SetChild (Contents);
94
- } else if (window_panel != null) {
95
+ // if (embedded_panel != null) {
96
+ // embedded_panel.SetChild (Contents);
97
+ // } else if (window_panel != null)
99
window_panel.Add (Contents);
100
window_panel.SetDefaultSize (1000, 500);
101
window_panel.WindowPosition = WindowPosition.Center;
102
@@ -106,17 +107,17 @@
105
window_panel.Hide ();
106
- if (embedded_panel != null) {
107
- embedded_panel.Hide ();
109
+ // if (embedded_panel != null) {
110
+ // embedded_panel.Hide ();
116
window_panel.Show ();
117
- if (embedded_panel != null) {
118
- embedded_panel.Show ();
120
+ // if (embedded_panel != null) {
121
+ // embedded_panel.Show ();