[evolution] 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] Bug 774958 - Don't show a tooltip for the subject line field
- Date: Tue, 6 Dec 2016 12:41:11 +0000 (UTC)
commit 603928d5f3422ef610e6dd8884eb432516d5d3f4
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
src/composer/e-composer-header-table.c | 2 +
src/composer/e-composer-header.c | 34 ++++++++++++++++++++++++++++++++
src/composer/e-composer-header.h | 10 +++++++++
3 files changed, 46 insertions(+), 0 deletions(-)
---
diff --git a/src/composer/e-composer-header-table.c b/src/composer/e-composer-header-table.c
index 8291c83..70b67b3 100644
--- a/src/composer/e-composer-header-table.c
+++ b/src/composer/e-composer-header-table.c
@@ -872,6 +872,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/src/composer/e-composer-header.c b/src/composer/e-composer-header.c
index 7ea39cc..ab0878d 100644
--- a/src/composer/e-composer-header.c
+++ b/src/composer/e-composer-header.c
@@ -425,3 +425,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/src/composer/e-composer-header.h b/src/composer/e-composer-header.h
index dd30e73..1ce4507 100644
--- a/src/composer/e-composer-header.h
+++ b/src/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]