Updating branch refs/heads/master to efac5ae419cb9e11435c949c0bc2ee33a0fd2a15 (commit) from 3763909decd1065b9fe5211a3c92198526df72f2 (commit)
commit efac5ae419cb9e11435c949c0bc2ee33a0fd2a15 Author: Jannis Pohlmann <jan...@xfce.org> Date: Sat Jun 4 18:43:39 2011 +0200 Add missing drag source widget. .../demo-code/custom-view/drag-source.vala | 37 ++++++++++++++++++++ 1 files changed, 37 insertions(+), 0 deletions(-) diff --git a/thunar/shortcuts-pane/demo-code/custom-view/drag-source.vala b/thunar/shortcuts-pane/demo-code/custom-view/drag-source.vala new file mode 100644 index 0000000..baaa0cf --- /dev/null +++ b/thunar/shortcuts-pane/demo-code/custom-view/drag-source.vala @@ -0,0 +1,37 @@ +/* vi:set et ai sw=2 sts=2 ts=2: */ +/*- + * Copyright (c) 2011 Jannis Pohlmann <jan...@xfce.org> + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program; if not, write to the Free + * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + */ + +using Gtk; + + + +class DragSource : EventBox { + + public string location { get; set; } + + public DragSource (string location) { + this.location = location; + + var label = new Label (this.location); + add (label); + label.show (); + } + +} _______________________________________________ Xfce4-commits mailing list Xfce4-commits@xfce.org http://foo-projects.org/mailman/listinfo/xfce4-commits