Commit 526b4ad2 authored by Jim Nelson's avatar Jim Nelson

#963: Now marking toolbar items as important where appropriate.

parent 831417fa
......@@ -118,6 +118,7 @@ class SlideshowPage : SinglePhotoPage {
settings_button.set_label(_("Settings"));
settings_button.set_tooltip_text(_("Change slideshow settings"));
settings_button.clicked += on_change_settings;
settings_button.is_important = true;
toolbar.insert(settings_button, -1);
}
......@@ -432,6 +433,7 @@ public class CollectionPage : CheckerboardPage {
rotate_button.set_label(Resources.ROTATE_CW_LABEL);
rotate_button.set_tooltip_text(Resources.ROTATE_CW_TOOLTIP);
rotate_button.sensitive = false;
rotate_button.is_important = true;
rotate_button.clicked += on_rotate_clockwise;
toolbar.insert(rotate_button, -1);
......@@ -441,6 +443,7 @@ public class CollectionPage : CheckerboardPage {
slideshow_button.set_label(_("Slideshow"));
slideshow_button.set_tooltip_text(_("Start a slideshow of these photos"));
slideshow_button.sensitive = false;
slideshow_button.is_important = true;
slideshow_button.clicked += on_slideshow;
toolbar.insert(slideshow_button, -1);
......
......@@ -257,6 +257,7 @@ public class ImportPage : CheckerboardPage {
hide_imported.sensitive = false;
hide_imported.active = false;
Gtk.ToolItem hide_item = new Gtk.ToolItem();
hide_item.is_important = true;
hide_item.add(hide_imported);
toolbar.insert(hide_item, -1);
......@@ -279,6 +280,7 @@ public class ImportPage : CheckerboardPage {
import_selected_button.set_label("Import Selected");
import_selected_button.set_tooltip_text("Import the selected photos into your library");
import_selected_button.clicked += on_import_selected;
import_selected_button.is_important = true;
import_selected_button.sensitive = false;
toolbar.insert(import_selected_button, -1);
......@@ -288,6 +290,7 @@ public class ImportPage : CheckerboardPage {
import_all_button.set_tooltip_text("Import all the photos on this camera into your library");
import_all_button.clicked += on_import_all;
import_all_button.sensitive = false;
import_all_button.is_important = true;
toolbar.insert(import_all_button, -1);
......
......@@ -69,6 +69,7 @@ public abstract class EditingHostPage : SinglePhotoPage {
rotate_button.set_label(Resources.ROTATE_CW_LABEL);
rotate_button.set_tooltip_text(Resources.ROTATE_CW_TOOLTIP);
rotate_button.clicked += on_rotate_clockwise;
rotate_button.is_important = true;
toolbar.insert(rotate_button, -1);
// crop tool
......@@ -76,6 +77,7 @@ public abstract class EditingHostPage : SinglePhotoPage {
crop_button.set_label(_("Crop"));
crop_button.set_tooltip_text(_("Crop the photo's size"));
crop_button.toggled += on_crop_toggled;
crop_button.is_important = true;
toolbar.insert(crop_button, -1);
// redeye reduction tool
......@@ -83,6 +85,7 @@ public abstract class EditingHostPage : SinglePhotoPage {
redeye_button.set_label(_("Red-eye"));
redeye_button.set_tooltip_text(_("Reduce or eliminate any red-eye effects in the photo"));
redeye_button.toggled += on_redeye_toggled;
redeye_button.is_important = true;
toolbar.insert(redeye_button, -1);
// adjust tool
......@@ -90,6 +93,7 @@ public abstract class EditingHostPage : SinglePhotoPage {
adjust_button.set_label(_("Adjust"));
adjust_button.set_tooltip_text(_("Adjust the photo's color and tone"));
adjust_button.toggled += on_adjust_toggled;
adjust_button.is_important = true;
toolbar.insert(adjust_button, -1);
// ehance tool
......@@ -97,6 +101,7 @@ public abstract class EditingHostPage : SinglePhotoPage {
enhance_button.set_label(_("Enhance"));
enhance_button.set_tooltip_text(_("Automatically improve the photo's appearance"));
enhance_button.clicked += on_enhance;
enhance_button.is_important = true;
toolbar.insert(enhance_button, -1);
// separator to force next/prev buttons to right side of toolbar
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment