diff options
Diffstat (limited to 'baobab/src/baobab-remote-connect-dialog.c')
-rw-r--r-- | baobab/src/baobab-remote-connect-dialog.c | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/baobab/src/baobab-remote-connect-dialog.c b/baobab/src/baobab-remote-connect-dialog.c index 11b5892f..484ffbf5 100644 --- a/baobab/src/baobab-remote-connect-dialog.c +++ b/baobab/src/baobab-remote-connect-dialog.c @@ -1,4 +1,5 @@ /* Copyright (C) 2005 Fabio Marzocca + * Copyright (C) 2012-2021 MATE Developers * * Modified module from caja-connect-server-dialog.c. * Released under same licence. @@ -33,7 +34,6 @@ #include "baobab.h" - /* Translators: all the strings in this file are meant to map the similar strings inside caja-connect-server and should be translated the same way @@ -55,7 +55,6 @@ G_DEFINE_TYPE(BaobabRemoteConnectDialog, baobab_remote_connect_dialog, GTK_TYPE_ #define RESPONSE_CONNECT GTK_RESPONSE_OK - static void display_error_dialog (GError *error, GFile *location, @@ -63,24 +62,18 @@ display_error_dialog (GError *error, { GtkWidget *dlg; char *parse_name; - char *error_message; parse_name = g_file_get_parse_name (location); - error_message = g_strdup_printf (_("Cannot scan location \"%s\""), - parse_name); - g_free (parse_name); - dlg = gtk_message_dialog_new (parent, - GTK_DIALOG_DESTROY_WITH_PARENT, - GTK_MESSAGE_ERROR, - GTK_BUTTONS_OK, - error_message, NULL); + GTK_DIALOG_DESTROY_WITH_PARENT, + GTK_MESSAGE_ERROR, + GTK_BUTTONS_OK, + _("Cannot scan location \"%s\""), parse_name); + g_free (parse_name); gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dlg), "%s", error->message); - g_free (error_message); - gtk_dialog_run (GTK_DIALOG (dlg)); gtk_widget_destroy (dlg); } @@ -652,7 +645,6 @@ baobab_remote_connect_dialog_init (BaobabRemoteConnectDialog *dialog) 1, get_method_description (&(methods[i])), -1); - if (methods[i].flags & DEFAULT_METHOD) { gtk_combo_box_set_active_iter (GTK_COMBO_BOX (combo), &iter); } @@ -681,7 +673,6 @@ baobab_remote_connect_dialog_init (BaobabRemoteConnectDialog *dialog) gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); - dialog->details->grid = grid = gtk_grid_new (); gtk_grid_set_row_spacing (GTK_GRID (grid), 6); gtk_grid_set_column_spacing (GTK_GRID (grid), 12); |