wlmaker
Loading...
Searching...
No Matches
Functions | Variables
menu.h File Reference
#include <libbase/libbase.h>
#include <libbase/plist.h>
Include dependency graph for menu.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bspl_array_t * wlmtool_menu_generate_appearance (const char *path_ptr)
 
bspl_array_t * wlmtool_menu_generate_applications (const char *path_ptr, const char *locale_ptr)
 

Variables

const bs_test_set_t wlmtool_menu_test_set
 

Detailed Description

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Function Documentation

◆ wlmtool_menu_generate_appearance()

bspl_array_t * wlmtool_menu_generate_appearance ( const char *  path_ptr)

Generates a menu for the Themes files found at XDG data directories.

Parameters
path_ptrOptional: Path to read from. If NULL, use the XDG data directories.
Returns
A Plist array, or NULL on error.

◆ wlmtool_menu_generate_applications()

bspl_array_t * wlmtool_menu_generate_applications ( const char *  path_ptr,
const char *  locale_ptr 
)

Generates an Applications menu from parsed .desktop files.

Parameters
path_ptrOptional: Path to read from. If NULL, use the XDG data directories.
locale_ptrThe locale for LC_MESSAGES, or NULL.
Returns
a Plist array, or NULL on error.

Variable Documentation

◆ wlmtool_menu_test_set

const bs_test_set_t wlmtool_menu_test_set
extern

Unit tests for the menu generator.