src/applet.c
static void trash_applet_class_init(TrashAppletClass *klazz) {
    GObjectClass *class = G_OBJECT_CLASS(klazz);
    class->finalize = trash_applet_finalize;
    class->get_property = trash_applet_get_property;
    class->set_property = trash_applet_set_property;

    applet_props[PROP_APPLET_UUID] = g_param_spec_string(
        "uuid",
        "uuid",
        "The applet's UUID",
        NULL,
        G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE);

    g_object_class_install_properties(class, N_EXP_PROPERTIES, applet_props);

    // Set our function to update popovers
    BUDGIE_APPLET_CLASS(klazz)->update_popovers = trash_applet_update_popovers;
    BUDGIE_APPLET_CLASS(klazz)->supports_settings = FALSE;
}
/**
 * Initialize the Trash Applet class.
 */
Initialize the Trash Applet class.
Initialize the Trash Applet class .
static void trash_applet_class_init(TrashAppletClass *klazz) {
    GObjectClass *class = G_OBJECT_CLASS(klazz);
    class->finalize = trash_applet_finalize;
    class->get_property = trash_applet_get_property;
    class->set_property = trash_applet_set_property;
    applet_props[PROP_APPLET_UUID] = g_param_spec_string(
        "uuid",
        "uuid",
        "The applet's UUID",
        NULL,
        G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE);
    g_object_class_install_properties(class, N_EXP_PROPERTIES, applet_props);
    BUDGIE_APPLET_CLASS(klazz)->update_popovers = trash_applet_update_popovers;
    BUDGIE_APPLET_CLASS(klazz)->supports_settings = FALSE;
}
static void trash_applet_class_init ( TrashAppletClass * klazz ) { GObjectClass * class = G_OBJECT_CLASS ( klazz ) ; class -> finalize = trash_applet_finalize ; class -> get_property = trash_applet_get_property ; class -> set_property = trash_applet_set_property ; applet_props [ PROP_APPLET_UUID ] = g_param_spec_string ( " " , " " , " " , NULL , G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE ) ; g_object_class_install_properties ( class , N_EXP_PROPERTIES , applet_props ) ; BUDGIE_APPLET_CLASS ( klazz ) -> update_popovers = trash_applet_update_popovers ; BUDGIE_APPLET_CLASS ( klazz ) -> supports_settings = FALSE ; }
Initialize the Trash Applet class.
Initialize the Trash Applet class .
// Set our function to update popovers