summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: dc4634a)
raw | patch | inline | side by side (parent: dc4634a)
author | mderezynski <mderezynski@users.sourceforge.net> | |
Thu, 18 May 2006 01:36:39 +0000 (01:36 +0000) | ||
committer | mderezynski <mderezynski@users.sourceforge.net> | |
Thu, 18 May 2006 01:36:39 +0000 (01:36 +0000) |
src/dialogs/text-edit.cpp | patch | blob | history | |
src/widgets/font-selector.cpp | patch | blob | history | |
src/widgets/toolbox.cpp | patch | blob | history | |
src/widgets/toolbox.h | patch | blob | history |
index 51455ec546f7b81a633cfcecfe83169e8285f4dc..27304bb1f79e90e8b4a0c4783c5c908604507150 100644 (file)
unsigned items = 0;
const GSList *item_list = sp_desktop_selection(desktop)->itemList();
-
SPCSSAttr *css = sp_get_text_dialog_style ();
-
sp_desktop_set_style(desktop, css, true);
for (; item_list != NULL; item_list = item_list->next) {
// complete the transaction
sp_document_done (sp_desktop_document (SP_ACTIVE_DESKTOP));
-
gtk_widget_set_sensitive (apply, FALSE);
-
sp_repr_css_attr_unref (css);
-
g_object_set_data (G_OBJECT (dlg), "blocked", GINT_TO_POINTER (FALSE));
}
-
-
static void
sp_text_edit_dialog_close (GtkButton *button, GtkWidget *dlg)
{
GtkWidget *preview, *apply, *def;
if (g_object_get_data (G_OBJECT (dlg), "blocked"))
- {
- g_message ("Blocked");
return;
- }
SPItem *text = sp_ted_get_selected_text_item ();
index 7aff7ee3d643f6278d26e3fa445195a2d9863391..ec619c50c202bf1d6f367d028de83ed1f13e5aca 100644 (file)
@@ -389,8 +389,7 @@ void sp_font_selector_set_font (SPFontSelector *fsel, font_instance *font, doubl
gchar family[256];
font->Family (family, 256);
- Inkscape::FontLister *fontlister = Inkscape::FontLister::get_instance();
- Gtk::TreePath path = fontlister->get_row_for_font (family);
+ Gtk::TreePath path = Inkscape::FontLister::get_instance()->get_row_for_font (family);
fsel->block_emit = TRUE;
gtk_tree_selection_select_path (gtk_tree_view_get_selection (GTK_TREE_VIEW (fsel->family_treeview)), path.gobj());
index 3d6434bf2f6de97f031e3da4fcc0d3e46564f6a8..7fd927cd4d77991cbb6f3efe81ae535b6411ce52 100644 (file)
--- a/src/widgets/toolbox.cpp
+++ b/src/widgets/toolbox.cpp
# include "config.h"
#endif
+#include <gtkmm.h>
#include <gtk/gtk.h>
#include "widgets/button.h"
#include "sp-star.h"
#include "sp-spiral.h"
#include "sp-ellipse.h"
+#include "sp-text.h"
+#include "sp-flowtext.h"
+#include "style.h"
#include "selection.h"
#include "document-private.h"
+#include "desktop-style.h"
+#include "../libnrtype/font-lister.h"
#include "mod360.h"
static GtkWidget *sp_calligraphy_toolbox_new(SPDesktop *desktop);
static GtkWidget *sp_dropper_toolbox_new(SPDesktop *desktop);
static GtkWidget *sp_empty_toolbox_new(SPDesktop *desktop);
-static GtkWidget *sp_text_toolbox_new(SPDesktop *desktop);
static GtkWidget *sp_connector_toolbox_new(SPDesktop *desktop);
+static GtkWidget *sp_text_toolbox_new (SPDesktop *desktop);
static struct {
{ NULL, NULL, NULL }
};
-static void toolbox_set_desktop(GtkWidget *toolbox, SPDesktop *desktop, SetupFunction setup_func, UpdateFunction update_func, sigc::connection*);
+static void toolbox_set_desktop (GtkWidget *toolbox, SPDesktop *desktop, SetupFunction setup_func, UpdateFunction update_func, sigc::connection*);
-static void setup_tool_toolbox(GtkWidget *toolbox, SPDesktop *desktop);
-static void update_tool_toolbox(SPDesktop *desktop, SPEventContext *eventcontext, GtkWidget *toolbox);
-static void setup_aux_toolbox(GtkWidget *toolbox, SPDesktop *desktop);
-static void update_aux_toolbox(SPDesktop *desktop, SPEventContext *eventcontext, GtkWidget *toolbox);
-static void setup_commands_toolbox(GtkWidget *toolbox, SPDesktop *desktop);
-static void update_commands_toolbox(SPDesktop *desktop, SPEventContext *eventcontext, GtkWidget *toolbox);
+static void setup_tool_toolbox (GtkWidget *toolbox, SPDesktop *desktop);
+static void update_tool_toolbox (SPDesktop *desktop, SPEventContext *eventcontext, GtkWidget *toolbox);
+
+static void setup_aux_toolbox (GtkWidget *toolbox, SPDesktop *desktop);
+static void update_aux_toolbox (SPDesktop *desktop, SPEventContext *eventcontext, GtkWidget *toolbox);
+
+static void setup_commands_toolbox (GtkWidget *toolbox, SPDesktop *desktop);
+static void update_commands_toolbox (SPDesktop *desktop, SPEventContext *eventcontext, GtkWidget *toolbox);
/* Global text entry widgets necessary for update */
/* GtkWidget *dropper_rgb_entry,
@@ -162,7 +170,6 @@ sp_toolbox_button_new(GtkWidget *t, Inkscape::IconSize size, gchar const *pxname
return b;
}
-
GtkWidget *
sp_toolbox_button_new_from_verb_with_doubleclick(GtkWidget *t, Inkscape::IconSize size, SPButtonType type,
Inkscape::Verb *verb, Inkscape::Verb *doubleclick_verb,
toolbox_set_desktop(gtk_bin_get_child(GTK_BIN(toolbox)), desktop, setup_commands_toolbox, update_commands_toolbox, static_cast<sigc::connection*>(g_object_get_data(G_OBJECT(toolbox), "event_context_connection")));
}
-
static void
toolbox_set_desktop(GtkWidget *toolbox, SPDesktop *desktop, SetupFunction setup_func, UpdateFunction update_func, sigc::connection *conn)
{
{
//Call back for letter rotation spinbutton
}*/
-static GtkWidget *
-sp_text_toolbox_new(SPDesktop *desktop)
+
+static void
+sp_text_toolbox_selection_changed (Inkscape::Selection *selection, GObject *tbl)
{
- GtkWidget *tbl = gtk_hbox_new(FALSE, 0);
-/* GtkWidget *us = (GtkWidget *)gtk_object_get_data(GTK_OBJECT(tbl), "units");
- GtkTooltips *tt = gtk_tooltips_new();
- GtkWidget *group;
+ GtkWidget *cbox = GTK_WIDGET(g_object_get_data (G_OBJECT(tbl), "combo-box-family"));
+ Inkscape::XML::Node *repr = 0;
+// Inkscape::XML::Node *oldrepr = 0;
+ SPStyle *style = 0;
+ bool multiple = false;
+ const GSList *items = selection->itemList();
- //Font Family
+ for ( ; items ; items = items->next)
+ {
+ if (SP_IS_TEXT((SPItem *) items->data))
{
- GtkWidget *c = gtk_combo_new ();
- gtk_combo_set_value_in_list ((GtkCombo *) c, FALSE, FALSE);
- gtk_combo_set_use_arrows ((GtkCombo *) c, TRUE);
- gtk_combo_set_use_arrows_always ((GtkCombo *) c, TRUE);
- gtk_widget_set_size_request (c, 144, -1);
- aux_toolbox_space(tbl, 1);
- gtk_box_pack_start (GTK_BOX (tbl), c, FALSE, FALSE, 0);
+ if (!style)
+ {
+ repr = SP_OBJECT_REPR((SPItem *) items->data);
+ style = sp_style_new ();
+ sp_style_read_from_repr (style, repr);
+ }
+ else
+ {
+ multiple = true;
+ }
}
+ }
+
+ if (!style) return;
+ if (multiple)
+ {
+ g_object_set_data (G_OBJECT (cbox), "block", GINT_TO_POINTER(1));
+ gtk_combo_box_set_active (GTK_COMBO_BOX (cbox), -1);
+ g_object_set_data (G_OBJECT (cbox), "block", GINT_TO_POINTER(0));
+ return;
+ }
+
+ Gtk::TreePath path = Inkscape::FontLister::get_instance()->get_row_for_font (style->text->font_family.value);
+
+ g_object_set_data (G_OBJECT (cbox), "block", GINT_TO_POINTER(1));
+
+ gtk_combo_box_set_active (GTK_COMBO_BOX (cbox), gtk_tree_path_get_indices (path.gobj())[0]);
+
+ SPDesktop *desktop = SP_ACTIVE_DESKTOP;
+ SPCSSAttr *css = sp_repr_css_attr_new ();
+ items = sp_desktop_selection(desktop)->itemList();
- //Font Style
+ sp_repr_css_set_property (css, "font-family", gtk_combo_box_get_active_text (GTK_COMBO_BOX(cbox)));
+ sp_desktop_set_style (desktop, css, true);
+
+ for (; items != NULL; items = items->next)
+ {
+ // apply style to the reprs of all text objects in the selection
+ if (SP_IS_TEXT (items->data))
{
- GtkWidget *c = gtk_combo_new ();
- gtk_combo_set_value_in_list ((GtkCombo *) c, FALSE, FALSE);
- gtk_combo_set_use_arrows ((GtkCombo *) c, TRUE);
- gtk_combo_set_use_arrows_always ((GtkCombo *) c, TRUE);
- gtk_widget_set_size_request (c, 88, -1);
- aux_toolbox_space(tbl, 1);
- gtk_box_pack_start (GTK_BOX (tbl), c, FALSE, FALSE, 0);
+ // backwards compatibility:
+ SP_OBJECT_REPR(items->data)->setAttribute("sodipodi:linespacing", sp_repr_css_property (css, "line-height", NULL));
}
+ }
- //Font Size
- {
- GtkWidget *c = gtk_combo_new ();
- gtk_combo_set_value_in_list ((GtkCombo *) c, FALSE, FALSE);
- gtk_combo_set_use_arrows ((GtkCombo *) c, TRUE);
- gtk_combo_set_use_arrows_always ((GtkCombo *) c, TRUE);
- gtk_widget_set_size_request (c, 64, -1);
- aux_toolbox_space(tbl, 1);
- gtk_box_pack_start (GTK_BOX (tbl), c, FALSE, FALSE, 0);
+ // complete the transaction
+ sp_document_done (sp_desktop_document (SP_ACTIVE_DESKTOP));
+ sp_repr_css_attr_unref (css);
+
+ g_object_set_data (G_OBJECT (cbox), "block", GINT_TO_POINTER(0));
+}
+
+static void
+sp_text_toolbox_family_changed (GtkComboBox *cbox,
+ GtkWidget *tbl)
+{
+ SPDesktop *desktop = SP_ACTIVE_DESKTOP;
+ unsigned items = 0;
+ const GSList *item_list = sp_desktop_selection(desktop)->itemList();
+ SPCSSAttr *css = sp_repr_css_attr_new ();
+
+ if (GPOINTER_TO_INT(g_object_get_data (G_OBJECT (cbox), "block")) != 0) return;
+
+ sp_repr_css_set_property (css, "font-family", gtk_combo_box_get_active_text (cbox));
+ sp_desktop_set_style(desktop, css, true);
+
+ for (; item_list != NULL; item_list = item_list->next) {
+ // apply style to the reprs of all text objects in the selection
+ if (SP_IS_TEXT (item_list->data)) {
+
+ // backwards compatibility:
+ SP_OBJECT_REPR(item_list->data)->setAttribute("sodipodi:linespacing",
+sp_repr_css_property (css, "line-height", NULL));
+
+ ++items;
}
+ else if (SP_IS_FLOWTEXT (item_list->data))
+ // no need to set sodipodi:linespacing, because Inkscape never supported it on flowtext
+ ++items;
+ }
+
+ // complete the transaction
+ sp_document_done (sp_desktop_document (SP_ACTIVE_DESKTOP));
+ sp_repr_css_attr_unref (css);
+}
+
+static GtkWidget*
+sp_text_toolbox_new (SPDesktop *desktop)
+{
+ GtkWidget *tbl = gtk_hbox_new (FALSE, 0);
+
+#if 0
+ GtkWidget *us = (GtkWidget *)gtk_object_get_data(GTK_OBJECT(tbl), "units");
+ GtkTooltips *tt = gtk_tooltips_new();
+ GtkWidget *group;
+#endif
+
+ //Font Family
+ {
+ GtkWidget *cbox = gtk_combo_box_entry_new_text ();
+ Glib::RefPtr<Gtk::ListStore> store = Inkscape::FontLister::get_instance()->get_font_list();
+ gtk_combo_box_set_model (GTK_COMBO_BOX (cbox), GTK_TREE_MODEL (Glib::unwrap(store)));
+ gtk_widget_set_size_request (cbox, 250, -1);
+ aux_toolbox_space (tbl, 1);
+ gtk_box_pack_start (GTK_BOX (tbl), cbox, FALSE, FALSE, 0);
+ g_object_set_data (G_OBJECT (tbl), "combo-box-family", cbox);
+ g_signal_connect (G_OBJECT (cbox), "changed", G_CALLBACK (sp_text_toolbox_family_changed), tbl);
+ }
+
+ //Font Style
+ {
+ GtkWidget *cbox = gtk_combo_box_new_text ();
+ gtk_widget_set_size_request (cbox, 144, -1);
+ aux_toolbox_space (tbl, 1);
+ gtk_box_pack_start (GTK_BOX (tbl), cbox, FALSE, FALSE, 0);
+ g_object_set_data (G_OBJECT (tbl), "combo-box-style", cbox);
+ }
+
+ sigc::connection *connection =
+ new sigc::connection(sp_desktop_selection(desktop)->connectChanged (sigc::bind (sigc::ptr_fun (sp_text_toolbox_selection_changed), (GObject*)tbl)));
+ g_signal_connect(G_OBJECT(tbl), "destroy", G_CALLBACK(delete_connection), connection);
+
+#if 0
+ //Font Size
+ {
+ GtkWidget *c = gtk_combo_new ();
+ gtk_combo_set_value_in_list ((GtkCombo *) c, FALSE, FALSE);
+ gtk_combo_set_use_arrows ((GtkCombo *) c, TRUE);
+ gtk_combo_set_use_arrows_always ((GtkCombo *) c, TRUE);
+ gtk_widget_set_size_request (c, 64, -1);
+ aux_toolbox_space(tbl, 1);
+ gtk_box_pack_start (GTK_BOX (tbl), c, FALSE, FALSE, 0);
+ }
aux_toolbox_space(tbl, AUX_BETWEEN_BUTTON_GROUPS);
//Bold
{
- GtkWidget *px = gtk_image_new_from_stock(GTK_STOCK_BOLD, Inkscape::ICON_SIZE_SMALL_TOOLBAR);
- GtkWidget *button = gtk_toggle_button_new ();
- gtk_container_add (GTK_CONTAINER (button), px);
- gtk_widget_show(button);
- gtk_tooltips_set_tip (tt, button, _("Bold"), NULL);
- gtk_button_set_relief (GTK_BUTTON (button), GTK_RELIEF_NONE);
- gtk_widget_set_sensitive(button, TRUE);
- gtk_box_pack_start (GTK_BOX (tbl), button, FALSE, FALSE, 0);
+ GtkWidget *px = gtk_image_new_from_stock(GTK_STOCK_BOLD, Inkscape::ICON_SIZE_SMALL_TOOLBAR);
+ GtkWidget *button = gtk_toggle_button_new ();
+ gtk_container_add (GTK_CONTAINER (button), px);
+ gtk_widget_show(button);
+ gtk_tooltips_set_tip (tt, button, _("Bold"), NULL);
+ gtk_button_set_relief (GTK_BUTTON (button), GTK_RELIEF_NONE);
+ gtk_widget_set_sensitive(button, TRUE);
+ gtk_box_pack_start (GTK_BOX (tbl), button, FALSE, FALSE, 0);
}
//Italic
{
- GtkWidget *px = gtk_image_new_from_stock(GTK_STOCK_ITALIC, Inkscape::ICON_SIZE_SMALL_TOOLBAR);
- GtkWidget *button = gtk_toggle_button_new ();
- gtk_container_add (GTK_CONTAINER (button), px);
- gtk_widget_show(button);
- gtk_tooltips_set_tip (tt, button, _("Italics"), NULL);
- gtk_button_set_relief (GTK_BUTTON (button), GTK_RELIEF_NONE);
- gtk_widget_set_sensitive(button, TRUE);
- gtk_box_pack_start (GTK_BOX (tbl), button, FALSE, FALSE, 0);
+ GtkWidget *px = gtk_image_new_from_stock(GTK_STOCK_ITALIC, Inkscape::ICON_SIZE_SMALL_TOOLBAR);
+ GtkWidget *button = gtk_toggle_button_new ();
+ gtk_container_add (GTK_CONTAINER (button), px);
+ gtk_widget_show(button);
+ gtk_tooltips_set_tip (tt, button, _("Italics"), NULL);
+ gtk_button_set_relief (GTK_BUTTON (button), GTK_RELIEF_NONE);
+ gtk_widget_set_sensitive(button, TRUE);
+ gtk_box_pack_start (GTK_BOX (tbl), button, FALSE, FALSE, 0);
}
//Underline
{
- GtkWidget *px = gtk_image_new_from_stock(GTK_STOCK_UNDERLINE, Inkscape::ICON_SIZE_SMALL_TOOLBAR);
- GtkWidget *button = gtk_toggle_button_new ();
- gtk_container_add (GTK_CONTAINER (button), px);
- gtk_widget_show(button);
- gtk_tooltips_set_tip (tt, button, _("Underline"), NULL);
- gtk_button_set_relief (GTK_BUTTON (button), GTK_RELIEF_NONE);
- gtk_widget_set_sensitive(button, FALSE);
- gtk_box_pack_start (GTK_BOX (tbl), button, FALSE, FALSE, 0);
+ GtkWidget *px = gtk_image_new_from_stock(GTK_STOCK_UNDERLINE, Inkscape::ICON_SIZE_SMALL_TOOLBAR);
+ GtkWidget *button = gtk_toggle_button_new ();
+ gtk_container_add (GTK_CONTAINER (button), px);
+ gtk_widget_show(button);
+ gtk_tooltips_set_tip (tt, button, _("Underline"), NULL);
+ gtk_button_set_relief (GTK_BUTTON (button), GTK_RELIEF_NONE);
+ gtk_widget_set_sensitive(button, FALSE);
+ gtk_box_pack_start (GTK_BOX (tbl), button, FALSE, FALSE, 0);
}
aux_toolbox_space(tbl, AUX_BETWEEN_BUTTON_GROUPS);
// align left
{
- GtkWidget *px = gtk_image_new_from_stock (GTK_STOCK_JUSTIFY_LEFT, Inkscape::ICON_SIZE_SMALL_TOOLBAR);
- GtkWidget *b = group = gtk_radio_button_new (NULL);
+ GtkWidget *px = gtk_image_new_from_stock (GTK_STOCK_JUSTIFY_LEFT, Inkscape::ICON_SIZE_SMALL_TOOLBAR);
+ GtkWidget *b = group = gtk_radio_button_new (NULL);
gtk_container_add (GTK_CONTAINER (b), px);
- gtk_tooltips_set_tip (tt, b, _("Align lines left"), NULL);
- gtk_button_set_relief (GTK_BUTTON (b), GTK_RELIEF_NONE);
- gtk_toggle_button_set_mode (GTK_TOGGLE_BUTTON (b), FALSE );
- gtk_box_pack_start (GTK_BOX (tbl), b, FALSE, FALSE, 0);
+ gtk_tooltips_set_tip (tt, b, _("Align lines left"), NULL);
+ gtk_button_set_relief (GTK_BUTTON (b), GTK_RELIEF_NONE);
+ gtk_toggle_button_set_mode (GTK_TOGGLE_BUTTON (b), FALSE );
+ gtk_box_pack_start (GTK_BOX (tbl), b, FALSE, FALSE, 0);
}
// align center
{
- GtkWidget *px = gtk_image_new_from_stock (GTK_STOCK_JUSTIFY_CENTER, Inkscape::ICON_SIZE_SMALL_TOOLBAR);
- GtkWidget *b = gtk_radio_button_new (gtk_radio_button_group (GTK_RADIO_BUTTON (group)));
+ GtkWidget *px = gtk_image_new_from_stock (GTK_STOCK_JUSTIFY_CENTER, Inkscape::ICON_SIZE_SMALL_TOOLBAR);
+ GtkWidget *b = gtk_radio_button_new (gtk_radio_button_group (GTK_RADIO_BUTTON (group)));
gtk_container_add (GTK_CONTAINER (b), px);
- // TRANSLATORS: `Center' here is a verb.
- gtk_tooltips_set_tip (tt, b, _("Center lines"), NULL);
+ // TRANSLATORS: `Center' here is a verb.
+ gtk_tooltips_set_tip (tt, b, _("Center lines"), NULL);
gtk_button_set_relief (GTK_BUTTON (b), GTK_RELIEF_NONE);
- gtk_toggle_button_set_mode (GTK_TOGGLE_BUTTON (b), FALSE );
- gtk_box_pack_start (GTK_BOX (tbl), b, FALSE, FALSE, 0);
+ gtk_toggle_button_set_mode (GTK_TOGGLE_BUTTON (b), FALSE );
+ gtk_box_pack_start (GTK_BOX (tbl), b, FALSE, FALSE, 0);
}
// align right
{
- GtkWidget *px = gtk_image_new_from_stock (GTK_STOCK_JUSTIFY_RIGHT, Inkscape::ICON_SIZE_SMALL_TOOLBAR);
- GtkWidget *b = gtk_radio_button_new (gtk_radio_button_group (GTK_RADIO_BUTTON (group)));
+ GtkWidget *px = gtk_image_new_from_stock (GTK_STOCK_JUSTIFY_RIGHT, Inkscape::ICON_SIZE_SMALL_TOOLBAR);
+ GtkWidget *b = gtk_radio_button_new (gtk_radio_button_group (GTK_RADIO_BUTTON (group)));
gtk_container_add (GTK_CONTAINER (b), px);
- gtk_tooltips_set_tip (tt, b, _("Align lines right"), NULL);
- gtk_button_set_relief (GTK_BUTTON (b), GTK_RELIEF_NONE);
- gtk_toggle_button_set_mode (GTK_TOGGLE_BUTTON (b), FALSE );
- gtk_box_pack_start (GTK_BOX (tbl), b, FALSE, FALSE, 0);
+ gtk_tooltips_set_tip (tt, b, _("Align lines right"), NULL);
+ gtk_button_set_relief (GTK_BUTTON (b), GTK_RELIEF_NONE);
+ gtk_toggle_button_set_mode (GTK_TOGGLE_BUTTON (b), FALSE );
+ gtk_box_pack_start (GTK_BOX (tbl), b, FALSE, FALSE, 0);
}
// full justification
{
- GtkWidget *px = gtk_image_new_from_stock (GTK_STOCK_JUSTIFY_FILL, Inkscape::ICON_SIZE_SMALL_TOOLBAR);
- GtkWidget *b = gtk_radio_button_new (gtk_radio_button_group (GTK_RADIO_BUTTON (group)));
+ GtkWidget *px = gtk_image_new_from_stock (GTK_STOCK_JUSTIFY_FILL, Inkscape::ICON_SIZE_SMALL_TOOLBAR);
+ GtkWidget *b = gtk_radio_button_new (gtk_radio_button_group (GTK_RADIO_BUTTON (group)));
gtk_container_add (GTK_CONTAINER (b), px);
- gtk_tooltips_set_tip (tt, b, _("Full justification"), NULL);
- gtk_button_set_relief (GTK_BUTTON (b), GTK_RELIEF_NONE);
- gtk_toggle_button_set_mode (GTK_TOGGLE_BUTTON (b), FALSE );
- gtk_box_pack_start (GTK_BOX (tbl), b, FALSE, FALSE, 0);
+ gtk_tooltips_set_tip (tt, b, _("Full justification"), NULL);
+ gtk_button_set_relief (GTK_BUTTON (b), GTK_RELIEF_NONE);
+ gtk_toggle_button_set_mode (GTK_TOGGLE_BUTTON (b), FALSE );
+ gtk_box_pack_start (GTK_BOX (tbl), b, FALSE, FALSE, 0);
}
gtk_widget_set_sensitive(button, TRUE);
gtk_box_pack_start (GTK_BOX (tbl), button, FALSE, FALSE, AUX_BETWEEN_BUTTON_GROUPS);
}
+#endif
-*/
-
+#if 0
Inkscape::UI::Widget::StyleSwatch *swatch = new Inkscape::UI::Widget::StyleSwatch(NULL);
swatch->setWatchedTool ("tools.text", true);
GtkWidget *swatch_ = GTK_WIDGET(swatch->gobj());
gtk_box_pack_end(GTK_BOX(tbl), swatch_, FALSE, FALSE, 0);
- gtk_widget_show_all(tbl);
sp_set_font_size_smaller (tbl);
+#endif
+ gtk_widget_show_all (tbl);
return tbl;
} // end of sp_text_toolbox_new()
diff --git a/src/widgets/toolbox.h b/src/widgets/toolbox.h
index 20a33909c7fb5a0f0b545983add976c1edfd43d9..b233c44804ceb87b5fa4d19040078dab79f72ab0 100644 (file)
--- a/src/widgets/toolbox.h
+++ b/src/widgets/toolbox.h
#include "forward.h"
#include "icon-size.h"
-GtkWidget *sp_tool_toolbox_new(void);
+GtkWidget *sp_tool_toolbox_new ();
void sp_tool_toolbox_set_desktop(GtkWidget *toolbox, SPDesktop *desktop);
-GtkWidget *sp_aux_toolbox_new(void);
+GtkWidget *sp_aux_toolbox_new ();
void sp_aux_toolbox_set_desktop(GtkWidget *toolbox, SPDesktop *desktop);
-GtkWidget *sp_commands_toolbox_new(void);
+GtkWidget *sp_commands_toolbox_new ();
void sp_commands_toolbox_set_desktop(GtkWidget *toolbox, SPDesktop *desktop);
void show_aux_toolbox(GtkWidget *toolbox);