Don't use deprecated functions in Sorted
This commit is contained in:
parent
dba1129de7
commit
d09f179b9d
1 changed files with 8 additions and 8 deletions
|
@ -485,19 +485,19 @@ public class Contacts.Sorted : Container {
|
||||||
var context = this.get_style_context ();
|
var context = this.get_style_context ();
|
||||||
|
|
||||||
context.save ();
|
context.save ();
|
||||||
Gtk.render_background (context, cr,
|
context.render_background (cr,
|
||||||
0, 0, allocation.width, allocation.height);
|
0, 0, allocation.width, allocation.height);
|
||||||
|
|
||||||
if (selected_child != null) {
|
if (selected_child != null) {
|
||||||
context.set_state (StateFlags.SELECTED);
|
context.set_state (StateFlags.SELECTED);
|
||||||
Gtk.render_background (context, cr,
|
context.render_background (cr,
|
||||||
0, selected_child.y,
|
0, selected_child.y,
|
||||||
allocation.width, selected_child.height);
|
allocation.width, selected_child.height);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (prelight_child != null && prelight_child != selected_child) {
|
if (prelight_child != null && prelight_child != selected_child) {
|
||||||
context.set_state (StateFlags.PRELIGHT);
|
context.set_state (StateFlags.PRELIGHT);
|
||||||
Gtk.render_background (context, cr,
|
context.render_background (cr,
|
||||||
0, prelight_child.y,
|
0, prelight_child.y,
|
||||||
allocation.width, prelight_child.height);
|
allocation.width, prelight_child.height);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue