Advertisement
Guest User

Untitled

a guest
Dec 15th, 2015
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Vala 0.57 KB | None | 0 0
  1. private void accel_edited_cb (Gtk.CellRendererAccel cell, string path_string, uint keyval, Gdk.ModifierType mask, uint hardware_keycode)
  2. {
  3.     var path = new Gtk.TreePath.from_string (path_string);
  4.     if (path == null)
  5.         return;
  6.  
  7.     stdout.printf("%s\n", path_string);
  8.  
  9.     Gtk.TreeIter iter;
  10.     if (!liststore[0].get_iter (out iter, path))
  11.         return;
  12.  
  13.     string? key = null;
  14.     liststore[0].get (iter, 0, out key);
  15.     if (key == null)
  16.         return;
  17.  
  18.     liststore[0].set (iter, 2, keyval);
  19.     worm_settings[0].set_int (key, (int) keyval);
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement