Make samples able to compile
This commit is contained in:
parent
d33628d632
commit
33722f0f15
4 changed files with 6 additions and 7 deletions
|
@ -203,13 +203,13 @@ class CustomScrollableWidget<T> : CustomBase, IScrollableImplementor {
|
|||
}
|
||||
}
|
||||
|
||||
private void OnHadjustmentChanged (object o, EventArgs args)
|
||||
private void OnHadjustmentChanged (object o, System.EventArgs args)
|
||||
{
|
||||
UpdateAdjustments ();
|
||||
QueueDraw ();
|
||||
}
|
||||
|
||||
private void OnVadjustmentChanged (object o, EventArgs args)
|
||||
private void OnVadjustmentChanged (object o, System.EventArgs args)
|
||||
{
|
||||
UpdateAdjustments ();
|
||||
QueueDraw ();
|
||||
|
|
|
@ -46,13 +46,13 @@ namespace GtkDemo
|
|||
sw.Add (treeView);
|
||||
|
||||
// expand all rows after the treeview widget has been realized
|
||||
treeView.Realized += new EventHandler (ExpandRows);
|
||||
treeView.Realized += new System.EventHandler (ExpandRows);
|
||||
|
||||
SetDefaultSize (650, 400);
|
||||
ShowAll ();
|
||||
}
|
||||
|
||||
private void ExpandRows (object obj, EventArgs args)
|
||||
private void ExpandRows (object obj, System.EventArgs args)
|
||||
{
|
||||
TreeView treeView = obj as TreeView;
|
||||
|
||||
|
|
|
@ -21,7 +21,6 @@ sources = \
|
|||
DemoButtonBox.cs \
|
||||
DemoClipboard.cs \
|
||||
DemoColorSelection.cs \
|
||||
DemoCssBasics.cs \
|
||||
DemoDialog.cs \
|
||||
DemoDrawingArea.cs \
|
||||
DemoEditableCells.cs \
|
||||
|
|
|
@ -46,14 +46,14 @@ public class TestMount
|
|||
Window w = new Window ("test");
|
||||
operation = new Gtk.MountOperation (w);
|
||||
Button b = new Button ("Mount");
|
||||
b.Clicked += new EventHandler (HandleButtonClicked);
|
||||
b.Clicked += new System.EventHandler (HandleButtonClicked);
|
||||
b.Show ();
|
||||
w.Add (b);
|
||||
w.Show ();
|
||||
Gtk.Application.Run ();
|
||||
}
|
||||
|
||||
static void HandleButtonClicked (object sender, EventArgs args)
|
||||
static void HandleButtonClicked (object sender, System.EventArgs args)
|
||||
{
|
||||
System.Console.WriteLine ("clicked");
|
||||
file.MountEnclosingVolume (0, operation, null, new GLib.AsyncReadyCallback (HandleMountFinished));
|
||||
|
|
Loading…
Reference in a new issue