~ttosttos/eidete/fix-1004294

« back to all changes in this revision

Viewing changes to src/eidete.vala

  • Committer: Tom Beckmann
  • Date: 2012-04-04 00:44:58 UTC
  • Revision ID: tombeckmann@online.de-20120404004458-ax5hxzudbusbp6gc
Fixed bug #910961 (hopefully, no unity to test)

Show diffs side-by-side

added added

removed removed

Lines of Context:
261
261
                        settings.sy = this.monitor_rec.y;
262
262
                        settings.ex = settings.sx + this.monitor_rec.width - 1;
263
263
                        settings.ey = settings.sy + this.monitor_rec.height - 1;
264
 
 
 
264
            
265
265
                        recordingarea_combo.changed.connect ( () => {
266
266
                                if (recordingarea_combo.active_id != "full"){
267
267
                                        selectionarea = new Eidete.Widgets.SelectionArea ();
402
402
                        if (this.get_windows ().length () == 0){
403
403
                                this.start_and_build ();
404
404
                        }else{
405
 
                                this.get_windows ().data.present ();
 
405
                        if (pause_rec)
 
406
                                this.main_window.present ();
 
407
                                else if (finish_rec) {
 
408
                                    this.recording = false;
 
409
                                this.pipeline.set_state (State.NULL);
 
410
                    var end = new Eidete.Widgets.EndDialog (this);
 
411
                    end.show_all ();
 
412
                    this.main_window.hide ();
 
413
                                }
406
414
                        }
407
415
                }
408
416
                
600
608
};
601
609
 
602
610
 
603
 
public static int main (string [] args){
 
611
public static int main (string [] args) {
604
612
        var context = new OptionContext ("ctx");
605
613
        context.add_main_entries (entries, "eidete");
606
614
        context.add_group (Gtk.get_option_group (true));
610
618
        
611
619
        Gst.init (ref args);
612
620
        
613
 
        if (pause_rec){
614
 
                eidete.main_window.deiconify ();
615
 
        }else if (finish_rec && eidete.recording){
616
 
                eidete.pipeline.set_state (State.NULL);
617
 
                var end = new Eidete.Widgets.EndDialog (eidete);
618
 
                end.show_all ();
619
 
                eidete.main_window.hide ();
620
 
        }else{
621
 
                eidete = new Eidete.EideteApp ();
622
 
                
623
 
                return eidete.run (args);
624
 
        }
625
 
        return 0;
 
621
        eidete = new Eidete.EideteApp ();
 
622
        
 
623
        return eidete.run (args);
626
624
}
627
625