[ease] [editor] Properly select slides in the slide panel



commit babb2151fb2742e98a247601f9cb0c660fb1e54a
Author: Nate Stedman <natesm gmail com>
Date:   Sat Aug 7 18:21:40 2010 -0400

    [editor] Properly select slides in the slide panel
    
    The row the the SlideButtonPanel is properly selected when:
    	- The document is first created
    	- A slide is selected in the slide sorter

 ease/ease-editor-window.vala |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/ease/ease-editor-window.vala b/ease/ease-editor-window.vala
index 521cd7d..900632c 100644
--- a/ease/ease-editor-window.vala
+++ b/ease/ease-editor-window.vala
@@ -265,7 +265,7 @@ internal class Ease.EditorWindow : Gtk.Window
 			return true;
 		});
 		
-		set_slide(0);
+		slide_button_panel.select_slide(document.get_slide(0));
 		update_undo();
 	}
 	
@@ -526,7 +526,7 @@ internal class Ease.EditorWindow : Gtk.Window
 			
 			// when a slide is clicked in the sorter, switch back here
 			sorter.display_slide.connect((s) => {
-				set_slide(document.index_of(s));
+				slide_button_panel.select_slide(s);
 				show_editor.active = true;
 			});
 		}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]