AccountEditor: Fix runtime warnings about styleprovider
This commit is contained in:
parent
db6c2f4fed
commit
77f40a336b
|
@ -94,6 +94,7 @@ namespace EasySSH {
|
||||||
buttons.pack_end(save_button, false, false, 0);
|
buttons.pack_end(save_button, false, false, 0);
|
||||||
|
|
||||||
|
|
||||||
|
label = new Gtk.Label(null);
|
||||||
label.get_style_context ().add_class("h2");
|
label.get_style_context ().add_class("h2");
|
||||||
grid.add (label);
|
grid.add (label);
|
||||||
grid.attach (new Granite.HeaderLabel (_("Name:")), 0, 1, 1, 1);
|
grid.attach (new Granite.HeaderLabel (_("Name:")), 0, 1, 1, 1);
|
||||||
|
@ -126,12 +127,12 @@ namespace EasySSH {
|
||||||
update_save_button();
|
update_save_button();
|
||||||
show_all ();
|
show_all ();
|
||||||
if(data_account == null) {
|
if(data_account == null) {
|
||||||
label = new Gtk.Label(_("Add Account"));
|
label.label = _("Add Account");
|
||||||
} else {
|
} else {
|
||||||
if(duplicate == false){
|
if(duplicate == false){
|
||||||
label = new Gtk.Label(_("Edit Account"));
|
label.label = _("Edit Account");
|
||||||
}else{
|
}else{
|
||||||
label = new Gtk.Label(_("Duplicate Account"));
|
label.label = _("Duplicate Account");
|
||||||
}
|
}
|
||||||
name_entry.text = data_account.name;
|
name_entry.text = data_account.name;
|
||||||
name_entry.is_valid = check_name();
|
name_entry.is_valid = check_name();
|
||||||
|
|
Loading…
Reference in New Issue