Skip to content

Commit

Permalink
Add a checkbox to use Cairo render a the Preview dialog.
Browse files Browse the repository at this point in the history
  • Loading branch information
genete committed Mar 4, 2013
1 parent f3ab187 commit 370a2cd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions synfig-studio/src/gui/dialogs/dialog_preview.cpp
Expand Up @@ -117,6 +117,7 @@ Dialog_PreviewOptions::Dialog_PreviewOptions()
:Dialog(_("Preview Options"),false,true),
adj_zoom(0.5,0.1,5.0,0.1,0.2),
adj_fps(15,1,120,1,5),
check_use_cairo(_("Use _Cairo render"), false),
check_overbegin(_("_Begin time"),false),
check_overend(_("_End time"),false),
settings(this,"prevoptions")
Expand Down Expand Up @@ -164,6 +165,10 @@ settings(this,"prevoptions")
generalTable->attach(*fpsLabel, 0, 1, 1, 2, Gtk::SHRINK | Gtk::FILL, Gtk::EXPAND | Gtk::FILL, 0, 0);
generalTable->attach(*fpsSpinner, 1, 2, 1, 2, Gtk::EXPAND | Gtk::FILL, Gtk::EXPAND | Gtk::FILL, 0, 0);

check_use_cairo.set_alignment(0, 0.5);
check_use_cairo.set_use_underline(TRUE);
generalTable->attach(check_use_cairo, 0, 1, 2, 3, Gtk::SHRINK | Gtk::FILL, Gtk::EXPAND | Gtk::FILL, 0, 0);

Gtk::Frame *timeFrame = manage(new Gtk::Frame(_("Time settings")));
timeFrame->set_shadow_type(Gtk::SHADOW_NONE);
((Gtk::Label *) timeFrame->get_label_widget())->set_markup(_("<b>Time settings</b>"));
Expand Down
2 changes: 2 additions & 0 deletions synfig-studio/src/gui/dialogs/dialog_preview.h
Expand Up @@ -87,6 +87,8 @@ class Dialog_PreviewOptions : public Gtk::Dialog
Gtk::Adjustment adj_zoom; // factor at which to resize the window...

Gtk::Adjustment adj_fps; // how often to take samples of the animation

Gtk::CheckButton check_use_cairo;

studio::Widget_Time time_begin;
studio::Widget_Time time_end;
Expand Down

0 comments on commit 370a2cd

Please sign in to comment.