Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Weblate committed Jan 20, 2018
2 parents 76d3b81 + e80b495 commit a0b001e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 68 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ You'll need the following dependencies:
* intltool
* libappstream-dev (>= 0.10)
* libgee-0.8-dev
* libgranite-dev
* libgranite-dev (>=0.5)
* libgtk-3-dev
* libjson-glib-dev
* libpackagekit-glib2-dev
Expand Down
12 changes: 6 additions & 6 deletions src/Application.vala
Original file line number Diff line number Diff line change
Expand Up @@ -249,12 +249,12 @@ public class AppCenter.App : Granite.Application {
break;
}

string body = format_error_message (error.message);

var close_button = new Gtk.Button.with_label (_("Close"));

var dialog = new MessageDialog (_("There Was An Error Installing %s.").printf (package.get_name ()), body, "dialog-error");
dialog.add_action_widget (close_button, 0);
var dialog = new Granite.MessageDialog.with_image_from_icon_name (
_("There Was An Error Installing %s.").printf (package.get_name ()),
format_error_message (error.message),
"dialog-error",
Gtk.ButtonsType.CLOSE
);
dialog.show_all ();
dialog.run ();
dialog.destroy ();
Expand Down
3 changes: 1 addition & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ vala_precompile(VALA_C ${EXEC_NAME}
MainWindow.vala
Settings.vala
SuspendControl.vala
Dialogs/MessageDialog.vala
Dialogs/RestartDialog.vala
Dialogs/StripeDialog.vala
Views/AppInfoView.vala
Expand Down Expand Up @@ -47,7 +46,7 @@ PACKAGES
appstream
gtk+-3.0>=3.12
gee-0.8
granite
granite>=0.5
packagekit-glib2
libsoup-2.4
json-glib-1.0
Expand Down
59 changes: 0 additions & 59 deletions src/Dialogs/MessageDialog.vala

This file was deleted.

0 comments on commit a0b001e

Please sign in to comment.