Author: Yu Chen <[email protected]>
Date: Tue Jan 10 00:05:03 2012 +0800
Remove the experienced code
---
synfig-studio/src/gui/preview.cpp | 4 +---
synfig-studio/src/gui/preview.h | 1 -
2 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/synfig-studio/src/gui/preview.cpp
b/synfig-studio/src/gui/preview.cpp
index 625a7f6..7f232d2 100644
--- a/synfig-studio/src/gui/preview.cpp
+++ b/synfig-studio/src/gui/preview.cpp
@@ -299,7 +299,6 @@ void studio::Preview::frame_finish(const Preview_Target
*targ)
Widget_Preview::Widget_Preview():
Gtk::Table(1, 5),
- align_preview(0.5, 0.5, 0.8, 0.8),
adj_time_scrub(0, 0, 1000, 0, 10, 0),
scr_time_scrub(adj_time_scrub),
b_loop(/*_("Loop")*/),
@@ -428,8 +427,7 @@ Widget_Preview::Widget_Preview():
disp_sound.set_size_request(-1,32);
// attach all widgets
- attach(align_preview, 0, 1, 0, 1, Gtk::EXPAND|Gtk::FILL,
Gtk::EXPAND|Gtk::FILL, 8);
- align_preview.add(draw_area);
+ attach(draw_area, 0, 1, 0, 1, Gtk::EXPAND|Gtk::FILL,
Gtk::EXPAND|Gtk::FILL, 0);
attach(scr_time_scrub, 0, 1, 1, 2, Gtk::EXPAND|Gtk::FILL, Gtk::SHRINK);
attach(*controller, 0, 1, 2, 3, Gtk::EXPAND|Gtk::FILL,
Gtk::SHRINK|Gtk::FILL);
attach(*lastrendered, 0, 1, 3, 4, Gtk::EXPAND|Gtk::FILL, Gtk::SHRINK);
diff --git a/synfig-studio/src/gui/preview.h b/synfig-studio/src/gui/preview.h
index a996ede..65d3cde 100644
--- a/synfig-studio/src/gui/preview.h
+++ b/synfig-studio/src/gui/preview.h
@@ -166,7 +166,6 @@ public:
class Widget_Preview : public Gtk::Table
{
- Gtk::Alignment align_preview;
Gtk::DrawingArea draw_area;
Gtk::Adjustment adj_time_scrub; //the adjustment for the
managed scrollbar
// Gtk::HScrollbar scr_time_scrub;
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl