diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..dfc21eb --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*.o +*.out \ No newline at end of file diff --git a/main.cpp b/main.cpp index e3f81cd..f636e31 100644 --- a/main.cpp +++ b/main.cpp @@ -27,25 +27,25 @@ #include #include -std::unique_ptr client = nullptr; +static std::unique_ptr client = nullptr; -std::unordered_map channelRowToId; -std::unordered_map> messages; -std::string currentChannelId; +static std::unordered_map channelRowToId; +static std::unordered_map> messages; +static std::string currentChannelId; -Gtk::Window* window; +static Gtk::Window* window; -Gtk::Widget* loginInterface; -Gtk::Entry* domainEntry; -Gtk::Entry* usernameEntry; -Gtk::Entry* passwordEntry; -Gtk::Button* loginButton; +static Gtk::Widget* loginInterface; +static Gtk::Entry* domainEntry; +static Gtk::Entry* usernameEntry; +static Gtk::Entry* passwordEntry; +static Gtk::Button* loginButton; -Gtk::Widget* chatInterface; -Gtk::ListBox* channelList; -Gtk::ListBox* messageList; -Gtk::Entry* messageEntry; -Gtk::Label* usernameLabel; +static Gtk::Widget* chatInterface; +static Gtk::ListBox* channelList; +static Gtk::ListBox* messageList; +static Gtk::Entry* messageEntry; +static Gtk::Label* usernameLabel; gboolean update(gpointer) { client->processNextEvent();