Browse Source

add tooltip

CPP-GTK4
yggverse 3 months ago
parent
commit
c9306bb4cd
  1. 7
      src/app/browser/header/menu.cpp
  2. 3
      src/app/browser/header/menu.h

7
src/app/browser/header/menu.cpp

@ -12,6 +12,13 @@ namespace app::browser::header
// Init GTK // Init GTK
this->gtk = gtk_menu_button_new(); this->gtk = gtk_menu_button_new();
gtk_widget_set_tooltip_text(
GTK_WIDGET(
this->gtk
),
Menu::TOOLTIP
);
// Init requirements // Init requirements
this->main = new menu::Main( this->main = new menu::Main(
this this

3
src/app/browser/header/menu.h

@ -31,6 +31,9 @@ namespace app::browser
// Requirements // Requirements
menu::Main *main; menu::Main *main;
// Defaults
const gchar *TOOLTIP = "Menu";
// Constructor // Constructor
Menu( Menu(
Header *header Header *header

Loading…
Cancel
Save