parent
dbd6370246
commit
14b8c32f57
@ -0,0 +1,32 @@
|
|||||||
|
#include "libublsettingsui-gtk3.h"
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
dictionary_fields
|
||||||
|
|
||||||
|
} yon_configuration_parameters;
|
||||||
|
|
||||||
|
ubl_settings_window *yon_ubl_settings_window_new(){
|
||||||
|
ubl_settings_window *window = malloc(sizeof(ubl_settings_window));
|
||||||
|
GtkBuilder *builder = gtk_builder_new_from_resource("/com/ublinux/libublsettingsui-gtk3-config-window.glade");
|
||||||
|
window->window = yon_gtk_builder_get_widget(builder,"Window");
|
||||||
|
window->WorkZoneBox = yon_gtk_builder_get_widget(builder,"WorkZoneBox");
|
||||||
|
return window;
|
||||||
|
}
|
||||||
|
|
||||||
|
yon_configuration_parameters *__yon_settings_parameters = NULL;
|
||||||
|
|
||||||
|
void __yon_on_ubl_settings_window_open(){
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void yon_ubl_settings_window_init(){
|
||||||
|
GtkMenuItem *menu_item = gtk_menu_item_new();
|
||||||
|
GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL,5);
|
||||||
|
GtkWidget *label = gtk_label_new(CONFIG_WINDOW_MENU_LABEL);
|
||||||
|
GtkWidget *image = gtk_image_new_from_icon_name("com.ublinux.libublsettingsui-gtk3.settings-symbolic",GTK_ICON_SIZE_BUTTON);
|
||||||
|
gtk_container_add(GTK_CONTAINER(menu_item),box);
|
||||||
|
gtk_box_pack_start(GTK_BOX(box),image,0,0,0);
|
||||||
|
gtk_box_pack_start(GTK_BOX(box),label,0,0,0);
|
||||||
|
gtk_widget_show_all(menu_item);
|
||||||
|
g_signal_connect(G_OBJECT(menu_item),"activate",G_CALLBACK(__yon_on_ubl_settings_window_open),NULL);
|
||||||
|
}
|
||||||
Loading…
Reference in new issue