add alpm-package mime type

This commit is contained in:
guinux
2014-11-01 17:59:16 +01:00
parent fe929692ce
commit acaf52d5ae
5 changed files with 42 additions and 36 deletions

View File

@@ -29,8 +29,7 @@ namespace Pamac {
Object (transient_for: window, use_header_bar: 0);
Gtk.FileFilter package_filter = new Gtk.FileFilter ();
package_filter.set_filter_name (dgettext (null, "Packages"));
package_filter.add_pattern ("*.pkg.tar.gz");
package_filter.set_filter_name (dgettext (null, "Alpm Package"));
package_filter.add_pattern ("*.pkg.tar.xz");
this.add_filter (package_filter);

View File

@@ -647,7 +647,7 @@ namespace Pamac {
case Event.SCRIPTLET_INFO:
progress_dialog.action_label.set_text (dgettext (null, "Configuring %s").printf (previous_filename) + "...");
progress_dialog.expander.set_expanded (true);
spawn_in_term ({"/usr/bin/echo", details[0]});
spawn_in_term ({"/usr/bin/echo", "-n", details[0]});
break;
case Event.RETRIEVE_START:
progress_dialog.cancel_button.set_visible (true);
@@ -755,11 +755,11 @@ namespace Pamac {
string? line = null;
TextIter end_iter;
if ((Alpm.LogLevel) level == Alpm.LogLevel.WARNING) {
line = dgettext (null, "Warning") + ": " + msg;
line = dgettext (null, "Warning") + ": " + previous_filename + ": " + msg;
transaction_info_dialog.textbuffer.get_end_iter (out end_iter);
transaction_info_dialog.textbuffer.insert (ref end_iter, msg, msg.length);
} else if ((Alpm.LogLevel) level == Alpm.LogLevel.ERROR) {
line = dgettext (null, "Error") + ": " + msg;
line = dgettext (null, "Error") + ": " + previous_filename + ": " + msg;
}
if (line != null) {
progress_dialog.expander.set_expanded (true);