~ubuntu-branches/ubuntu/karmic/gtkmm2.4/karmic

« back to all changes in this revision

Viewing changes to gtk/src/style.hg

  • Committer: Bazaar Package Importer
  • Author(s): Robert Ancell
  • Date: 2009-09-22 10:14:59 UTC
  • mfrom: (1.2.42 upstream)
  • Revision ID: james.westby@ubuntu.com-20090922101459-pespb00fbm1mlqbd
Tags: 1:2.18.1-0ubuntu1
* New upstream release: (LP: #434355)
  - RecentManager: Undeprecate get_default().
  - Clipboard: wait_for_targets): Fix a crash.
  - Window: Added set_icon_name().
  - Require a recent pangomm.
  - Style: Fix a compiler error with the Intel C++ compiler.
  - Fix recently-introduced problems with disable-deprecated options.
* debian/control.in:
  - Bump libpangomm-1.4-dev depends and build-depends

Show diffs side-by-side

added added

removed removed

Lines of Context:
612
612
  Glib::Value<PropertyType> property_value;
613
613
  property_value.init(Glib::Value<PropertyType>::value_type());
614
614
 
615
 
  this->get_style_property_value(widget_type, property_name, property_value);
 
615
  //We cast away the const.
 
616
  //TODO: Either this get_style_property() should be non-const, 
 
617
  //or get_style_property_value() should be const.
 
618
  //We can't really have both const and unconst versions of them because output parameters can't be const.
 
619
  //Bug https://bugzilla.gnome.org/show_bug.cgi?id=594171
 
620
  Style* unconst_this = const_cast<Style*>(this);
 
621
  unconst_this->get_style_property_value(widget_type, property_name, property_value);
616
622
 
617
623
  value = property_value.get();
618
624
}