Skip to content

Commit

Permalink
Merge pull request #37 from ItsJamie9494/main
Browse files Browse the repository at this point in the history
main: Fix Init Bugs
  • Loading branch information
lleyton authored May 12, 2023
2 parents b45af40 + 85d29dd commit 773e39a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/Main.vala
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
*/

namespace He {
private void init () {
Gdk.Display display = Gdk.Display.get_default ();

// Ensure that the app has Gtk initialized.
public void init () {
// Ensure Gtk is properly initialized
Gtk.init ();

Gdk.Display display = Gdk.Display.get_default ();

// Ensure all classes listed here are available for use.
// Remove only if the class is not needed anymore.
typeof (He.AboutWindow).ensure ();
Expand Down

0 comments on commit 773e39a

Please sign in to comment.