~teejee2008/apt-toolkit/trunk

« back to all changes in this revision

Viewing changes to src/OneClickSettingsDialog.vala

  • Committer: Tony George
  • Date: 2017-04-03 15:25:38 UTC
  • Revision ID: tony.george.kol@gmail.com-20170403152538-zxccgy7wiqpp57tj
remember app settings size limit in one-click settings dialog

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
                
55
55
                // get content area
56
56
                var vbox_main = get_content_area();
57
 
                vbox_main.spacing = 12;
 
57
                vbox_main.spacing = 6;
58
58
                vbox_main.margin = 6;
59
59
                //vbox_main.margin_bottom = 12;
60
60
                vbox_main.set_size_request(400,400);
130
130
 
131
131
                var hbox = new Gtk.Box (Orientation.HORIZONTAL, 6);
132
132
                //hbox.homogeneous = true;
133
 
                //hbox.margin_left = 6;
 
133
                //hbox.margin_top = 6;
134
134
                vbox_main.add(hbox);
135
135
 
136
136
                var tt = _("[Application Settings Backup]\n\nSome applications such as Steam and Wine store a large amount of data in their configuration directories (~/.local/share/Steam and ~/.wine). Setting a limit will skip the backup for these applications. Keep the limit as 0 to backup the settings for all apps.");
148
148
                hbox.add (spin);
149
149
                spin_size_limit = spin;
150
150
 
 
151
                spin.set_value(App.arg_size_limit / 1024.0);
 
152
 
 
153
                //buffer
 
154
                label = new Label("");
 
155
                label.margin_top = 36;
 
156
                vbox_main.add(label);
 
157
 
151
158
                // actions -------------------------
152
159
                
153
160
                // ok
196
203
                App.selected_tasks = s;
197
204
 
198
205
                App.arg_size_limit = (uint64) (spin_size_limit.get_value() * 1024);
 
206
 
 
207
                App.save_app_config();
199
208
        }
200
209
}
201
210