You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.3 KiB
46 lines
1.3 KiB
# libublsettingsui-gtk3
|
|
# Build
|
|
In order to build you will need:
|
|
|
|
- CMake
|
|
- C compiler
|
|
- [libublsettings](https://gitea.ublinux.ru/Applications/libublsettings)
|
|
- [libublsettings-gtk3](https://gitea.ublinux.ru/Applications/libublsettings-gtk3)
|
|
- GTK+ 3 & dependencies
|
|
|
|
Once you have all the necessary dependencies, you can use:
|
|
```sh
|
|
$ make
|
|
```
|
|
|
|
# Installation
|
|
After a successful build, just use:
|
|
```sh
|
|
$ sudo make install clean
|
|
```
|
|
|
|
# Uninstallation
|
|
After a successful build, just use:
|
|
```sh
|
|
$ sudo make uninstall
|
|
```
|
|
# Library usage
|
|
libublsettingsui-gtk3 provides library:
|
|
```C
|
|
#include <libublsettingsui-gtk3.h>
|
|
```
|
|
## libublsettingsui-gtk3
|
|
libublsettingsui-gtk3 provides API to use ubl-settings applications shared interface: main window, about dialog, confirmation window, saving window.
|
|
First of all, you need to connect config structure to standard interface:
|
|
```C
|
|
_template_config config;
|
|
yon_ubl_connect_config(config);
|
|
```
|
|
Next step you should initialize all necceccary information for standard interface:
|
|
```C
|
|
yon_ubl_window_init("Title of util","Description of util",".po file name","path to css file (must be connected as resource)","filename of your util","Version of util","About dialog wiki link");
|
|
```
|
|
And finaly you get interface structure:
|
|
```C
|
|
template_main_window *widgets = yon_ubl_window_setup();
|
|
``` |