[libpanel] headerbar: connect tooltip for headerbar frame headers
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libpanel] headerbar: connect tooltip for headerbar frame headers
- Date: Tue, 27 Sep 2022 04:41:49 +0000 (UTC)
commit fe57c87af549ebfbb58cc2a8d321114007d30afb
Author: Christian Hergert <chergert redhat com>
Date: Mon Sep 26 21:36:51 2022 -0700
headerbar: connect tooltip for headerbar frame headers
src/panel-frame-header-bar.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/panel-frame-header-bar.c b/src/panel-frame-header-bar.c
index 1308ac3..a1bbcf6 100644
--- a/src/panel-frame-header-bar.c
+++ b/src/panel-frame-header-bar.c
@@ -447,6 +447,7 @@ panel_frame_header_bar_init (PanelFrameHeaderBar *self)
self->bindings = g_binding_group_new ();
g_binding_group_bind (self->bindings, "title", self->title, "label", 0);
+ g_binding_group_bind (self->bindings, "tooltip", self->title_button, "tooltip-text", 0);
g_binding_group_bind_full (self->bindings, "modified",
self->modified, "label",
0, boolean_to_modified, NULL, NULL, NULL);
@@ -479,6 +480,7 @@ panel_frame_header_bar_page_changed (PanelFrameHeader *header,
if (page == NULL)
{
gtk_label_set_label (self->title, NULL);
+ gtk_widget_set_tooltip_text (GTK_WIDGET (self->title_button), NULL);
gtk_label_set_attributes (self->title, NULL);
gtk_widget_hide (GTK_WIDGET (self->modified));
gtk_image_clear (self->image);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]