From: dooglus Date: Sun, 17 Feb 2008 12:12:55 +0000 (+0000) Subject: Add an icon to show the Setup dialog. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=9738366966c905c2b0b4ffa77ece7a3d317e32cd;p=synfig.git Add an icon to show the Setup dialog. git-svn-id: http://svn.voria.com/code@1730 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-studio/trunk/src/gtkmm/toolbox.cpp b/synfig-studio/trunk/src/gtkmm/toolbox.cpp index 24e4fe1..9f08cc4 100644 --- a/synfig-studio/trunk/src/gtkmm/toolbox.cpp +++ b/synfig-studio/trunk/src/gtkmm/toolbox.cpp @@ -280,9 +280,11 @@ Toolbox::Toolbox(): ADD_TOOLBOX_BUTTON(button_save_all,"synfig-saveall",_("Save All")); TOOLBOX_BUTTON(button_undo,"gtk-undo",_("Undo")); TOOLBOX_BUTTON(button_redo,"gtk-redo",_("Redo")); + ADD_TOOLBOX_BUTTON(button_setup,"gtk-properties",_("Setup")); ADD_TOOLBOX_BUTTON(button_about,"synfig-about",_("About Synfig Studio")); ADD_TOOLBOX_BUTTON(button_help,"gtk-help",_("Help")); + button_setup->signal_clicked().connect(sigc::ptr_fun(studio::App::show_setup)); button_about->signal_clicked().connect(sigc::ptr_fun(studio::App::dialog_about)); button_help->signal_clicked().connect(sigc::ptr_fun(studio::App::dialog_help)); button_new->signal_clicked().connect(sigc::ptr_fun(studio::App::new_instance)); @@ -294,16 +296,17 @@ Toolbox::Toolbox(): button_redo->signal_clicked().connect(sigc::ptr_fun(studio::App::redo)); // Create the file button cluster - Gtk::Table *file_buttons=manage(new class Gtk::Table(4, 4, false)); + Gtk::Table *file_buttons=manage(new class Gtk::Table()); file_buttons->attach(*button_new, 0,1, 0,1, Gtk::SHRINK, Gtk::SHRINK, 0, 0); file_buttons->attach(*button_open, 1,2, 0,1, Gtk::SHRINK, Gtk::SHRINK, 0, 0); file_buttons->attach(*button_save, 2,3, 0,1, Gtk::SHRINK, Gtk::SHRINK, 0, 0); file_buttons->attach(*button_saveas, 3,4, 0,1, Gtk::SHRINK, Gtk::SHRINK, 0, 0); + file_buttons->attach(*button_save_all, 4,5, 0,1, Gtk::SHRINK, Gtk::SHRINK, 0, 0); - file_buttons->attach(*button_save_all, 0,1, 1,2, Gtk::SHRINK, Gtk::SHRINK, 0, 0); - file_buttons->attach(*button_undo, 1,2, 1,2, Gtk::SHRINK, Gtk::SHRINK, 0, 0); - file_buttons->attach(*button_redo, 2,3, 1,2, Gtk::SHRINK, Gtk::SHRINK, 0, 0); + file_buttons->attach(*button_undo, 0,1, 1,2, Gtk::SHRINK, Gtk::SHRINK, 0, 0); + file_buttons->attach(*button_redo, 1,2, 1,2, Gtk::SHRINK, Gtk::SHRINK, 0, 0); + file_buttons->attach(*button_setup, 2,3, 1,2, Gtk::SHRINK, Gtk::SHRINK, 0, 0); file_buttons->attach(*button_about, 3,4, 1,2, Gtk::SHRINK, Gtk::SHRINK, 0, 0); file_buttons->attach(*button_help, 4,5, 1,2, Gtk::SHRINK, Gtk::SHRINK, 0, 0);