| 1 |
/* spice-preferences-window.vala |
| 2 |
* |
| 3 |
* Copyright (C) Red Hat, Inc |
| 4 |
* |
| 5 |
* This program is free software: you can redistribute it and/or modify |
| 6 |
* it under the terms of the GNU General Public License as published by |
| 7 |
* the Free Software Foundation, either version 3 of the License, or |
| 8 |
* (at your option) any later version. |
| 9 |
* |
| 10 |
* This program is distributed in the hope that it will be useful, |
| 11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 |
* GNU General Public License for more details. |
| 14 |
* |
| 15 |
* You should have received a copy of the GNU General Public License |
| 16 |
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 17 |
* |
| 18 |
* Author: Felipe Borges <[email protected]> |
| 19 |
* |
| 20 |
*/ |
| 21 |
|
| 22 |
namespace Connections { |
| 23 |
[GtkTemplate (ui = "/org/gnome/Connections/ui/spice-preferences.ui")] |
| 24 |
private class SpicePreferencesWindow : Connections.PreferencesWindow { |
| 25 |
[GtkChild] |
| 26 |
private unowned Gtk.Entry connection_name_entry; |
| 27 |
[GtkChild] |
| 28 |
private unowned Gtk.Label host_address_label; |
| 29 |
[GtkChild] |
| 30 |
private unowned BooleanProperty enable_audio; |
| 31 |
[GtkChild] |
| 32 |
private unowned Gtk.ComboBoxText scale_mode_combo; |
| 33 |
|
| 34 |
public SpicePreferencesWindow (Connection connection) { |
| 35 |
this.connection = connection; |
| 36 |
|
| 37 |
bind_widget_property (connection_name_entry, "text", "display_name"); |
| 38 |
bind_widget_property (host_address_label, "label", "uri"); |
| 39 |
bind_widget_property (scale_mode_combo, "active_id", "scale-mode"); |
| 40 |
bind_widget_property (enable_audio, "active", "enable_audio"); |
| 41 |
} |
| 42 |
} |
| 43 |
} |