[gedit/wip/tab-cleanup] tab: more cleanup
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit/wip/tab-cleanup] tab: more cleanup
- Date: Sun, 15 Jun 2014 21:16:11 +0000 (UTC)
commit f22d00eb640b7265a376dd00292c6098b5f2bef9
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sun Jun 15 23:14:24 2014 +0200
tab: more cleanup
gedit/gedit-tab.c | 25 ++++++-------------------
1 files changed, 6 insertions(+), 19 deletions(-)
---
diff --git a/gedit/gedit-tab.c b/gedit/gedit-tab.c
index 8be4d4f..cd76f85 100644
--- a/gedit/gedit-tab.c
+++ b/gedit/gedit-tab.c
@@ -1175,11 +1175,7 @@ static void
end_saving (GeditTab *tab)
{
/* Reset tmp data for saving */
- if (tab->priv->tmp_save_location)
- {
- g_object_unref (tab->priv->tmp_save_location);
- tab->priv->tmp_save_location = NULL;
- }
+ g_clear_object (&tab->priv->tmp_save_location);
tab->priv->tmp_encoding = NULL;
}
@@ -1236,9 +1232,7 @@ invalid_character_info_bar_response (GtkWidget *info_bar,
}
else
{
- unrecoverable_saving_error_info_bar_response (info_bar,
- response_id,
- tab);
+ unrecoverable_saving_error_info_bar_response (info_bar, response_id, tab);
}
}
@@ -1263,9 +1257,7 @@ no_backup_error_info_bar_response (GtkWidget *info_bar,
}
else
{
- unrecoverable_saving_error_info_bar_response (info_bar,
- response_id,
- tab);
+ unrecoverable_saving_error_info_bar_response (info_bar, response_id, tab);
}
}
@@ -1292,9 +1284,7 @@ externally_modified_error_info_bar_response (GtkWidget *info_bar,
}
else
{
- unrecoverable_saving_error_info_bar_response (info_bar,
- response_id,
- tab);
+ unrecoverable_saving_error_info_bar_response (info_bar, response_id, tab);
}
}
@@ -1310,8 +1300,7 @@ recoverable_saving_error_info_bar_response (GtkWidget *info_bar,
const GeditEncoding *encoding;
gchar *tmp_uri;
- encoding = gedit_conversion_error_info_bar_get_encoding (
- GTK_WIDGET (info_bar));
+ encoding = gedit_conversion_error_info_bar_get_encoding (GTK_WIDGET (info_bar));
g_return_if_fail (encoding != NULL);
@@ -1336,9 +1325,7 @@ recoverable_saving_error_info_bar_response (GtkWidget *info_bar,
}
else
{
- unrecoverable_saving_error_info_bar_response (info_bar,
- response_id,
- tab);
+ unrecoverable_saving_error_info_bar_response (info_bar, response_id, tab);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]