From c9306bb4cd3b4e8b1efc07b5d3fc74ce36eefa4d Mon Sep 17 00:00:00 2001 From: yggverse Date: Tue, 6 Aug 2024 21:51:37 +0300 Subject: [PATCH] add tooltip --- src/app/browser/header/menu.cpp | 7 +++++++ src/app/browser/header/menu.h | 3 +++ 2 files changed, 10 insertions(+) diff --git a/src/app/browser/header/menu.cpp b/src/app/browser/header/menu.cpp index b4dc88bf..ac97afe1 100644 --- a/src/app/browser/header/menu.cpp +++ b/src/app/browser/header/menu.cpp @@ -12,6 +12,13 @@ namespace app::browser::header // Init GTK this->gtk = gtk_menu_button_new(); + gtk_widget_set_tooltip_text( + GTK_WIDGET( + this->gtk + ), + Menu::TOOLTIP + ); + // Init requirements this->main = new menu::Main( this diff --git a/src/app/browser/header/menu.h b/src/app/browser/header/menu.h index e47ed1c4..73ce49e1 100644 --- a/src/app/browser/header/menu.h +++ b/src/app/browser/header/menu.h @@ -31,6 +31,9 @@ namespace app::browser // Requirements menu::Main *main; + // Defaults + const gchar *TOOLTIP = "Menu"; + // Constructor Menu( Header *header