44 {
45
46 log_debug(
"RestoreExcludeBox: RestoreExcludeBox()");
47
48
49 GLib.Object(orientation: Gtk.Orientation.VERTICAL, spacing: 6);
51 margin_top = 12;
52 margin_bottom = 12;
53 margin_start = 12;
54 margin_end = 12;
55
56
57
58 var label = add_label_header(
this,
_(
"Exclude Application Settings"),
true);
59
60 add_label(
this,
_(
"Select applications to exclude from restore"));
61
62
63
64 var chk = add_checkbox(
this,
_(
"Web Browsers") +
" (%s)".printf(
_(
"Recommended")));
65 chk.active = true;
66 chk.margin_top = 12;
67 chk.margin_bottom = 0;
69
70 chk.toggled.connect(()=>{
71 foreach(var name in new string[]{
72 "chromium", "google-chrome", "mozilla", "midori", "epiphany",
73 "opera", "opera-stable", "opera-beta", "opera-developer" }){
74 if (AppExcludeEntry.app_map.has_key(name)){
75 AppExcludeEntry.app_map[name].enabled =
chk_web.active;
76 }
77 }
78 });
79
81 this,
_(
"Firefox, Chromium, Chrome, Opera, Epiphany, Midori"),
false,
true);
82 label.margin_top = 0;
83 label.margin_bottom = 6;
84 label.margin_start = 24;
85 label.wrap = true;
86 label.wrap_mode = Pango.WrapMode.WORD_CHAR;
87
88 var tt =
_(
"Keep configuration files for web browsers like Firefox and Chrome. If un-checked, previous configuration files will be restored from snapshot");
89 chk.set_tooltip_text(tt);
90 label.set_tooltip_text(tt);
91
92
93
94 chk = add_checkbox(
this,
_(
"Bittorrent Clients") +
" (%s)".printf(
_(
"Recommended")));
95 chk.active = true;
96 chk.margin_bottom = 0;
98
99 chk.toggled.connect(()=>{
100 foreach(var name in new string[]{
101 "deluge", "transmission" }){
102 if (AppExcludeEntry.app_map.has_key(name)){
103 AppExcludeEntry.app_map[name].enabled =
chk_torrent.active;
104 }
105 }
106 });
107
108 label =
add_label(
this,
_(
"Deluge, Transmission"),
false,
true);
109 label.margin_top = 0;
110 label.margin_bottom = 6;
111 label.margin_start = 24;
112 label.wrap = true;
113 label.wrap_mode = Pango.WrapMode.WORD_CHAR;
114
115 tt =
_(
"Keep configuration files for bittorrent clients like Deluge, Transmission, etc. If un-checked, previous configuration files will be restored from snapshot.");
116 chk.set_tooltip_text(tt);
117 label.set_tooltip_text(tt);
118
119
120
121 chk = add_checkbox(
this,
_(
"Other applications (next page)"));
123
124 tt =
_(
"Show more applications to exclude on the next page");
125 chk.set_tooltip_text(tt);
126
127
128
129 log_debug(
"RestoreExcludeBox: RestoreExcludeBox(): exit");
130 }
Gtk.CheckButton chk_torrent
Gtk.CheckButton chk_other
Gtk.Label add_label(Gtk.Box box, string text, bool bold=false, bool italic=false, bool large=false)
void log_debug(string message)