From e76b6481c69c9a84decea8bcf345a26a4a408462 Mon Sep 17 00:00:00 2001 From: John Smith Date: Sun, 1 Apr 2012 10:52:46 +0900 Subject: Fix for 950677 : Add stops and repeat controls to the gradient toolbar (bzr r11134) --- src/widgets/toolbox.cpp | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) (limited to 'src/widgets/toolbox.cpp') diff --git a/src/widgets/toolbox.cpp b/src/widgets/toolbox.cpp index e0454683f..38a581cdc 100644 --- a/src/widgets/toolbox.cpp +++ b/src/widgets/toolbox.cpp @@ -243,10 +243,10 @@ static struct { SP_VERB_INVALID, 0, 0}, { "SPDropperContext", "dropper_toolbox", 0, sp_dropper_toolbox_prep, "DropperToolbar", SP_VERB_INVALID, 0, 0}, - { "SPGradientContext", "gradient_toolbox", sp_gradient_toolbox_new, 0, 0, - SP_VERB_INVALID, 0, 0}, { "SPConnectorContext", "connector_toolbox", 0, sp_connector_toolbox_prep, "ConnectorToolbar", SP_VERB_INVALID, 0, 0}, + { "SPGradientContext", "gradient_toolbox", 0, sp_gradient_toolbox_prep, "GradientToolbar", + SP_VERB_INVALID, 0, 0}, { "SPFloodContext", "paintbucket_toolbox", 0, sp_paintbucket_toolbox_prep, "PaintbucketToolbar", SP_VERB_CONTEXT_PAINTBUCKET_PREFS, "/tools/paintbucket", N_("Style of Paint Bucket fill objects")}, { NULL, NULL, NULL, NULL, NULL, SP_VERB_INVALID, NULL, NULL } @@ -529,6 +529,20 @@ static gchar const * ui_descr = " " " " + " " + " " + " " + " " + " " + " " + " " + " " + " " + " " + " " + " " + " " + " " " " " " @@ -1082,7 +1096,7 @@ static GtkWidget* createCustomSlider( GtkAdjustment *adjustment, gdouble climbRa return widget; } -static EgeAdjustmentAction * create_adjustment_action( gchar const *name, +EgeAdjustmentAction * create_adjustment_action( gchar const *name, gchar const *label, gchar const *shortLabel, gchar const *tooltip, Glib::ustring const &path, gdouble def, GtkWidget *focusTarget, @@ -1092,7 +1106,7 @@ static EgeAdjustmentAction * create_adjustment_action( gchar const *name, gdouble lower, gdouble upper, gdouble step, gdouble page, gchar const** descrLabels, gdouble const* descrValues, guint descrCount, void (*callback)(GtkAdjustment *, GObject *), - gdouble climb = 0.1, guint digits = 3, double factor = 1.0 ) + gdouble climb/* = 0.1*/, guint digits/* = 3*/, double factor/* = 1.0*/ ) { static bool init = false; if ( !init ) { @@ -3086,7 +3100,7 @@ void sp_toolbox_add_label(GtkWidget *tbl, gchar const *title, bool wide) gtk_box_pack_end(GTK_BOX(boxl), l, FALSE, FALSE, 0); if ( GTK_IS_TOOLBAR(tbl) ) { GtkToolItem *boxl_toolitem = gtk_tool_item_new(); - gtk_container_add(GTK_CONTAINER(boxl_toolitem), boxl); + gtk_container_add(GTK_CONTAINER(boxl_toolitem), boxl); gtk_toolbar_insert(GTK_TOOLBAR(tbl), boxl_toolitem, -1); } else { gtk_box_pack_start(GTK_BOX(tbl), boxl, FALSE, FALSE, 0); -- cgit v1.2.3