[Xfce4-commits] [apps/xfce4-terminal] 01/01: Add tooltips for "Set Title" popover elements
noreply at xfce.org
noreply at xfce.org
Sat Mar 31 19:11:03 CEST 2018
This is an automated email from the git hooks/post-receive script.
f 2 4 0 4 p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository apps/xfce4-terminal.
commit 2fa45f386eede284b93c0159b10e9d4609ae72d8
Author: Igor <f2404 at yandex.ru>
Date: Sat Mar 31 13:10:32 2018 -0400
Add tooltips for "Set Title" popover elements
---
terminal/terminal-window.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/terminal/terminal-window.c b/terminal/terminal-window.c
index 9f30716..d039a01 100644
--- a/terminal/terminal-window.c
+++ b/terminal/terminal-window.c
@@ -2092,7 +2092,6 @@ static void
terminal_window_action_set_title (GtkAction *action,
TerminalWindow *window)
{
- AtkObject *object;
GtkWidget *button;
GtkWidget *box;
GtkWidget *label;
@@ -2122,17 +2121,15 @@ terminal_window_action_set_title (GtkAction *action,
gtk_box_pack_start (GTK_BOX (box), label, FALSE, TRUE, 0);
entry = gtk_entry_new ();
+ gtk_widget_set_tooltip_text (entry, _("Enter the title for the current terminal tab"));
gtk_box_pack_start (GTK_BOX (box), entry, TRUE, TRUE, 0);
gtk_entry_set_activates_default (GTK_ENTRY (entry), TRUE);
gtk_label_set_mnemonic_widget (GTK_LABEL (label), entry);
gtk_entry_set_icon_from_icon_name (GTK_ENTRY (entry), GTK_ENTRY_ICON_SECONDARY, "edit-clear");
+ gtk_entry_set_icon_tooltip_text (GTK_ENTRY (entry), GTK_ENTRY_ICON_SECONDARY, _("Reset"));
g_signal_connect (G_OBJECT (entry), "icon-release", G_CALLBACK (title_popover_clear), NULL);
g_signal_connect (G_OBJECT (entry), "activate", G_CALLBACK (title_popover_close), window);
- /* set Atk description and label relation for the entry */
- object = gtk_widget_get_accessible (entry);
- atk_object_set_description (object, _("Enter the title for the current terminal tab"));
-
g_object_bind_property (G_OBJECT (window->priv->active), "custom-title",
G_OBJECT (entry), "text",
G_BINDING_BIDIRECTIONAL | G_BINDING_SYNC_CREATE);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list