Commit bbd94b5a authored by Matthias Clasen's avatar Matthias Clasen

gtk: Strip newlines from g_warning and g_error

g_logv adds one for us already.
parent 72b40266
...@@ -867,7 +867,7 @@ color_sample_drop_handle (GtkWidget *widget, ...@@ -867,7 +867,7 @@ color_sample_drop_handle (GtkWidget *widget,
*/ */
if (length != 8) if (length != 8)
{ {
g_warning ("Received invalid color data\n"); g_warning ("Received invalid color data");
return; return;
} }
...@@ -1595,7 +1595,7 @@ palette_drop_handle (GtkWidget *widget, ...@@ -1595,7 +1595,7 @@ palette_drop_handle (GtkWidget *widget,
*/ */
if (length != 8) if (length != 8)
{ {
g_warning ("Received invalid color data\n"); g_warning ("Received invalid color data");
return; return;
} }
......
...@@ -162,16 +162,14 @@ gtk_recent_action_unselect_uri (GtkRecentChooser *chooser, ...@@ -162,16 +162,14 @@ gtk_recent_action_unselect_uri (GtkRecentChooser *chooser,
static void static void
gtk_recent_action_select_all (GtkRecentChooser *chooser) gtk_recent_action_select_all (GtkRecentChooser *chooser)
{ {
g_warning ("This function is not implemented for " g_warning ("This function is not implemented for widgets of class '%s'",
"widgets of class '%s'",
g_type_name (G_OBJECT_TYPE (chooser))); g_type_name (G_OBJECT_TYPE (chooser)));
} }
static void static void
gtk_recent_action_unselect_all (GtkRecentChooser *chooser) gtk_recent_action_unselect_all (GtkRecentChooser *chooser)
{ {
g_warning ("This function is not implemented for " g_warning ("This function is not implemented for widgets of class '%s'",
"widgets of class '%s'",
g_type_name (G_OBJECT_TYPE (chooser))); g_type_name (G_OBJECT_TYPE (chooser)));
} }
......
...@@ -106,7 +106,7 @@ real_add (const GtkStockItem *items, ...@@ -106,7 +106,7 @@ real_add (const GtkStockItem *items,
{ {
if (item->modifier & NON_STATIC_MASK) if (item->modifier & NON_STATIC_MASK)
{ {
g_warning ("Bit 29 set in stock accelerator.\n"); g_warning ("Bit 29 set in stock accelerator.");
copy = TRUE; copy = TRUE;
} }
......
...@@ -734,7 +734,7 @@ gtk_ui_manager_buildable_construct_child (GtkBuildable *buildable, ...@@ -734,7 +734,7 @@ gtk_ui_manager_buildable_construct_child (GtkBuildable *buildable,
widget = gtk_ui_manager_get_widget (GTK_UI_MANAGER (buildable), name); widget = gtk_ui_manager_get_widget (GTK_UI_MANAGER (buildable), name);
if (!widget) if (!widget)
{ {
g_error ("Unknown ui manager child: %s\n", name); g_error ("Unknown ui manager child: %s", name);
g_free (name); g_free (name);
return NULL; return NULL;
} }
...@@ -983,7 +983,7 @@ gtk_ui_manager_insert_action_group (GtkUIManager *manager, ...@@ -983,7 +983,7 @@ gtk_ui_manager_insert_action_group (GtkUIManager *manager,
if (strcmp (gtk_action_group_get_name (group), group_name) == 0) if (strcmp (gtk_action_group_get_name (group), group_name) == 0)
{ {
g_warning ("Inserting action group '%s' into UI manager which " g_warning ("Inserting action group '%s' into UI manager which "
"already has a group with this name\n", group_name); "already has a group with this name", group_name);
break; break;
} }
} }
...@@ -2184,8 +2184,7 @@ gtk_ui_manager_add_ui (GtkUIManager *manager, ...@@ -2184,8 +2184,7 @@ gtk_ui_manager_add_ui (GtkUIManager *manager,
if (node_type == NODE_TYPE_UNDECIDED) if (node_type == NODE_TYPE_UNDECIDED)
{ {
g_warning ("item type %d not suitable for adding at '%s'", g_warning ("item type %d not suitable for adding at '%s'", type, path);
type, path);
return; return;
} }
......
...@@ -800,7 +800,7 @@ gtk_calendar_init (GtkCalendar *calendar) ...@@ -800,7 +800,7 @@ gtk_calendar_init (GtkCalendar *calendar)
if (strcmp (year_before, "calendar:YM") == 0) if (strcmp (year_before, "calendar:YM") == 0)
priv->year_before = 1; priv->year_before = 1;
else if (strcmp (year_before, "calendar:MY") != 0) else if (strcmp (year_before, "calendar:MY") != 0)
g_warning ("Whoever translated calendar:MY did so wrongly.\n"); g_warning ("Whoever translated calendar:MY did so wrongly.");
#ifdef G_OS_WIN32 #ifdef G_OS_WIN32
priv->week_start = 0; priv->week_start = 0;
...@@ -826,7 +826,7 @@ gtk_calendar_init (GtkCalendar *calendar) ...@@ -826,7 +826,7 @@ gtk_calendar_init (GtkCalendar *calendar)
else if (week_origin == 19971201) /* Monday */ else if (week_origin == 19971201) /* Monday */
week_1stday = 1; week_1stday = 1;
else else
g_warning ("Unknown value of _NL_TIME_WEEK_1STDAY.\n"); g_warning ("Unknown value of _NL_TIME_WEEK_1STDAY.");
priv->week_start = (week_1stday + first_weekday - 1) % 7; priv->week_start = (week_1stday + first_weekday - 1) % 7;
#else #else
...@@ -843,7 +843,7 @@ gtk_calendar_init (GtkCalendar *calendar) ...@@ -843,7 +843,7 @@ gtk_calendar_init (GtkCalendar *calendar)
if (priv->week_start < 0 || priv->week_start > 6) if (priv->week_start < 0 || priv->week_start > 6)
{ {
g_warning ("Whoever translated calendar:week_start:0 did so wrongly.\n"); g_warning ("Whoever translated calendar:week_start:0 did so wrongly.");
priv->week_start = 0; priv->week_start = 0;
} }
#endif #endif
...@@ -3454,7 +3454,7 @@ gtk_calendar_drag_data_received (GtkWidget *widget, ...@@ -3454,7 +3454,7 @@ gtk_calendar_drag_data_received (GtkWidget *widget,
if (!g_date_valid (date)) if (!g_date_valid (date))
{ {
g_warning ("Received invalid date data\n"); g_warning ("Received invalid date data");
g_date_free (date); g_date_free (date);
gtk_drag_finish (context, FALSE, FALSE, time); gtk_drag_finish (context, FALSE, FALSE, time);
return; return;
......
...@@ -199,7 +199,7 @@ gtk_cell_renderer_spinner_update_size (GtkCellRendererSpinner *cell, ...@@ -199,7 +199,7 @@ gtk_cell_renderer_spinner_update_size (GtkCellRendererSpinner *cell,
if (!gtk_icon_size_lookup (priv->icon_size, &priv->size, NULL)) if (!gtk_icon_size_lookup (priv->icon_size, &priv->size, NULL))
{ {
g_warning ("Invalid icon size %u\n", priv->icon_size); g_warning ("Invalid icon size %u", priv->icon_size);
priv->size = 24; priv->size = 24;
} }
} }
......
...@@ -246,7 +246,7 @@ swatch_drag_data_received (GtkWidget *widget, ...@@ -246,7 +246,7 @@ swatch_drag_data_received (GtkWidget *widget,
*/ */
if (length != 8) if (length != 8)
{ {
g_warning ("Received invalid color data\n"); g_warning ("Received invalid color data");
return; return;
} }
......
...@@ -555,7 +555,7 @@ verify_tree_match_results (GtkCssProvider *provider, ...@@ -555,7 +555,7 @@ verify_tree_match_results (GtkCssProvider *provider,
should_match = _gtk_css_selector_matches (ruleset->selector, matcher); should_match = _gtk_css_selector_matches (ruleset->selector, matcher);
if (found != !!should_match) if (found != !!should_match)
{ {
g_error ("expected rule '%s' to %s, but it %s\n", g_error ("expected rule '%s' to %s, but it %s",
_gtk_css_selector_to_string (ruleset->selector), _gtk_css_selector_to_string (ruleset->selector),
should_match ? "match" : "not match", should_match ? "match" : "not match",
found ? "matched" : "didn't match"); found ? "matched" : "didn't match");
......
...@@ -129,7 +129,7 @@ _gtk_print_get_default_user_units (void) ...@@ -129,7 +129,7 @@ _gtk_print_get_default_user_units (void)
if (strcmp (e, "default:inch")==0) if (strcmp (e, "default:inch")==0)
return GTK_UNIT_INCH; return GTK_UNIT_INCH;
else if (strcmp (e, "default:mm")) else if (strcmp (e, "default:mm"))
g_warning ("Whoever translated default:mm did so wrongly.\n"); g_warning ("Whoever translated default:mm did so wrongly.");
return GTK_UNIT_MM; return GTK_UNIT_MM;
} }
......
...@@ -85,7 +85,7 @@ g_warning_hr (const char *msg, HRESULT hr) ...@@ -85,7 +85,7 @@ g_warning_hr (const char *msg, HRESULT hr)
{ {
char *errmsg; char *errmsg;
errmsg = g_win32_error_message (hr); errmsg = g_win32_error_message (hr);
g_warning ("%s: %s\n", msg, errmsg); g_warning ("%s: %s", msg, errmsg);
g_free (errmsg); g_free (errmsg);
} }
...@@ -413,11 +413,11 @@ filechooser_win32_thread (gpointer _data) ...@@ -413,11 +413,11 @@ filechooser_win32_thread (gpointer _data)
&IID_IFileOpenDialog, (LPVOID *) &pfd); &IID_IFileOpenDialog, (LPVOID *) &pfd);
if (FAILED (hr)) if (FAILED (hr))
g_error ("Can't create FileOpenDialog: %s\n", g_win32_error_message (hr)); g_error ("Can't create FileOpenDialog: %s", g_win32_error_message (hr));
hr = IFileDialog_GetOptions (pfd, &flags); hr = IFileDialog_GetOptions (pfd, &flags);
if (FAILED (hr)) if (FAILED (hr))
g_error ("Can't get FileDialog options: %s\n", g_win32_error_message (hr)); g_error ("Can't get FileDialog options: %s", g_win32_error_message (hr));
flags |= FOS_FORCEFILESYSTEM; flags |= FOS_FORCEFILESYSTEM;
...@@ -440,7 +440,7 @@ filechooser_win32_thread (gpointer _data) ...@@ -440,7 +440,7 @@ filechooser_win32_thread (gpointer _data)
hr = IFileDialog_SetOptions (pfd, flags); hr = IFileDialog_SetOptions (pfd, flags);
if (FAILED (hr)) if (FAILED (hr))
g_error ("Can't set FileDialog options: %s\n", g_win32_error_message (hr)); g_error ("Can't set FileDialog options: %s", g_win32_error_message (hr));
if (data->title) if (data->title)
{ {
...@@ -536,7 +536,7 @@ filechooser_win32_thread (gpointer _data) ...@@ -536,7 +536,7 @@ filechooser_win32_thread (gpointer _data)
hr = IFileDialog_Advise (pfd, data->events, &cookie); hr = IFileDialog_Advise (pfd, data->events, &cookie);
if (FAILED (hr)) if (FAILED (hr))
g_error ("Can't Advise FileDialog: %s\n", g_win32_error_message (hr)); g_error ("Can't Advise FileDialog: %s", g_win32_error_message (hr));
hr = IFileDialog_Show (pfd, data->parent); hr = IFileDialog_Show (pfd, data->parent);
if (SUCCEEDED (hr)) if (SUCCEEDED (hr))
...@@ -551,18 +551,18 @@ filechooser_win32_thread (gpointer _data) ...@@ -551,18 +551,18 @@ filechooser_win32_thread (gpointer _data)
hr = IFileOpenDialog_GetResults (pfod, &res); hr = IFileOpenDialog_GetResults (pfod, &res);
if (FAILED (hr)) if (FAILED (hr))
g_error ("Can't get FileOpenDialog results: %s\n", g_win32_error_message (hr)); g_error ("Can't get FileOpenDialog results: %s", g_win32_error_message (hr));
hr = IShellItemArray_GetCount (res, &count); hr = IShellItemArray_GetCount (res, &count);
if (FAILED (hr)) if (FAILED (hr))
g_error ("Can't get FileOpenDialog count: %s\n", g_win32_error_message (hr)); g_error ("Can't get FileOpenDialog count: %s", g_win32_error_message (hr));
for (i = 0; i < count; i++) for (i = 0; i < count; i++)
{ {
IShellItem *item; IShellItem *item;
hr = IShellItemArray_GetItemAt (res, i, &item); hr = IShellItemArray_GetItemAt (res, i, &item);
if (FAILED (hr)) if (FAILED (hr))
g_error ("Can't get item at %lu: %s\n", i, g_win32_error_message (hr)); g_error ("Can't get item at %lu: %s", i, g_win32_error_message (hr));
data_add_shell_item (data, item); data_add_shell_item (data, item);
IShellItem_Release (item); IShellItem_Release (item);
} }
...@@ -575,7 +575,7 @@ filechooser_win32_thread (gpointer _data) ...@@ -575,7 +575,7 @@ filechooser_win32_thread (gpointer _data)
IShellItem *item; IShellItem *item;
hr = IFileDialog_GetResult (pfd, &item); hr = IFileDialog_GetResult (pfd, &item);
if (FAILED (hr)) if (FAILED (hr))
g_error ("Can't get FileDialog result: %s\n", g_win32_error_message (hr)); g_error ("Can't get FileDialog result: %s", g_win32_error_message (hr));
data_add_shell_item (data, item); data_add_shell_item (data, item);
IShellItem_Release (item); IShellItem_Release (item);
...@@ -584,7 +584,7 @@ filechooser_win32_thread (gpointer _data) ...@@ -584,7 +584,7 @@ filechooser_win32_thread (gpointer _data)
hr = IFileDialog_Unadvise (pfd, cookie); hr = IFileDialog_Unadvise (pfd, cookie);
if (FAILED (hr)) if (FAILED (hr))
g_error ("Can't Unadvise FileDialog: %s\n", g_win32_error_message (hr)); g_error ("Can't Unadvise FileDialog: %s", g_win32_error_message (hr));
IFileDialog_Release ((IUnknown *)pfd); IFileDialog_Release ((IUnknown *)pfd);
......
...@@ -6045,7 +6045,7 @@ gtk_file_chooser_widget_add_filter (GtkFileChooser *chooser, ...@@ -6045,7 +6045,7 @@ gtk_file_chooser_widget_add_filter (GtkFileChooser *chooser,
if (g_slist_find (priv->filters, filter)) if (g_slist_find (priv->filters, filter))
{ {
g_warning ("gtk_file_chooser_add_filter() called on filter already in list\n"); g_warning ("gtk_file_chooser_add_filter() called on filter already in list");
return; return;
} }
...@@ -6078,7 +6078,7 @@ gtk_file_chooser_widget_remove_filter (GtkFileChooser *chooser, ...@@ -6078,7 +6078,7 @@ gtk_file_chooser_widget_remove_filter (GtkFileChooser *chooser,
if (filter_index < 0) if (filter_index < 0)
{ {
g_warning ("gtk_file_chooser_remove_filter() called on filter not in list\n"); g_warning ("gtk_file_chooser_remove_filter() called on filter not in list");
return; return;
} }
......
...@@ -3256,7 +3256,7 @@ gtk_flow_box_remove (GtkContainer *container, ...@@ -3256,7 +3256,7 @@ gtk_flow_box_remove (GtkContainer *container,
child = (GtkFlowBoxChild*)gtk_widget_get_parent (widget); child = (GtkFlowBoxChild*)gtk_widget_get_parent (widget);
if (!GTK_IS_FLOW_BOX_CHILD (child)) if (!GTK_IS_FLOW_BOX_CHILD (child))
{ {
g_warning ("Tried to remove non-child %p\n", widget); g_warning ("Tried to remove non-child %p", widget);
return; return;
} }
} }
......
...@@ -144,7 +144,7 @@ _gtk_icon_cache_new_for_path (const gchar *path) ...@@ -144,7 +144,7 @@ _gtk_icon_cache_new_for_path (const gchar *path)
if (!_gtk_icon_cache_validate (&info)) if (!_gtk_icon_cache_validate (&info))
{ {
g_mapped_file_unref (map); g_mapped_file_unref (map);
g_warning ("Icon cache '%s' is invalid\n", cache_filename); g_warning ("Icon cache '%s' is invalid", cache_filename);
goto done; goto done;
} }
......
...@@ -239,7 +239,7 @@ ensure_icon_size (GtkIconHelper *self, ...@@ -239,7 +239,7 @@ ensure_icon_size (GtkIconHelper *self,
} }
else else
{ {
g_warning ("Invalid icon size %d\n", self->priv->icon_size); g_warning ("Invalid icon size %d", self->priv->icon_size);
width = height = 24; width = height = 24;
} }
} }
......
...@@ -1192,12 +1192,12 @@ insert_theme (GtkIconTheme *icon_theme, ...@@ -1192,12 +1192,12 @@ insert_theme (GtkIconTheme *icon_theme,
theme->display_name = theme->display_name =
g_key_file_get_locale_string (theme_file, "Icon Theme", "Name", NULL, NULL); g_key_file_get_locale_string (theme_file, "Icon Theme", "Name", NULL, NULL);
if (!theme->display_name) if (!theme->display_name)
g_warning ("Theme file for %s has no name\n", theme_name); g_warning ("Theme file for %s has no name", theme_name);
dirs = g_key_file_get_string_list (theme_file, "Icon Theme", "Directories", NULL, NULL); dirs = g_key_file_get_string_list (theme_file, "Icon Theme", "Directories", NULL, NULL);
if (!dirs) if (!dirs)
{ {
g_warning ("Theme file for %s has no directories\n", theme_name); g_warning ("Theme file for %s has no directories", theme_name);
priv->themes = g_list_remove (priv->themes, theme); priv->themes = g_list_remove (priv->themes, theme);
g_free (theme->name); g_free (theme->name);
g_free (theme->display_name); g_free (theme->display_name);
......
...@@ -574,7 +574,7 @@ gtk_link_button_new (const gchar *uri) ...@@ -574,7 +574,7 @@ gtk_link_button_new (const gchar *uri)
if (conv_err) if (conv_err)
{ {
g_warning ("Attempting to convert URI '%s' to UTF-8, but failed " g_warning ("Attempting to convert URI '%s' to UTF-8, but failed "
"with error: %s\n", "with error: %s",
uri, uri,
conv_err->message); conv_err->message);
g_error_free (conv_err); g_error_free (conv_err);
......
...@@ -2435,7 +2435,7 @@ gtk_list_box_remove (GtkContainer *container, ...@@ -2435,7 +2435,7 @@ gtk_list_box_remove (GtkContainer *container,
} }
else else
{ {
g_warning ("Tried to remove non-child %p\n", child); g_warning ("Tried to remove non-child %p", child);
} }
return; return;
} }
...@@ -2443,7 +2443,7 @@ gtk_list_box_remove (GtkContainer *container, ...@@ -2443,7 +2443,7 @@ gtk_list_box_remove (GtkContainer *container,
row = GTK_LIST_BOX_ROW (child); row = GTK_LIST_BOX_ROW (child);
if (g_sequence_iter_get_sequence (ROW_PRIV (row)->iter) != priv->children) if (g_sequence_iter_get_sequence (ROW_PRIV (row)->iter) != priv->children)
{ {
g_warning ("Tried to remove non-child %p\n", child); g_warning ("Tried to remove non-child %p", child);
return; return;
} }
......
...@@ -431,7 +431,7 @@ gtk_list_store_new (gint n_columns, ...@@ -431,7 +431,7 @@ gtk_list_store_new (gint n_columns,
GType type = va_arg (args, GType); GType type = va_arg (args, GType);
if (! _gtk_tree_data_list_check_type (type)) if (! _gtk_tree_data_list_check_type (type))
{ {
g_warning ("%s: Invalid type %s\n", G_STRLOC, g_type_name (type)); g_warning ("%s: Invalid type %s", G_STRLOC, g_type_name (type));
g_object_unref (retval); g_object_unref (retval);
va_end (args); va_end (args);
...@@ -472,7 +472,7 @@ gtk_list_store_newv (gint n_columns, ...@@ -472,7 +472,7 @@ gtk_list_store_newv (gint n_columns,
{ {
if (! _gtk_tree_data_list_check_type (types[i])) if (! _gtk_tree_data_list_check_type (types[i]))
{ {
g_warning ("%s: Invalid type %s\n", G_STRLOC, g_type_name (types[i])); g_warning ("%s: Invalid type %s", G_STRLOC, g_type_name (types[i]));
g_object_unref (retval); g_object_unref (retval);
return NULL; return NULL;
} }
...@@ -513,7 +513,7 @@ gtk_list_store_set_column_types (GtkListStore *list_store, ...@@ -513,7 +513,7 @@ gtk_list_store_set_column_types (GtkListStore *list_store,
{ {
if (! _gtk_tree_data_list_check_type (types[i])) if (! _gtk_tree_data_list_check_type (types[i]))
{ {
g_warning ("%s: Invalid type %s\n", G_STRLOC, g_type_name (types[i])); g_warning ("%s: Invalid type %s", G_STRLOC, g_type_name (types[i]));
continue; continue;
} }
gtk_list_store_set_column_type (list_store, i, types[i]); gtk_list_store_set_column_type (list_store, i, types[i]);
...@@ -549,7 +549,7 @@ gtk_list_store_set_column_type (GtkListStore *list_store, ...@@ -549,7 +549,7 @@ gtk_list_store_set_column_type (GtkListStore *list_store,
if (!_gtk_tree_data_list_check_type (type)) if (!_gtk_tree_data_list_check_type (type))
{ {
g_warning ("%s: Invalid type %s\n", G_STRLOC, g_type_name (type)); g_warning ("%s: Invalid type %s", G_STRLOC, g_type_name (type));
return; return;
} }
...@@ -830,7 +830,7 @@ gtk_list_store_real_set_value (GtkListStore *list_store, ...@@ -830,7 +830,7 @@ gtk_list_store_real_set_value (GtkListStore *list_store,
{ {
if (! (g_value_type_transformable (G_VALUE_TYPE (value), priv->column_headers[column]))) if (! (g_value_type_transformable (G_VALUE_TYPE (value), priv->column_headers[column])))
{ {
g_warning ("%s: Unable to convert from %s to %s\n", g_warning ("%s: Unable to convert from %s to %s",
G_STRLOC, G_STRLOC,
g_type_name (G_VALUE_TYPE (value)), g_type_name (G_VALUE_TYPE (value)),
g_type_name (priv->column_headers[column])); g_type_name (priv->column_headers[column]));
...@@ -840,7 +840,7 @@ gtk_list_store_real_set_value (GtkListStore *list_store, ...@@ -840,7 +840,7 @@ gtk_list_store_real_set_value (GtkListStore *list_store,
g_value_init (&real_value, priv->column_headers[column]); g_value_init (&real_value, priv->column_headers[column]);
if (!g_value_transform (value, &real_value)) if (!g_value_transform (value, &real_value))
{ {
g_warning ("%s: Unable to make conversion from %s to %s\n", g_warning ("%s: Unable to make conversion from %s to %s",
G_STRLOC, G_STRLOC,
g_type_name (G_VALUE_TYPE (value)), g_type_name (G_VALUE_TYPE (value)),
g_type_name (priv->column_headers[column])); g_type_name (priv->column_headers[column]));
......
...@@ -1196,7 +1196,7 @@ gtk_get_locale_direction (void) ...@@ -1196,7 +1196,7 @@ gtk_get_locale_direction (void)
if (g_strcmp0 (e, "default:RTL") == 0) if (g_strcmp0 (e, "default:RTL") == 0)
dir = GTK_TEXT_DIR_RTL; dir = GTK_TEXT_DIR_RTL;
else if (g_strcmp0 (e, "default:LTR") != 0) else if (g_strcmp0 (e, "default:LTR") != 0)
g_warning ("Whoever translated default:LTR did so wrongly. Defaulting to LTR.\n"); g_warning ("Whoever translated default:LTR did so wrongly. Defaulting to LTR.");
return dir; return dir;
} }
......
...@@ -160,7 +160,7 @@ get_utf8_property (Display *xdisplay, ...@@ -160,7 +160,7 @@ get_utf8_property (Display *xdisplay,
if (!g_utf8_validate (val, nitems, NULL)) if (!g_utf8_validate (val, nitems, NULL))
{ {
g_warning ("Property %s contained invalid UTF-8\n", g_warning ("Property %s contained invalid UTF-8",
gdk_x11_get_xatom_name (atom)); gdk_x11_get_xatom_name (atom));
XFree (val); XFree (val);
return NULL; return NULL;
......
...@@ -760,7 +760,7 @@ call_password_proxy_cb (GObject *source, ...@@ -760,7 +760,7 @@ call_password_proxy_cb (GObject *source,
&error)) &error))
{ {
result = G_MOUNT_OPERATION_ABORTED; result = G_MOUNT_OPERATION_ABORTED;
g_warning ("Shell mount operation error: %s\n", error->message); g_warning ("Shell mount operation error: %s", error->message);
g_error_free (error); g_error_free (error);
goto out; goto out;
} }
...@@ -927,7 +927,7 @@ call_question_proxy_cb (GObject *source, ...@@ -927,7 +927,7 @@ call_question_proxy_cb (GObject *source,
&error)) &error))
{ {
result = G_MOUNT_OPERATION_ABORTED; result = G_MOUNT_OPERATION_ABORTED;
g_warning ("Shell mount operation error: %s\n", error->message); g_warning ("Shell mount operation error: %s", error->message);
g_error_free (error); g_error_free (error);
goto out; goto out;
} }
...@@ -1549,7 +1549,7 @@ call_processes_proxy_cb (GObject *source, ...@@ -1549,7 +1549,7 @@ call_processes_proxy_cb (GObject *source,
&error)) &error))
{ {
result = G_MOUNT_OPERATION_ABORTED; result = G_MOUNT_OPERATION_ABORTED;
g_warning ("Shell mount operation error: %s\n", error->message); g_warning ("Shell mount operation error: %s", error->message);
g_error_free (error); g_error_free (error);
goto out; goto out;
}