weekly notes : 01/2025

  • Learned how to use meson to build gjs gtk4 app
  • Learned how to add titlebar to Adwaitda application window
    • In Gtk.ApplicationWindow we have the set_titlebar method which is missing in Adw.ApplicationWindow
      const headerBar = new Adw.HeaderBar();
      const menu = new MenuButton();
      headerBar.pack_end(menu);
      const content = new Gtk.Box({ orientation: Gtk.Orientation.VERTICAL });
    
      content.append(headerBar);
      this.set_content(content);
    
    • Make sure to use set_content instead of set_child with Adw.ApplicationWindow
  • Released bender with basic functionality.
  • Released create-gtk npm initializer to easily bootstrap GTK apps using TypeScript & esbuild
If you find my work helpful, You can buy me a coffee.