[gedit] io-error-info-bar: externally_modified: remove unneeded code
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] io-error-info-bar: externally_modified: remove unneeded code
- Date: Tue, 24 Mar 2020 12:29:07 +0000 (UTC)
commit 44cff9798b64862e70d526318b5ad923793f6ef0
Author: Sébastien Wilmet <swilmet gnome org>
Date: Tue Mar 24 13:07:21 2020 +0100
io-error-info-bar: externally_modified: remove unneeded code
It's not needed because the other button is a close button, added with
gtk_info_bar_set_show_close_button(), and the infobar still looks good
after this change.
Drop changes and reload.
gedit/gedit-io-error-info-bar.c | 15 +++------------
1 file changed, 3 insertions(+), 12 deletions(-)
---
diff --git a/gedit/gedit-io-error-info-bar.c b/gedit/gedit-io-error-info-bar.c
index 92cb27c95..a55b656a5 100644
--- a/gedit/gedit-io-error-info-bar.c
+++ b/gedit/gedit-io-error-info-bar.c
@@ -888,18 +888,9 @@ gedit_externally_modified_info_bar_new (GFile *location,
if (document_modified)
{
- GtkWidget *button;
- GtkWidget *action_area;
-
- button = gtk_info_bar_add_button (GTK_INFO_BAR (info_bar),
- _("Drop Changes and _Reload"),
- GTK_RESPONSE_OK);
-
- action_area = gtk_info_bar_get_action_area (GTK_INFO_BAR (info_bar));
- if (GTK_IS_BUTTON_BOX (action_area))
- {
- gtk_button_box_set_child_non_homogeneous (GTK_BUTTON_BOX (action_area), button, TRUE);
- }
+ gtk_info_bar_add_button (GTK_INFO_BAR (info_bar),
+ _("Drop Changes and _Reload"),
+ GTK_RESPONSE_OK);
}
else
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]