Browse Source

use icon

CPP-GTK4
yggverse 3 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
// Init GTK // Init GTK
this->gtk = gtk_button_new(); this->gtk = gtk_button_new();
gtk_button_set_label ( gtk_button_set_icon_name(
GTK_BUTTON( GTK_BUTTON(
this->gtk this->gtk
), ),
Tab::LABEL Tab::ICON
);
gtk_widget_set_tooltip_text(
GTK_WIDGET(
this->gtk
),
Tab::TOOLTIP
); );
// Render // Render

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

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

Loading…
Cancel
Save