Browse Source

enshort common namespaces

CPP-GTK4
yggverse 4 months ago
parent
commit
0d624d3db7
  1. 45
      src/app/browser/header/bar/title.cpp
  2. 36
      src/app/browser/header/bar/title.h

45
src/app/browser/header/bar/title.cpp

@ -1,33 +1,24 @@ @@ -1,33 +1,24 @@
#include "title.h"
namespace app
namespace app::browser::header::bar
{
namespace browser
{
namespace header
{
namespace bar
{
// Construct
Title::Title(
Bar *bar
) {
// Init dependencies
this->bar = bar;
// Construct
Title::Title(
Bar *bar
) {
// Init dependencies
this->bar = bar;
// Init GTK
this->gtk = gtk_label_new(
Title::LABEL
);
// Init GTK
this->gtk = gtk_label_new(
Title::LABEL
);
// Render
gtk_widget_show(
GTK_WIDGET(
this->gtk
)
);
}
}
}
// Render
gtk_widget_show(
GTK_WIDGET(
this->gtk
)
);
}
}
}

36
src/app/browser/header/bar/title.h

@ -4,34 +4,28 @@ @@ -4,34 +4,28 @@
// Dependencies
#include "../bar.h"
namespace app
namespace app::browser::header
{
namespace browser
class Bar;
namespace bar
{
namespace header
class Title
{
class Bar;
namespace bar
{
class Title
{
public:
public:
// GTK
GtkWidget *gtk;
// GTK
GtkWidget *gtk;
// Defaults
const char* LABEL = "Yoda";
// Defaults
const char* LABEL = "Yoda";
// Dependencies
Bar *bar;
// Dependencies
Bar *bar;
Title(
Bar *bar
);
};
};
Title(
Bar *bar
);
};
};
};

Loading…
Cancel
Save