Guest User

Untitled

a guest
Dec 3rd, 2017
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Vala 1.05 KB | None | 0 0
  1. public void redraw_canvas(){
  2.     var window = get_window();
  3.     if(window == null)
  4.         return;
  5.     unowned Cairo.Region region = window.get_clip_region();
  6.     window.invalidate_region(region, true);
  7.     window.process_updates(true);  
  8. }
  9.  
  10. /*
  11. Gdk-ERROR **: The program 'IRCore' received an X Window System error.
  12. This probably reflects a bug in the program.
  13. The error was 'RenderBadPicture (invalid Picture parameter)'.
  14.   (Details: serial 838 error_code 174 request_code 152 minor_code 26)
  15.   (Note to programmers: normally, X errors are reported asynchronously;
  16.    that is, you will receive the error a while after causing it.
  17.    To debug your program, run it with the --sync command line
  18.    option to change this behavior. You can then get a meaningful
  19.    backtrace from your debugger if you break on the gdk_x_error() function.)
  20. Trace/breakpoint trap
  21.  
  22.  
  23.  
  24. SOMETIMES, there's just this one:
  25. [xcb] Unknown request in queue while dequeuing
  26. [xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
  27. [xcb] Aborting, sorry about that.
  28.  
  29.  
  30. */
Add Comment
Please, Sign In to add comment