You are not logged in.

#1 2020-03-06 21:48:43

Baraclese
Member
Registered: 2008-05-28
Posts: 48

cannot retrieve ibus engine names in vala

So this small vala program only prints nulls instead of the ibus engine names. But according to the documentation I believe this should work.

int main(string[] args)
{
    var bus = new IBus.Bus();
    if (!bus.is_connected())
    {
        return 0;
    }

    var enginelist = bus.list_engines();

    foreach (var engine in enginelist)
    {
        if (engine == null)
            print("null ");
        else
            print("%s\n", engine.get_name());
    }
   
    return 0;
}

Compile with valac --pkg ibus-1.0 test.vala

Last edited by Baraclese (2020-03-06 23:25:36)

Offline

#2 2020-03-06 22:00:10

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 28,895
Website

Re: cannot retrieve ibus engine names in vala

This is a support board, so opening a thread presupposes the need for help. Please edit your thread title to actually describe your issue: https://wiki.archlinux.org/index.php/Co … ow_to_post


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB