summaryrefslogtreecommitdiff
path: root/src/nautilus-program-choosing.c
diff options
context:
space:
mode:
authorGeorge Mocanu <mocanu.geo98@gmail.com>2018-04-02 14:25:06 +0300
committerCarlos Soriano <csoriano1618@gmail.com>2018-04-23 14:22:20 +0000
commit2ab5c897e4a52dc7d02e72740a84808e2a317734 (patch)
tree188473a38fbb65ccdab5d736806ef726e1747ee6 /src/nautilus-program-choosing.c
parent15351e9bcf9e87701bf3589dae253739e09e55b1 (diff)
downloadnautilus-2ab5c897e4a52dc7d02e72740a84808e2a317734.tar.gz
Change show_error_dialog() to show_dialog()
Changed show_error_dialog() to show_dialog() so that multiple dialog types can be used.
Diffstat (limited to 'src/nautilus-program-choosing.c')
-rw-r--r--src/nautilus-program-choosing.c29
1 files changed, 16 insertions, 13 deletions
diff --git a/src/nautilus-program-choosing.c b/src/nautilus-program-choosing.c
index 9954ec65e..e283b947a 100644
--- a/src/nautilus-program-choosing.c
+++ b/src/nautilus-program-choosing.c
@@ -336,9 +336,10 @@ nautilus_launch_desktop_file (GdkScreen *screen,
{
g_free (desktop_file_path);
g_object_unref (desktop_file);
- show_error_dialog(_("Sorry, but you cannot execute commands from a remote site."),
- _("This is disabled due to security considerations."),
- parent_window);
+ show_dialog (_("Sorry, but you cannot execute commands from a remote site."),
+ _("This is disabled due to security considerations."),
+ parent_window,
+ GTK_MESSAGE_ERROR);
return;
}
@@ -348,9 +349,10 @@ nautilus_launch_desktop_file (GdkScreen *screen,
g_free (desktop_file_path);
if (app_info == NULL)
{
- show_error_dialog(_("There was an error launching the application."),
- NULL,
- parent_window);
+ show_dialog (_("There was an error launching the application."),
+ NULL,
+ parent_window,
+ GTK_MESSAGE_ERROR);
return;
}
@@ -376,10 +378,10 @@ nautilus_launch_desktop_file (GdkScreen *screen,
if (count == 0)
{
/* all files are non-local */
- show_error_dialog(_("This drop target only supports local files."),
- _("To open non-local files copy them to a local folder and then"
- " drop them again."),
- parent_window);
+ show_dialog (_("This drop target only supports local files."),
+ _("To open non-local files copy them to a local folder and then drop them again."),
+ parent_window,
+ GTK_MESSAGE_ERROR);
g_list_free_full (files, g_object_unref);
g_object_unref (app_info);
@@ -423,9 +425,10 @@ nautilus_launch_desktop_file (GdkScreen *screen,
if (error != NULL)
{
message = g_strconcat (_("Details: "), error->message, NULL);
- show_error_dialog(_("There was an error launching the application."),
- message,
- parent_window);
+ show_dialog (_("There was an error launching the application."),
+ message,
+ parent_window,
+ GTK_MESSAGE_ERROR);
g_error_free (error);
g_free (message);