Rub. Like Boop.


The media in this post is not displayed to visitors. To view it, please log in.

A new entry in #DepUnPr catalog: Rub

Rub is "A scriptable scratchpad for developers."
Rub is like Boop-GTK, which is a port of Boop.
Rub is written in #vala #Gtk4 #libadwaita.
Rub should be compatible with scripts for Boop.
Rub comes with core scripts from Boop.
Rub description is also stolen from Boop. Sorry.

Rub needs an #icon

git.sr.ht/~fabrixxm/rub

I'm trying to write a thing in #vala with #javascriptcoregtk to run some user-defined scripts. I want to create an object which 'proxies' data from the app.

I'm trying to use Context.register_class to register a class with some properties, and then create an instance via JSC.Value.object, but I can't manage to get the object I want.

// test.vala
// valac -o test --pkg javascriptcoregtk-6.0 test.vala && G_MESSAGES_DEBUG=all ./test

static void main() {
  var vm = new JSC.VirtualMachine ();
  var ctx = new JSC.Context.with_virtual_machine (vm);

  var test_cls = ctx.register_class ("Test", null, null, null);

  var test = new JSC.Value.object (ctx, null, test_cls);
  info ("test is %s? %s", test_cls.name, test.object_is_instance_of (test_cls.name) ? "true": "false");
}

I get test is Test? false. What I understand from the docs is I should get a new instance of the class "Test".

Anyone can tell what I'm doing wrong? 😊

What's up at the Department of Unnecessary Projects #DepUnPr lately?

Here is Oliver ( #vala / #gtk4 / #libadwaita ) running on #osx (12.4, x86_64)

theme is WhiteSur; decoration layout forced in app (both just to make it blend a little more in osx); bundler script adapted from System76 Keyboard Configurator; #gtk4, #libadwaita via homebrew.

(I know: adwaita is a GNOME thing, custom themes are bad, it should be pure gtk etc etc ... , but I had it around and it was small enough for a test)

On a more useful note, while playing with this I've update Oliver interface and added some features and fixed some bugs. I could publish a new version soon.

I would like to release it as a #flatpak, but I'm not sure how to handle running php as as subprocess...

in reply to Vala

@Vala It was boring in a good way :) all what I need was available via homebrew. Meson, ninja, valac and everything else just worked. I've added blueprint as a meson subproject, no issues.
As editor I've used VSCode which has plugins for vala, blueprint and meson language support, very nice.
As I said, I've adapted the script to bundle everything in a osx app from @System76 :popos: :ubuntu: repo (thank you :D). It supports also signing, but I don't have this need.
It was really a smooth experience. 👍

New little toy project in #vala #gtk4 / #libadwaita : Oliver, a simple GUI for PHPStan.

Select a folder, it runs phpstan found in vendor/bin subfolder, shows (searchable) results, monitors reported file for modification to automatically analyze project while coding.

It's called Oliver because, you know... Stan... Oliver...

Code here:
git.sr.ht/~fabrixxm/oliver

reshared this

Managed to spend some time on this.

#gtk4 #libadwaita #vala #pixelfed

grinceur reshared this.

New experiment!
First experience with #gtk4, #libadwaita and #vala :

Appaya, to monitor and control Syncthing daemon (very much inspired by Syncthing Indicator Gnome Extension), obviously #WiP

Questo sito utilizza cookie per riconosce gli utenti loggati e quelli che tornano a visitare. Proseguendo la navigazione su questo sito, accetti l'utilizzo di questi cookie.