Comments (6)
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.
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 GObjectClass
vtable 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.
Moved this under the new org, slipped my mind
from budgie-desktop-examples.
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.
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.
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)
- No package budgie-1.0 available. HOT 1
- How can I add my python plugin's symbolic icons to the hicolor dir and use them? HOT 4
- Applet development documentation
- How to use new Budgie.Popover in Python HOT 15
- Add setting for applet in Budgie Desktop Setting HOT 5
- API/Signal for panel orientation?
- Detect if an applet has been removed from the panel HOT 5
- update python example with gsettings and config widgets
- Not an issue but a question!!! HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from budgie-desktop-examples.