From e089acca6c69fe758243ca88a7d8bf7ca5588a3b Mon Sep 17 00:00:00 2001 From: yggverse Date: Tue, 6 Aug 2024 21:49:02 +0300 Subject: [PATCH] use icon --- src/app/browser/header/tab.cpp | 11 +++++++++-- src/app/browser/header/tab.h | 3 ++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/app/browser/header/tab.cpp b/src/app/browser/header/tab.cpp index a6b87a22..e3d0a3a9 100644 --- a/src/app/browser/header/tab.cpp +++ b/src/app/browser/header/tab.cpp @@ -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 diff --git a/src/app/browser/header/tab.h b/src/app/browser/header/tab.h index 11814d3b..1c93ff62 100644 --- a/src/app/browser/header/tab.h +++ b/src/app/browser/header/tab.h @@ -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(