Browse Source

use icon

CPP-GTK4
yggverse 5 months ago
parent
commit
e089acca6c
  1. 11
      src/app/browser/header/tab.cpp
  2. 3
      src/app/browser/header/tab.h

11
src/app/browser/header/tab.cpp

@ -12,11 +12,18 @@ namespace app::browser::header @@ -12,11 +12,18 @@ namespace app::browser::header
// Init GTK
this->gtk = gtk_button_new();
gtk_button_set_label (
gtk_button_set_icon_name(
GTK_BUTTON(
this->gtk
),
Tab::LABEL
Tab::ICON
);
gtk_widget_set_tooltip_text(
GTK_WIDGET(
this->gtk
),
Tab::TOOLTIP
);
// Render

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

@ -21,7 +21,8 @@ namespace app::browser @@ -21,7 +21,8 @@ namespace app::browser
Header *header;
// Defaults
const gchar *LABEL = "New tab";
const gchar *ICON = "tab-new-symbolic";
const gchar *TOOLTIP = "New tab";
// Constructor
Tab(

Loading…
Cancel
Save