[evolution/gnome-3-22] Bug 774958 - Don't show a tooltip for the subject line field
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-3-22] Bug 774958 - Don't show a tooltip for the subject line field
- Date: Tue, 6 Dec 2016 12:42:35 +0000 (UTC)
commit 773eb7748f2f793c5bb24b153352bdb2d69023c3
Author: Milan Crha <mcrha redhat com>
Date: Tue Dec 6 13:40:50 2016 +0100
Bug 774958 - Don't show a tooltip for the subject line field
composer/e-composer-header-table.c | 2 ++
composer/e-composer-header.c | 34 ++++++++++++++++++++++++++++++++++
composer/e-composer-header.h | 10 ++++++++++
3 files changed, 46 insertions(+), 0 deletions(-)
---
diff --git a/composer/e-composer-header-table.c b/composer/e-composer-header-table.c
index 40b75aa..3bd49fa 100644
--- a/composer/e-composer-header-table.c
+++ b/composer/e-composer-header-table.c
@@ -861,6 +861,8 @@ composer_header_table_constructed (GObject *object)
header = e_composer_spell_header_new_label (registry, _("S_ubject:"));
composer_header_table_bind_header ("subject", "changed", header);
+ e_composer_header_set_title_has_tooltip (header, FALSE);
+ e_composer_header_set_input_has_tooltip (header, FALSE);
table->priv->headers[E_COMPOSER_HEADER_SUBJECT] = header;
widget = e_mail_signature_combo_box_new (registry);
diff --git a/composer/e-composer-header.c b/composer/e-composer-header.c
index d114297..602aef6 100644
--- a/composer/e-composer-header.c
+++ b/composer/e-composer-header.c
@@ -427,3 +427,37 @@ e_composer_header_set_input_tooltip (EComposerHeader *header,
gtk_widget_set_tooltip_text (header->input_widget, tooltip);
}
+
+gboolean
+e_composer_header_get_title_has_tooltip (EComposerHeader *header)
+{
+ g_return_val_if_fail (E_IS_COMPOSER_HEADER (header), FALSE);
+
+ return gtk_widget_get_has_tooltip (header->title_widget);
+}
+
+void
+e_composer_header_set_title_has_tooltip (EComposerHeader *header,
+ gboolean has_tooltip)
+{
+ g_return_if_fail (E_IS_COMPOSER_HEADER (header));
+
+ gtk_widget_set_has_tooltip (header->title_widget, has_tooltip);
+}
+
+gboolean
+e_composer_header_get_input_has_tooltip (EComposerHeader *header)
+{
+ g_return_val_if_fail (E_IS_COMPOSER_HEADER (header), FALSE);
+
+ return gtk_widget_get_has_tooltip (header->input_widget);
+}
+
+void
+e_composer_header_set_input_has_tooltip (EComposerHeader *header,
+ gboolean has_tooltip)
+{
+ g_return_if_fail (E_IS_COMPOSER_HEADER (header));
+
+ gtk_widget_set_has_tooltip (header->input_widget, has_tooltip);
+}
diff --git a/composer/e-composer-header.h b/composer/e-composer-header.h
index dd30e73..1ce4507 100644
--- a/composer/e-composer-header.h
+++ b/composer/e-composer-header.h
@@ -76,6 +76,16 @@ void e_composer_header_set_title_tooltip
void e_composer_header_set_input_tooltip
(EComposerHeader *header,
const gchar *tooltip);
+gboolean e_composer_header_get_title_has_tooltip
+ (EComposerHeader *header);
+void e_composer_header_set_title_has_tooltip
+ (EComposerHeader *header,
+ gboolean has_tooltip);
+gboolean e_composer_header_get_input_has_tooltip
+ (EComposerHeader *header);
+void e_composer_header_set_input_has_tooltip
+ (EComposerHeader *header,
+ gboolean has_tooltip);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]