Browse Source

rename header bar class

CPP-GTK4
yggverse 5 months ago
parent
commit
5699735bf0
  1. 2
      Makefile
  2. 6
      src/app/browser/header/bar.cpp
  3. 4
      src/app/browser/header/bar.h

2
Makefile

@ -11,7 +11,7 @@ SRCS = src/main.cpp\ @@ -11,7 +11,7 @@ SRCS = src/main.cpp\
src/app/browser/container/page.cpp\
src/app/browser/container/tab.cpp\
src/app/browser/header.cpp\
src/app/browser/header/title.cpp\
src/app/browser/header/bar.cpp\
src/app/browser/menu.cpp
OBJS = $(SRCS:.cpp=.o)

6
src/app/browser/header/title.cpp → src/app/browser/header/bar.cpp

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
#include "title.h"
#include "bar.h"
namespace app
{
@ -7,13 +7,13 @@ namespace app @@ -7,13 +7,13 @@ namespace app
namespace header
{
// Construct
Title::Title(
Bar::Bar(
Header *header
) {
// Init GTK
this->gtk = gtk_box_new(
GTK_ORIENTATION_HORIZONTAL,
Title::SPACING
Bar::SPACING
);
gtk_widget_show(

4
src/app/browser/header/title.h → src/app/browser/header/bar.h

@ -12,7 +12,7 @@ namespace app @@ -12,7 +12,7 @@ namespace app
namespace header
{
class Title
class Bar
{
public:
@ -25,7 +25,7 @@ namespace app @@ -25,7 +25,7 @@ namespace app
// Dependencies
Header *header;
Title(
Bar(
Header *header
);
};
Loading…
Cancel
Save