Skip to content

Commit

Permalink
Manual event subscription to workaround monodevelop bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasfj committed Mar 19, 2011
1 parent 1768b98 commit 4de4b91
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 5 additions & 1 deletion example/gtk-scanner/MainWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ namespace Example.GtkScanner{
public partial class MainWindow: Gtk.Window
{
public MainWindow (): base (Gtk.WindowType.Toplevel){
Build ();
Build();

this.Scanner.Error += new EventHandler<GtkZBar.ErrorEventArgs>(this.OnScannerError);
this.Scanner.BarScanned += new EventHandler<GtkZBar.BarScannedArgs>(this.OnScannerBarScanned);

this.Scanner.Open("/dev/video0");
Scanner.Rotate = true;
this.VideoDevEntry.Text = "/dev/video0";
Expand Down
2 changes: 0 additions & 2 deletions example/gtk-scanner/gtk-gui/gui.stetic
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@
<property name="Mute">False</property>
<property name="Flip">False</property>
<property name="Rotate">False</property>
<signal name="BarScanned" handler="OnScannerBarScanned" />
<signal name="Error" handler="OnScannerError" />
</widget>
<packing>
<property name="Position">0</property>
Expand Down

0 comments on commit 4de4b91

Please sign in to comment.