~ubuntu-branches/ubuntu/lucid/synfigstudio/lucid

« back to all changes in this revision

Viewing changes to src/gtkmm/state_fill.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Stefano Zacchiroli
  • Date: 2010-01-26 11:20:50 UTC
  • mfrom: (1.1.5 upstream) (2.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20100126112050-e43u17c5zpc5hse4
Tags: 0.62.00-1
* QA upload
* Properly orphan the package (set Maintainer to QA, empty Uploaders)
* New upstream release
* Bump build-dep on (lib)synfig to most recent version
* Bump standards-version to 3.8.3, no changes needed
* Change section of the "-dbg" package to debug, thanks lintian

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
/*!     \file state_fill.cpp
3
3
**      \brief Template File
4
4
**
5
 
**      $Id: state_fill.cpp 1143 2007-11-13 09:13:07Z pabs $
 
5
**      $Id$
6
6
**
7
7
**      \legal
8
8
**      Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
147
147
        }
148
148
 
149
149
 
150
 
        //synfigapp::Action::Handle action(synfigapp::Action::create("value_desc_set"));
 
150
        //synfigapp::Action::Handle action(synfigapp::Action::create("ValueDescSet"));
151
151
        synfigapp::ValueDesc value_desc(event.layer,"color");
152
152
 
153
 
        if(!get_canvas_interface()->change_value(value_desc,ValueBase(synfigapp::Main::get_foreground_color())))
 
153
        if(!get_canvas_interface()->change_value(value_desc,ValueBase(synfigapp::Main::get_fill_color())))
154
154
        {
155
155
                get_canvas_view()->get_ui_interface()->warning(_("Unable to set layer color"));
156
156
                return Smach::RESULT_ERROR;
165
165
        //action->set_param("layer",event.layer);
166
166
        //if(!action->set_param("param",String("color")))
167
167
        //      synfig::error("LayerParamConnect didn't like \"param\"");
168
 
        if(!action->set_param("new_value",ValueBase(synfigapp::Main::get_foreground_color())))
169
 
                synfig::error("LayerParamConnect didn't like \"foreground_color\"");
 
168
        if(!action->set_param("new_value",ValueBase(synfigapp::Main::get_fill_color())))
 
169
                synfig::error("LayerParamConnect didn't like \"fill_color\"");
170
170
 
171
171
        if(!get_canvas_interface()->get_instance()->perform_action(action))
172
172
        {