Labels of the preview's bottom buttons removed, to gain some space when used on small screen or with big fonts (accessibility)
This commit is contained in:
@@ -135,25 +135,19 @@ EditorPanel::EditorPanel (FilePanel* filePanel) : beforePreviewHandler(NULL), be
|
|||||||
// Save buttons
|
// Save buttons
|
||||||
Gtk::HBox* iops = Gtk::manage (new Gtk::HBox ());
|
Gtk::HBox* iops = Gtk::manage (new Gtk::HBox ());
|
||||||
|
|
||||||
Gtk::HBox * saveButtonBox = Gtk::manage(new Gtk::HBox());
|
Gtk::Image *saveButtonImage = Gtk::manage (new Gtk::Image (Gtk::StockID("gtk-save"), Gtk::ICON_SIZE_BUTTON));
|
||||||
saveButtonBox->pack_start(*Gtk::manage (new Gtk::Image (Gtk::StockID("gtk-save"), Gtk::ICON_SIZE_BUTTON)), Gtk::PACK_SHRINK, 2);
|
|
||||||
saveButtonBox->pack_start(*Gtk::manage (new Gtk::Label (M("MAIN_BUTTON_SAVE"))), Gtk::PACK_SHRINK, 2);
|
|
||||||
saveimgas = Gtk::manage (new Gtk::Button ());
|
saveimgas = Gtk::manage (new Gtk::Button ());
|
||||||
saveimgas->add(*saveButtonBox);
|
saveimgas->add(*saveButtonImage);
|
||||||
saveimgas->set_tooltip_markup(M("MAIN_BUTTON_SAVE_TOOLTIP"));
|
saveimgas->set_tooltip_markup(M("MAIN_BUTTON_SAVE_TOOLTIP"));
|
||||||
|
|
||||||
Gtk::HBox * queueButtonBox = Gtk::manage(new Gtk::HBox());
|
Gtk::Image *queueButtonImage = Gtk::manage (new Gtk::Image (Gtk::StockID("gtk-execute"), Gtk::ICON_SIZE_BUTTON));
|
||||||
queueButtonBox->pack_start(*Gtk::manage (new Gtk::Image (Gtk::StockID("gtk-execute"), Gtk::ICON_SIZE_BUTTON)), Gtk::PACK_SHRINK, 2);
|
|
||||||
queueButtonBox->pack_start(*Gtk::manage (new Gtk::Label (M("MAIN_BUTTON_PUTTOQUEUE"))), Gtk::PACK_SHRINK, 2);
|
|
||||||
queueimg = Gtk::manage (new Gtk::Button ());
|
queueimg = Gtk::manage (new Gtk::Button ());
|
||||||
queueimg->add(*queueButtonBox);
|
queueimg->add(*queueButtonImage);
|
||||||
queueimg->set_tooltip_markup(M("MAIN_BUTTON_PUTTOQUEUE_TOOLTIP"));
|
queueimg->set_tooltip_markup(M("MAIN_BUTTON_PUTTOQUEUE_TOOLTIP"));
|
||||||
|
|
||||||
Gtk::HBox * sendToEditorButtonBox = Gtk::manage(new Gtk::HBox());
|
Gtk::Image *sendToEditorButtonImage = Gtk::manage (new Gtk::Image (argv0+"/images/gimp.png"));
|
||||||
sendToEditorButtonBox->pack_start(*Gtk::manage (new Gtk::Image (argv0+"/images/gimp.png")), Gtk::PACK_SHRINK, 2);
|
|
||||||
sendToEditorButtonBox->pack_start(*Gtk::manage (new Gtk::Label (M("MAIN_BUTTON_SENDTOEDITOR"))), Gtk::PACK_SHRINK, 2);
|
|
||||||
sendtogimp = Gtk::manage (new Gtk::Button ());
|
sendtogimp = Gtk::manage (new Gtk::Button ());
|
||||||
sendtogimp->add(*sendToEditorButtonBox);
|
sendtogimp->add(*sendToEditorButtonImage);
|
||||||
sendtogimp->set_tooltip_markup(M("MAIN_BUTTON_SENDTOEDITOR_TOOLTIP"));
|
sendtogimp->set_tooltip_markup(M("MAIN_BUTTON_SENDTOEDITOR_TOOLTIP"));
|
||||||
|
|
||||||
iops->pack_start (*saveimgas, Gtk::PACK_SHRINK);
|
iops->pack_start (*saveimgas, Gtk::PACK_SHRINK);
|
||||||
|
Reference in New Issue
Block a user