Logo Search packages:      
Sourcecode: ardour version File versions

Glib::RefPtr< RcStyle > Gtk::Widget::get_modifier_style (  )  [inherited]

Returns the current modifier style for the widget. (As set by modify_style().) If no style has previously set, a new Gtk::RcStyle will be created with all values unset, and set as the modifier style for the widget. If you make changes to this rc style, you must call modify_style(), passing in the returned rc style, to make sure that your changes take effect.

Caution: passing the style back to modify_style() will normally end up destroying it, because modify_style() copies the passed-in style and sets the copy as the new modifier style, thus dropping any reference to the old modifier style. Add a reference to the modifier style if you want to keep it alive.

The modifier style for the widget. This rc style is owned by the widget. If you want to keep a pointer to value this around, you must add a refcount using Gtk::RcStyle::ref().

Definition at line 5518 of file widget.cc.

References Gtk::Widget::gobj().


  Glib::RefPtr<RcStyle> retvalue = Glib::wrap(gtk_widget_get_modifier_style(gobj()));

    retvalue->reference(); //The function does not do a ref for us.
  return retvalue;

Generated by  Doxygen 1.6.0   Back to index