}
public void set_cursor_location(int x, int y, int width, int height) {
- Gdk.Rectangle location = { x, y, width, height };
+ Gdk.Rectangle location = Gdk.Rectangle(){
+ x = x, y = y, width = width, height = height };
if (m_cursor_location == location)
return;
m_cursor_location = location;
public override bool button_press_event(Gdk.EventButton event) {
if (event.button != 1)
return false;
- m_workarea = {0, 0, int.MAX, int.MAX};
+ m_workarea = Gdk.Rectangle(){
+ x = 0, y = 0, width = int.MAX, height = int.MAX};
do {
Gdk.Window root = Gdk.get_default_root_window();
Gdk.Atom property = Gdk.Atom.intern("_NET_CURRENT_DESKTOP", false);
Gtk.StyleContext context = get_style_context();
Gtk.Allocation allocation;
get_allocation(out allocation);
- Gtk.render_handle(context, cr,
+ context.render_handle(cr,
allocation.x, allocation.y + (allocation.height - 40) / 2, allocation.width, 40.0);
}
return false;