Browse Source

rename header bar class

CPP-GTK4
yggverse 4 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\
src/app/browser/container/page.cpp\ src/app/browser/container/page.cpp\
src/app/browser/container/tab.cpp\ src/app/browser/container/tab.cpp\
src/app/browser/header.cpp\ src/app/browser/header.cpp\
src/app/browser/header/title.cpp\ src/app/browser/header/bar.cpp\
src/app/browser/menu.cpp src/app/browser/menu.cpp
OBJS = $(SRCS:.cpp=.o) OBJS = $(SRCS:.cpp=.o)

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

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

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

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