@ -835,7 +835,9 @@ void on_quotas_edit(GtkWidget *self, dictionary *windows){
if ( dict - > data & & yon_dictionary_get_data ( dict , device_limits * ) - > read )
if ( dict - > data & & yon_dictionary_get_data ( dict , device_limits * ) - > read )
read_devices = yon_char_unite ( read_devices ? read_devices : " " , " " , dict - > key , " " , yon_dictionary_get_data ( dict , device_limits * ) - > read , " \n " , NULL ) ;
read_devices = yon_char_unite ( read_devices ? read_devices : " " , " " , dict - > key , " " , yon_dictionary_get_data ( dict , device_limits * ) - > read , " \n " , NULL ) ;
}
}
if ( read_devices [ strlen ( read_devices ) - 1 ] = = ' \n ' ) read_devices [ strlen ( read_devices ) - 1 ] = ' \0 ' ;
if ( ! yon_char_is_empty ( read_devices ) ) {
yon_char_remove_last_symbol ( read_devices , ' \n ' ) ;
}
read_limit = yon_char_unite ( read_limit ? read_limit : " " , read_devices , NULL ) ;
read_limit = yon_char_unite ( read_limit ? read_limit : " " , read_devices , NULL ) ;
@ -845,7 +847,9 @@ void on_quotas_edit(GtkWidget *self, dictionary *windows){
if ( dict - > data & & yon_dictionary_get_data ( dict , device_limits * ) - > write )
if ( dict - > data & & yon_dictionary_get_data ( dict , device_limits * ) - > write )
write_devices = yon_char_unite ( write_devices ? write_devices : " " , " " , dict - > key , " " , yon_dictionary_get_data ( dict , device_limits * ) - > write , " \n " , NULL ) ;
write_devices = yon_char_unite ( write_devices ? write_devices : " " , " " , dict - > key , " " , yon_dictionary_get_data ( dict , device_limits * ) - > write , " \n " , NULL ) ;
}
}
if ( write_devices [ strlen ( write_devices ) - 1 ] = = ' \n ' ) write_devices [ strlen ( write_devices ) - 1 ] = ' \0 ' ;
if ( ! yon_char_is_empty ( write_devices ) ) {
yon_char_remove_last_symbol ( write_devices , ' \n ' ) ;
}
write_limit = yon_char_unite ( write_limit ? write_limit : " " , write_devices , NULL ) ;
write_limit = yon_char_unite ( write_limit ? write_limit : " " , write_devices , NULL ) ;
gtk_list_store_set ( main_config . list , & iter , 1 , target , 2 , soft , 3 , hard , 4 , paging , 5 , cpu , 6 , read_limit , 7 , write_limit , 8 , string , - 1 ) ;
gtk_list_store_set ( main_config . list , & iter , 1 , target , 2 , soft , 3 , hard , 4 , paging , 5 , cpu , 6 , read_limit , 7 , write_limit , 8 , string , - 1 ) ;
yon_config_register ( CGROUP_QUOTA ( target ) , CGROUP_QUOTA_comd ( target ) , ( char * ) string ) ;
yon_config_register ( CGROUP_QUOTA ( target ) , CGROUP_QUOTA_comd ( target ) , ( char * ) string ) ;
@ -1260,7 +1264,6 @@ void yon_main_window_complete(main_window *widgets){
gtk_box_pack_start ( GTK_BOX ( widgets - > InterfaceBox ) , yon_gtk_builder_get_widget ( builder , " BoxMain " ) , 1 , 1 , 0 ) ;
gtk_box_pack_start ( GTK_BOX ( widgets - > InterfaceBox ) , yon_gtk_builder_get_widget ( builder , " BoxMain " ) , 1 , 1 , 0 ) ;
// Custom widgets configuration
// Custom widgets configuration
{
{
widgets - > FiltersButton = yon_gtk_builder_get_widget ( builder , " FiltersButton " ) ;
widgets - > FiltersButton = yon_gtk_builder_get_widget ( builder , " FiltersButton " ) ;
widgets - > InformationButton = yon_gtk_builder_get_widget ( builder , " InformationButton " ) ;
widgets - > InformationButton = yon_gtk_builder_get_widget ( builder , " InformationButton " ) ;
widgets - > RemoveButton = yon_gtk_builder_get_widget ( builder , " RemoveButton " ) ;
widgets - > RemoveButton = yon_gtk_builder_get_widget ( builder , " RemoveButton " ) ;
@ -1291,7 +1294,6 @@ void yon_main_window_complete(main_window *widgets){
// yon_window_config_add_custom_parameter(widgets->HeadInfoLabel,"head-text","label",YON_TYPE_STRING);
// yon_window_config_add_custom_parameter(widgets->HeadInfoLabel,"head-text","label",YON_TYPE_STRING);
/* Signal connection | Присоединение сигналов */
/* Signal connection | Присоединение сигналов */
g_signal_connect ( G_OBJECT ( widgets - > DocumentationMenuItem ) , " activate " , G_CALLBACK ( on_open_documentation_confirmation ) , WIKI_LINK ) ;
g_signal_connect ( G_OBJECT ( widgets - > FiltersButton ) , " clicked " , G_CALLBACK ( on_filters_opened ) , widgets ) ;
g_signal_connect ( G_OBJECT ( widgets - > FiltersButton ) , " clicked " , G_CALLBACK ( on_filters_opened ) , widgets ) ;
g_signal_connect ( G_OBJECT ( widgets - > InformationButton ) , " clicked " , G_CALLBACK ( on_information ) , widgets ) ;
g_signal_connect ( G_OBJECT ( widgets - > InformationButton ) , " clicked " , G_CALLBACK ( on_information ) , widgets ) ;
g_signal_connect ( G_OBJECT ( widgets - > RemoveButton ) , " clicked " , G_CALLBACK ( on_remove ) , widgets ) ;
g_signal_connect ( G_OBJECT ( widgets - > RemoveButton ) , " clicked " , G_CALLBACK ( on_remove ) , widgets ) ;
@ -1319,7 +1321,6 @@ void yon_main_window_complete(main_window *widgets){
g_signal_connect ( G_OBJECT ( widgets - > LoadLocalMenuItem ) , " activate " , G_CALLBACK ( on_config_local_load ) , widgets ) ;
g_signal_connect ( G_OBJECT ( widgets - > LoadLocalMenuItem ) , " activate " , G_CALLBACK ( on_config_local_load ) , widgets ) ;
g_signal_connect ( G_OBJECT ( widgets - > LoadCustomMenuItem ) , " activate " , G_CALLBACK ( on_config_custom_load ) , widgets ) ;
g_signal_connect ( G_OBJECT ( widgets - > LoadCustomMenuItem ) , " activate " , G_CALLBACK ( on_config_custom_load ) , widgets ) ;
on_dispatcher_update ( NULL , widgets ) ;
on_dispatcher_update ( NULL , widgets ) ;
on_processes_update ( NULL , widgets ) ;
on_processes_update ( NULL , widgets ) ;
yon_window_config_add_listener ( widgets - > DispatcherUpdateCheck , " DispatcherAutoupdate " , " active " , YON_TYPE_BOOLEAN ) ;
yon_window_config_add_listener ( widgets - > DispatcherUpdateCheck , " DispatcherAutoupdate " , " active " , YON_TYPE_BOOLEAN ) ;