linux: Fix build

This commit is contained in:
Hylke Bons 2015-06-24 22:51:16 +01:00
parent d45b9cadc7
commit 27e9f4d091
3 changed files with 7 additions and 7 deletions

View file

@ -20,12 +20,12 @@ using Gtk;
namespace SparkleShare {
public class SparkleAbout : Window {
public class SparkleNote : Window {
public SparkleNoteController Controller = new SparkleNoteController ();
public SparkleAbout () : base ("Sync")
public SparkleNote () : base ("Sync")
{
SetWmclass ("SparkleShare", "SparkleShare");

View file

@ -139,7 +139,7 @@ namespace SparkleShare {
item.Submenu = new Menu ();
this.state_menu_items [i] = new MenuItem (project.StatusMessage) { Sensitive = false };
this.state_menu_items [i] = new SparkleMenuItem (project.StatusMessage) { Sensitive = false };
(item.Submenu as Menu).Add (this.state_menu_items [i]);
(item.Submenu as Menu).Add (new SeparatorMenuItem ());
@ -152,13 +152,13 @@ namespace SparkleShare {
foreach (KeyValuePair<string, string> pair in project.UnsyncedChangesInfo)
(item.Submenu as Menu).Add (new MenuItem (pair.Key) {
Image = new Image () {
File = new string [] {icons_path, pair.Value.Replace ("-12", "")}.Combine () },
// Image = new Image () {
// File = new string [] {icons_path, pair.Value.Replace ("-12", "")}.Combine () },
Sensitive = false
});
if (!string.IsNullOrEmpty (project.MoreUnsyncedChanges)) {
(item.Submenu as Menu).Add (new MenuItem (MoreUnsyncedChanges) {
(item.Submenu as Menu).Add (new MenuItem (project.MoreUnsyncedChanges) {
Sensitive = false
});
}

View file

@ -47,7 +47,7 @@ namespace SparkleShare {
public void Run ()
{
(this.application as GLib.Application).Run (0, null);
(this.application as GLib.Application).Run (null, null);
}