From 6f77138796565bf0bad5297bb830e3204fc4c687 Mon Sep 17 00:00:00 2001 From: yggverse Date: Tue, 17 Sep 2024 07:10:28 +0300 Subject: [PATCH] implement pin widget --- src/app/browser/main/tab/label/pin.cpp | 10 ++++++++++ src/app/browser/main/tab/label/pin.hpp | 19 +++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 src/app/browser/main/tab/label/pin.cpp create mode 100644 src/app/browser/main/tab/label/pin.hpp diff --git a/src/app/browser/main/tab/label/pin.cpp b/src/app/browser/main/tab/label/pin.cpp new file mode 100644 index 00000000..f6f97ae6 --- /dev/null +++ b/src/app/browser/main/tab/label/pin.cpp @@ -0,0 +1,10 @@ +#include "pin.hpp" + +using namespace app::browser::main::tab::label; + +Pin::Pin() +{ + set_from_icon_name( + "view-pin-symbolic" + ); +} \ No newline at end of file diff --git a/src/app/browser/main/tab/label/pin.hpp b/src/app/browser/main/tab/label/pin.hpp new file mode 100644 index 00000000..c56408a2 --- /dev/null +++ b/src/app/browser/main/tab/label/pin.hpp @@ -0,0 +1,19 @@ +#ifndef APP_BROWSER_MAIN_TAB_LABEL_PIN_HPP +#define APP_BROWSER_MAIN_TAB_LABEL_PIN_HPP + +#include + +namespace app::browser::main::tab::label +{ + class Pin : public Gtk::Image + { + /* + * Class API + */ + public: + + Pin(); + }; +} + +#endif // APP_BROWSER_MAIN_TAB_LABEL_PIN_HPP \ No newline at end of file