Git Product home page Git Product logo

Comments (6)

ikeydoherty avatar ikeydoherty commented on August 17, 2024

Yeah the C example is actually pretty crap, and I can't remember if it handles the dispose chain properly. I'll redo it to be nice and include all the typical Budgie bits one needs

from budgie-desktop-examples.

ikeydoherty avatar ikeydoherty commented on August 17, 2024

FWIW in the mean time..:

https://github.com/solus-project/budgie-desktop-examples/blob/master/c_project/NativeApplet.c#L78

static void native_applet_init(__budgie_unused__ NativeApplet *self)
{
}

This is where you do basic initialisation, before you have access to any gobject properties.
The constructor will need modifying to pass the uuid. Now, in GObject C you're only guaranteed to have these constructor-time properties set in the construct function, so we need to override the GObjectClassvtable to have a ->construct method, which can then set to do something like:

self->settings = budgie_applet_get_applet_settings(BUDGIE_APPLET(self), ourUUID);

I'll flesh out the example. I suspect a slight API change in 11 to make this less derpy. It catered to Valaisms unfortunately.

from budgie-desktop-examples.

ikeydoherty avatar ikeydoherty commented on August 17, 2024

Moved this under the new org, slipped my mind

from budgie-desktop-examples.

fossfreedom avatar fossfreedom commented on August 17, 2024

Hi Ikey - noticed you have updated the example! cheers.

I compiled and installed the example - saw the "I am groot" by adding the new applet.

When removing the applet via raven - the panel crashed. (Ubuntu 16.04)

backtrace enc - thoughts on what the issue is?

http://paste.ubuntu.com/23482435/

from budgie-desktop-examples.

ikeydoherty avatar ikeydoherty commented on August 17, 2024

Yeah seeing it here too, haven't yet tracked it down fully. I know that its happening in the library itself (Dereferencing ->priv which SHOULD be initialised..)

from budgie-desktop-examples.

fossfreedom avatar fossfreedom commented on August 17, 2024

k - sorry Ikey - just got back to looking at this.

so we think this is a budgie-panel issue itself or something wrong with the example itself?

If the former - should this be tracked on the budgie-desktop tracker?

from budgie-desktop-examples.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.