summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a556f5c)
raw | patch | inline | side by side (parent: a556f5c)
author | mental <mental@users.sourceforge.net> | |
Sat, 27 May 2006 05:47:13 +0000 (05:47 +0000) | ||
committer | mental <mental@users.sourceforge.net> | |
Sat, 27 May 2006 05:47:13 +0000 (05:47 +0000) |
ChangeLog | patch | blob | history | |
src/dialogs/layers-panel.cpp | patch | blob | history | |
src/dialogs/layers-panel.h | patch | blob | history |
diff --git a/ChangeLog b/ChangeLog
index 3edb6e86b414ba4e0f6b38527c88645297d7f885..42b1325b9df9a698211a0e2d5640b9a0c7803bbd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
+2006-05-26 MenTaLguY <mental@rydia.net>
+
+ * src/dialogs/layers-panel.h, src/dialogs/layers-panel.cpp:
+
+ make button labels translatable, and use HButtonBox instead of HBox for
+ better appearance
+
2006-05-26 Jon A. Cruz <jon@joncruz.org>
* src/layer-manager.cpp, src/layer-manager.h,
index 31e9823c6a4797952061a8ae9ad9ecfe94cccd7e..4af154062b004563b70255de2cc2da51a3e5f028 100644 (file)
# include <config.h>
#endif
+#include <glibmm/i18n.h>
+
#include <gtk/gtkstock.h>
#include "inkscape.h"
const Glib::ustring& path,
const Gdk::Rectangle& background_area,
const Gdk::Rectangle& cell_area,
- Gtk::CellRendererState flags) {
- bool val = false;
+ Gtk::CellRendererState flags)
+ {
_signal_toggled.emit(path);
- return val;
+ return false;
}
SPDesktop* targetDesktop = SP_ACTIVE_DESKTOP;
+ _buttonsRow.set_child_min_width( 16 );
+
Gtk::Button* btn = manage( new Gtk::Button() );
- _styleButton( *btn, targetDesktop, SP_VERB_LAYER_NEW, GTK_STOCK_ADD, "Ne" );
+ _styleButton( *btn, targetDesktop, SP_VERB_LAYER_NEW, GTK_STOCK_ADD, _("New") );
btn->signal_clicked().connect( sigc::bind( sigc::mem_fun(*this, &LayersPanel::_takeAction), (int)BUTTON_NEW) );
- _buttonsRow.pack_start( *btn );
+ _buttonsRow.add( *btn );
btn = manage( new Gtk::Button() );
- _styleButton( *btn, targetDesktop, SP_VERB_LAYER_TO_TOP, GTK_STOCK_GOTO_TOP, "Top" );
+ _styleButton( *btn, targetDesktop, SP_VERB_LAYER_TO_TOP, GTK_STOCK_GOTO_TOP, _("Top") );
btn->signal_clicked().connect( sigc::bind( sigc::mem_fun(*this, &LayersPanel::_takeAction), (int)BUTTON_TOP) );
_watchingNonTop.push_back( btn );
- _buttonsRow.pack_start( *btn );
+ _buttonsRow.add( *btn );
btn = manage( new Gtk::Button() );
- _styleButton( *btn, targetDesktop, SP_VERB_LAYER_RAISE, GTK_STOCK_GO_UP, "Up" );
+ _styleButton( *btn, targetDesktop, SP_VERB_LAYER_RAISE, GTK_STOCK_GO_UP, _("Up") );
btn->signal_clicked().connect( sigc::bind( sigc::mem_fun(*this, &LayersPanel::_takeAction), (int)BUTTON_UP) );
_watchingNonTop.push_back( btn );
- _buttonsRow.pack_start( *btn );
+ _buttonsRow.add( *btn );
btn = manage( new Gtk::Button() );
- _styleButton( *btn, targetDesktop, SP_VERB_LAYER_LOWER, GTK_STOCK_GO_DOWN, "Dn" );
+ _styleButton( *btn, targetDesktop, SP_VERB_LAYER_LOWER, GTK_STOCK_GO_DOWN, _("Dn") );
btn->signal_clicked().connect( sigc::bind( sigc::mem_fun(*this, &LayersPanel::_takeAction), (int)BUTTON_DOWN) );
_watchingNonBottom.push_back( btn );
- _buttonsRow.pack_start( *btn );
+ _buttonsRow.add( *btn );
btn = manage( new Gtk::Button() );
- _styleButton( *btn, targetDesktop, SP_VERB_LAYER_TO_BOTTOM, GTK_STOCK_GOTO_BOTTOM, "Btm" );
+ _styleButton( *btn, targetDesktop, SP_VERB_LAYER_TO_BOTTOM, GTK_STOCK_GOTO_BOTTOM, _("Bot") );
btn->signal_clicked().connect( sigc::bind( sigc::mem_fun(*this, &LayersPanel::_takeAction), (int)BUTTON_BOTTOM) );
_watchingNonBottom.push_back( btn );
- _buttonsRow.pack_start( *btn );
+ _buttonsRow.add( *btn );
// btn = manage( new Gtk::Button("Dup") );
// btn->signal_clicked().connect( sigc::bind( sigc::mem_fun(*this, &LayersPanel::_takeAction), (int)BUTTON_DUPLICATE) );
-// _buttonsRow.pack_start( *btn );
+// _buttonsRow.add( *btn );
btn = manage( new Gtk::Button() );
- _styleButton( *btn, targetDesktop, SP_VERB_LAYER_DELETE, GTK_STOCK_REMOVE, "X" );
+ _styleButton( *btn, targetDesktop, SP_VERB_LAYER_DELETE, GTK_STOCK_REMOVE, _("X") );
btn->signal_clicked().connect( sigc::bind( sigc::mem_fun(*this, &LayersPanel::_takeAction), (int)BUTTON_DELETE) );
_watching.push_back( btn );
- _buttonsRow.pack_start( *btn );
+ _buttonsRow.add( *btn );
index f7a9f079959050e7cfc299e74418b4580d211c6b..63cff3ede2f16960bcb3e7be39974a5bd929baec 100644 (file)
#include <gtkmm/treestore.h>
#include <gtkmm/tooltips.h>
#include <gtkmm/scrolledwindow.h>
+#include <gtkmm/buttonbox.h>
#include "ui/widget/panel.h"
//#include "ui/previewholder.h"
Gtk::Tooltips _tips;
Gtk::TreeView _tree;
- Gtk::HBox _buttonsRow;
+ Gtk::HButtonBox _buttonsRow;
Gtk::ScrolledWindow _scroller;
Gtk::Menu _popupMenu;
};