mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
use namespace
This commit is contained in:
parent
cc262ea69d
commit
a67b5ad018
3 changed files with 17 additions and 14 deletions
|
|
@ -1,6 +1,6 @@
|
|||
#include "Browser.h"
|
||||
|
||||
YodaBrowser::YodaBrowser(
|
||||
Yoda::Browser::Browser(
|
||||
GtkApplication *application
|
||||
) {
|
||||
this->gtk = gtk_application_window_new(
|
||||
|
|
@ -13,15 +13,15 @@ YodaBrowser::YodaBrowser(
|
|||
GTK_WINDOW(
|
||||
this->gtk
|
||||
),
|
||||
YodaBrowser::TITLE
|
||||
Browser::TITLE
|
||||
);
|
||||
|
||||
gtk_window_set_default_size(
|
||||
GTK_WINDOW(
|
||||
this->gtk
|
||||
),
|
||||
YodaBrowser::WIDTH,
|
||||
YodaBrowser::HEIGHT
|
||||
Browser::WIDTH,
|
||||
Browser::HEIGHT
|
||||
);
|
||||
|
||||
GtkWidget *label = gtk_label_new(
|
||||
|
|
|
|||
|
|
@ -3,19 +3,22 @@
|
|||
|
||||
#include "../main.h"
|
||||
|
||||
class YodaBrowser
|
||||
namespace Yoda
|
||||
{
|
||||
public:
|
||||
class Browser
|
||||
{
|
||||
public:
|
||||
|
||||
GtkWidget *gtk;
|
||||
GtkWidget *gtk;
|
||||
|
||||
const guint WIDTH = 640;
|
||||
const guint HEIGHT = 480;
|
||||
const gchar* TITLE = "Yoda";
|
||||
const guint WIDTH = 640;
|
||||
const guint HEIGHT = 480;
|
||||
const gchar* TITLE = "Yoda";
|
||||
|
||||
YodaBrowser(
|
||||
GtkApplication *application
|
||||
);
|
||||
Browser(
|
||||
GtkApplication *application
|
||||
);
|
||||
};
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
@ -4,7 +4,7 @@ void activate(
|
|||
GtkApplication *application
|
||||
) {
|
||||
// Init default component
|
||||
new YodaBrowser(
|
||||
new Yoda::Browser(
|
||||
application
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue