[tasque/transition: 180/213] [RTM] Enable build. Move PrefWidget to designated folder
- From: Antonius Riha <antoniusri src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tasque/transition: 180/213] [RTM] Enable build. Move PrefWidget to designated folder
- Date: Wed, 29 Aug 2012 18:49:09 +0000 (UTC)
commit 8cb8d087cb4ac6107fed577d88cd14c6069082d9
Author: Antonius Riha <antoniusriha gmail com>
Date: Sun Aug 19 00:38:30 2012 +0200
[RTM] Enable build. Move PrefWidget to designated folder
.../RtmBackend/{ => Gtk}/RtmPreferencesWidget.cs | 15 +++++-----
src/Addins/RtmBackend/RtmBackend.csproj | 28 +++++++++++++++-----
2 files changed, 29 insertions(+), 14 deletions(-)
---
diff --git a/src/Addins/RtmBackend/RtmPreferencesWidget.cs b/src/Addins/RtmBackend/Gtk/RtmPreferencesWidget.cs
similarity index 94%
rename from src/Addins/RtmBackend/RtmPreferencesWidget.cs
rename to src/Addins/RtmBackend/Gtk/RtmPreferencesWidget.cs
index 6ac0ae8..60063a7 100644
--- a/src/Addins/RtmBackend/RtmPreferencesWidget.cs
+++ b/src/Addins/RtmBackend/Gtk/RtmPreferencesWidget.cs
@@ -2,17 +2,18 @@
// User: boyd at 11:29 PMÂ2/18/2008
using System;
-using Gtk;
+using System.Diagnostics;
using Mono.Unix;
+using Gtk;
-namespace Tasque.Backends.RtmBackend
+namespace Tasque.Backends.RtmBackend.Gtk
{
- public class RtmPreferencesWidget : Gtk.EventBox
+ public class RtmPreferencesWidget : EventBox
{
private LinkButton authButton;
private Label statusLabel;
- private Gtk.Image image;
+ private Image image;
private bool authRequested;
private bool isAuthorized;
@@ -42,7 +43,7 @@ namespace Tasque.Backends.RtmBackend
Add(mainVBox);
// Add the rtm logo
- image = new Gtk.Image (normalPixbuf);
+ image = new Image (normalPixbuf);
image.Show();
//make the dialog box look pretty without hard coding total size and
//therefore clipping displays with large fonts.
@@ -55,7 +56,7 @@ namespace Tasque.Backends.RtmBackend
// Status message label
statusLabel = new Label();
- statusLabel.Justify = Gtk.Justification.Center;
+ statusLabel.Justify = Justification.Center;
statusLabel.Wrap = true;
statusLabel.LineWrap = true;
statusLabel.Show();
@@ -114,7 +115,7 @@ namespace Tasque.Backends.RtmBackend
}
Debug.WriteLine("Launching browser to authorize with Remember the Milk");
try {
- Application.Instance.NativeApplication.OpenUrlInBrowser (url);
+ Application.Instance.OpenUrlInBrowser (url);
authRequested = true;
authButton.Label = Catalog.GetString ("Click Here After Authorizing");
} catch (Exception ex) {
diff --git a/src/Addins/RtmBackend/RtmBackend.csproj b/src/Addins/RtmBackend/RtmBackend.csproj
index 89eff8c..4189317 100644
--- a/src/Addins/RtmBackend/RtmBackend.csproj
+++ b/src/Addins/RtmBackend/RtmBackend.csproj
@@ -57,14 +57,16 @@
</PropertyGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<ItemGroup>
- <None Include="RtmBackend.cs" />
- <None Include="RtmCategory.cs" />
- <None Include="RtmNote.cs" />
- <None Include="RtmPreferencesWidget.cs" />
- <None Include="RtmTask.cs" />
- </ItemGroup>
- <ItemGroup>
<Reference Include="System" />
+ <Reference Include="gtk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f">
+ <Private>False</Private>
+ <Package>gtk-sharp-2.0</Package>
+ </Reference>
+ <Reference Include="Mono.Posix" />
+ <Reference Include="gdk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f">
+ <Private>False</Private>
+ <Package>gtk-sharp-2.0</Package>
+ </Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs" />
@@ -74,11 +76,23 @@
<Compile Include="..\..\..\build\GlobalDefines.cs">
<Link>Properties\GlobalDefines.cs</Link>
</Compile>
+ <Compile Include="RtmBackend.cs" />
+ <Compile Include="RtmCategory.cs" />
+ <Compile Include="RtmNote.cs" />
+ <Compile Include="RtmTask.cs" />
+ <Compile Include="Gtk\RtmPreferencesWidget.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\RtmNet\RtmNet.csproj">
<Project>{0AA1B96E-03DE-4D26-B4FD-507E988FD9B7}</Project>
<Name>RtmNet</Name>
</ProjectReference>
+ <ProjectReference Include="..\..\libtasque\libtasque.csproj">
+ <Project>{784C9AA8-2B28-400B-8CC4-DCDC48CA37F0}</Project>
+ <Name>libtasque</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <ItemGroup>
+ <Folder Include="Gtk\" />
</ItemGroup>
</Project>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]