[gedit] Keep default buttons orientation for TeplInfoBars
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Keep default buttons orientation for TeplInfoBars
- Date: Sun, 3 May 2020 13:39:46 +0000 (UTC)
commit 8b2fa9092eb29b2a1cd4a7134a24117fb57b6ba5
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sun May 3 15:35:28 2020 +0200
Keep default buttons orientation for TeplInfoBars
Fixes https://gitlab.gnome.org/GNOME/gedit/-/issues/292
gedit/gedit-tab.c | 6 ------
1 file changed, 6 deletions(-)
---
diff --git a/gedit/gedit-tab.c b/gedit/gedit-tab.c
index ef5602a10..75f0097a2 100644
--- a/gedit/gedit-tab.c
+++ b/gedit/gedit-tab.c
@@ -1242,7 +1242,6 @@ display_externally_modified_notification (GeditTab *tab)
document_modified = gtk_text_buffer_get_modified (GTK_TEXT_BUFFER (doc));
info_bar = tepl_io_error_info_bar_externally_modified (location, document_modified);
- tepl_info_bar_set_buttons_orientation (info_bar, GTK_ORIENTATION_HORIZONTAL);
set_info_bar (tab, GTK_WIDGET (info_bar), GTK_RESPONSE_OK);
@@ -1757,7 +1756,6 @@ successful_load (GTask *loading_task)
set_editable (data->tab, FALSE);
info_bar = tepl_io_error_info_bar_file_already_open (location);
- tepl_info_bar_set_buttons_orientation (info_bar, GTK_ORIENTATION_HORIZONTAL);
g_signal_connect (info_bar,
"response",
@@ -2313,8 +2311,6 @@ save_cb (GtkSourceFileSaver *saver,
info_bar = GTK_WIDGET (tepl_io_error_info_bar_cant_create_backup (location, error));
g_return_if_fail (info_bar != NULL);
- tepl_info_bar_set_buttons_orientation (TEPL_INFO_BAR (info_bar),
GTK_ORIENTATION_HORIZONTAL);
-
g_signal_connect (info_bar,
"response",
G_CALLBACK (cant_create_backup_error_info_bar_response),
@@ -2329,8 +2325,6 @@ save_cb (GtkSourceFileSaver *saver,
info_bar = GTK_WIDGET (tepl_io_error_info_bar_invalid_characters (location));
g_return_if_fail (info_bar != NULL);
- tepl_info_bar_set_buttons_orientation (TEPL_INFO_BAR (info_bar),
GTK_ORIENTATION_HORIZONTAL);
-
g_signal_connect (info_bar,
"response",
G_CALLBACK (invalid_character_info_bar_response),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]