mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 01:25:27 +00:00
enshort common namespaces
This commit is contained in:
parent
a830082b6b
commit
0d624d3db7
2 changed files with 33 additions and 48 deletions
|
|
@ -1,33 +1,24 @@
|
||||||
#include "title.h"
|
#include "title.h"
|
||||||
|
|
||||||
namespace app
|
namespace app::browser::header::bar
|
||||||
{
|
{
|
||||||
namespace browser
|
// Construct
|
||||||
{
|
Title::Title(
|
||||||
namespace header
|
Bar *bar
|
||||||
{
|
) {
|
||||||
namespace bar
|
// Init dependencies
|
||||||
{
|
this->bar = bar;
|
||||||
// Construct
|
|
||||||
Title::Title(
|
|
||||||
Bar *bar
|
|
||||||
) {
|
|
||||||
// Init dependencies
|
|
||||||
this->bar = bar;
|
|
||||||
|
|
||||||
// Init GTK
|
// Init GTK
|
||||||
this->gtk = gtk_label_new(
|
this->gtk = gtk_label_new(
|
||||||
Title::LABEL
|
Title::LABEL
|
||||||
);
|
);
|
||||||
|
|
||||||
// Render
|
// Render
|
||||||
gtk_widget_show(
|
gtk_widget_show(
|
||||||
GTK_WIDGET(
|
GTK_WIDGET(
|
||||||
this->gtk
|
this->gtk
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -4,34 +4,28 @@
|
||||||
// Dependencies
|
// Dependencies
|
||||||
#include "../bar.h"
|
#include "../bar.h"
|
||||||
|
|
||||||
namespace app
|
namespace app::browser::header
|
||||||
{
|
{
|
||||||
namespace browser
|
class Bar;
|
||||||
|
|
||||||
|
namespace bar
|
||||||
{
|
{
|
||||||
namespace header
|
class Title
|
||||||
{
|
{
|
||||||
class Bar;
|
public:
|
||||||
|
|
||||||
namespace bar
|
// GTK
|
||||||
{
|
GtkWidget *gtk;
|
||||||
class Title
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
|
|
||||||
// GTK
|
// Defaults
|
||||||
GtkWidget *gtk;
|
const char* LABEL = "Yoda";
|
||||||
|
|
||||||
// Defaults
|
// Dependencies
|
||||||
const char* LABEL = "Yoda";
|
Bar *bar;
|
||||||
|
|
||||||
// Dependencies
|
Title(
|
||||||
Bar *bar;
|
Bar *bar
|
||||||
|
);
|
||||||
Title(
|
|
||||||
Bar *bar
|
|
||||||
);
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue