Browse Source

add tooltip

CPP-GTK4
yggverse 4 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 @@ -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

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

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

Loading…
Cancel
Save