v2.4, new preferences dialog

This commit is contained in:
guinux
2015-08-20 15:11:18 +02:00
parent 9e0864ff2c
commit 177dc8e12a
90 changed files with 20108 additions and 15440 deletions

View File

@@ -27,8 +27,14 @@ namespace Pamac {
[GtkChild]
public Gtk.ComboBoxText comboboxtext;
public ChooseProviderDialog (Gtk.ApplicationWindow? window) {
public ChooseProviderDialog (string depend, string[] providers, Gtk.ApplicationWindow? window) {
Object (transient_for: window, use_header_bar: 0);
label.set_markup ("<b>%s</b>".printf (dgettext (null, "Choose a provider for %s").printf (depend)));
foreach (string provider in providers) {
comboboxtext.append_text (provider);
}
comboboxtext.active = 0;
}
}
}