linux: Fix build
This commit is contained in:
parent
1e9c5eb441
commit
27ae865a74
|
@ -40,7 +40,7 @@ namespace SparkleShare {
|
||||||
if (!SparkleShare.Controller.NotificationsEnabled)
|
if (!SparkleShare.Controller.NotificationsEnabled)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
Application.Invoke (() => {
|
Application.Invoke (delegate {
|
||||||
Notification notification = new Notification () {
|
Notification notification = new Notification () {
|
||||||
Summary = title,
|
Summary = title,
|
||||||
Body = subtext,
|
Body = subtext,
|
||||||
|
|
|
@ -71,7 +71,7 @@ namespace SparkleShare {
|
||||||
|
|
||||||
private void CreateNote ()
|
private void CreateNote ()
|
||||||
{
|
{
|
||||||
Image user_image = new Image (Controller.AvatarFilePath);
|
var user_image = new Image (Controller.AvatarFilePath);
|
||||||
|
|
||||||
/* TODO: Style the entry neatly, multiple lines, and add placeholder text
|
/* TODO: Style the entry neatly, multiple lines, and add placeholder text
|
||||||
string balloon_image_path = new string [] { UserInterface.AssetsPath, "pixmaps", "text-balloon.png" }.Combine ();
|
string balloon_image_path = new string [] { UserInterface.AssetsPath, "pixmaps", "text-balloon.png" }.Combine ();
|
||||||
|
@ -87,31 +87,31 @@ namespace SparkleShare {
|
||||||
balloon.StyleContext.AddProvider (balloon_css_provider, 800);
|
balloon.StyleContext.AddProvider (balloon_css_provider, 800);
|
||||||
*/
|
*/
|
||||||
|
|
||||||
Label balloon_label = new Label ("<b>Anything to add?</b>") {
|
var balloon_label = new Label ("<b>Anything to add?</b>") {
|
||||||
Xalign = 0,
|
Xalign = 0,
|
||||||
UseMarkup = true
|
UseMarkup = true
|
||||||
};
|
};
|
||||||
|
|
||||||
Entry balloon = new Entry () { MaxLength = 144 };
|
var balloon = new Entry { MaxLength = 144 };
|
||||||
|
|
||||||
|
|
||||||
Button cancel_button = new Button ("Cancel");
|
var cancel_button = new Button ("Cancel");
|
||||||
Button sync_button = new Button ("Sync"); // TODO: Make default button
|
var sync_button = new Button ("Sync"); // TODO: Make default button
|
||||||
sync_button.CanDefault = true;
|
sync_button.CanDefault = true;
|
||||||
|
|
||||||
cancel_button.Clicked += delegate { Controller.CancelClicked (); };
|
cancel_button.Clicked += delegate { Controller.CancelClicked (); };
|
||||||
sync_button.Clicked += delegate { Controller.SyncClicked (balloon.Buffer.Text); };
|
sync_button.Clicked += delegate { Controller.SyncClicked (balloon.Buffer.Text); };
|
||||||
|
|
||||||
|
|
||||||
VBox layout_vertical = new VBox (false, 16);
|
var layout_vertical = new VBox (false, 16);
|
||||||
HBox layout_horizontal = new HBox (false, 16);
|
var layout_horizontal = new HBox (false, 16);
|
||||||
|
|
||||||
HBox buttons = new HBox () {
|
var buttons = new HBox {
|
||||||
Homogeneous = false,
|
Homogeneous = false,
|
||||||
Spacing = 6
|
Spacing = 6
|
||||||
};
|
};
|
||||||
|
|
||||||
Label user_label = new Label () {
|
var user_label = new Label {
|
||||||
Markup = "<b>" + SparkleShare.Controller.CurrentUser.Name + "</b>\n" +
|
Markup = "<b>" + SparkleShare.Controller.CurrentUser.Name + "</b>\n" +
|
||||||
"<span fgcolor=\"" + SparkleShare.UI.SecondaryTextColor + "\">" + SparkleShare.Controller.CurrentUser.Email +
|
"<span fgcolor=\"" + SparkleShare.UI.SecondaryTextColor + "\">" + SparkleShare.Controller.CurrentUser.Email +
|
||||||
"</span>"
|
"</span>"
|
||||||
|
|
Loading…
Reference in a new issue